Re: [android-developers] Re: onDraw is called twice

2012-08-15 Thread Romain Guy
This is the expected behavior. If a View is blended (with transparent or translucent regions) and has to redraw, any Views behind it must be redrawn as well. This behavior changes when hardware acceleration is turned on. The behind Views are redrawn but the onDraw() method is not called since each

[android-developers] Reading image from SDCard with Arabic FileName

2012-08-15 Thread Muhammad Rashid
Dear all, I want to read images from sdcard. These images are of different names like a.jpg and موافق.jpg etc. Some of them are english names and some are with arabic names. The problem is that when I make File as File imageFile = new File(pathFromSDCard), It shows file does not exists for all

[android-developers] Re: Reading image from SDCard with Arabic FileName

2012-08-15 Thread RichardC
Did you get the file name by enumerating the directory contents or entering the file name some other way? What version of Android are you trying this on? On Wednesday, August 15, 2012 9:35:38 AM UTC+1, Muhammad Rashid wrote: Dear all, I want to read images from sdcard. These images are of

[android-developers] Re: Reading image from SDCard with Arabic FileName

2012-08-15 Thread Muhammad Rashid
I get the file path like /mnt/sdcard/DCIM/Camera/حفظ.jpg. Then I made file by File file = new File(path). Here it says file does not exists. I am using Android OS 2.3.6 On Wednesday, August 15, 2012 2:29:27 PM UTC+5, RichardC wrote: Did you get the file name by enumerating the directory

[android-developers] Re: Reading image from SDCard with Arabic FileName

2012-08-15 Thread RichardC
How did you get the path name into your program? If you used cut/paste there could be problems with Unicode. Have you tried enumerating the directory contents from your Android program and opening the file using the path returned from:

[android-developers] Re: Reading image from SDCard with Arabic FileName

2012-08-15 Thread Muhammad Rashid
Exactly by enumerating... using listFiles() On Wednesday, August 15, 2012 2:58:43 PM UTC+5, RichardC wrote: How did you get the path name into your program? If you used cut/paste there could be problems with Unicode. Have you tried enumerating the directory contents from your Android

[android-developers] External USB MIC or Accessory mode MIC

2012-08-15 Thread Prabudas
Does android supports the external USB microphone (Like PC)? OR can an external accessory device (in Accessory mode) have a microphone and stream the audio from the accessory to android device? Prabudas S. -- You received this message because you are subscribed to the Google Groups

[android-developers] Maps showing mymaps

2012-08-15 Thread Sean751
Hi I am trying to access mymaps in my Google account in an android application. I want to be able to access the placemarks as objects to display the details and perhaps edit the notes attached to the placemark. I can't find any way to do this can anyone help? Thanks Sean -- You received this

[android-developers] App startup with heavy initialization and ANR detection

2012-08-15 Thread b0b
I have an app whose initialization is quite CPU and thread heavy for 3-5s on startup. During that period, the logcat reports several: 08-15 15:33:24.804: I/dalvikvm(8550): threadid=3: reacting to signal 3 08-15 15:33:24.882: I/dalvikvm(8550): Wrote stack traces to '/data/anr/traces.txt' every

Re: [android-developers] Maps showing mymaps

2012-08-15 Thread TreKing
On Wed, Aug 15, 2012 at 8:24 AM, Sean751 sean...@gmail.com wrote: I am trying to access mymaps in my Google account in an android application. I want to be able to access the placemarks as objects to display the details and perhaps edit the notes attached to the placemark. I can't find any

Re: [android-developers] Re: Bitmap size exceeds

2012-08-15 Thread bob
Did you set minSDK? Where does it crash? On Tuesday, August 14, 2012 8:27:12 PM UTC-5, Numair Qadir wrote: Dear Bob, I tried my app in API 11 with largeHeap=true, but the app crashes. It didn't work. :( On Mon, Aug 13, 2012 at 7:06 PM, bob b...@coolfone.comze.comjavascript: wrote:

