Re: [android-developers] Re: UI like Youtube
BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 Encryption api
Hi all, I want to know about Encryption features of android like ENCRYPT PHONE Feature so i want to know about what encryption algorithm and bit support android has? and what are the capabilities it can do like how we can encrypt 1- Phonebook entries 2- Files stored on the sd card I need complete details so that i can go further in this direction if anyone has some links related to information or any help is appreciated. Thanks all in advance. Thanks Chandra Mohan -- 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 at Digital Protocol Layer
Hello, I'm looking for information about it's possible stablish a P2P connection between Android phone and NFC card at NFC-DEP level (digital protocol layer) without the higher layers. I know that Android 4.0 it's possible to stablish a P2P connection using SNEP or NPP protocols but if i can I'll do it at digital protocol layer. is it possible? Thanks for your replay. -- 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] AppWidgets Disappearing from list in ICS
Yep, the user has just replied that he has a Galaxy Nexus and it doesn't have an SD card of course :( Can anyone think of another reason why the Widgets are being removed from the list when deleted from the homescreen? He says that the application still appears in the list of apps, so he isn't accidentally uninstalling. I'm a bit stuck on this one. Thanks! Ash -- 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 Encryption api
On Thu, Dec 15, 2011 at 5:01 PM, chander mohan.c...@gmail.com wrote: Hi all, I want to know about Encryption features of android like ENCRYPT PHONE Feature so i want to know about what encryption algorithm and bit support android has? and what are the capabilities it can do like how we can encrypt See below. 1- Phonebook entries 2- Files stored on the sd card It encrypts the whole filesystem, so everything is encrypted. If the SD card is a separate physical device, it won't be encrypted, but check the docs for details. I need complete details so that i can go further in this direction if anyone has some links related to information or any help is appreciated. Complete details, as found by your friendly search engine: http://source.android.com/tech/encryption/android_crypto_implementation.html -- 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: import error com.google cannot be resolved
You have to add the guava-r07.jar library, then it works. You find this jar on the web or in the android sdk at android-sdk-path/tools/lib/guavalib.jar 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] Re: OT How to Automate Build Tasks in Eclipse?
On Dec 14, 9:03 am, Mark Murphy mmur...@commonsware.com wrote: I have not tried building a host project that depended upon a library project that itself depended upon another library project -- I have no intention of even trying until r17 (or whenever Android library projects publishing JARs for third-party reuse is formally supported). It works with the latest SDK. I do it for lots of apps that have crazy dependencies. Doug -- 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: How to compile C / C++
is it possible to make IDE of c and c++ ~~RAJU~~ ~~www.itdoall.co.cc~~ On Thu, Dec 15, 2011 at 12:15 PM, Anil Jagtap anil.so...@gmail.com wrote: Hi, This may help you http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html Cheers On Dec 15, 1:17 am, RAJU V kathiriraj...@gmail.com wrote: Hi this is Raju... How to compile C / C++ by Android terminal.. Please help me. ~~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 -- 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] AppWidgets Disappearing from list in ICS
Have you already asked him to reboot the device, just in case? I've had similar reports (not on ICS) where rebooting helped. As for the memory card and ICS - the original message didn't say it was a Galaxy Nexus, and there are already ICS - based ports of Cyanogen for a variety of devices where the user can move any app to external storage, even those explicitly having internal only in the manifest. -- Kostya 15.12.2011 12:15, Ash McConnell пишет: Yep, the user has just replied that he has a Galaxy Nexus and it doesn't have an SD card of course :( Can anyone think of another reason why the Widgets are being removed from the list when deleted from the homescreen? He says that the application still appears in the list of apps, so he isn't accidentally uninstalling. I'm a bit stuck on this one. Thanks! Ash -- 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] Re: LVL on Live Wallpaper
I have already read the LVL documentation it only showing us how to implement into activity but nothing about doing it on live wallpaper. On Dec 14, 2:04 am, TreKing treking...@gmail.com wrote: On Mon, Dec 12, 2011 at 4:20 AM, Novice noviceplayer1...@gmail.com wrote: Can someone teach me how add LVL on a Live Wallpaper. Read the documentation on Live Wallpaper. Implement your live wallpaper. Read the documentation on the LVL. Implement your version of the LVL. If that doesn't work, and you have a more specific question that's not so vague no one is going to answer you, come back and try again. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] logcat tag
Dear all How could I know all tag of logcat? I know dalivkvm is one of frequently use tag. How about others? Is there any document to reference? I only found doc. to teach how to insert new tags. Thanks you Kloze -- 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: UI like Youtube
That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com mailto:ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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] Re: Display many images into the Imageview in 3-4 seconds
Because is giong to alloc the memory and then display the image, this process looks that the application is blocked. I tried to run the TimerTask into a new thread but anything is changed. On Dec 15, 1:23 am, Miguel Morales therevolti...@gmail.com wrote: Why is TimerTask too slow? Just set the time lower? This might help:http://developingthedream.blogspot.com/2011/01/android-canvas-frame-b... On Wed, Dec 14, 2011 at 5:13 PM, Christian Bianchini max...@gmail.comwrote: I have a problem with Android and the perfomance, I should display around 20-30 images, like a gif, in 3-4 seconds. I tried to make a TimerTask but it's too slowly and I can see only 3-5 images. There is a solution to play 20-30 images like a gif image? I read that I can do something with the spirte. -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- 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] Need Help - Options Menu
Hey All, Can anybody tell me how to change the text color for Options menu items. Thanks, KIRANKUMARKENDOLE -- 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] Need Help - Options Menu
Hi this is Raju... How to compile C / C++ by Android terminal.. Please help me. ~~RAJU~~ ~~www.itdoall.co.cc~~ On Thu, Dec 15, 2011 at 2:58 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey All, Can anybody tell me how to change the text color for Options menu items. Thanks, KIRANKUMARKENDOLE -- 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] How could I know a process belongs to which apk?
Dear All, From ps I could see many processes, such as follows: app_7 15000 78313496 33668 S com.android.mms app_4123986 7852 18488 S com.xiaomi.channel My question is, how could I get to know com.xiaomi.channel belongs to which apk file in /system/app or /data/app? Thanks, Enrico -- 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: undefined reference to `android::AudioTrack::set(...)
Hello all, I understood that why it is not allowed. So if one have achieve same, what is another method for implementation? Can we pass AudioTrack object created in JAVA to native and do audiotrack.write in C ? Thanks in advance, Jay On Oct 27, 4:59 am, HamdiHamZ hamdi.zr...@gmail.com wrote: Ok, I get your point Thanks for your help On Oct 26, 5:56 pm, David Turner di...@android.com wrote: On Wed, Oct 26, 2011 at 1:19 AM, HamdiHamZ hamdi.zr...@gmail.com wrote: Hi Dianne and thank you for your reply, Sorry, I can't get your point, do you mean that we can't use C++ at all with the NDK? So why we can see cpp classes in the android sources? is it only to build libs and after that libs should be used from Java? No, it simply means you can't write code that tries to access internal C++ classes from the platform because these are not exposed by the NDK. In other words, you're trying to access functions that are used by the system, but not available to applications because they can (and will be) be modified or removed at will between platform releases, or simply in custom ROMs. Regards, On Oct 25, 8:38 pm, Dianne Hackborn hack...@android.com wrote: This is not part of the NDK. *NO* C++ classes are part of the NDK. Even if you manage to get this to work, you are using private implementation details of the platform, and I can guarantee you that your app will break all over the place on different devices. On Tue, Oct 25, 2011 at 1:36 AM, HamdiHamZ hamdi.zr...@gmail.com wrote: Hi folks, I ma trying to write a media player for Android 2.2. I am using NDK_rb6 to build my JNI library written i C/C++ (under Ubuntu 11.04)... Actually, I faced a lot of problems of linking and dependencies, I resolved a lot of the and I am stuck with this one: ~/dev/workspace/MyApp/jni/android-out.cpp:95: undefined reference to `android::AudioTrack::set(int, unsigned int, int, int, int, unsigned int, void (*)(int, void*, void*), void*, int, android::spandroid::IMemory const, bool, int)' collect2: ld returned 1 exit status However, I found its definition in $(ANDROID_SRC)/frameworks/base/ media/libmedia/AudioTrack.cpp: status_tAudioTrack::set( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, const spIMemory sharedBuffer, bool threadCanCallJava, int sessionId) { ... } and in the header that I included (media/audioTrack.h): /* Initialize an uninitializedAudioTrack. * Returned status (from utils/Errors.h) can be: * - NO_ERROR: successful intialization * - INVALID_OPERATION:AudioTrackis already intitialized * - BAD_VALUE: invalid parameter (channels, format, sampleRate...) * - NO_INIT: audio server or audio hardware not initialized * */ status_t set(int streamType =-1, uint32_t sampleRate = 0, int format = 0, int channels = 0, int frameCount = 0, uint32_t flags = 0, callback_t cbf = 0, void* user = 0, int notificationFrames = 0, const spIMemory sharedBuffer = 0, bool threadCanCallJava = false, int sessionId = 0); and I am using it this way: status = track-set(AudioSystem::MUSIC, audec-samplerate, AudioSystem::PCM_16_BIT, (audec-channels == 1) ? AudioSystem::CHANNEL_OUT_MONO : AudioSystem::CHANNEL_OUT_STEREO, 0, // frameCount 0, // flags audioCallback, audec, // user when callback 0, // notificationFrames 0, // shared buffer 0); So I am not able to see where am I wrong? -- 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
[android-developers] Re: Memory
don't know whether its a problem with your pc(processor,ram) or eclipse. processor speed isn't that important. check your eclipse internal memory settings. eclipse.ini Hassy(SL) On Dec 15, 12:44 pm, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey All, Suddenly my eclipse is getting struck and not responding when the emulator is opened. And its showing too much system memory using for eclipse (202MB) and emulator (204MB) when I see it in task manager ,processes . Can anybody suggest me how to get rid of this. Thanks, KIRANKUMARKENDOLE -- 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: Memory
Hi this is Raju... How to compile C / C++ by Android terminal.. Please help me. ~~RAJU~~ ~~www.itdoall.co.cc~~ On Thu, Dec 15, 2011 at 3:37 PM, Hassy hasith@gmail.com wrote: don't know whether its a problem with your pc(processor,ram) or eclipse. processor speed isn't that important. check your eclipse internal memory settings. eclipse.ini Hassy(SL) On Dec 15, 12:44 pm, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey All, Suddenly my eclipse is getting struck and not responding when the emulator is opened. And its showing too much system memory using for eclipse (202MB) and emulator (204MB) when I see it in task manager ,processes . Can anybody suggest me how to get rid of this. Thanks, KIRANKUMARKENDOLE -- 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] Running Android in ubuntu with out netbean or eclipse
I asked this question in stackoverflow. http://stackoverflow.com/questions/8515528/running-android-in-ubuntu-with-out-netbean-or-eclipse But i am unable to make any reply there because I dont understand their forum system.. so i go again After i understood some process my latest update is this. Please read the above link and answer over here. == I have tried the following.. android create project \ --target 1 \ --name test_two \ --path /home/sathya/android_test/test_two \ --activity test_two \ --package com.example.test_two ant debug adb install test_two-debug.apk I made an update in the main.xml..Then android update project --path /home/sathya/android_test/test_two/ ant debug adb install -r ./bin/test_two-debug.apk When i try to see the change it still showing me the old msg in emulator.I have even closed the emulator and opened the same again. It still the same. Any helps? -- 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] Running Android in ubuntu with out netbean or eclipse
Hi this is Raju... How to compile C / C++ by Android terminal.. Please help me. ~~RAJU~~ ~~www.itdoall.co.cc~~ On Thu, Dec 15, 2011 at 3:41 PM, sathyashrayan sathyashra...@gmail.comwrote: I asked this question in stackoverflow. http://stackoverflow.com/questions/8515528/running-android-in-ubuntu-with-out-netbean-or-eclipse But i am unable to make any reply there because I dont understand their forum system.. so i go again After i understood some process my latest update is this. Please read the above link and answer over here. == I have tried the following.. android create project \ --target 1 \ --name test_two \ --path /home/sathya/android_test/test_two \ --activity test_two \ --package com.example.test_two ant debug adb install test_two-debug.apk I made an update in the main.xml..Then android update project --path /home/sathya/android_test/test_two/ ant debug adb install -r ./bin/test_two-debug.apk When i try to see the change it still showing me the old msg in emulator.I have even closed the emulator and opened the same again. It still the same. Any helps? -- 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] AppWidgets Disappearing from list in ICS
Hi Kostya, Yep, it was a good suggestion, I just had forgotten that he had a Nexus and it didn't have external storage. I've asked him to try a reboot, hopefully that will help. Thanks again! Ash -- 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] NullPointerException at MyService.onStartCommand ?
Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if this occurs only one some specific devices or os version. Has anyone got an idea as to what is happening? Thank you. Terry -- 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] Strange webview problem
I wish this was an april fool joke, but no. This is nuts. I have a certain piece of text which when I load it into a webview, it displays fine. If I pause and then resume the activity, the webview is blank. Usually it happens immediately on the first resume, sometimes it takes a few goes. Once it's happened, no webviews in my app will display anything at all. Completely unrelated activities have blank webviews. The offending text is this: webView.loadData(ulli3/liliOrange/liliT-Mobile/ liliVirgin/li/ul, mimeType, encoding); I've started with a very long page of HTML and whittled it down to that line. It breaks my webview. If I edit the line at all, it loads fine every time. I've played with all the webview settings too. Please put me out of my misery, what's happening here? -- 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] NullPointerException at MyService.onStartCommand ?
http://developer.android.com/reference/android/app/Service.html#onStartCommand(android.content.Intent, int, int) http://developer.android.com/reference/android/app/Service.html#onStartCommand%28android.content.Intent,%20int,%20int%29 intent The Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#startService%28android.content.Intent%29|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START_STICKY_COMPATIBILITY|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START_REDELIVER_INTENT You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if this occurs only one some specific devices or os version. Has anyone got an idea as to what is happening? Thank you. Terry -- 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] how to handle connection lost using Media player?
hello, to play the music stream I use Media player and prepareasync in backround service. Music is playing and then I lost connection. or maybe when I reconect from wifi to 3G. Is there any way how to handle somethink like this? thank you very much Richard Sámela -- 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 checkbox
I am new to android. I have this in my code CheckBox cb = new CheckBox(v.getContext()); Then a bit later on I have this String[] Tempstr = str.split(#); LinearLayout.removeAllViews(); for(int x = 0 ; x Tempstr.length; x++){ String[] TempTempstr = Tempstr[x].split(@); cb.setText(TempTempstr[0] + , + TempTempstr[1] + , + TempTempstr[2]); LinearLayout.addView(cb); } When I test it using ecliipse I get 12-15 11:21:45.399: W/KeyCharacterMap(1136): No keyboard for id 0 12-15 11:21:45.399: W/KeyCharacterMap(1136): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 12-15 11:21:58.408: D/dalvikvm(1136): GC_CONCURRENT freed 156K, 50% free 2854K/5639K, external 505K/517K, paused 7ms+6ms 12-15 11:21:58.510: D/AndroidRuntime(1136): Shutting down VM 12-15 11:21:58.510: W/dalvikvm(1136): threadid=1: thread exiting with uncaught exception (group=0x40015560) 12-15 11:21:58.510: E/AndroidRuntime(1136): FATAL EXCEPTION: main 12-15 11:21:58.510: E/AndroidRuntime(1136): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.view.ViewGroup.addViewInner(ViewGroup.java:1976) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.view.ViewGroup.addView(ViewGroup.java:1871) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.view.ViewGroup.addView(ViewGroup.java:1828) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.view.ViewGroup.addView(ViewGroup.java:1808) 12-15 11:21:58.510: E/AndroidRuntime(1136): at pub.vacancies.PubVacancies$1.onClick(PubVacancies.java:70) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.view.View.performClick(View.java:2485) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.view.View$PerformClick.run(View.java:9080) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.os.Handler.handleCallback(Handler.java:587) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.os.Handler.dispatchMessage(Handler.java:92) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.os.Looper.loop(Looper.java:123) 12-15 11:21:58.510: E/AndroidRuntime(1136): at android.app.ActivityThread.main(ActivityThread.java:3683) 12-15 11:21:58.510: E/AndroidRuntime(1136): at java.lang.reflect.Method.invokeNative(Native Method) 12-15 11:21:58.510: E/AndroidRuntime(1136): at java.lang.reflect.Method.invoke(Method.java:507) 12-15 11:21:58.510: E/AndroidRuntime(1136): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 12-15 11:21:58.510: E/AndroidRuntime(1136): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 12-15 11:21:58.510: E/AndroidRuntime(1136): at dalvik.system.NativeStart.main(Native Method) The problem is this line LinearLayout.addView(cb); Can someone tell me why please as I have removed all the views so I am stumped Thanks Pam -- 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: including/excluding conditional code in different builds
In java you don't have macros (#ifdef) = compiler instructions. In stead you have to make a plain java function, which will do the same - the only difference is, the macro will not generate a call instruction - so it's more efficient. Personally I use it a lot. It is nice, to be able to switch off technical or business features by just changing a flag from true to false. You can use it for having more versions for different environments, for searching for nasty bugs, or for handling different versions - alternative to branching. Hardy Henneberg http://www.maxikeys.com On Dec 15, 4:10 am, topazmax mgg7...@gmail.com wrote: is there a way to enclose conditional code for different builds - for example: in VISUAL C++ i use 'ifdef DEBUG' for code that is only included in the debug build and i can be sure that any testing code does not end up in the release build - inflating its size. i searched the java/android docs blogs without success so where do i find information on this sort of thing? and how do you pros do it? any help would be greatly appreciated... 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] WebView and ResponseCache
Hello, all! The ResponseCache class is a great tool for performance improvement and bandwidth consumption optimization. Anyway, I'm using it in a slightly different way -- to create something like Resource API (which will be most probably open-sourced soon) to serve app content when device is offline. I'm facing two showstoppers. First, is there a way to force the WebView to use the very same ResponseCache for its URLConnections. Sadly the WebView manages its own cache subsystem and its requests do not pass trough the ResponseCache. Second, is there a proper way to see the remaining free space on hdd/ sdcard? What I'm doing now is querying the df Unix utility and parsing the output, which is kinda hacky and surely not the best way. I'm using Android API level 7 (2.1). Thank you for your attention! Best! Y. -- 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] Need to add something not included in How to Ask Questions the Smart Way
It covers the idea of not cross posting in multiple discussion groups, but doesn't mention something I'm seeing on the increase in here: multiple postings of the same question by the same person (and I'm not just talking about the spam hijacking multiple threads). -- 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: Running Android in ubuntu with out netbean or eclipse
Thanks for the reply by Gowtham. He has messaged me in my mail. His solution is Check this way once: Setting - Applications - Manage Application - Uninstall test-two.apk then try it may work fine. I uninstalled the existing one. But i could not able to run it through command line. So i have downloaded the latest netbean. Now all working fine..;) -- 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] receive intent on clear data
Hi My application should receive an intent when the clear data of system settings is selected . There is some action that i should take when the application's clear data is clicked . How can i know when clear data is selected . Please let me know if there is any way to know . Regards. -- 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 write a regular expression for this in android?
Hi You're complicating. String stripped = ; for (int i = 0; i sss1.lenght(); i++) if (sss1.charAt(i) = '0' sss1.charAt(i) = '9') stripped += sss1.charAt(i); int start = sss1.indexOf(sss0); int stop = start + sss0.lenght(); Hope it helps. BTW, this group is for Android related questions, not Java questions. On Thu, Dec 15, 2011 at 11:32, Abhishek Kumar Gupta akgaec2...@gmail.comwrote: I am having a string(number) with special characters. I want to search for a sub-string(comprising of digits only) also I want to detect the starting index ending index of matching sub-string in the string. For example: main string: *(+91)-1-231-212 12-31* Sub-string to search: *1212* Currently I am using the following code to do this but in place of *1212*,it searched for *12312*. For other cases, it works fine. String sss0 = 1212; String sss1 = (+91)-1-231-212 12-31; sss0 = sss0.replaceAll([^\\d],); System.out.println(*+sss0); String ptn = + sss0.charAt(0); for(int jj=0; jjsss0.length()-1; jj++){ ptn += [^ + sss0.charAt(jj) + sss0.charAt(jj+1) + ]*? + sss0.charAt(jj+1); } System.out.println(ptn: + ptn); Pattern p300 = Pattern.compile(ptn); Matcher m300 = p300.matcher(sss1); if(m300.find()){ System.out.println(start, stop: + m300.start() + , + (m300.end()-1 )); System.out.println(substring: + sss1.substring(m300.start(), m300.end())); } *Actually I have to ignore special characters in the main string during searching for the sub-string*.Please help me. 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 -- 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] Adding checkbox
Did you read the log? On Thu, Dec 15, 2011 at 5:37 AM, Knutsford Software i...@knutsford-software.co.uk wrote: 12-15 11:21:58.510: E/AndroidRuntime(1136): java.lang.**IllegalStateException: *The specified child already has a parent. You must call removeView() on the child's parent first.* How many times have you created a new CheckBox? Now how many times are you adding a check box to the layout? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 can I write a regular expression for this in android?
For String sss1 = (+91)-1-231-212 12-31; Currently my code is searching for *1-231-2*, but it should search for * 1-212.* -- 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: NullPointerException at MyService.onStartCommand ?
Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... intent The Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if this occurs only one some specific devices or os version. Has anyone got an idea as to what is happening? Thank you. Terry -- 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] Adding a button to the titlebar from xml
I have a problem about the title bar. I want to do 2 buttons in the title bar, but it is seen really bad. First I was thinking I got the button height too big, but when I change the button height nothing is changed. I don't want a custom titlebar and I can't see the text in the button. Can anybody help me? This is my post:http://stackoverflow.com/questions/8517539/adding-a- button-to-the-titlebar-from-xml Duygu Kahraman -- 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] Having a free and paid app, or just use LVL to determine if current app should have reduced functionality
On Wed, Dec 14, 2011 at 6:22 PM, James Black planiturth...@gmail.comwrote: It would seem this would be a better route as then the user doesn't have to download anything, and they can see what is available in the paid app when there are new updates, and, most importantly, I would only need to maintain one codebase. I have two separate apps (released long before in-app billing) and they are always updated together, at the same time with the same release notes, so users know what new features have gone into the full version. Most importantly, using an Android Library Project, I only need to maintain one codebase. Perfectly valid option and it's a standard model most users understand. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Adding checkbox
I have literally just found the problem. I wasn't creating a new check box inside the loop. I had just created it once before entering the loop instead- oops. Thanks for answering Pam - Original Message - From: TreKing To: android-developers@googlegroups.com Sent: Thursday, December 15, 2011 12:53 PM Subject: Re: [android-developers] Adding checkbox Did you read the log? On Thu, Dec 15, 2011 at 5:37 AM, Knutsford Software i...@knutsford-software.co.uk wrote: 12-15 11:21:58.510: E/AndroidRuntime(1136): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. How many times have you created a new CheckBox? Now how many times are you adding a check box to the layout? - TreKing - Chicago transit tracking app for Android-powered devices -- 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: How can I write a regular expression for this in android?
Hi Carlos Silva, Thanks for reply. For String sss1 = (+91)-1-231-212 12-31; Currently my code is searching for *1-231-2*, but it should search for * 1-212.* -- 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: including/excluding conditional code in different builds
On Thu, Dec 15, 2011 at 6:39 AM, hhenne hhe...@gmail.com wrote: In java you don't have macros (#ifdef) = compiler instructions. In stead you have to make a plain java function, which will do the same - the only difference is, the macro will not generate a call instruction - so it's more efficient. Personally I use it a lot. It is nice, to be able to switch off technical or business features by just changing a flag from true to false. You can use it for having more versions for different environments, for searching for nasty bugs, or for handling different versions - alternative to branching. Hardy Henneberg http://www.maxikeys.com Though there was a thread on this list a few months back that was a fairly passionate argument as to whether or not Android should include precompiler setups by default (the response was an overwhelming no, with the implication that if you need it you could go find it yourself and add it without too much trouble). Kris -- 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] Showing DialogFragments crashes ICS
After the Fragments API being released, I started porting all my deprecated dialogs into DialogFraments using the compatibility package. Everything was working well, until I notice that my dialogs are causing crashes to ICS only: E/AndroidRuntime( 883): java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState My dialogs are shown on AsyncTask.onPostExecute() in order to show an http response to the user. After diving into the problem, I got the conclusion that this exception only happens when the Activity is paused or stopped, and it does not happen on other versions of Android. I've tried using commitAllowingStateLoss(), but it doesn't help, since the exception is thrown on DialogFragment.show(). Here's my code for the DialogFragment: http://pastebin.com/hPhPQ8Aq Is it wrong to create dialogs on paused or stopped activities? How can I assert that my activity is resumed before showing a dialog on this case? -- 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] Need to add something not included in How to Ask Questions the Smart Way
On Thu, Dec 15, 2011 at 7:31 AM, Oli Wright oli.wri...@gmail.com wrote: It covers the idea of not cross posting in multiple discussion groups, but doesn't mention something I'm seeing on the increase in here: multiple postings of the same question by the same person (and I'm not just talking about the spam hijacking multiple threads). I honestly believe that people think they're going to post the same question multiple times when they got an answer they didn't want hoping that a fresh set of people will see it and respond that aren't predisposed to ignore them, not realizing that people see their previous questions... Kris -- 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] Slow scrolling in Date/TimePicker using Holo theme
I'm trying to build an activity on which the user can change a certain date and time. So I created an activity and a layout file, in the layout file (containing more than just the date and time picker, you can see it beneath) i define the date and time picker. The application android 2.1 compatible, but I compile it under 3.2 so that I can use the Holo theme in the entire application. Running the application on 2.1 till 3.1 gives me the old-style date and time picker, where you can type the value or press plus/minus. Running on 3.2 or 4.0 gives me the new Holo styles date and time picker, where you can also type or press plus and minus. So far so good. But with the new style you can also scroll on the day, month, year, hour and minute, but for some reason that doesn't quite work in my application! What it does: I try to scroll down (let's say minute is on 49, I want to change it to 30). It starts scrolling, and the first pixels are just fine and smooth. But then it blocks and everytime i initiate a scroll-swipe again it scrolls only a few pixels. To scroll from 49 to 48 I have to scroll 5 or 6 times... Not really normal I guess. I also use the DatePickerDialog in some cases, there scrolling goes smooth as supposed to be. So is there anything I forget to do when using a date and/or time picker in an activity? Attachments: Here is my layout file: ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical !-- Content... -- DatePicker android:layout_width=fill_parent android:layout_height=wrap_content/ TimePicker android:layout_width=fill_parent android:layout_height=wrap_content/ !-- Content... -- /LinearLayout /ScrollView And here is the part of my activity where I set the values on the date and time picker: datePicker = (DatePicker) findViewById(datePickerId); timePicker = (TimePicker) findViewById(timePickerId); datePicker.init(part.get(Calendar.YEAR), part.get(Calendar.MONTH), part.get(Calendar.DAY_OF_MONTH), null); if (getAndroidApiVersion() = 13) { datePicker.setCalendarViewShown(false); datePicker.setSpinnersShown(true); } timePicker.setIs24HourView(true); timePicker.setCurrentHour(part.get(Calendar.HOUR_OF_DAY)); timePicker.setCurrentMinute(part.get(Calendar.MINUTE)); -- 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] AppWidgets Disappearing from list in ICS
Ok, the user has responded to me with: - Ok I got the update then I did this added a clock removed that clock went back to widgets, icon for clock still there got as far as tapping add widget got Unfortunately, Launcher has stopped. clock widget now missing from widget list So then i tried rebooting the phone, clock widget still missing So I went through the same process with the bar widget but at the point where it stops I remembered to click Report So for some reason my widgets are causing the Launcher to crash (or the launcher is bugged), has anyone ever caused the launcher to crash when adding widgets? I've asked him which launcher he is using, but I suspect its the default Nexus launcher. I'll do some more googling armed with this extra info, but if it rings any bells with anyone please let me know :) All the best, Ash -- 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: NullPointerException at MyService.onStartCommand ?
And what is the DDMS tab in Eclipse? Terry On Dec 15, 2:00 pm, Terry terb...@gmail.com wrote: Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... intent The Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if this occurs only one some specific devices or os version. Has anyone got an idea as to what is happening? Thank you. Terry -- 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] Need Help -Custom Image
hey All , I have a form .. in that.. I used the submit button as a IMAGE ( SAVE DATA) . I have two different colored images for this. My intention is to change the Image after the user click/touch the button. appreciate any suggestions. thanks, KIRANKUMARKENDOLE -- 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] openOptionsMenu not working on Honeycomb device
I have an app in which I select a theme of android:Theme.Holo.NoActionBar.Fullscreen. the app has a minim SDK of 11 and a target of 13. I am avoiding the use of the ActionBar due to issues in the way this works on different sized devices. I am attempting to provide a menu button which simply does a call to openOptionsMenu. On certain device emulations this works as expected e.g. an ICS Large screen sized emulator. However, on other devices the menu button does nothing, the click is registered but no menu appears and no call is made to onCreateOptionsMenu or onPrepareOptionsMenu. There is no application crash, simply no menu. I see some discussion that on Honeycomb there are issues with this and with the presence/absence of a title bar. Is there any known solution to this issue. I would add that there is no soft menu button displayed by the device so in these circumstances the users would be locked out of options. -- 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: Adding a button to the titlebar from xml
Duygu Kahraman wrote: I have a problem about the title bar. I want to do 2 buttons in the title bar, but it is seen really bad. First I was thinking I got the button height too big, but when I change the button height nothing is changed. I don't want a custom titlebar and I can't see the text in the button. Can anybody help me? This is my post:http://stackoverflow.com/questions/8517539/adding-a- button-to-the-titlebar-from-xml Duygu Kahraman see rhis thread: http://anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html pskink -- 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: NullPointerException at MyService.onStartCommand ?
Well, maybe you should return START_NOT_STICKY, or START_REDELIVER_INTENT, or add an if statement checking for null - it just depends on the service. Read the docs, run your own experiments with DDMS, then decide what is the right thing to do for your code. The DDMS Perspective in Eclipse is under Window / Open Perspective / Other... / DDMS. The Devices tab lets you terminate your own apps's processes. -- Kostya 15 декабря 2011 г. 17:28 пользователь Terry terb...@gmail.com написал: And what is the DDMS tab in Eclipse? Terry On Dec 15, 2:00 pm, Terry terb...@gmail.com wrote: Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... intent The Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if this occurs only one some specific devices or os version. Has anyone got an idea as to what is happening? Thank you. Terry -- 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 -- 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] Need Help -Custom Image
On Thu, Dec 15, 2011 at 7:32 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: appreciate any suggestions. For what? You didn't exactly state what your issue is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Need Help -Custom Image
Hey TreKing , I just want to change the image when the user click/touch on it .So that user feel like the button was clicked really. I want to show variation in the image before click/touching and after. Thanks, KIRANKUMARKENDOLE On Thu, Dec 15, 2011 at 8:49 AM, TreKing treking...@gmail.com wrote: On Thu, Dec 15, 2011 at 7:32 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: appreciate any suggestions. For what? You didn't exactly state what your issue is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] AppWidgets Disappearing from list in ICS
He is using the default ICS (Galaxy Nexus) Launcher. -Ash -- 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: conditional compilation
On Mar 31 2010, 3:16 am, Bob Kerns r...@acm.org wrote: There is a much better way to do this. I have outlined it in a prior post, but I don't have time to dig it out or recreate it tonight. I'm planning to turn it into a blog post at some point. Basically, you do not needconditional compilation. The *only* Java code which needs to change is the generated R.java file -- and even that you should be able to generate correctly, though I wasn't able to get it to work. It can all be done with an ant script. The manifest needs to be processed. It's helpful to process some resource files -- for example, to embed the version number, etc. XSLT is your friend here, it's much easier to manipulate XML than to deal with all the issues with preprocessing -- including completely screwing up line numbers, in most cases, but commenting out rather than omitting lines should avoid that! To avoid screwing up the debug cycle, I produce by default a dev version, which gives access to both free and pro functionality for test and debug. Can you show us how you management these version? Some piece of code... or a link to a full code will be wonderful. -- Adorilson -- 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: including/excluding conditional code in different builds
On Thu, Dec 15, 2011 at 8:39 AM, hhenne hhe...@gmail.com wrote: In java you don't have macros (#ifdef) = compiler instructions. In stead you have to make a plain java function, which will do the same - the only difference is, the macro will not generate a call instruction - so it's more efficient. Personally I use it a lot. It is nice, to be able to switch off technical or business features by just changing a flag from true to false. You can use it for having more versions for different environments, for searching for nasty bugs, or for handling different versions - alternative to branching. Do you means something like this: http://groups.google.com/group/android-developers/msg/08d80619492a2edf?hl=en ? If not, can you show us a piece of code? or a link to a full code will be wonderful. Hardy Henneberg http://www.maxikeys.com On Dec 15, 4:10 am, topazmax mgg7...@gmail.com wrote: is there a way to enclose conditional code for different builds - for example: in VISUAL C++ i use 'ifdef DEBUG' for code that is only included in the debug build and i can be sure that any testing code does not end up in the release build - inflating its size. i searched the java/android docs blogs without success so where do i find information on this sort of thing? and how do you pros do it? any help would be greatly appreciated... 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 -- Adorilson Bezerra http://twitter.com/ensl_oficial Atenção: Este e-mail pode conter anexos no formato ODF (Open Document Format)/ABNT (extensões odt, ods, odp, odb, odg). Antes de pedir os anexos em outro formato, você pode instalar gratuita e livremente o BrOffice ( http://www.broffice.org) ou o seguinte Plugin para Microsoft Office ( http://www.sun.com/software/star/odf_plugin/get.jsp). -- 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] requestLocationUpdates Question
Hello! The method requestLocationUpdates public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener) has minTime and a minDistance. So if I would say requestLocationUpdates (gps, 1000l * 60l * 5l, 0, new LocationListener); I will receiver every 5 Minutes a location or? I know that it can be longer... But could it be shorter? Currently I do it every 5 Minutes with 0 Meters and I receive sometimes 50 Locations in a minute.. it wait's and I get 10-20 Seconds later the next, then 40 Seconds... But it is definitely NOT every 5 Minutes or longer... Thanks for help! Regards, Markus -- 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] AppWidgets Disappearing from list in ICS
Have you tried your widgets on the ICS emulator? Does repeating the sequence reported by the user on a pre-ICS device result in any warnings or errors in the logcat? 15 декабря 2011 г. 18:10 пользователь Ash McConnell ash.mcconn...@gmail.com написал: He is using the default ICS (Galaxy Nexus) Launcher. -Ash -- 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] Re: including/excluding conditional code in different builds
On Thu, Dec 15, 2011 at 9:31 AM, Adorilson Bezerra de Araujo adoril...@gmail.com wrote: On Thu, Dec 15, 2011 at 8:39 AM, hhenne hhe...@gmail.com wrote: In java you don't have macros (#ifdef) = compiler instructions. In stead you have to make a plain java function, which will do the same - the only difference is, the macro will not generate a call instruction - so it's more efficient. Personally I use it a lot. It is nice, to be able to switch off technical or business features by just changing a flag from true to false. You can use it for having more versions for different environments, for searching for nasty bugs, or for handling different versions - alternative to branching. Do you means something like this: http://groups.google.com/group/android-developers/msg/08d80619492a2edf?hl=en ? If not, can you show us a piece of code? or a link to a full code will be wonderful. That and clever uses of interfaces, / overloading, etc... http://stackoverflow.com/questions/6525059/can-i-have-macros-in-java-source-files In general I agree that using a preprocessor in Java is a bad idea, but I'm also flexible because of the weird changes that exist across the many possible android builds running amok.. (i.e., in theory you shouldn't have a hacky solution like this, and your design should be neat and include interfaces which do things like check if certain system features are available, but sometimes you just can't beat it..) Kris -- 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] Lazy Loading
Quality Image Lazy Loading Strategy - http://www.ryangmattison.com/post/2011/12/15/AsynchronousImageProvider.aspx -- 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] requestLocationUpdates Question
On Thu, Dec 15, 2011 at 9:32 AM, Markus Unger markus.unger1...@googlemail.com wrote: Hello! The method requestLocationUpdates public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener) has minTime and a minDistance. So if I would say requestLocationUpdates (gps, 1000l * 60l * 5l, 0, new LocationListener); I will receiver every 5 Minutes a location or? I know that it can be longer... But could it be shorter? Currently I do it every 5 Minutes with 0 Meters and I receive sometimes 50 Locations in a minute.. it wait's and I get 10-20 Seconds later the next, then 40 Seconds... But it is definitely NOT every 5 Minutes or longer... Thanks for help! Regards, Markus The docs say: minTime the minimum time interval for notifications, in milliseconds. This field is only used as a hint to conserve power, and actual time between location updates may be greater or lesser than this value. In practice this is just that, a hint, you can look through the LocationManager implementation if you'd like to find out exactly why this happening, but I wouldn't worry about it too much, what are you worried about? If you only need the location at very coarse intervals, have you thought of using requestSingleUpdate, then waiting some long amount of time? Here you have much better control over the temporal distribution of your updates. (I'm assuming you're concerned about power usage..) Kris -- 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] requestLocationUpdates Question
P.s., do *not* hard code that gps string! Use LocationManager.GPS_PROVIDER instead... kris On Thu, Dec 15, 2011 at 9:49 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Dec 15, 2011 at 9:32 AM, Markus Unger markus.unger1...@googlemail.com wrote: Hello! The method requestLocationUpdates public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener) has minTime and a minDistance. So if I would say requestLocationUpdates (gps, 1000l * 60l * 5l, 0, new LocationListener); I will receiver every 5 Minutes a location or? I know that it can be longer... But could it be shorter? Currently I do it every 5 Minutes with 0 Meters and I receive sometimes 50 Locations in a minute.. it wait's and I get 10-20 Seconds later the next, then 40 Seconds... But it is definitely NOT every 5 Minutes or longer... Thanks for help! Regards, Markus The docs say: minTime the minimum time interval for notifications, in milliseconds. This field is only used as a hint to conserve power, and actual time between location updates may be greater or lesser than this value. In practice this is just that, a hint, you can look through the LocationManager implementation if you'd like to find out exactly why this happening, but I wouldn't worry about it too much, what are you worried about? If you only need the location at very coarse intervals, have you thought of using requestSingleUpdate, then waiting some long amount of time? Here you have much better control over the temporal distribution of your updates. (I'm assuming you're concerned about power usage..) Kris -- 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] Need Help -Custom Image
On Thu, Dec 15, 2011 at 7:56 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: I just want to change the image when the user click/touch on it .So that user feel like the button was clicked really. I want to show variation in the image before click/touching and after. http://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: UI like Youtube
I've tried again with listview but i had some problems to load more items to the adapter. Now i'm adding the controls programmatically and i think it should work, but my only problem is detecting the scroll in the bottom to load more items :(. Thxs 2011/12/15 Kostya Vasilyev kmans...@gmail.com That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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] openOptionsMenu not working on Honeycomb device
AFAIK, if you don't have an action bar, you don't have an options menu. You will need to either add back the action bar or not use an options menu. On Thu, Dec 15, 2011 at 8:36 AM, Royston roystonpcar...@gmail.com wrote: I have an app in which I select a theme of android:Theme.Holo.NoActionBar.Fullscreen. the app has a minim SDK of 11 and a target of 13. I am avoiding the use of the ActionBar due to issues in the way this works on different sized devices. I am attempting to provide a menu button which simply does a call to openOptionsMenu. On certain device emulations this works as expected e.g. an ICS Large screen sized emulator. However, on other devices the menu button does nothing, the click is registered but no menu appears and no call is made to onCreateOptionsMenu or onPrepareOptionsMenu. There is no application crash, simply no menu. I see some discussion that on Honeycomb there are issues with this and with the presence/absence of a title bar. Is there any known solution to this issue. I would add that there is no soft menu button displayed by the device so in these circumstances the users would be locked out of options. -- 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 Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] receive intent on clear data
On Thu, Dec 15, 2011 at 7:47 AM, elham elhamna...@gmail.com wrote: My application should receive an intent when the clear data of system settings is selected . There is some action that i should take when the application's clear data is clicked . AFAIK, this is not supported. How can i know when clear data is selected . The next time you run, notice that you have no data, and react accordingly. You should treat this situation identically to if the user first installed the app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Strange webview problem
Try loadDataWithBaseURL() with a null URL for the first parameter. On Thu, Dec 15, 2011 at 5:46 AM, Neilz neilhorn...@gmail.com wrote: I wish this was an april fool joke, but no. This is nuts. I have a certain piece of text which when I load it into a webview, it displays fine. If I pause and then resume the activity, the webview is blank. Usually it happens immediately on the first resume, sometimes it takes a few goes. Once it's happened, no webviews in my app will display anything at all. Completely unrelated activities have blank webviews. The offending text is this: webView.loadData(ulli3/liliOrange/liliT-Mobile/ liliVirgin/li/ul, mimeType, encoding); I've started with a very long page of HTML and whittled it down to that line. It breaks my webview. If I edit the line at all, it loads fine every time. I've played with all the webview settings too. Please put me out of my misery, what's happening here? -- 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 Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Can I use some interfaces in framework?
On Thu, Dec 15, 2011 at 1:30 AM, chenyu xu xal...@gmail.com wrote: I want to get the SIM card contacts storage information in Contacts app AFAIK, this is not supported by the Android SDK. I used IccPhoneBook interface like this below: try { IIccPhoneBook iccIpb = IIccPhoneBook.Stub.asInterface( ServiceManager.getService(simphonebook)); if (iccIpb != null) { int size[] = iccIpb.getAdnRecordsSize(IccConstants.EF_ADN); } } catch (RemoteException ex) { // ignore it } What do you think of this solution? I think that it will not compile as an SDK application, since IIccPhoneBook does not exist in the SDK. If you are modifying the firmware, please visit http://source.android.com and find a more appropriate Google Group. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Need Help -Custom Image
Tnx It worked for me. Thanks, KIRANKUMARKENDOLE On Thu, Dec 15, 2011 at 10:03 AM, TreKing treking...@gmail.com wrote: On Thu, Dec 15, 2011 at 7:56 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: I just want to change the image when the user click/touch on it .So that user feel like the button was clicked really. I want to show variation in the image before click/touching and after. http://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: requestLocationUpdates Question
The requestSingleUpdate is no Option, cause I need to support 2.1 and the method is just available at 2.3. -- 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] Partition confusion
Hello, would someone from Google mind explaining the current strategy behind the various partitions? I'm a little bit confused. - In the beginning /sdcard was used for external storage, but since you could not rely on the mount point across vendors, the proper way to access it was the Environment class (or the convenience methods in Context). - Since 3.x an increasing number of devices use /sdcard for an additional internal storage that can not be removed. The docs have been reworded and tell me I now have to think about external storage in a different way. The Environment class only knows about the primary external partition. - Some devices still come with a real SD card. That seems to be mounted as /mnt/sdcard2. Some even support USB Host and /mnt/usbdrive. Now my questions: - What it the proper way to access non-primary external partitions? Should I rely on the above mount points? - What are those non-primary partitions actually used for? Can I only access them with a file manager? Are they scanned by the media service? - Is there a plan to add a proper API that helps me deal with them? Cheers Joerg -- 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: UI like Youtube
For dynamic content on the bottom, you can: - Override getView and check the item position (maybe not quite religiously pure, but it works). - Use an OnScrollListener to be notified of scroll state changes, wait for SCROLL_STATE_IDLE and check what's visible http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener) Or come up with something else, such as maybe subclassing the list view, overriding onLayout and checking the last visible position after calling super... -- Kostya 15 декабря 2011 г. 19:11 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: I've tried again with listview but i had some problems to load more items to the adapter. Now i'm adding the controls programmatically and i think it should work, but my only problem is detecting the scroll in the bottom to load more items :(. Thxs 2011/12/15 Kostya Vasilyev kmans...@gmail.com That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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] Re: UI like Youtube
Thanks for the help, but i was talking about that in a linearlayout with a scroll view :( 2011/12/15 Kostya Vasilyev kmans...@gmail.com For dynamic content on the bottom, you can: - Override getView and check the item position (maybe not quite religiously pure, but it works). - Use an OnScrollListener to be notified of scroll state changes, wait for SCROLL_STATE_IDLE and check what's visible http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener) Or come up with something else, such as maybe subclassing the list view, overriding onLayout and checking the last visible position after calling super... -- Kostya 15 декабря 2011 г. 19:11 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: I've tried again with listview but i had some problems to load more items to the adapter. Now i'm adding the controls programmatically and i think it should work, but my only problem is detecting the scroll in the bottom to load more items :(. Thxs 2011/12/15 Kostya Vasilyev kmans...@gmail.com That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- You received this
[android-developers] Re: Getting the Android Java source?
Varun Tewari varuntewari2010 at gmail.com writes: I found the downloaded source code under eclipse/plugins.Thanks anyways.VARUN On Mon, Feb 7, 2011 at 6:07 PM, varun tewari varuntewari2010 at gmail.com wrote:Can anybody tell me how this works. I use Ganymede. Updated eclipse with above mentioned URL. While debugging my code still says Source Not Found. Do i need to specify any path after updating my eclipse for this. Thanks in advance. VARUN I found it too, but now how do you add that path so that Eclipse Ganymede can find the source files? -- 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: UI like Youtube
Um, @Override protected void onScrollChanged (int l, int t, int oldl, int oldt) ??? 15 декабря 2011 г. 19:55 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: Thanks for the help, but i was talking about that in a linearlayout with a scroll view :( 2011/12/15 Kostya Vasilyev kmans...@gmail.com For dynamic content on the bottom, you can: - Override getView and check the item position (maybe not quite religiously pure, but it works). - Use an OnScrollListener to be notified of scroll state changes, wait for SCROLL_STATE_IDLE and check what's visible http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener) Or come up with something else, such as maybe subclassing the list view, overriding onLayout and checking the last visible position after calling super... -- Kostya 15 декабря 2011 г. 19:11 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: I've tried again with listview but i had some problems to load more items to the adapter. Now i'm adding the controls programmatically and i think it should work, but my only problem is detecting the scroll in the bottom to load more items :(. Thxs 2011/12/15 Kostya Vasilyev kmans...@gmail.com That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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
Re: [android-developers] Re: UI like Youtube
like this??? http://www.marteinn.se/blog/?p=485 I'll try it =) 2011/12/15 Kostya Vasilyev kmans...@gmail.com Um, @Override protected void onScrollChanged (int l, int t, int oldl, int oldt) ??? 15 декабря 2011 г. 19:55 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: Thanks for the help, but i was talking about that in a linearlayout with a scroll view :( 2011/12/15 Kostya Vasilyev kmans...@gmail.com For dynamic content on the bottom, you can: - Override getView and check the item position (maybe not quite religiously pure, but it works). - Use an OnScrollListener to be notified of scroll state changes, wait for SCROLL_STATE_IDLE and check what's visible http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener) Or come up with something else, such as maybe subclassing the list view, overriding onLayout and checking the last visible position after calling super... -- Kostya 15 декабря 2011 г. 19:11 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: I've tried again with listview but i had some problems to load more items to the adapter. Now i'm adding the controls programmatically and i think it should work, but my only problem is detecting the scroll in the bottom to load more items :(. Thxs 2011/12/15 Kostya Vasilyev kmans...@gmail.com That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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
Re: [android-developers] Re: UI like Youtube
Looks pretty close to me. 15 декабря 2011 г. 20:08 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: like this??? http://www.marteinn.se/blog/?p=485 I'll try it =) 2011/12/15 Kostya Vasilyev kmans...@gmail.com Um, @Override protected void onScrollChanged (int l, int t, int oldl, int oldt) ??? 15 декабря 2011 г. 19:55 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: Thanks for the help, but i was talking about that in a linearlayout with a scroll view :( 2011/12/15 Kostya Vasilyev kmans...@gmail.com For dynamic content on the bottom, you can: - Override getView and check the item position (maybe not quite religiously pure, but it works). - Use an OnScrollListener to be notified of scroll state changes, wait for SCROLL_STATE_IDLE and check what's visible http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener) Or come up with something else, such as maybe subclassing the list view, overriding onLayout and checking the last visible position after calling super... -- Kostya 15 декабря 2011 г. 19:11 пользователь Christian Eduardo Palomares Peralta palomare...@gmail.com написал: I've tried again with listview but i had some problems to load more items to the adapter. Now i'm adding the controls programmatically and i think it should work, but my only problem is detecting the scroll in the bottom to load more items :(. Thxs 2011/12/15 Kostya Vasilyev kmans...@gmail.com That - I mean the right part - looks like some kind of custom adapter view, maybe with view recycling (harder) maybe not (easier). 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет: BTW, i'm not talking about the first view in UI youtube tablet version, i think that's a 3D carousel. I'm talking about the exploratory view (second tab). 2011/12/14 Kostya Vasilyev kmans...@gmail.com As far the as the 3D panoramic scrolling goes: http://android-developers.blogspot.com/2011/02/introducing-renderscript.html Renderscript has been used in the creation of the new visually-rich YouTube and Books apps. -- Kostya 15 декабря 2011 г. 2:57 пользователь Ali Chousein ali.chous...@gmail.com написал: Mine is just a guess but YouTube might be using HTML5. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://learningwebdev.blogspot.com Administrador del Grupo Python-Perú -- 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] Re: Display many images into the Imageview in 3-4 seconds
Still give me the fatal error: excess VM On Dec 15, 8:57 am, Christian Bianchini max...@gmail.com wrote: Because is giong to alloc the memory and then display the image, this process looks that the application is blocked. I tried to run the TimerTask into a new thread but anything is changed. On Dec 15, 1:23 am, Miguel Morales therevolti...@gmail.com wrote: Why is TimerTask too slow? Just set the time lower? This might help:http://developingthedream.blogspot.com/2011/01/android-canvas-frame-b... On Wed, Dec 14, 2011 at 5:13 PM, Christian Bianchini max...@gmail.comwrote: I have a problem with Android and the perfomance, I should display around 20-30 images, like a gif, in 3-4 seconds. I tried to make a TimerTask but it's too slowly and I can see only 3-5 images. There is a solution to play 20-30 images like a gif image? I read that I can do something with the spirte. -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- 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] openOptionsMenu not working on Honeycomb device
Mark, I cannot finds words to express how disappointed that makes me! I did rather expect this response however but was hopefull that there would be a way around the issue. Regards Roy -- 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] openOptionsMenu not working on Honeycomb device
On Thu, Dec 15, 2011 at 11:34 AM, Royston roystonpcar...@gmail.com wrote: I cannot finds words to express how disappointed that makes me! :: shrug :: Either your app has an immersive experience, or it does not. Apps where you consider the whole screen to be yours (games, video players, etc.), you simply have to make your menus yours as well. Games have done this for quite some time, eschewing menus and PreferenceActivity and the like to keep their immersive experience consistent. Apps that do not require this level of experience customization should be using the action bar, for consistent behavior across apps. Avoiding the use of the ActionBar due to issues in the way this works on different sized devices, IMHO, is not a valid argument. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: Strange webview problem
Hi Mark - nope, no difference. Very strange, this one. On Dec 15, 3:14 pm, Mark Murphy mmur...@commonsware.com wrote: Try loadDataWithBaseURL() with a null URL for the first parameter. On Thu, Dec 15, 2011 at 5:46 AM, Neilz neilhorn...@gmail.com wrote: I wish this was an april fool joke, but no. This is nuts. I have a certain piece of text which when I load it into a webview, it displays fine. If I pause and then resume the activity, the webview is blank. Usually it happens immediately on the first resume, sometimes it takes a few goes. Once it's happened, no webviews in my app will display anything at all. Completely unrelated activities have blank webviews. The offending text is this: webView.loadData(ulli3/liliOrange/liliT-Mobile/ liliVirgin/li/ul, mimeType, encoding); I've started with a very long page of HTML and whittled it down to that line. It breaks my webview. If I edit the line at all, it loads fine every time. I've played with all the webview settings too. Please put me out of my misery, what's happening here? -- 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: requestLocationUpdates Question
On Thu, Dec 15, 2011 at 10:34 AM, Markus Unger markus.unger1...@googlemail.com wrote: The requestSingleUpdate is no Option, cause I need to support 2.1 and the method is just available at 2.3. So stop requesting updates after a single update? Kris -- 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: NullPointerException at MyService.onStartCommand ?
I followed your advice, and used DDMS to stop the process of an app in question. Interestingly, it did not crash, but the Service was restarted properly, without any error messages shown to the user. The value START_STICKY is being (and has always been) returned from method onStartCommand(). So the problem is caused by something else - I guess. Terry On Dec 15, 2:43 pm, Kostya Vasilyev kmans...@gmail.com wrote: Well, maybe you should return START_NOT_STICKY, or START_REDELIVER_INTENT, or add an if statement checking for null - it just depends on the service. Read the docs, run your own experiments with DDMS, then decide what is the right thing to do for your code. The DDMS Perspective in Eclipse is under Window / Open Perspective / Other... / DDMS. The Devices tab lets you terminate your own apps's processes. -- Kostya 15 ÄÅËÁÂÒÑ 2011šÇ. 17:28 ÐÏÌØÚÏ×ÁÔÅÌØ Terry terb...@gmail.com ÎÁÐÉÓÁÌ: And what is the DDMS tab in Eclipse? Terry On Dec 15, 2:00špm, Terry terb...@gmail.com wrote: Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... š intent šThe Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if this occurs only one some specific devices or os version. Has anyone got an idea as to what is happening? Thank you. Terry -- 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 -- 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
[android-developers] Transparent Background View with Translucent Activity
Hi all ! I've got a weird problem in my interface and I'd like to ask for comments, if anyone already seen such a case : I've created a dialog style Activity : an Activity with translucent background and a listView centered in it. (so we can see the previous activity around my listview ) the list view has a gradient background and some items in this list view had transparent background. What I expect is to see the gradient background of the list view through the transparent items. but I don't know why, while scrolling in my list view, I can see the previous activity in the background of those items. meaning : the transparent background of my view make me see through the background of its parent. when I stop scrolling, the correct background parent is visible again. :/ I display this layout on a 3.0 device (Samsung Galaxy Tab 7' ) does any one has already seen that ? do you have a explanation for 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] Re: openOptionsMenu not working on Honeycomb device
Mark, Generally I would agree with you and if I were starting again would probably avoid menu/preferences. Unfortunately this would not be a good choice at this stage in my project. The issues I have with the ActionBar are to do with inconsistency and uncertainty. Depending on the size of the device I may or may not get a menu icon on the ActionBar. It is asserted that if there is not a menu icon on the Action bar there will be one somewhere else but this troubles me. On some devices I would wish to get rid of a Status bar but you cannot go Fullscreen and still have an ActionBar it would seem. Again thanks for you feedback, very much appreciated. Regards Roy -- 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: Edittext in Listview crashes on Android 2.2.3 on back during editing
Thanks a lot poncho. Well that leads to few other questions: Say I have 1000 items and i want to give in-place editing (say not using ListView) so now I have to create 1000 editboxes in a LinearLayout. Can't it make more sense to use ListView so that EditBoxes can be re- cycled? Creating 100 EditBox does not make sense. Also I understand there are focus issues and what not when using EditBox with ListView, but I can't understand why it is crashing with Handle visible in EditBox (in ListView)? Now other option is to give user a way to edit one item in a small dialog. But his solution is not very elegant for End User. On Dec 14, 4:41 am, poncho poncho...@gmail.com wrote: On 12/14/2011 09:13 AM, havexz wrote: thanks for referring. Questions below are still open: OPEN Questions: 1. Is someone else also face this issue? I did, this is how I found the link I sent. 2. Any reason why normal EditText works but EditText in ListView dont? Did you read the thread in the link I sent, the first reply suggest that: ListView isn't really meant to handle that type of UI with editableentries 3. Why IME cursor handle is giving issue in ListView but not elsewhere? Same as 2. Regarding Also is it good to put EditText in ListView or there are better options? I have soln for maintaining the content. I can have text watcher or something. From the same thread: vertical LinearLayout wrapped ina ScrollView, containing horizontal LinearLayours of the EditTexts andButtons Hope this helps /Yaron On Dec 14, 12:45 am, ponchoponcho...@gmail.com wrote: http://groups.google.com/group/android-developers/browse_thread/threa... On 12/14/2011 08:08 AM, havexz wrote: Hi So here is what I did. I have a ListView and each item in it is a EditText. Now, just so you know I am using CursorAdapter with ListView, and I am creating EditText in newView and filling it with some text in bindView. Now how to recreate the issue, I just open the activity, click on any of the EditText and just click enough to see the orange color handle appears with cursor. Now just press back twice. Just press fast enough that orange handle still visible on screen. Now wait a sec and you have: . has leaked window . that was originally added here. I tried the normal EditText without the ListView and that works fine. What I think is that IME cursor handle is retaining the EditText and leading to leak. I also tried EditText with only 'hint' (empty EditText) and got same issue in the ListView. Now my questions: Is someone else also face this issue? Any reason why normal EditText works but EditText in ListView dont? Also is it good to put EditText in ListView or there are better options? Well this might be a common issue and some common soln. but I searched it found no good soln. 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] Re: openOptionsMenu not working on Honeycomb device
On Thu, Dec 15, 2011 at 12:29 PM, Royston roystonpcar...@gmail.com wrote: Depending on the size of the device I may or may not get a menu icon on the ActionBar. The user will have some means of opening the options menu, either by an indicator in the action bar itself, or by an off-screen MENU button (e.g., Android 2.x devices upgraded to ICS). On some devices I would wish to get rid of a Status bar but you cannot go Fullscreen and still have an ActionBar it would seem. Correct, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: Display many images into the Imageview in 3-4 seconds
Try the tutorial I sent. Also, dont load the images into memory that's your issue. Save to memory cache, then read them from file right before you need to draw them. TimeTask already runs in a different thread, so seems like you're having a memory issue. On Thu, Dec 15, 2011 at 8:22 AM, Christian Bianchini max...@gmail.comwrote: Still give me the fatal error: excess VM On Dec 15, 8:57 am, Christian Bianchini max...@gmail.com wrote: Because is giong to alloc the memory and then display the image, this process looks that the application is blocked. I tried to run the TimerTask into a new thread but anything is changed. On Dec 15, 1:23 am, Miguel Morales therevolti...@gmail.com wrote: Why is TimerTask too slow? Just set the time lower? This might help: http://developingthedream.blogspot.com/2011/01/android-canvas-frame-b... On Wed, Dec 14, 2011 at 5:13 PM, Christian Bianchini max...@gmail.com wrote: I have a problem with Android and the perfomance, I should display around 20-30 images, like a gif, in 3-4 seconds. I tried to make a TimerTask but it's too slowly and I can see only 3-5 images. There is a solution to play 20-30 images like a gif image? I read that I can do something with the spirte. -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/,http://www.youtube.com/user/revoltingx -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- 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] Moving shifting
Welcome Enjoy world-class moving services at local rates! www.unionmoversuae.com Union Mover Dubai is the moving company created to make your moving experience a stress free one. Our focus is on top notch customer service, and fast, professional moving services. We aim to offer our customers the quality of service they expect from the industry's biggest names in removals, but at affordable prices. Whether you're moving house or office locally, relocating internationally, or just a few large items around Dubai, Abu Dhabi or across the UAE, Union Mover removals promise to handle every detail with speed, care and professionalism so you can relax and take it easy. To get your moving quote underway, simply click Get Your Easy Quote, and we'll prepare your quote immediately. Only pay for the services you need. When you move with Union Mover, you only pay for the removal services you need. Our prices are based on the space you use in our trucks, the items you need packed and boxed, bubble wrapped or dismantled. No matter what your budget is you can tailor your move accordingly. If you need a removal truck today... no problem. We have good network of removal trucks, moving vans packing crew across the country ready to handle any job you throw their way. So let's get started shall we? Please click on the Get Your Union Quote button on the right, fill in the quote form and we'll get right back to you with a great price today! Our friendly team of highly trained packers will have you comfortably set up in your new home, same day guaranteed! -- 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] Having a free and paid app, or just use LVL to determine if current app should have reduced functionality
Thank you. I will look up the android library project. On Dec 15, 2011 8:06 AM, TreKing treking...@gmail.com wrote: On Wed, Dec 14, 2011 at 6:22 PM, James Black planiturth...@gmail.comwrote: It would seem this would be a better route as then the user doesn't have to download anything, and they can see what is available in the paid app when there are new updates, and, most importantly, I would only need to maintain one codebase. I have two separate apps (released long before in-app billing) and they are always updated together, at the same time with the same release notes, so users know what new features have gone into the full version. Most importantly, using an Android Library Project, I only need to maintain one codebase. Perfectly valid option and it's a standard model most users understand. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] The Pocket Panel - 1.2 Amp Solar USB Charger for Android Devices
I'm looking to get some feedback from the android community about 2 new solar panels I had created that are actually powerful enough to rapid charge all the new Android smart phones but I also had a 2 amp panel created to charge the Droid Tablets that can be recharged via their USB Ports. Pricing is lower than anything comparable on the market by a decent margin so the price shouldn't be a huge barrier. Check out this 6 Watt 1.2 Amp Pocket Sized USB Solar panel here http://www.portablesolarpower.biz/products/6-watt-portable-solar-usb-mobile-phone-charger Check out this 12 Watt 2 Amp Pocket Sized USB Solar Panel here http://www.portablesolarpower.biz/products/12-watt-portable-solar-usb-mobile-cell-phone-charger Is this something that the Android Development team is interested in? Give me some feedback, I can make just about anything in any shape and size. Ryan Brown - www.PortableSolarPower.Biz -- 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 when running Android Program
I have a problem when I run Android program for the second time it states that it's loaded to 27%, but then nothing happens. I try to cancel it but then that just gets the new title of canceling launch and still nothing happens. If I close and reopen eclipse, I'm able to launch like normal again, but then the second try it does the same thing. Kindly, can any one help me Thank you 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] Re: Generate keypress when moving phone
Debug your app. hm... I never thought about that... really thanks ! for the stack trace i don't have it cause i can't test movements on computer :$... i just have the message fermeture soudaine de l'application... merci de réessayer = sudden closure of thank to retry on my phone... i try with : public static void PressTheKeyRIGHT() { Instrumentation i = new Instrumentation(); i.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); } and public static void PressTheKeyRIGHT() { new Instrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); } and again public static void.PressTheKeyRIGHT() { Instrumentation i = new Instrumentation(); new Thread(new Runnable() { public void run() { new Instrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); } }).start(); } but nothing to do, nothing work... on my computer i use (and for my computer), i use public static void.PressTheKeyENTER() {// example with ENTER on computer Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_ENTER); // example with ENTER on computer robot.delay(Delay); robot.keyRelease(KeyEvent.VK_ENTER);// example with ENTER on computer robot.delay(Delay); } but Robot class doesn't exist for android... Have u ideas (other than Debug your app.) ? Thx On 13 déc, 00:38, TreKing treking...@gmail.com wrote: On Mon, Dec 12, 2011 at 4:01 PM, Charly Pierre charlypierr...@gmail.comwrote: My program detect the movement and print a message (when i replace SimulationKey.PressTheKeyRIGHT(); by a message), but crash when call the function to do a keypress Any idea ? Debug your app. At least post a stacktrace if you expect help with a crash. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Alternative (offline) implementation of Geocoder backend service
On Dec 12, 5:30 pm, TreKing wrote: Replying back to the whole list. Oops. Thanks for the catch. On Mon, Dec 12, 2011 at 6:06 PM, Chris Ostler chris.ost...@gmail.comwrote: On Dec 12, 4:37 pm, TreKing wrote: On Mon, Dec 12, 2011 at 2:07 PM, Chris Ostler wrote: I'm interested in building an alternative backend service for use by the android.location.Geocoder class. Are you talking about updating the existing Geocoder class? Because you should consult the platform or porting group for that. As per the documentation, the Geocoder class requires a separate backend service that actually does the geocoding. I'm wanting to put together an implementation of this service *different* than the one provided in the Maps API package. It's not in the Maps API package - that's a separate library - Geocoder is in the core platform. The Geocoder query methods will return an empty list if there no backend service *in the platform*. Use the isPresent() method to determine whether a Geocoder implementation exists. That to me sounds like you'd have to modify the firmware. Perhaps I'm misunderstanding how the pieces fit together, then. I thought that: * The Geocoder class communicates with an on-device backend service to get the geocoding result * The Maps API package provides an implementation of that service The sentence just before what you quoted states: The Geocoder class requires a backend service that is not included in the core android framework. The way I read that is that the Geocoder class in the core framework requires a service that is not in the core framework. The services available on a device, in combination with the core framework constitutes the platform in the sentence you quote. Perhaps I'm misunderstanding? My goal is to allow existing apps that currently use the Geocoder to function correctly when no network access is available (which is required by the Maps API provided service). Geocoder is not required by the Maps API. What I was trying to state was that the backend service for geocoding provided in the Maps API package requires network access. I guess I wasn't clear in my formulation. I've been assuming that since the background service was provided in a separate package, that it was somewhat modular and thus amenable to having an alternative implementation provided. Am I being too optimistic? Is the service actually tightly joined to the core Android framework, such that this wouldn't be possible? -- 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] Large Image processing, scrolling, zooming, performance issues
I'm facing an issue on processing very large images(some image have size A0).Currently i'm doing this by split the image to many tiles(size 128x128 pixels ) in difference zoom level and host them on a server for downloading and displaying on the view . I think its mechanism like Google Map . Although i try to improving many times but the View isn't smooth enough for scrolling,zooming,... As far as i know on iOS there is a CATiledLayer class that help developers much on the same work as i'm doing.Could you give me some advises?i really stuck on this task for a long time :( -- 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: ICS: unlock screen in jUnit
On Dec 13, 5:02 pm, Jakub Czaplicki jakub.czapli...@gmail.com wrote: Hi All, Is there a way to unlock the screen after boot-up in jUnit ? I tried the deprecated keyguardManager.newKeyguardLock() method. I've set the required DISABLE_KEYGUARD permission in jUnit manifest, but the test still claims : java.lang.SecurityException: Requires DISABLE_KEYGUARD permission. I have also tried to set the WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD flags, but in this case I've got the following err msg : android.view.ViewRootImpl $CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views Thanks, Jakub Latest technique recommended by Google found here: http://developer.android.com/guide/topics/testing/activity_testing.html#UnlockDevice ... or is that what you've already tried? -- 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: Context menu for a Grid item
http://developer.android.com/guide/topics/ui/menus.html look this page -- 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] home launcher optimization
Hello, I am trying to improve performance of existing Gingerbread (Android 2.3) home launcher framework application. I tried to speed up home screen by enabling cache for children views on home screen, made background opaque to save normal wallpaper drawing calls. This has improved UI performance. For normal wallpaper I have cached the wallpaper drawable in Launcher application and drawing it manually from launcher app. and has set the background opaque to avoid wallpaper drawing by WallpaperManager. But with this change the fps value reduced. My requirement is fps should be high...that is measure they are considering for speed/performance. Can anybody suggest approach that should be followed to improve fps value? Is this becuase I cached the background? 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] nook tablet
Can apps be made for the Nook tablet by independent developers? -- 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] Pause/Resume vs. Stop/Start
Hello. I'm hoping to get a better handle on these callbacks in the Activity life-cycle. One would think that Pause/Resume is one thing and Stop/ Start is another, but on Android it seems there is no instance of Pause without Stop, and no instance of Resume without Start. Or is there some use case where Pause/Resume can occur outside of Stop/ Start? If the two pairs do always occur together then the only difference is *when* they occur. In what scenarios would one need to distinguish Activity.Pause from Activity.Stop, since they both always happen? Thanks, BT -- 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] Google talk contacts
How can I tell which one in the contact is using Android. the google talk has the little icon of the Android next to the contact Avatar but how can I know which one has it? 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