[android-developers] ad-mob
What is the best way to get an ad-mob ad to look decent in landscape mode? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Animation not displaying in onBackPressed
I'm trying to slide a custom modal view off the screen with a translation animation when the user presses the hardware back button. I call the panel.setAnimation method within onBackPressed, but while the method executes, the animation is not visible. Only until I touch the display does it redraw to the final state (with no animation). I tried running the animation method via runOnUIThread, but that made no difference. Any idea why the animation is not being displayed? If I use a custom button on the screen to call the animation, it works properly. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get mobile no from app without user permission...
Fortunately this is not possible. You could always ask the user for it though. Thanks On Thu, Aug 11, 2011 at 12:03 PM, GopalaKrishnan D gopall...@gmail.comwrote: How to get mobile no from app without user permission... -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] imageview displaying
Hi i placed a imageview (10dip) from the margin left(assume 100*200 size emulator )the same code if i run on the another emulator(assume 200*200)the image view should appear at 20dip but it is displaying at 10dip only ...so how can i solve this ImageView android:layout_height=wrap_content android:layout_marginLeft=10dip android:id=@+id/iv4 android:layout_width=wrap_content android:src=@drawable/image/ImageView Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cheap Bluetooth devices sought
Hello, I have recently bought a number of those cheap modules (which cost about 5GBP each) from China that are all over eBay at the moment. They're usually advertised as a 'Bluetooth to serial TTL module' or similar. It's a small PCB that contains a CSR Bluecore device and memory, integrated PCB foil antenna, and a four-pin header for 0V, 5V, Rx and Tx connections. Here's one example: http://www.ebay.co.uk/itm/Serial-Bluetooth-RF-Transceiver-Module-rs232-TTL-/280696760008?pt=UK_Computing_Networking_SMhash=item415ad4a6c8 I'm quite fond of them having the CSR device because I've worked with and modified CSR firmware in the past for a previous project. These modules all come with SPP (Serial Port Profile) firmware, but one thing to keep in mind is that despite many, many Chinese suppliers on eBay selling the same PCB, many come with different firmware. I've successfully used my Android app with modules I have with one particular firmware, but another firmware that came on the same PCB from an alternative supplier can't be connected to. However, CSR's Blueflash utility and a simple homebuilt parallel port / SPI interface means you could swap firmware between modules. Trev On Aug 8, 6:55 pm, cellurl gpscru...@gmail.com wrote: Anyone know of a $10 bluetooth device that I can buy in low quantities? For example something a phone could turn on/off? I need 2 remote switches. Just on and off. There are hacking options, but that seems last resort. A: Butchering a BT-headset and sending/decoding DTMF. B: Butchering RemoteControlBluetooth cars... But I am hoping someone can point me to a super cheap BT slave device or point me to a more appropriate group. Thanks for any leads! cellurl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: molasses Debug mode
Stop debugging. Test driven development and sensible logging can eliminate need for debuging. Usially it is faster to place LOG.wtf() on key position and redeploy as stepping through 150 levels of function invocations On Aug 11, 6:01 am, bob b...@coolgroups.com wrote: When I run my Android game on my phone in Debug mode, it is slow as molasses. Is there any way to fix this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] regarding phone number
Hi, I unable to read phone number from my device Samsung Galaxy fit. TelephonyManager mTelephonyMgr; mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String n = mTelephonyMgr.getLine1Number(); Please any one help me. with regards, Nagu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Question about 2.1 source
I have been trying to download the Android 2.1 source, release 1. Please forgive me but I have used GIT to grab the latest code but am not sure how to go about GITing the 2.1 r1 branch. Could someone please give me a clue ot two? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android.provider.MediaStore.ACTION_IMAGE_CAPTURE
Hi all, i am using Action image capture for camera . i want to handle orientation also how to handl ethe orientation while using this intent. Thanks and Regards:- Ankur Goel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NFC: Multi API-level Development
I would like to use NFC if this feature is available on my device, and if not, I will use some other technology. The API level we are working on is API level 7, and the question is, how the NFC functionality is accessed if it is available? With method getPackageManager().hasSystemFeature(android.hardware.nfc) I can check whether NFC is supported, but what is the pattern to access this functionality then? Or is the only solution to provide two different versions of the apk? Dominik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Known reasons for rebooting?
Does anyone know of (reproducible) reasons for device reboot? My app-under-development will run for hours if the device is not charging, but with USB connected it will reboot, usually within minutes. No exceptions shown, just a reboot. The app has one activity, which (via a WakefulIntentService [from CommonsWare]) sets up alarms that will trigger at different intervals (4mins to half a day). The alarms are cancelled when the activity is destroyed. When an alarm goes off, a BroadcastReceiver starts a WakefulIntentService, which pulls some data from a server and saves it in a file. That service starts another service, which provides a cache of the data in the file to the activity. The start of the cache service is afaik the simplest way of providing a simple notification. It is most likely already running, as it is bound by the activity. This could most likely be done smarter, but it seemed like a fair compromise when I want the app to work offline, too. Does anyone know of an interaction between USB/charging and wakelocks / alarms / services ? Logcat does not provide much help. Seems that the log is cleared at reboot. Any hints for debugging this apart from logcat (will adb bugreport provide more history than logcat?) Just for the record, I have seen the device (HTC Desire running 2.2) reboot when it gets hot (hot environment, lots of voice/data traffic while or just after charging), but it's running pretty cool in this scenario. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] IME problem with cursor
I am developing an IME for kannada - an Indian language by adapting softkeyboard from android sdk. When I type characters cursor moves ahead by one place. But when I type some compound characters like kku in bekku, I will have to combine, ka, virama, ka and then u with 4 different unicode characters. All of them appear together, but cursor will be 4 places ahead instead of appearing next to the compound character. How can I show the cursor in the correct location? I tried setSelection() method of inputconnection. I also tried sending keyevent (down and up both) of key-dpad-left. Nothing is working. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get mobile no from app without user permission...
its possible through read_phone_state -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I LOVE ANDROID
Sorry.. just wanted to let you know :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Known reasons for rebooting?
I think this is related to a known problem affecting the HTC Desire. Apparently it happens when the CPU gets hot, which is very likely for intensive operations. See this: http://androidforums.com/desire-support-troubleshooting/78992-htc-desire-crashes-restarts-randomly.html I had an HTC Desire and it was rebooting all the time as soon as I attached the phone to my USB cable and starting an application via Eclipse. The same was happening when I was browsing the web or playing Angry Birds :) Eventually.. I've got a Samsung Galaxy S2!! Hope this help, Nico 2011/8/11 Per p...@care2wear.com Does anyone know of (reproducible) reasons for device reboot? My app-under-development will run for hours if the device is not charging, but with USB connected it will reboot, usually within minutes. No exceptions shown, just a reboot. The app has one activity, which (via a WakefulIntentService [from CommonsWare]) sets up alarms that will trigger at different intervals (4mins to half a day). The alarms are cancelled when the activity is destroyed. When an alarm goes off, a BroadcastReceiver starts a WakefulIntentService, which pulls some data from a server and saves it in a file. That service starts another service, which provides a cache of the data in the file to the activity. The start of the cache service is afaik the simplest way of providing a simple notification. It is most likely already running, as it is bound by the activity. This could most likely be done smarter, but it seemed like a fair compromise when I want the app to work offline, too. Does anyone know of an interaction between USB/charging and wakelocks / alarms / services ? Logcat does not provide much help. Seems that the log is cleared at reboot. Any hints for debugging this apart from logcat (will adb bugreport provide more history than logcat?) Just for the record, I have seen the device (HTC Desire running 2.2) reboot when it gets hot (hot environment, lots of voice/data traffic while or just after charging), but it's running pretty cool in this scenario. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Honeycomb tablet SIP (Session Initiation Protocol) API not SUPPORTED?
Tablet: Acer A500 GEN1 Android 3.1 kernel 2.6.36.3 (API level 12) http://developer.android.com/reference/android/net/sip/SipManager.html - (since API level 9 ) Last week tested my application on Galaxy 10.1 tab and everything worked fine, but on Acer SipManager.isApiSupported and SipManager.isVoipSupported return false. The device was specifically bought for VOIP application development. Requirements for android SIP: 1) Android 2.3 or higher. 2) Data connection 3) SIP account. I meet all the requirements. What the hell is going on? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android - JNI - Recovering Exception members through JNI
In my Java code I create MyException class (extending Exception class) with the getCustomCode() method. In my C++ code, when I call a Java method that throws MyException I need to execute the getCustomCode of this exception to properly handle the exception. To accomplish that I execute the Java method that throws MyException with this code: --- jint result = env-CallIntMethodA(javaObj, methodId, params); Right after this line I check for JavaException with this code: --- jthrowable exc = env-ExceptionOccurred(); if(exc) { jclass objCls = env-FindClass(com/mycompany/myapp/exception/ MyException); jmethodID codeMethod = env-GetMethodID(objCls, getCustomCode, ()I); if(!objCls || !codeMethod){ } // Try to execute getCustomCode java method. jint codeResult = env-CallIntMethod((jobject)exc, codeMethod); ... ... } --- But, when I try to execute the getCustomCode through JNI it fails. I did some checks with the JNI methods IsAssignableFrom and IsInstanceOf and the result was: --- jclass objCls = env-FindClass (com/mycompany/myapp/exception/ MyException); jclass objThrowable = env-FindClass (java/lang/Throwable); if(env-IsAssignableFrom(objCls, objThrowable) == JNI_TRUE) { /* TRUE! */ } --- The condition returned true, so my class is correct. Another check: --- jclass objCls = env-FindClass (com/mycompany/myapp/exception/ MyException); jclass objThrowable = env-FindClass (java/lang/Throwable); if(env-IsInstanceOf((jobject)exc, objCls) == JNI_TRUE) { /* FALSE */ } if(env-IsInstanceOf((jobject)exc, objThrowable) == JNI_TRUE) { /* FALSE */ } --- Both conditions returned false, so neither MyException nor Throwable is the exc class! So, what is the jthrowable object? And how can I cast the jthrowable object to a jobject to access MyException members? Is it possible? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dynamic Bytecode Frequency
Hi I want to do dalvik VM bytecode profiling and measure dynamic bytecode frequency in different applications. Is there any tool for this? How can I do this? thanks ehsan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] DalvikVM Crashes while accessing env-GetObjectMethod
HI All, I am trying to call the JAVA methods from C++ layer and following is my problem, Crash message: E/dalvikvm( 2687): JNI ERROR (app bug): accessed stale local reference 0x3825 (index 9 in a table of size 0) E/dalvikvm( 2687): VM aborting Observation: Actually JNI layer is trying to report the status of power ON sequence to service layer, so it gets the java callback function using JNIEnv and reports the status. Below figure depicts what I am doing in JNI Main Thread -- - vm-GetEnv() --- env-GetObjectClass() --- env-GetMethodID() --- Start Sub-Thread Sub Thread --- vm-AttchCurrentThread() --- env-GetObjectClass() {Dalvik Crashes here} Call to env-GetObjectClass() succeeds without any problem for the first time (when it is called from main thread, this time I gets the JNIenv by calling vm-GetEnv()) but the subsequent call(from a sub thread which is invoked from main thread, this time I get the JNIenv by calling vm-AttachCurrentThread()) fails with the above crash message. When GetObjectClass() called second time, DalvicVM is crashing in function dvmDecodeIndirectRef() in file dalvic/vm/Jni.c Questions: 1) since it is passing for the first time i doubt its some thing related to memory accessing issue, please point me out where i am doing wrong -- Regards Halli -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Trouble installing USB driver for Nexus S under Windows 7-64 bit
I've installed the SDK and downloaded the GoogleUSB driver, but when I tried to install it, Windows 7 tells me I've already got the best driver installed and refuses to continue. It seems to see the Nexus S simply as a USB drive. Has anyone else experienced this problem? By the way, I posted a similar question yesterday, but I can't find it. How long does it normally take for a message to be approved by a moderator? (I'm a new member.) Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Urgent - Getting error in Eclipse for drag/drop of check box to Layout xml
Hi All, I am getting below error when i try to drag Form Widgets to layout xml -- in my case , it is checkbox element. javax.imageio.IIOException: Error reading PNG metadata at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java: 690) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java: 1309) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java: 1579) at javax.imageio.ImageIO.read(ImageIO.java:1400) at javax.imageio.ImageIO.read(ImageIO.java:1286) at android.graphics.Bitmap_Delegate.createBitmap(Bitmap_Delegate.java: 95) at com.android.layoutlib.bridge.impl.ResourceHelper.getDrawable(ResourceHelper.java: 233) I m using eclipse Indigo , Android API 10 (2.3.3) java.lang.NullPointerException at android.graphics.drawable.DrawableContainer $DrawableContainerState.addChild(DrawableContainer.java:349) at android.graphics.drawable.StateListDrawable $StateListState.addStateSet(StateListDrawable.java:267) at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java: 175) at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java: 787) at android.graphics.drawable.Drawable.createFromXml(Drawable.java: 728) at com.android.layoutlib.bridge.impl.ResourceHelper.getDrawable(ResourceHelper.java I appreciate urgent help on this. thanks in advance. Request to moderators -- please allow this topic to be posted. thanks, Dinesh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Query
Hello Friends, Can any one tell me how information is stored in android phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application Life Cycle
Hi guys, I need to show an advertisement in my app when the application start and resume from background(user pressed home/back button). How can I detect the application did resume/will resume status? Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Applying different commands at different location
Hi... I am working in Ubuntu. I have a bunch of commands (say 10 commands like cmd1, cmd2, cmd3..cmd10) I want to write a python script, which can achieve the following: It should traverse through the directory structure and apply a command at particular directory path. The location and the commands are already known to me. Here is how, I want the script to operate. /local/mnt/myspace/sample1$ cmd1 /local/mnt/myspace/sample2$ cmd2 /local/mnt/myspace$ cmd3 /local/mnt$cmd4 /local/mnt/myspace/sample9$ cmd 8 /local/mnt/myspace/sample3$ dmd10 can someone please help on this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] non-stripped file for symbol-based profiling
Hello, I am try to use OProfile on android platforms. I find out the images on the target board are stripped. Is it normal for getting symbol- based summaries? Thanks a lot for any reply. BR, HW -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to use common baseadapter class for all listviews?
Hi, Any one can give idea to make a common base adapter class for number of listviews? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Applying different commands at different location
Hi... Its more related to python but the commands which i will be applying is on android source code. I am working in Ubuntu. I have a bunch of commands (say 10 commands like cmd1, cmd2, cmd3..cmd10) I want to write a python script, which can achieve the following: It should traverse through the directory structure and apply a command at particular directory path. The location and the commands are already known to me. Here is how, I want the script to operate. /local/mnt/myspace/sample1$ cmd1 /local/mnt/myspace/sample2$ cmd2 /local/mnt/myspace$ cmd3 /local/mnt$cmd4 /local/mnt/myspace/sample9$ cmd 8 /local/mnt/myspace/sample3$ dmd10 can someone please help on this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: What is the right way to get updates from REST service by timer in Android?
On Wed, Aug 10, 2011 at 1:56 PM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: UPDATE: I need to receive updates even if user has switched to another application or receive a call. UI also should be updated. So when user switch back to the application he should see updated view. Assuming you are interesting in connecting to the REST service to find out if something is waiting, have a look into AC2DM, also known as Android Cloud to Device Messaging, or Android Push Messages, and have your server tell the app to poll the REST service. Fairly easy to implement, and better than polling a remote service continually (wasting data and battery) when there is probably nothing new. Also, you should read about Services. Cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] get the emulator property dev.bootcomplete
Hello, I'm using the emulator by commandline. The emulator normally send a 1 for the command adb shell getprop dev.bootcomplete when it is finished, so that I can install the application. Unfortunately it is empty now. Has anybody an idea? We use it for automated build tests... Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Trying to auth with google app engine, getting 500s
Hello all, FIrst post here, so standard disclaimer: Android noob, beg your patience. So I'm trying to authenticate from Android to my GAE backend with clientlogin, pretty much following the steps here: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app My code worked fine a few days ago, but without any changes I tried it today and when I requested the cookie I get a 500. Its not some temporary glitch because I've been reliably getting these 500s for hours now. How am I to interpret this? If my request (http:// version1.myapp.appspot.com/_ah/login?continue=http://localhost/ auth=LONGSTRINGHERE) was malformed or the auth token was no longer valid, I would expect some reply other than a 500. But I also doubt that this could be truly some internal error because I don't think that google could let such an important system malfunction for hours on end. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adding multiple proximity alerts.
Hello guys! How do i add multiple proximity alerts, i now have this code: http://pastebin.com/7wL90CVg Can anyone of you make the code add multiple proximityalerts, and delete them here? (Line 52-68) } else { ImageView fzone = (ImageView)findViewById(R.id.fopzone_iv); fzone.setImageResource(R.drawable.disabledfopzone); TextView tv = (TextView)findViewById(R.id.uitleg); tv.setText(R.string.uitleg); try { lm.removeUpdates(locationListener); Intent intent = new Intent(PROX_ALERT_INTENT); PendingIntent proximityIntent = PendingIntent.getBroadcast(FOPZoneActivity.this, 0, intent, 0); lm.removeProximityAlert(proximityIntent); Log.d(FZONERM, Removed stuff...); } catch(Exception ex) { Log.e(FZONEEND, ex.getMessage()); } } i don't know how to do it :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Run Flash on Android Emulator?
Hello Developers My boss wants me to view an internal company website on Android Emulator. However, the website was built in Flash. So far, I cannot find any way to run Flash website on Emulator. Is Flash runnable on Android Emulator? I've found different answers. Someone mentioned Adobe AIR http://flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/ but it seems I don't need to develop application. I just need to view Flash website. btw, I'm using Galaxy Tablet to view it and it is super SLOW... Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android game development
Hi Samuel, Beginning Android Games is a really good book, and you will learn the base to do what you want. I bought this book last week and till now (30%) it totally worth it. Cheers, Matheus On Tue, Aug 9, 2011 at 2:49 AM, Samuel jrl...@gmail.com wrote: Thanks Mohammed, Did you have it? Can I found how to create scrolling screen, walking, jumping such as Mario game ? Regards.. On Aug 9, 11:01 am, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Beginning Android Games by Mario-Zechner... On Tue, Aug 9, 2011 at 9:59 AM, Samuel jrl...@gmail.com wrote: Hi, I am interested to develop game in android. I'm looking for book about developing android game but can't decide which book should I buy. I hope through that book I know how to scrolling screen, shooting, jumping and other usual game actions. If you know good book for that, please inform me. thanks in advance.. Joseph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www:http://www.hossaindoula.com @: ron...@desme.com* *facebook:http://www.facebook.com/ROnyWorld* *twitter:http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matheus Augusto Bodo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] newbie: onLocationChanged invoked even in sleep mode
I thought the GPS and Activities were disabled when the phone go into sleep mode. But when I walk around with my phone in sleep mode for a couple of minutes and then turns it on again - I can see that positions has been logged for the time the phone was asleep. What is going on here? Here is my code: public class GetLocation1 extends Activity { TextView textView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); textView = (TextView)findViewById(R.id.posText); setupListener(); } public void setupListener() { LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); LocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { makeUseOfNewLocation(location); } public void onStatusChanged(String provider, int status, Bundle extras) {} public void onProviderEnabled(String provider) {} public void onProviderDisabled(String provider) {} }; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); } public void makeUseOfNewLocation(Location location) { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(-MM-dd HH:mm:ss); String timeStr = Time: + new String (sdf.format(cal.getTime()).toString()); textView.append(timeStr + \r\n + Lo= + Double.toString(location.getLongitude()) + \r\n + LA= + Double.toString(location.getLatitude()) + \r\n); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] crashes
On Wed, Aug 10, 2011 at 2:26 PM, bob b...@coolgroups.com wrote: What if my app crashes when it's not in debug mode? Is there a way to see what went wrong? Use LogCat console to see any thrown exceptions, also make sure you have the required permissions configured - trying to access something that requires permission when there is none causes the app to crash (as it should). Cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to remove widget when the app is uninstalled in Android?
In Android, I have created a widget for my application. When I uninstall the app, the widget shows problem loading widget error in home screen. I need a scenario where widget should be removed by the developer through code (and not by the drag and drop to the trash) when I uninstall the app. Is it possible? If so, what changes we need to do? Is there anything that can be set in the manifest so that it removes all references of the app once it is uninstalled? Please help me solve this problem. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] URGENT - Load Keyboard object from external xml file as asset xml.
I want to load Keyboard object from external xml file. Here is my test code. Keyboard keyboard = new Keyboard(context, resId); XmlResourceParser parser = null; // test code try { parser = getAssets().openXmlResourceParser(test.xml); } catch (IOException e1) { e1.printStackTrace(); } try { Method method = Keyboard.class.getDeclaredMethod(loadKeyboard, new Class[] { Context.class, XmlResourceParser.class }); method.setAccessible(true); method.invoke((Keyboard)keyboard, new Object[] {context, parser}); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NotFoundException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } return keyboard; But getAssets().openXmlResourceParser method does return null. Because XmlResourceParser can only get internal resource xml as compiled xml. How can I get Keyboard object from external xml? Is there any good idea? Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem installing USB driver for Nexus S
Hi! I've installed the SDK and AVD Manager (successfully, I believe), and now I'm trying to install the USB driver from Google for the Samsung Nexus S. But in the list of available packages under Google Inc., it just says Some packages were found but are not compatible updates. I'm running under Windows 7 64-bit. Any suggestions? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can i rotate vertical a RatingBar widget
I want to rotate a RatingBar vertically. I managed to do that with animation but the on touch listeners remains in the horizontal position. Does anyone has a clue ? I`ll be gratefull for an answer. Thanks, Mugurel Spineci -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to keep the camera shutter sound up?
I'm on the way of QA test with a camera app. The camera apps in normal android phones keep shutter sound even with volume set to mute. but my app can make the shutter sound. besides this code which generates shutter sound, what else should i do? or what makes shutter sound up even in mute? --- takePicture(ShutterCallback, PictureCallback, PictureCallback, PictureCallback); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can i rotate vertical a RatingBar
I want to rotate a RatingBar vertically. I managed to do that with animation but the on touch listeners remains in the horizontal position. Does anyone has a clue ? I`ll be gratefull for an answer. Thanks, Mugurel Spineci -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Webview - how to detect redirecting URLs
Hello, I have a question on the Android webview. Assume URL A redirects to URL B at the server side. My android application when it tries to open URL A, webview automatically redirects to URL B. If a URL is being redirected to some other url, I see both these urls are stored in webview history. Now my webview history consists of [URL x, URL y, URL A, URL B ] On back key click from URL B webpage, webview will try to load URL A, which again redirects to URL B. We need to double click back key twice rapidly, to go back beyond URL A How do I solve this issue ? Is there a way to tell webview, not to put redirecting URLs in history or any other options ? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] boot unlocken voor xperia NEO
Hello, When i folow the sony ericsson i get connected to my device but when i do the unlock i get: FAILED (remote: oem unlock 0xFFF) any advice... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Load Keyboard object from external xml file as asset xml.
I want to load Keyboard object by using asset xml file. Here is my test code. Keyboard keyboard = new Keyboard(context, resId); XmlResourceParser parser = null; // test code try { parser = getAssets().openXmlResourceParser(test.xml); } catch (IOException e1) { e1.printStackTrace(); } try { Method method = Keyboard.class.getDeclaredMethod(loadKeyboard, new Class[] { Context.class, XmlResourceParser.class }); method.setAccessible(true); method.invoke((Keyboard)keyboard, new Object[] {context, parser}); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NotFoundException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } return keyboard; But getAssets().openXmlResourceParser function not support the loading from external resource. That can only load from compiled xml. Is there any good idea to make keyboard from external xml? Please help me... Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help Me!!!!!
Also, there's the http://developer.android.com/ website that is really useful. On Tue, Aug 9, 2011 at 3:29 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.comwrote: dude there are lots of videos out on youtube and other websites also just google it books from appress are good both beginning and pro android development download them from torrent On Sat, Aug 6, 2011 at 8:52 PM, RAJU V kathiriraj...@gmail.com wrote: Hi Am RAJU Am New to this android development so please help me by giving some android e-books to develop the apps in beginner manner please am begging you to send some e-books to develop android application ~~RAJU~~ ~~www.itdoall.co.cc~~ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matheus Augusto Bodo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 2.2 + Wi-fi problem
Hi, I recently bought a Samsung Galaxy Tab 7 inch with Android 2.2. But I am unable to connect to my wireless Wi-Fi network, wich is protected by WPA2. The SGT sees my Wi-Fi- network and I can fill in a password, but it will not connect. I also updated the firmware wich didn't help. Is Android 2.2 not compatible with WPA2? because it works at the office where they have WEP protection. Is there any patch or fix for this problem? Looking forward to your response. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Insertion,deletion updation on SQL database in android
Plz help me for my problem. How Insertion,deletion updation on SQL database in android is solved? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to detect HTML tag?
On Aug 8, 10:43 pm, ndiiie90 wrote: What i mean is to replace all tags in data that is retrieved from database.. So for example, the data is: I am a java amp android developer will be replaced into: I am a java android developer That is not a valid replacement, actually, as entities are set off by ampersand and semicolon characters, e.g., amp;. How can i do that? I think it is not effective to replace all tag by proper character What exactly do you mean by not effective and why do you think that would be a problem? The classes and methods suggested by other respondents would be quite effective as far as I can tell. You might also consider the java.util.regex package. In the same package with android.text.Html there are other potentially useful classes, such as android.text.TextUtils. Bear in mind that there a quite a few entities you will want to parse. http://www.w3schools.com/tags/ref_symbols.asp -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possible to run sendevent shell command through the code ?
I just want to run the send event command through the code to click on certain coordinates automatically. Is it possible or not through the android code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android App Crash
Hi, I have developed very basic android app which gets location using phone's GPS. It works fine if device is not moving. When i carry my phone in car and increase speed, app either freezes or crashes with only once option as Forece close. This app also calls a web service to send Longi/Lati. Please share your thoughts about this issue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Your content must have a listview whose id attribute is 'android.R.id.list'
All you should need is: android:id=@android:id/list -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to close an activity A and sub activity B that runs in the background?
Hi, I have an activity A (a menu) that creates and start activity B (a running game). public void onClick(View v) { switch(v.getId()){ case R.id.start: Intent i = new Intent(this, GameActivity.class); startActivity(i); break; case R.id.exit: finish(); break; } } When I'm back into the menu (activity A) and while activity B is in the background , I want to stop activity A and B. How to do it? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Are two way SSL handshakes supported on Android?
Are two way SSL handshakes supported on Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I publish an app without going to the android market
Hi All, Can you please let me is there a way to automate the deployment of an app to android market. Regards Tiklu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] The CTS's Questions
Hi, friends My CTS is used android-cts-2.3_r4-x86 of the version. The result was failed when my device run the test of testFocusDistances. The point is my device doesn't supprot the autofocus functions and I also remove the functions from my system.img(/system/etc/ permissions/). The result of the CTS shows the features of android.hardware.camera.autofocus and android.hardware.camera.flash that does not click. So, why the CTS still run the item related the focus mode? Waiting your answer! thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to close an activity
Hi, I have an activity A (a menu) that creates and start activity B (a running game). public void onClick(View v) { switch(v.getId()){ case R.id.start: Intent i = new Intent(this, GameActivity.class); startActivity(i); break; case R.id.exit: finish(); break; } } When I'm back into the menu (activity A) and while activity B is in the background , I want to stop activity A and B. How to do it? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Object Serialization
Hi all, I need to serialize an object in android and send it to java application on a remote server. Since Android does not support XML serialization the only solution I know is JSON. However, JSON is good when we want to use a web-page on server side but I want to use java application on the server side rather than a web page. Do you have any suggestions? Thanks, Ozcan. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: transparent images
setBackgroundDrawable() sets the Drawable to use as a background; it doesn't draw on top of the existing background. To do what you want, you'll have to load the opaque background, draw the transparent overlay on top of it, create a BitmapDrawable from the composite image, then use that as your button's background. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Launch Contacts app from widget, want Back to ALWAYS go Home
I have a widget that displays contacts and/or phone numbers, based on things like Calendar events. When the user touches a tile, my widget gets a broadcast (so that I can do some logging) and then builds an Intent to start an Activity that launches the Contacts/Dialer app, using Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP flags.. For contacts, I use Intent.ACTION_VIEW and a ContactsContract.Contacts.CONTENT_LOOKUP_URI URI; for phone numbers, I use Intent.ACTION_DIAL and a tel: URI. Works just fine *except* that if I tap a contact, then Home, then a phone number, then Back, I go to the contact, not to the Home screen. And if I tap a phone number, then Home, then a contact, then Back, I go to the phone number, not to the Home screen. (If I tap a contact, then Home, then a contact, then Back, I do go to the Home screen; ditto if I tap a phone number, then Home, then a phone number, then Back. I get the same behavior when I use Intent.ACTION_VIEW for both contacts and hone numbers: The key *seems* to be the different MIME types ) And, yes, this is supposed to run on phones, so Intent.FLAG_ACTIVITY_CLEAR_TASK is not an option. Has anyone run into this before? Or have any suggestions? (Since some phones *do* have separate Contacts and Dialer apps, I'd prefer to stick to generic Intent/Activity manipulation, and to avoid anything based on reading the source of the Contacts app.) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to remove error
hello, when i run my android app. on android 2.2 emulator,the rrror comes as INSTALL_FAILED_INSUFFICIENT-STORAGE how can i remove these error. also it doesn't show any logcat. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] just made an app
hello, new to apps .. I just had an app published, Baseball Cards value, I can not see it anywhere in the store, How long does it typically take? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to remove error
hello, when i run my android app. on android 2.2 emulator,the rrror comes as INSTALL_FAILED_INSUFFICIENT-STORAGE how can i remove these error. also it doesn't show any logcat. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] End users reporting licensing failures after resetting phone
I have had a few reports from users of my apps that after resetting their phone, They can download my apps but no longer load them because the license check fails. I have check with those that have reported this to me that they are using the same phone have setup the same google account that they used to make the purchase. I'm using the serverManagedPolicy, not really sure what I can do. It works fine for most people. Appears to be specifically related to resetting the device. Rob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Loading a serialized file into Android Problem
Here is what I am trying to do: 1.) Create a serialized file, 2.) Write it to the SD Card 3.) Take the resulting file and include it in either the Assets folder or raw folder of my app 4.) Load a hashtable from that file My data source is a CSV of 50,000+ words (and nothing else). So far, creating the file is not a problem...that part seems to work fine. My problem is that if I attempt to load the file from the assets or raw folder, I am having unending problems of all descriptions. I have tried literally everything...this, for example, returns 08-10 19:27:16.076: VERBOSE/This file can not be opened as a file descriptor; it is probably compressed(7397): message AssetFileDescriptor assetFileDescriptor = getAssets().openFd(dictionaryser.ser); FileInputStream fis = new FileInputStream(assetFileDescriptor.getFileDescriptor()); ObjectInputStream ois = new ObjectInputStream(fis); Map dictionaryMap = (Map) ois.readObject(); ois.close(); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application Device Orientation Change 2.1, 2.2 versus 2.3 and up
My application works fine using API 7 and API 8 for changing device orientation and reverting back with the screen and all state variables. However,starting with API 9 and moving forward the screen switches from portrait/vertical to landscape/horizontal fine with all variables intact but on reverting back into the vertical/portrait mode the screen does not readjust its orientation. It has all components running vertically instead of horizontally in the portrait screen (literally top to bottom rather than left to right). The application has android:orientation =vertical, android:screenOrientation =portrait specified in the XML layout file. Any help or hints would be appreciated... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ALPHA_8 bitmaps and getPixel.
Hi, The following is giving me a serious headache. Bitmap mTestMap = Bitmap.createBitmap(20, 20, Config.ALPHA_8); mTestMap.setPixel(10,10, Color.WHITE); Log.d(Test, HasAlpha= + mTestMap.hasAlpha() + , IsMutable= + mTestMap.isMutable() + , PixelColor= + mTestMap.getPixel(10,10)); The output is: 08-11 10:56:23.490: DEBUG/Test(11211): HasAlpha=true, IsMutable=true, PixelColor=0 The question is, why does getPixel return 0? And if it was meant to return 0, what is the correct way to retrieve pixel color information (or alpha channel information) from an ALPHA_8 bitmap? I am trying to use this kind of bitmap for hit-testing in a game. RGB_565 works fine, but I am trying to reduce the memory. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Are two way SSL handshakes supported on Android?
On Thu, Aug 11, 2011 at 11:42 AM, charan sweetcha...@gmail.com wrote: Are two way SSL handshakes supported on Android? In the browser: not yet AFAIK. Using JSSE (for example with HttpClient), yes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Navigation software results in zero LocationManager requestLocationUpdates
Hi, Update : was indeed a resource issue. My app is using the locationmanager in a background service When lowering the update ratio, things were working fine and the 2 apps were able to co-exist. Regards, Davy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: New email received intent
Ok. Then what would you suggest. I need to start work on a unified messaging system. I know there's 3rd party ones out there, but I need it in my app. Any open source ones? I've probably just been doing the wrong searches. Of course I can do facebook and twitter (just write with their api's), but what about SMS and Email? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: New email received intent
The Android email client is open, available in the usual repo. http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=summary K9 is open as well, hosted on Google Code. http://code.google.com/p/k9mail/ Then there is a way to use JavaMail with Android, although that requires some tweaks, as I understand (removing / replacing the use of JavaBeans storage API). Mail Droid does this, and although it's closed source, you could try asking the developer about where he got the changes - perhaps those were done by someone else? -- Kostya 11.08.2011 14:26, Wieger Aaron Visser пишет: Ok. Then what would you suggest. I need to start work on a unified messaging system. I know there's 3rd party ones out there, but I need it in my app. Any open source ones? I've probably just been doing the wrong searches. Of course I can do facebook and twitter (just write with their api's), but what about SMS and Email? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: New email received intent
JavaMail for Android: http://code.google.com/p/javamail-android/ 11.08.2011 14:26, Wieger Aaron Visser пишет: Ok. Then what would you suggest. I need to start work on a unified messaging system. I know there's 3rd party ones out there, but I need it in my app. Any open source ones? I've probably just been doing the wrong searches. Of course I can do facebook and twitter (just write with their api's), but what about SMS and Email? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fwd: imageview displaying
-- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Thu, Aug 11, 2011 at 12:36 PM Subject: imageview displaying To: android-developers@googlegroups.com Hi i placed a imageview (10dip) from the margin left(assume 100*200 size emulator )the same code if i run on the another emulator(assume 200*200)the image view should appear at 20dip but it is displaying at 10dip only ...so how can i solve this ImageView android:layout_height=wrap_content android:layout_marginLeft=10dip android:id=@+id/iv4 android:layout_width=wrap_content android:src=@drawable/image/ImageView Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: New email received intent
Thanks Kostya! I'll check it all out! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Query...
Hello Friends, Can any one tell me how information is stored in android phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Query...
On 11 August 2011 11:43, Ishan ishanthapar...@gmail.com wrote: Hello Friends, Can any one tell me how information is stored in android phone? robustly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Query...
Probably bits 2011/8/11 Daniel Drozdzewski daniel.drozdzew...@gmail.com On 11 August 2011 11:43, Ishan ishanthapar...@gmail.com wrote: Hello Friends, Can any one tell me how information is stored in android phone? robustly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Query...
Assembled into bytes, no question. @Ishan: http://developer.android.com/guide/topics/data/data-storage.html 11.08.2011 14:56, Nico Balestra ?: Probably bits 2011/8/11 Daniel Drozdzewski daniel.drozdzew...@gmail.com mailto:daniel.drozdzew...@gmail.com On 11 August 2011 11:43, Ishan ishanthapar...@gmail.com mailto:ishanthapar...@gmail.com wrote: Hello Friends, Can any one tell me how information is stored in android phone? robustly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Query...
But can you give me some example with code to unnderstand!!! On Thu, Aug 11, 2011 at 3:56 AM, Nico Balestra nicobales...@gmail.com wrote: Probably bits 2011/8/11 Daniel Drozdzewski daniel.drozdzew...@gmail.com On 11 August 2011 11:43, Ishan ishanthapar...@gmail.com wrote: Hello Friends, Can any one tell me how information is stored in android phone? robustly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Query...
On 11 August 2011 12:01, ISHAN THAPAR ishanthapar...@gmail.com wrote: But can you give me some example with code to unnderstand!!! The question is too vague and we couldn't resist temptation to give equally vague answers. You need to ask something more specific. Try here looking here, it might help: http://www.helloandroid.com/tutorials/data-storage-tutorial-basic-samples-are-included Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I publish an app without going to the android market
Write a script to do it. On Thu, Aug 11, 2011 at 12:14 PM, Tiklu tiklugang...@gmail.com wrote: Hi All, Can you please let me is there a way to automate the deployment of an app to android market. Regards Tiklu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] JNI CallBack to display dialogBox
Hi, I have implemented a call back Java -- JNI -- C -- JNI -- Java The call comes back to Java, Now i want to display a alert Box , but it says that activity can't be started from services, Am new to this Can anyone point me to the right direction? if its discussed on other thread let me know. Even if the kill the activiyt from the callback function the activity is not getting closed. -- Regards Vikas KM -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Insertion,deletion updation on SQL database in android
http://developer.android.com/guide/topics/data/data-storage.html#db This will help as a start. Then the following sample will demonstrate the basics for you: http://developer.android.com/resources/samples/NotePad/index.html But there are plenty of good books available that go into more detail too and you can't go wrong starting with Mark Murphy's series at: http://commonsware.com/ On Aug 10, 4:31 pm, Jitendra Nandiya jitendra.nand...@gmail.com wrote: Plz help me for my problem. How Insertion,deletion updation on SQL database in android is solved? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Need soft button to output to serial commands via Wi-Fi
If it helps any here is a picture of my interface so far... http://inlinethumb42.webshots.com/49385/2152972560101782845S600x600Q85.jpg I want each button to be able to control to send a serial command to play music to a special MP3 board that accepts serial commands, at the same time I'd love to be able to send serial commands to an Arduino UNO to be able to control a servo, and or a my light displays. If anyone can help with an example of what I need to do to achieve this I'll buy ya a case of soda or beer. My old days of coding are long behind me, but would love to start back up here with this project. Again I highly doubt that I can do some thing such as the following: 10 IF button (THX) then PRINT CHR$ (serial-command-play-thx.mp3) AND (serial-command-lighting-display-thx) 20 IF button (ARM) then PRINT CHR$ (serial-command-servo-action- control-arm1) Thanks again in advance for any help with this, Tom On Aug 5, 11:23 am, TeamTEOR manowa...@cox.net wrote: Hello, I am looking to make to take soft buttons and have them output serial commands when they are pressed (in hopes that it will transmit via a Wi-Fi connection). Is there anyone that can supply me an example to work from so that I may learn more on my own? Once I have an example I should be good to go. The plan is to use a XBee Wi-Fi shield connected to an Arduino board to control lights and a sound board (all of which accepts serial connections already). Thank you in advance, Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Known reasons for rebooting?
Oh dear. Though I'm sort of happy that I'm not to blame this time, this is horrible. I tried a few experiments not involving my app, and sure enough, loading the poor device a bit (music, youtube, navigation at the same time) works fine off the charger, but inserting the charger invariably reboots the thing within minutes. Sometimes it even reboots while recovering... Turning off WiFi/Data has no effect. Flight mode seems to help, but that's not really a good option :) I'll try cooling the device by a fan or something, just to confirm that temperature really is the cause. The thread you pointed to also discussed Froyo as a possible (partial) cause. I tend to suspect the 2.1-2.2 update to worsen the problem, I don't remember seeing this a year ago (when I was making a similar app). thanks, Per On Aug 11, 10:54 am, Nico Balestra nicobales...@gmail.com wrote: I think this is related to a known problem affecting the HTC Desire. Apparently it happens when the CPU gets hot, which is very likely for intensive operations. See this:http://androidforums.com/desire-support-troubleshooting/78992-htc-des... I had an HTC Desire and it was rebooting all the time as soon as I attached the phone to my USB cable and starting an application via Eclipse. The same was happening when I was browsing the web or playing Angry Birds :) Eventually.. I've got a Samsung Galaxy S2!! Hope this help, Nico 2011/8/11 Per p...@care2wear.com Does anyone know of (reproducible) reasons for device reboot? My app-under-development will run for hours if the device is not charging, but with USB connected it will reboot, usually within minutes. No exceptions shown, just a reboot. The app has one activity, which (via a WakefulIntentService [from CommonsWare]) sets up alarms that will trigger at different intervals (4mins to half a day). The alarms are cancelled when the activity is destroyed. When an alarm goes off, a BroadcastReceiver starts a WakefulIntentService, which pulls some data from a server and saves it in a file. That service starts another service, which provides a cache of the data in the file to the activity. The start of the cache service is afaik the simplest way of providing a simple notification. It is most likely already running, as it is bound by the activity. This could most likely be done smarter, but it seemed like a fair compromise when I want the app to work offline, too. Does anyone know of an interaction between USB/charging and wakelocks / alarms / services ? Logcat does not provide much help. Seems that the log is cleared at reboot. Any hints for debugging this apart from logcat (will adb bugreport provide more history than logcat?) Just for the record, I have seen the device (HTC Desire running 2.2) reboot when it gets hot (hot environment, lots of voice/data traffic while or just after charging), but it's running pretty cool in this scenario. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Applying different commands at different location
Hi guys, By little searching found out the following. The script for the problem statement can be written as follows. === import os path='/local/mnt/myspace/sample1' os.chdir(path) os.system('cmd1') path='/local/mnt/myspace/sample2' os.chdir(path) os.system('cmd2') path='/local/mnt/myspace' os.chdir(path) os.system('cmd3') and so on... === if anyone have the better way to do it. Kindly post. thanks in advance. On Aug 11, 11:54 am, Ablaze androida...@gmail.com wrote: Hi... Its more related to python but the commands which i will be applying is on android source code. I am working in Ubuntu. I have a bunch of commands (say 10 commands like cmd1, cmd2, cmd3..cmd10) I want to write a python script, which can achieve the following: It should traverse through the directory structure and apply a command at particular directory path. The location and the commands are already known to me. Here is how, I want the script to operate. /local/mnt/myspace/sample1$ cmd1 /local/mnt/myspace/sample2$ cmd2 /local/mnt/myspace$ cmd3 /local/mnt$cmd4 /local/mnt/myspace/sample9$ cmd 8 /local/mnt/myspace/sample3$ dmd10 can someone please help on this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cheap Bluetooth devices sought
thank you all very very much! http://goo.gl/iIKqD -cellurl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] The CTS's Questions
Step #1: Visit http://source.android.com Step #2: Click on the Community tab Step #3: Find a relevant Google Group Step #4: Ask your question there On Wed, Aug 10, 2011 at 1:05 AM, xinpeng lau sinpo2...@gmail.com wrote: Hi, friends My CTS is used android-cts-2.3_r4-x86 of the version. The result was failed when my device run the test of testFocusDistances. The point is my device doesn't supprot the autofocus functions and I also remove the functions from my system.img(/system/etc/ permissions/). The result of the CTS shows the features of android.hardware.camera.autofocus and android.hardware.camera.flash that does not click. So, why the CTS still run the item related the focus mode? Waiting your answer! thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android App Crash
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your force close. On Wed, Aug 10, 2011 at 4:43 PM, Spica spicaneb...@gmail.com wrote: Hi, I have developed very basic android app which gets location using phone's GPS. It works fine if device is not moving. When i carry my phone in car and increase speed, app either freezes or crashes with only once option as Forece close. This app also calls a web service to send Longi/Lati. Please share your thoughts about this issue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Object Serialization
On Wed, Aug 10, 2011 at 9:19 AM, ilikhan ozcanilik...@gmail.com wrote: I need to serialize an object in android and send it to java application on a remote server. Since Android does not support XML serialization the only solution I know is JSON. You can generate XML on Android. There's a helper class for it, though I forget where it is off the top of my head. However, JSON is good when we want to use a web-page on server side but I want to use java application on the server side rather than a web page. Do you have any suggestions? Use JSON. There are lots of JSON parsers for Java. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is it possible to run sendevent shell command through the code ?
On Thu, Aug 11, 2011 at 3:44 AM, pinkesh pin...@gmail.com wrote: I just want to run the send event command through the code to click on certain coordinates automatically. Is it possible or not through the android code. I hope it is not possible, at least for normal apps. Apps running as root might be able to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fwd: imageview displaying
You are wrong. The image will always be shown at 10 'dip'. You set the margin yourself. If you want to display it elsewhere set the margin to something else. Thanks On Thu, Aug 11, 2011 at 4:08 PM, arun kumar arun.kata...@gmail.com wrote: -- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Thu, Aug 11, 2011 at 12:36 PM Subject: imageview displaying To: android-developers@googlegroups.com Hi i placed a imageview (10dip) from the margin left(assume 100*200 size emulator )the same code if i run on the another emulator(assume 200*200)the image view should appear at 20dip but it is displaying at 10dip only ...so how can i solve this ImageView android:layout_height=wrap_content android:layout_marginLeft=10dip android:id=@+id/iv4 android:layout_width=wrap_content android:src=@drawable/image/ImageView Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Honeycomb tablet SIP (Session Initiation Protocol) API not SUPPORTED?
From that link you provided... *Note:* Not all Android-powered devices support VOIP calls using SIP. You should always call isVoipSupported()http://developer.android.com/reference/android/net/sip/SipManager.html#isVoipSupported(android.content.Context) to verify that the device supports VOIP calling and isApiSupported()http://developer.android.com/reference/android/net/sip/SipManager.html#isApiSupported(android.content.Context) to verify that the device supports the SIP APIs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application Device Orientation Change 2.1, 2.2 versus 2.3 and up
On Wed, Aug 10, 2011 at 5:49 PM, Wolf rjgoeh...@sbcglobal.net wrote: My application works fine using API 7 and API 8 for changing device orientation and reverting back with the screen and all state variables. However,starting with API 9 and moving forward the screen switches from portrait/vertical to landscape/horizontal fine with all variables intact but on reverting back into the vertical/portrait mode the screen does not readjust its orientation. It has all components running vertically instead of horizontally in the portrait screen (literally top to bottom rather than left to right). The application has android:orientation =vertical, android:screenOrientation =portrait specified in the XML layout file. Any help or hints would be appreciated... There is a bug in the API Level 9 and 10 emulators. You should not experience this problem on other emulators or on API Level 9/10 hardware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Run Flash on Android Emulator?
On Tue, Aug 9, 2011 at 4:32 PM, kch...@arccorp.com kch...@arccorp.com wrote: My boss wants me to view an internal company website on Android Emulator. However, the website was built in Flash. So far, I cannot find any way to run Flash website on Emulator. Is Flash runnable on Android Emulator? Not really. First, it is only distributed through the Android Market, which means to get it on an emulator, you would have to pirate something. Second, AFAIK, it relies heavily on hardware graphics acceleration, and therefore would perform poorly on an emulator anyway. btw, I'm using Galaxy Tablet to view it and it is super SLOW... It will be ~10x slower on an equivalent emulator. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] DalvikVM Crashes while accessing env-GetObjectMethod
You may have better luck with the [android-ndk] Google Group. On Wed, Aug 10, 2011 at 4:03 PM, halli manjunatha hallima...@gmail.com wrote: HI All, I am trying to call the JAVA methods from C++ layer and following is my problem, Crash message: E/dalvikvm( 2687): JNI ERROR (app bug): accessed stale local reference 0x3825 (index 9 in a table of size 0) E/dalvikvm( 2687): VM aborting Observation: Actually JNI layer is trying to report the status of power ON sequence to service layer, so it gets the java callback function using JNIEnv and reports the status. Below figure depicts what I am doing in JNI Main Thread -- - vm-GetEnv() --- env-GetObjectClass() --- env-GetMethodID() --- Start Sub-Thread Sub Thread --- vm-AttchCurrentThread() --- env-GetObjectClass() {Dalvik Crashes here} Call to env-GetObjectClass() succeeds without any problem for the first time (when it is called from main thread, this time I gets the JNIenv by calling vm-GetEnv()) but the subsequent call(from a sub thread which is invoked from main thread, this time I get the JNIenv by calling vm-AttachCurrentThread()) fails with the above crash message. When GetObjectClass() called second time, DalvicVM is crashing in function dvmDecodeIndirectRef() in file dalvic/vm/Jni.c Questions: 1) since it is passing for the first time i doubt its some thing related to memory accessing issue, please point me out where i am doing wrong -- Regards Halli -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: INSTALL_REFERRER honeycomb
Yeah, I really need to know the answer to this question as well. Is there some method to introspect on the intents being sent? On Aug 10, 1:39 pm, Some Coder somecoder...@gmail.com wrote: It looks like this might be related to the Market app version, not the Android version. I just saw similar behavior (no BroadcastReceiver called during install, or on first launch) on an Android 2.2. handset running the updated Android market app (version 3.0.27) which came out a couple weeks ago. Can anyone else confirm this problem? Are third party BroadcastReceivers for the com.android.vending.INSTALL_REFERRER Intent still supported by the new Market app? On Wed, Aug 3, 2011 at 3:13 PM, Some Coder somecoder...@gmail.com wrote: I'm also seeing this problem. I tested on an acer 500 tablet running android 3.1. The code in the BroadcastReceiver doesn't appear to run when the app starts for the first time. I had installed and uninstalled the app before the test. In pre 3.x Android versions I would always see the INSTALL_REFERRER code get executed regardless of whether the app had previously been installed and uninstalled. Does 3.x cache state somewhere so that the INSTALL_REFERRER is only processed once ever (per app version?)? On Tue, Aug 2, 2011 at 3:09 PM, Dianne Hackborn hack...@android.comwrote: In 3.1 this shouldn't be sent until the user actually launches the app for the first time. On Tue, Aug 2, 2011 at 12:00 PM, Mark mcor...@gmail.com wrote: Does anyone know if something changed with INSTALL_REFERRER on hoeycomb? Just trying to update some code to work properly on honeycomb and it doesn't look like we are receiving referrer information from the market app on hoeycomb. We might be missing something obvious, but just checking to see if this is some known change?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application Life Cycle
Write in or test in onResume() OnResume is called when the activity is first created and also when the activity restarts from a paused or stopped state. On Aug 11, 2:33 am, Aruna, SG abcprivate...@gmail.com wrote: Hi guys, I need to show an advertisement in my app when the application start and resume from background(user pressed home/back button). How can I detect the application did resume/will resume status? Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get mobile no from app without user permission...
No. The phone may not know its number, particularly on GSM. For example, you are probably thinking of getLine1Number(), but that may return null or an invalid phone number, based on what the SIM contains. You can peek at AccountManager and see if there is something in there that will give you this information. On Thu, Aug 11, 2011 at 4:48 AM, GopalaKrishnan D gopall...@gmail.comwrote: its possible through read_phone_state -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question about 2.1 source
Step #1: Visit http://source.android.com Step #2: Click on the Community tab Step #3: Find a relevant Google Group Step #4: Ask your question there On Thu, Aug 11, 2011 at 4:01 AM, MikeK michael.ko...@gmail.com wrote: I have been trying to download the Android 2.1 source, release 1. Please forgive me but I have used GIT to grab the latest code but am not sure how to go about GITing the 2.1 r1 branch. Could someone please give me a clue ot two? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] NFC: Multi API-level Development
On Thu, Aug 11, 2011 at 4:08 AM, Dominik dominik.gru...@fhnw.ch wrote: I would like to use NFC if this feature is available on my device, and if not, I will use some other technology. The API level we are working on is API level 7, and the question is, how the NFC functionality is accessed if it is available? With method getPackageManager().hasSystemFeature(android.hardware.nfc) I can check whether NFC is supported, but what is the pattern to access this functionality then? Use conditional class loading. Put all your NFC-specific code in a class that you refer to *if and only if* you are on a suitable device. Having the code referring to a newer API Level is fine, so long as you never try running it on an older device. For example, in this sample project, I use a HoneycombHelper class to isolate getActionView(), to allow me to add custom widgets to the action bar on Honeycomb but still work on older devices: https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en