[android-developers] Re: Android talking to computer

2012-08-15 Thread bob
So I guess you just do a bunch of *adb push* and *adb pull* commands to have a conversation with an Android app? On Tuesday, August 14, 2012 5:07:25 PM UTC-5, Paul Turchenko wrote: All Android devices use ADB to talk to computer On Tuesday, August 14, 2012 2:27:53 PM UTC-5, bob wrote:

Re: [android-developers] Maps showing mymaps

2012-08-15 Thread Sean751
When you say old and abandoned do you think there might be a new and improved Maps API for Android any time soon? It will be messy but I will find another way to do what I want. Thanks Sean On Wednesday, August 15, 2012 9:53:59 AM UTC-4, TreKing wrote: On Wed, Aug 15, 2012 at 8:24 AM, Sean751

Re: [android-developers] Re: Bitmap size exceeds

2012-08-15 Thread Numair Qadir
I set the minSDK to version 3.0, but it crash on the same line. On Wed, Aug 15, 2012 at 7:14 PM, bob b...@coolfone.comze.com wrote: Did you set minSDK? Where does it crash? On Tuesday, August 14, 2012 8:27:12 PM UTC-5, Numair Qadir wrote: Dear Bob, I tried my app in API 11 with

Re: [android-developers] Re: Android talking to computer

2012-08-15 Thread Kristopher Micinski
That would be one way to do it, we've also used some intent firing mechanisms from ADB to implement things for testing apps. kris On Wed, Aug 15, 2012 at 10:18 AM, bob b...@coolfone.comze.com wrote: So I guess you just do a bunch of adb push and adb pull commands to have a conversation with an

Re: [android-developers] Maps showing mymaps

2012-08-15 Thread lbendlin
What part of abandoned was unclear? On Wednesday, August 15, 2012 10:19:04 AM UTC-4, Sean751 wrote: When you say old and abandoned do you think there might be a new and improved Maps API for Android any time soon? It will be messy but I will find another way to do what I want. Thanks Sean

Re: [android-developers] Maps showing mymaps

2012-08-15 Thread Sean751
Ouch If you have nothing good to say then say nothing. I am not saying anything more. On Wednesday, August 15, 2012 11:40:48 AM UTC-4, lbendlin wrote: What part of abandoned was unclear? On Wednesday, August 15, 2012 10:19:04 AM UTC-4, Sean751 wrote: When you say old and abandoned do

Re: [android-developers] Re: Android talking to computer

2012-08-15 Thread Michael Leung
Are you doing an app to send the image from phone to PC via usb? Regards, Michael http://www.itblogs.info http://www.michaelleumg.info 2012-8-16 上午12:20 於 bob b...@coolfone.comze.com 寫道: So I guess you just do a bunch of *adb push* and *adb pull* commands to have a conversation with an

Re: [android-developers] I Missed my phone at Home - good apps

2012-08-15 Thread Michael Leung
I think that is a bit out of topic in here. Regards, Michael http://www.itblogs.info http://www.michaelleumg.info 2012-8-15 上午4:30 於 Rocky rkjhaw1...@gmail.com 寫道: Let me know your comments

[android-developers] Prevent garbage collection for Broadcast receiver that are dynamically registered

2012-08-15 Thread frantz lohier
Dear All, I've developed an app that registers a receiver in the onResume() constructor. This receiver need not to be deallocated as it processes intent even when my app is not running on the foreground. For that reason, the receiver is not deregistered by onPause(). Now, when the app goes in

Re: [android-developers] Prevent garbage collection for Broadcast receiver that are dynamically registered

2012-08-15 Thread Mark Murphy
On Wed, Aug 15, 2012 at 12:34 PM, frantz lohier floh...@gmail.com wrote: Question: is there a way to ensure that receiver are programmatically registered at run-time are not deallocated when an app goes in background? IMHO, a better implementation would be to register the receiver in the

Re: [android-developers] Maps showing mymaps

2012-08-15 Thread TreKing
On Wed, Aug 15, 2012 at 9:19 AM, Sean751 sean...@gmail.com wrote: When you say old and abandoned do you think there might be a new and improved Maps API for Android any time soon? There is zero indication that I'm aware of that the Android Maps API will see even so much as a bug fix update

Re: [android-developers] Maps showing mymaps

2012-08-15 Thread Mark Murphy
On Wed, Aug 15, 2012 at 1:15 PM, TreKing treking...@gmail.com wrote: There is zero indication that I'm aware of that the Android Maps API will see even so much as a bug fix update any time soon. FWIW, in at least two Google I|O sessions, the Android team was asked about the Maps add-on for

[android-developers] Re: Android 2.2 and background sensor

2012-08-15 Thread Pavel Brans
Hey. Why nobody cant tell me? Google says that this is bug and it is fixed. But i test that on several modern devices with latest updates it is the same. (also on 4x Android on Archos 101 tab) . понедельник, 13 августа 2012 г., 15:01:44 UTC+3 пользователь Pavel Brans написал: I mean don't

[android-developers] Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps

2012-08-15 Thread Bikram Agarwal
Hi, I'm novice in Android app developement. I recently started building theme packs for different launchers and uploaded them on Play Store. These apps are having issues with devices using Jelly Bean ROM. And not just the mass reported encryption related issue. I had heard that only paid apps

[android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread b0b
Interesting discussion but how are we supposed to handle setContentView() (which calle the layour inflater, which instantiates views), taking a lot of time for complex layouts ? In ICS+, if the main UI thread is stuck for more than approx 500ms the system great the app with a super

[android-developers] Re: Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps

2012-08-15 Thread Bikram Agarwal
FYI, these are my installed ADK packages - https://lh3.googleusercontent.com/-j1BMiwFXarg/UCv1rc26mkI/ONo/UWH8XBZccUU/s1600/package.jpg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Android 2.2 and background sensor

2012-08-15 Thread Mark Murphy
On Wed, Aug 15, 2012 at 3:05 PM, Pavel Brans thesn...@gmail.com wrote: Google says that this is bug and it is fixed. AFAIK, the behavior of sensors with the screen off is undefined and is up to the device manufacturer. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Android 2.2 and background sensor

2012-08-15 Thread bob
What sensor are you trying to read? Also, why not just display a black screen instead of turning the screen off? On Monday, August 13, 2012 7:00:25 AM UTC-5, Pavel Brans wrote: I have android 2.2.2 on my phone(LG-P970) but sensors don't collects data with partial wake lock. Why? How to

[android-developers] Find package name of an application by scanning through all installed applications on device?

2012-08-15 Thread dillipk
Hi, I am trying to find the *package name *of an application based on 'Application Name' by scanning through all installed applications on the device. Using the below code, it works, but takes about 15~20 secs to find the package name on a device loaded with applications. public String

[android-developers] Re: I Missed my phone at Home - good apps

2012-08-15 Thread bob
Instead of I Missed my Phone at Home maybe call it I Left my Phone at Home? It's better grammar. On Tuesday, August 14, 2012 1:27:07 PM UTC-5, RKJ (Android developer) wrote: Let me know your comments

[android-developers] Re: App startup with heavy initialization and ANR detection

2012-08-15 Thread bob
Well, does it ask if you want to Force Close? If not, it sounds like there isn't clearly a problem. You'll probably never understand every line in logcat. On Wednesday, August 15, 2012 8:49:24 AM UTC-5, b0b wrote: I have an app whose initialization is quite CPU and thread heavy for

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread Romain Guy
An ANR is triggered if the UI thread is blocked for 5 seconds, not 500ms. On Aug 15, 2012 9:15 PM, b0b pujos.mich...@gmail.com wrote: Interesting discussion but how are we supposed to handle setContentView() (which calle the layour inflater, which instantiates views), taking a lot of time for

[android-developers] Re: Android 2.2 and background sensor

2012-08-15 Thread Pavel Brans
Accel and Magnetic field. black screen will draine batary much faster then turn screen off as i understand.. That is absoulutly not clever from google to give posibility to vendors to disable sensors when screen off and for vendors to use this posibilyty. Now i have service that save batery

[android-developers] Error when compiling Android project with Eclipse

2012-08-15 Thread Dan Uff
Hi all, I'm getting the below error when I compile and try to run my project in the simulator: [2012-08-15 16:08:31 - LANTA] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2012-08-15 16:08:31 - LANTA] Please check logcat output for more details. [2012-08-15 16:08:31 - LANTA]

Re: [android-developers] Error when compiling Android project with Eclipse

2012-08-15 Thread Mark Murphy
On Wed, Aug 15, 2012 at 4:23 PM, Dan Uff danny@gmail.com wrote: I'm getting the below error when I compile and try to run my project in the simulator: Most likely, you are running this in the emulator, not a simulator. [2012-08-15 16:08:31 - LANTA] Installation error:

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread b0b
On Wednesday, 15 August 2012 22:07:46 UTC+2, Romain Guy (Google) wrote: An ANR is triggered if the UI thread is blocked for 5 seconds, not 500ms. Yes, but until the ANR hapens (or not if the UI thread is blocked fior say...3s), the logcat spams these messages every 500ms (CM9, ICS 4.0.4):

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread b0b
My Asus TF101 running stock ICS doesn't display the Wrote stack traces line in the logcat every 500ms the UI thread is not responding, which make me think it could be a CM9 issue or bug ? On Wednesday, 15 August 2012 22:39:09 UTC+2, b0b wrote: On Wednesday, 15 August 2012 22:07:46 UTC+2,

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread Gergely Juhász
Kedves Tamás, It's really strange. What are you doing in your view's constructor? I view's constructor mostly reads's out the given attributes depending on the given style. Init some members, like Paint objects, but usually that's all. Every hard work comes after it's attached to the hierarchy

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread b0b
I'm now convinced it is a CM9 issue as it writes stack traces for almost any app, at startup but also sometimes during normal execution. To prove I am not affabulating, this when starting the camera app (in between lines omitted): 08-15 23:08:57.078: I/dalvikvm(30403): Wrote stack traces to

[android-developers] Re: Error when compiling Android project with Eclipse

2012-08-15 Thread Dan Uff
Mark, Thanks for the help. :-) Dan On Wednesday, August 15, 2012 4:23:31 PM UTC-4, Dan Uff wrote: Hi all, I'm getting the below error when I compile and try to run my project in the simulator: [2012-08-15 16:08:31 - LANTA] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

[android-developers] Re: Error when compiling Android project with Eclipse

2012-08-15 Thread bob
Check to make sure that you run on a google api emulator On Wednesday, August 15, 2012 3:23:31 PM UTC-5, Dan Uff wrote: Hi all, I'm getting the below error when I compile and try to run my project in the simulator: [2012-08-15 16:08:31 - LANTA] Installation error:

Re: [android-developers] Re: Error when compiling Android project with Eclipse

2012-08-15 Thread James Black
You may want to look at this: http://stackoverflow.com/questions/1113088/install-failed-missing-shared-library-error-in-android Does this apply to you: To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY error with Google Maps for Android: The first answer explains how to get past this error. On

Re: [android-developers] LVL suddently stopped working - returns only timeouts

2012-08-15 Thread Kostya Vasilyev
I'd like to resurrect an old thread. In my app, I keep seeing LVL timeouts. It started back in May (re: the old thread link below) and at that time, I was able to get logcat output from two users to confirm that: 1 - The app binds to the Market app / service 2 - It queues up a license check

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread b0b
After more investigations, it look like each of this Wrote stack traces logcat line will write a /data/anr/slow??.txt : shell@android:/data/anr $ ls slow00.txt slow01.txt slow02.txt slow03.txt slow04.txt slow05.txt slow06.txt slow07.txt slow08.txt slow09.txt traces.txt My question to thows

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-15 Thread Justin Anderson
Then you would need to talk to the makers of the roms that are doing this... As for onCreate() you shouldn't really be doing ANYTHING except calling setContentView() and initializing a few member variables. Anything else needs to go in a separate thread (perhaps using AsyncTask) to do heavy

Re: [android-developers] Bitmap size exceeds

2012-08-15 Thread Numair Qadir
Oh man. Thanks alot. That is the wonderful book that teaches me alot regarding media stuff. The problem is solved :) On Wed, Aug 15, 2012 at 10:24 AM, Jim Graham spooky1...@gmail.com wrote: On Wed, Aug 15, 2012 at 06:35:43AM +0500, Numair Qadir wrote: I like the solution you proposed for

[android-developers] Re: Create 2 groups in expandable listview

2012-08-15 Thread Krishna Veni
In the above example directly inserted children values.like this *private* Stringhttp://android.grepsrc.com/source/s?defs=Stringproject=ics-mr1[][] children http://android.grepsrc.com/source/s?refs=childrenproject=ics-mr1= { { Arnold, Barry, Chuck, David }, { Ace,

[android-developers] Re: LVL suddently stopped working - returns only timeouts

2012-08-15 Thread Pent
My app only required a single positive response and then would never query again. I had a few people every day with OK orders who couldn't validate, starting around May I guess, as you say. I don't know what the cause was. The only thing that helped was uninstall-reinstall. After giving Google a

[android-developers] READING A FILE FROM INTERNAL MEMORY

2012-08-15 Thread Ansh
Hi all, My client has a requirement of reading a file from apps private space. A file that can be a doc/pdf/txt file, has to be read from my apps internal memory with the permissions like read or read write.And i have to open that file from the third party app.i have that it is not possible

Re: [android-developers] Bitmap size exceeds

2012-08-15 Thread Jim Graham
On Thu, Aug 16, 2012 at 07:53:03AM +0500, Numair Qadir wrote: Oh man. Thanks alot. That is the wonderful book that teaches me alot regarding media stuff. The problem is solved :) No problem...I agree completely. It's definitely a very good book, but you need to read it along with the relevant

[android-developers] How to get cpu elapsed of other processes which are in background in android?

2012-08-15 Thread thejaswi s
How to get cpu elapsed of other processes which are in background in android? In my application I want to get CPU elapsed time of other processes which are running in background. How can I do it. Thanks in advance. -- You received this message because you are subscribed to the Google Groups

[android-developers] Disabling wifi, GPS, Bluetooth, and celluar in an app

2012-08-15 Thread Jason Hsu
I have an idea for an app. In the interest of helping the user conserve battery power, I want to provide the OPTION of disabling battery-draining services like wifi, GPS, Bluetooth, and cellular. How do I implement this? Are there good tutorials/examples that implement such functionality?

[android-developers] Dynamically create two group and children in android expandable listview from xml feed

2012-08-15 Thread Krishna Veni
I am working on a client-server project in android.I need to parse xml from url and place it in Expandablelistview. The problem arises when i am trying to place childs inside each group based on the data coming from server. My code only places the first child inside first group, but i can't

Re: [android-developers] Disabling wifi, GPS, Bluetooth, and celluar in an app

2012-08-15 Thread mike digioia
press airplane mode! On Wed, Aug 15, 2012 at 10:33 PM, Jason Hsu jhsu802...@gmail.com wrote: I have an idea for an app. In the interest of helping the user conserve battery power, I want to provide the OPTION of disabling battery-draining services like wifi, GPS, Bluetooth, and cellular.

[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-08-15 Thread Kevin Gaudin
Hi everyone, I'm the main developer of ACRA and just read this topic after receiving messages from devs who could not get their logcat anymore on JB devices. Until now, ACRA was checking that the READ_LOGS permission was granted before exec-ing logcat and retrieving DropBoxManager events.