[android-developers] Re: CPU leak android application
Thanks Kris, yes, i am not using any thing either service or background thread computation, but still it has been consuming approx 2% CPU, i have been looking it through another application Android assistant. is there any way to know running thread of application from eclipse? so that i can understand that, which thread is running and using CPU. Regards imran ali On Oct 31, 4:13 pm, Kristopher Micinski krismicin...@gmail.com wrote: If you're not doing anything compute intensive in a service or something else like that, just using foreground UI, this sounds like perfectly normal operation that you can't do anything about. kris On Mon, Oct 31, 2011 at 7:09 AM, imran ali imran...@gmail.com wrote: Hi all, In one of myapplicationi have been using TabHost-(4-tab, so )4- ActivityGroup-{lots of Activity in every ActivityGroup}. i fond that myapplicationhas been usingCPUat least 2% of system, though theapplicationis in background. i observed that, at first time when i am startingapplicationwith new process (after killing old one from settings), then it has been consuming approx 30% ofCPUwhenapplicationis in background, after some time approx 5 to 10 mint, it comes to approx 2% automatically, there up-one it has been consuming approx 2% to 10% while i am switchingapplicationbackground to foreground and foreground to background, till i don't start again with new process(as i stated with new process it is approx 30% ofCPU). if any body have any idea then pleas help me. regards Imran ali -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, 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: CPU leak android application
On Tue, Nov 1, 2011 at 2:01 AM, imran ali imran...@gmail.com wrote: Thanks Kris, yes, i am not using any thing either service or background thread computation, but still it has been consuming approx 2% CPU, i have been looking it through another application Android assistant. is there any way to know running thread of application from eclipse? so that i can understand that, which thread is running and using CPU. Regards imran ali Imran, Don't worry about this at all. 2% background usage is completely normal and fine. Your app is running always running some code: because your app is actually an instance of a vm which is processing messages on a looper. So even if your app isn't doing intensive processing, it's constantly checking to see if it got new messages, doing gc, and related background things. The same goes for any desktop application. Open up your task manager or run top on a linux box: you'll see tons of processes using ~1-2% of the cpu time, it's completely normal application behavior. 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: Receiving from two different instances of AlarmManager
normally in Java ~ which I am reading is the Primary Programming Linguistic for this Android Platform one would run that with Timer and TimerTask - the Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running. use of the word Airplane in your post suggests to me AnimationSet will be productive the way your question is worded which would be driven with CountDownTimer to use then normally this would be driving the AnimationSet and after reading one OHA tech page today you would be best performance if these are nested classes as that would make driving the call-stack efficient based on what the compiler would have to do and the way they have CountDownTimer coded in the sample code that would be an idealized implementation of traditional Java code written platform-specific for the Android thus you would place one of these in ListActivity with (probably) ListActivity being inside of Activity with CountDownTimer being started from onCreate(Bundle) and careful attention to Activity Lifecycle as documented ~ programming with anything with the name Alarm sounds like programming with Exceptions and is not considered correct practice On Oct 28, 5:13 pm, Bryce tonyhawk2...@gmail.com wrote: I've been searching high and low about a particular problem I am having, but not able to find the solution. I am making an Android app that does the following: 1. searches for signal and after a specified time (e.g. 5 minutes), if no signal is found, the app will enable Airplane mode 2. After a another interval (e.g. 10 minutes), airplane mode is disabled and it checks again for a signal. I've asked about classes to accomplish this and my search came up with PhoneStateListener, AlarmManager, and Settings, but nothing to help me to check whether or not time has passed. The app is made out of four classes: nman - ListActivity (main class) nmanAir - Activity (class that sets time interval for airplane mode to be enabled) nmanRecheck - Activity (class that sets time interval in which to disable Airplane and check allow for signal to detected) Receiver - BroadcastReceiver (supposed to get one of the AlarmManagers and accomplish task, but does not work) I cannot make another Broadcast receiver without knowing how to get a specified AlarmManager. One is labeled as aSender and the other is labelled as bSender. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to decompose apk files
There is a much easier way to do this Visit my website @ http://apkmultitool.com and download my tool from my download section and everything is strait forward and includes a doc folder with a instrunction manual. On Nov 1, 1:56 am, venugopal reddy venugopal.re...@tspl.com wrote: Thankq very much Ratheesh... On Fri, Oct 28, 2011 at 6:06 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: procedure to decoding .apk files---step wise method-- step 1: = make a new folder and put .apk file (which you want to decode) now rename this .apk file with extension .zip (eg:rename from filename.apk to filename.apk.zip) and save it..now you get classes.dex files etc...at this stage you are able to see drawable but not xml and java file... so cont... step 2: === now extract this zip apk file in the same folder(in this eg or case NEW FOLDER). now dowmload dex2jar from this linkhttp://code.google.com/p/dex2jar/and extract it to the same folder (in this case NEW FOLDER).now open command prompt and reach to that folder (in this case NEW FOLDER)after reaching write dex2jar classes.dex and press enter.now you get classes.dex.dex2jar file in the same folder..now download java decompiler from http://java.decompiler.free.fr/?q=jdguiand now double click on jd-gui and click on open file then open classes.dex.dex2jar file from that folder...now you get class file...save all these class file (click on file then click save all sources in jd-gui)..by src nameat this stage you get source...but xml files are still unreadable...so cont... step 3: = now open another new folder and put these files put .apk file which you want to decode download apktool using google and put in the same folder download framework-res.apk file using google and put in the same folder Open a command window Navigate to the root directory of APKtool and type the following command: apktoolif framework-res.apk apktool d fname.apk (fname denotes filename which you want to decode) now you get a file folder in that folder and now you can easily read xml files also. step 4: = it's not any step just copy contents of both folder(in this case both new folder)to the single one and now enjoy wid source code... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards *VENU* Technical Specialist Thirdware Solution Ltd,Chennai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to decompose apk files
let me know if you would like to have a driver-shell in Java for it ~ just let me know what commands you want to ship or where you want the response file and a standard location so that i can avoid putting up a browse dialog - home dir on whino is failure.mode only On Nov 1, 1:45 am, Raziel23x raziel...@gmail.com wrote: There is a much easier way to do this Visit my website @http://apkmultitool.comand download my tool from my download section and everything is strait forward and includes a doc folder with a instrunction manual. On Nov 1, 1:56 am, venugopal reddy venugopal.re...@tspl.com wrote: Thankq very much Ratheesh... On Fri, Oct 28, 2011 at 6:06 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: procedure to decoding .apk files---step wise method-- step 1: = make a new folder and put .apk file (which you want to decode) now rename this .apk file with extension .zip (eg:rename from filename.apk to filename.apk.zip) and save it..now you get classes.dex files etc...at this stage you are able to see drawable but not xml and java file... so cont... step 2: === now extract this zip apk file in the same folder(in this eg or case NEW FOLDER). now dowmload dex2jar from this linkhttp://code.google.com/p/dex2jar/andextract it to the same folder (in this case NEW FOLDER).now open command prompt and reach to that folder (in this case NEW FOLDER)after reaching write dex2jar classes.dex and press enter.now you get classes.dex.dex2jar file in the same folder..now download java decompiler from http://java.decompiler.free.fr/?q=jdguiandnow double click on jd-gui and click on open file then open classes.dex.dex2jar file from that folder...now you get class file...save all these class file (click on file then click save all sources in jd-gui)..by src nameat this stage you get source...but xml files are still unreadable...so cont... step 3: = now open another new folder and put these files put .apk file which you want to decode download apktool using google and put in the same folder download framework-res.apk file using google and put in the same folder Open a command window Navigate to the root directory of APKtool and type the following command: apktoolif framework-res.apk apktool d fname.apk (fname denotes filename which you want to decode) now you get a file folder in that folder and now you can easily read xml files also. step 4: = it's not any step just copy contents of both folder(in this case both new folder)to the single one and now enjoy wid source code... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards *VENU* Technical Specialist Thirdware Solution Ltd,Chennai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SMS interface and timestamps
Hi, For (1) probably not, sms can be queued by the operator for quite a while if recipient phone is off. For (2) you can get an accurate GMT timestamp from the GPS Location, provided you have a current gps fix. Regards On Nov 1, 6:29 am, John Goche johngoch...@googlemail.com wrote: Hello, I would like to code with android's SMS interface, however I am somewhat new to SMS programming. I would like to know: 1. If I send an SMS, can I be notified from the operator with some option about the timestamp in GMT for instance that the message was sent? I ask because I need to coordinate database manipulations across a distributed network of cellphones and am concened that if I use the time on each phone then if different phones have different timestamps things may get out of sync. 2. Is there an alternate way of letting the phones know about any time discrepancies in their time tracking settings? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GPS filtering
Hi, I think you will find getAccuracy() will continue to vary within the 10 metres range or more. And you will not know which is 'most accurate' without averaging the fixes over some period of time. All of which is harder if the device is also moving. Regards On Nov 1, 5:44 am, Ab Caballero a...@mac.com wrote: That's what i did by using if(hasAccuraacy() getAccuracy() minDistance)... It just doesn't seems to limit the fixes enough On Oct 29, 6:01 am, lbendlin l...@bendlin.us wrote: yes. write your own logic to accept fix events or not -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ExpandableListView expand/collapse question
The application that we are developing has 5 image buttons on the group view. Each image button is next to each other with some space between them. It is found that when we try to click on the image button the group view ends up expanding and it is not acceptable. Hence we have decided to decide the indicator image view as a way of expanding/collapsing the group view. Anyway I have manged to get it working so no issues. However there is something that you can maybe advice. Along with 5 image buttons the group view also presents other information in the form of text view. One of the text view indicates the time (hh:mm:ss). In order to achieve this, I wrote a timer which updates the counter and then calls the BaseExpandableListAdapter.notifyDataSetChanged(). This gets called every second by the timer in order to show the time. It is found that on several occasions the button click on the image button is ignored. Could this be related to the notifyDataSetChanged being called every second? If I stop my timer then button clicks are more responsive. Can you please advice if there is other way of displaying a timer on the group view or the way I am currently doing it is acceptable? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How Will I dwevelop Bar code scanner for android ?
Hi friends, How Will I dwevelop Bar code scanner for android ? Please help me ... Give me the specifications also( i means which jars are reuires like that) thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can handle AlertDialogFragment events inside Fragment that created it?
For dialogs fragments UI google recommendshttp://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentAlertDialog.html to extend DialogFragment. However in provided sample it handle alert inside activity, but I need to do it inside fragment that invoke dialog. Any ideas how to solve this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Refer to TTS Object inside inner method
Your TTS object is only initialized when onActivityResult is called. If you click on your button before that happens, KABOOM. Martin mobitobi GentleAlarm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SMS interface and timestamps
On Tue, Nov 1, 2011 at 8:37 AM, gjs garyjamessi...@gmail.com wrote: Hi, For (1) probably not, sms can be queued by the operator for quite a while if recipient phone is off. For (2) you can get an accurate GMT timestamp from the GPS Location, provided you have a current gps fix. What do you mean by current gps fix? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 decompose apk files
This sort of activity here is the reason Android will never be a viable platform for developers. On 11/1/2011 2:45 PM, Raziel23x wrote: There is a much easier way to do this Visit my website @ http://apkmultitool.com and download my tool from my download section and everything is strait forward and includes a doc folder with a instrunction manual. On Nov 1, 1:56 am, venugopal reddyvenugopal.re...@tspl.com wrote: Thankq very much Ratheesh... On Fri, Oct 28, 2011 at 6:06 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: procedure to decoding .apk files---step wise method-- step 1: = make a new folder and put .apk file (which you want to decode) now rename this .apk file with extension .zip (eg:rename from filename.apk to filename.apk.zip) and save it..now you get classes.dex files etc...at this stage you are able to see drawable but not xml and java file... so cont... step 2: === now extract this zip apk file in the same folder(in this eg or case NEW FOLDER). now dowmload dex2jar from this linkhttp://code.google.com/p/dex2jar/and extract it to the same folder (in this case NEW FOLDER).now open command prompt and reach to that folder (in this case NEW FOLDER)after reaching write dex2jar classes.dex and press enter.now you get classes.dex.dex2jar file in the same folder..now download java decompiler from http://java.decompiler.free.fr/?q=jdguiand now double click on jd-gui and click on open file then open classes.dex.dex2jar file from that folder...now you get class file...save all these class file (click on file then click save all sources in jd-gui)..by src nameat this stage you get source...but xml files are still unreadable...so cont... step 3: = now open another new folder and put these files put .apk file which you want to decode download apktool using google and put in the same folder download framework-res.apk file using google and put in the same folder Open a command window Navigate to the root directory of APKtool and type the following command: apktoolif framework-res.apk apktool d fname.apk (fname denotes filename which you want to decode) now you get a file folder in that folder and now you can easily read xml files also. step 4: = it's not any step just copy contents of both folder(in this case both new folder)to the single one and now enjoy wid source code... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards *VENU* Technical Specialist Thirdware Solution Ltd,Chennai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] INSTALL_REFERRER not sent to custom receivers - New Market App
Hey I used to be able to track installs of apps by placing the INSTALL_REFERRER action in my manifest and pointing it to a custom receiver. However, it seems the newest version of the Android Market app has changed the way it handles the referrer string included in market URLs, this means I can no longer track installs. An issue was raised back in August but Google hasn't acknowledged it and it's not clear if this vital feature is going to be fixed. Does anyone know of a workaround that DOES NOT require extra permissions that'll enable tracking of installs? You can star the issue here: http://code.google.com/p/android/issues/detail?id=19247 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] Re: SMS interface and timestamps
i am new at this but i am sure what he is saying is A class representing a geographic location sensed at a particular time (a fix). A location consists of a latitude and longitude, a UTC timestamp. and optionally information on altitude, speed, and bearing. But what you are saying is that any transaction needs to have a time stamp so you have to come up with some way of keeping all transactions sync() which is remarkably challenging unless have one place issues the transaction and all the others work off of the timestamp on the originating transaction if each of the cellphones can generate a transaction then keeping everything sync() is an issue of concern that you need to look at very closely On Nov 1, 4:40 am, John Goche johngoch...@googlemail.com wrote: On Tue, Nov 1, 2011 at 8:37 AM, gjs garyjamessi...@gmail.com wrote: Hi, For (1) probably not, sms can be queued by the operator for quite a while if recipient phone is off. For (2) you can get an accurate GMT timestamp from the GPS Location, provided you have a current gps fix. What do you mean by current gps fix? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator ICS : add account
Thanks... But without talking the new calendar API. If you want add a contact or see calendar application you must create an account. Ok, so i'm going to create an AVD using Google API. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How Will I dwevelop Bar code scanner for android ?
http://code.google.com/p/zxing/ On Tue, Nov 1, 2011 at 5:24 AM, venugopal reddy venugopal.re...@tspl.com wrote: Hi friends, How Will I dwevelop Bar code scanner for android ? Please help me ... Give me the specifications also( i means which jars are reuires like that) 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How Will I dwevelop Bar code scanner for android ?
You should have a barcode decoding engine to decode barcode from a image frame. Camera API provides frames, which needs to be processed for decoding barcoes. You can use Zxing or RedLaser barcode scanners http://code.google.com/p/zxing/ http://www.redlaser.com/ thanks Chenna On Nov 1, 2:24 pm, venugopal reddy venugopal.re...@tspl.com wrote: Hi friends, How Will I dwevelop Bar code scanner for android ? Please help me ... Give me the specifications also( i means which jars are reuires like that) 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] Re: Protect AppWidget(RemoteViews) from other applications
Did you try it? does it actually work ? Yes, I tried it and unfortunately it worked. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Receiving from two different instances of AlarmManager
On Tue, Nov 1, 2011 at 2:24 AM, Belvedere Computer Services fa829...@gmail.com wrote: normally in Java ~ which I am reading is the Primary Programming Linguistic for this Android Platform one would run that with Timer and TimerTask - the Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running. Not necessarily. AlarmManager is also used for periodic events, particularly ones where the work is being done by a service that can go away between bits of work (e.g., IntentService). Timer/TimerTask requires you to keep a service in memory 24x7, which is an anti-pattern. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Maps to charge for API usage
Here is the link : http://www.bbc.co.uk/news/business-15523050 I'm wondering if this new policy will impact Android applications that use the MapView. The FAQ makes references to javascript and flash, but nothing about Android. http://code.google.com/apis/maps/faq.html#tos_pricing -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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't download Support Package
On Tue, Nov 1, 2011 at 12:19 AM, Bishan tvbis...@gmail.com wrote: I have followed instructions to Download the Support Package in http://developer.android.com/sdk/compatibility-library.html. but i can't see Support Package in my Android SDK and AVD Manager. there is only Android SDK Tools, revision 15 and Android SDK platform-tools, revision 9 when i expand the Android Repository. what is the issue ? You have not upgraded to the new tools packages. how can i download the Support Package ? Upgrade to the new tools packages. Then, you will be able to download the Android Support package, the Ice Cream Sandwich (Android 4.0) SDK, and more. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Protect AppWidget(RemoteViews) from other applications
On Tue, Nov 1, 2011 at 6:39 AM, teracc websec02@gmail.com wrote: Did you try it? does it actually work ? Yes, I tried it and unfortunately it worked. While they can read your layout resource, I would not expect them to be able to actually update the app widget instance on the home screen, since they are not your package. If you have sample code demonstrating how Application A can replace the app widget's RemoteViews for Application B and actually update the screen, please send it directly to me and/or to secur...@android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 4.0 Emma Code Coverage
I used the emma to generate the code coverage on the android phone. Everything goes well when I used the android sdk 3.0 and before. However, after I update the sdk to 4.0, the report can't be generated by running ant coverage. I have update the build.xml before I run the command! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Game Development - Bluetooth Multi-player Functionality Question
On Fri, Oct 28, 2011 at 7:47 PM, Tom Yu xuejianyuandr...@gmail.com wrote: Hey everyone. My name is Tom Yu. First time poster and hopefully it won't be my last. I got into learning how to develop android games through the book Beginning Android Books by Mario Zechner. With what I learned, I developed my own game of the jumping on platform genre (similar to doodle jump). I want my game to include multi-player bluetooth functionality such that both players can play co-operatively or competitively. They can jump together to reach the princess at the top, or they can destroy each other. My ability in bluetooth programming is lacking. I did take a look at Bluetooth Chat Example but I don't think that that will be enough given my current programming skill level. Could someone help me understand and design the logic of how this should be implemented? I want the scenario to play out like this. 1) Two people turn my game on 2) They navigate the menu and connect via bluetooth 3) Both player's screen should contain each player's character. 4) Player A would act as the server, updating game logic, and Player B would act as the client, who simply send whatever input is received to Player A. I'm trying to understand at a high level, how to design this in java for android. I appreciate any help. Hey Tom, I wrote a BT networked game a while ago. What I did was I took most of the connection set-up logic from the BT Chat Example and I think this might a reasonable thing for you to do, too. Once the connection is set up, you have a fairly abstract communication channel to the other side and from that point on, there isn't really much BT-specific or Android-specific there - if anything at all. You can use any tutorial and any information related to game network programming, regardless of whether it mentions Android/BT or not. For instance, my game was an action one so I implemented a lot of the same client-side prediction stuff Unreal and others use on PC's and wired LAN's and pretty much anywhere else. In fact, BT characteristics wrt game programming are rather similar to LAN - fairly low latencies, low to zero drop rate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Update Cursor Adapter on single row
Hello, I render an UI rely on Cursor entries, meanwhile is can happen that an update of an row get updated in my ContentProvider, so i use getContext().getContentResolver().notifyChange(uri, null); to inform the CursorAdapter, but it forces the Adapter to reload everything and the UI beginns to stutter. Is there any good practice doing that ? best regards, Jens -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android Game Development - Bluetooth Multi-player Functionality Question
Hi, Possibly worth mentioning, your game play outlines two players but you mention multi-player as well. With Android it is possible to support more players over BT maybe 4 in client server, possibly a few more in a daisy chain BT network. (Do a google search for examples.) As mentioned try to keep the BT isolated, you could readily do the same over wifi. Also keep the client and server logic separate. Whilst Player A (or B) might run the server updating overall game logic, it should also be an ordinary client communicating with the local server. Perhaps as an implementation detail, the communications and server might run in an Android Service and the clients as Android Application. Regards On Nov 1, 9:53 pm, Latimerius l4t1m3r...@googlemail.com wrote: On Fri, Oct 28, 2011 at 7:47 PM, Tom Yu xuejianyuandr...@gmail.com wrote: Hey everyone. My name is Tom Yu. First time poster and hopefully it won't be my last. I got into learning how to develop android games through the book Beginning Android Books by Mario Zechner. With what I learned, I developed my own game of the jumping on platform genre (similar to doodle jump). I want my game to include multi-player bluetooth functionality such that both players can play co-operatively or competitively. They can jump together to reach the princess at the top, or they can destroy each other. My ability in bluetooth programming is lacking. I did take a look at Bluetooth Chat Example but I don't think that that will be enough given my current programming skill level. Could someone help me understand and design the logic of how this should be implemented? I want the scenario to play out like this. 1) Two people turn my game on 2) They navigate the menu and connect via bluetooth 3) Both player's screen should contain each player's character. 4) Player A would act as the server, updating game logic, and Player B would act as the client, who simply send whatever input is received to Player A. I'm trying to understand at a high level, how to design this in java for android. I appreciate any help. Hey Tom, I wrote a BT networked game a while ago. What I did was I took most of the connection set-up logic from the BT Chat Example and I think this might a reasonable thing for you to do, too. Once the connection is set up, you have a fairly abstract communication channel to the other side and from that point on, there isn't really much BT-specific or Android-specific there - if anything at all. You can use any tutorial and any information related to game network programming, regardless of whether it mentions Android/BT or not. For instance, my game was an action one so I implemented a lot of the same client-side prediction stuff Unreal and others use on PC's and wired LAN's and pretty much anywhere else. In fact, BT characteristics wrt game programming are rather similar to LAN - fairly low latencies, low to zero drop rate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TextView -- text transformation
On Mon, Oct 31, 2011 at 11:08 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Maybe you misunderstood me. I am looking for a way for the TextView to draw the text differently based on my markups. Ohhh - Yeah, my idea won't work then =P . And I haven't tried anything like that so IDK. - 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] ExpandableListView expand/collapse question
On Tue, Nov 1, 2011 at 3:35 AM, Ash anan...@gmail.com wrote: Can you please advice if there is other way of displaying a timer on the group view or the way I am currently doing it is acceptable? Seems like it should work - if not, not sure what to tell you. Haven't modified ExpandableListViews much. - 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
On Mon, Oct 31, 2011 at 11:16 PM, Divyata Panchal panchal.divyat...@gmail.com wrote: is it possible to change default contact manager app made by google..? Yes, it is possible. - 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: TextView -- text transformation
Make it a custom webview and use html? There's also spannable which lets you define things like clickable links in text. I believe it also supports html formatting. On Tue, Nov 1, 2011 at 5:13 AM, TreKing treking...@gmail.com wrote: On Mon, Oct 31, 2011 at 11:08 PM, Zsolt Vasvari zvasv...@gmail.comwrote: Maybe you misunderstood me. I am looking for a way for the TextView to draw the text differently based on my markups. Ohhh - Yeah, my idea won't work then =P . And I haven't tried anything like that so IDK. - 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 -- ~ 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] Google Maps to charge for API usage
http://groups.google.com/group/android-discuss/browse_thread/thread/d31b93959ec20673/4bae1beebe67755c - 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] How do I implement bar code reader in android ..
On Tue, Nov 1, 2011 at 12:57 AM, venugopal reddy venugopal.re...@tspl.comwrote: How do I implement bar code reader in android .. Write the code for a bar code reader in android. =P Seriously, if you want a non-dumbass response, you need to ask a better question: http://catb.org/~esr/faqs/smart-questions.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] ExpandableListView expand/collapse question
notityDataSetChanged rebuilds the view list, so yes, that could cause UI events to be missed. As far as updating an {Expandable}ListView in a more efficient way - if you just need to refresh a few UI widgets - this can be done by: - Asking the list view for the currently visible range of item views: getFirstVisiblePosition / getLastVisiblePosition - Iterating over these positions, calling getChildView to get their views, remembering that child views are always numbered starting at 0, even if the view is scrolled down. - Reaching into the item views by calling childView.findViewById and pushing changes with textView.setText, etc. Don't forget also that a list view can be out of sync with its adapter (a layout is pending, but not yet performed), so to get a particular item view's data item, use a tag set inside get{Child|Group}View, and not the adapter's getChild / getGroup. -- Kostya 01.11.2011 12:35, Ash пишет: It is found that on several occasions the button click on the image button is ignored. Could this be related to the notifyDataSetChanged being called every second? If I stop my timer then button clicks are more responsive. Can you please advice if there is other way of displaying a timer on the group view or the way I am currently doing it is acceptable? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: TextView -- text transformation
Or perhaps try something out with this: http://developer.android.com/reference/android/text/style/MetricAffectingSpan.html The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class Or this: http://developer.android.com/reference/android/text/style/ReplacementSpan.html -- Kostya 01.11.2011 16:17, Miguel Morales ?: Make it a custom webview and use html? There's also spannable which lets you define things like clickable links in text. I believe it also supports html formatting. On Tue, Nov 1, 2011 at 5:13 AM, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Mon, Oct 31, 2011 at 11:08 PM, Zsolt Vasvari zvasv...@gmail.com mailto:zvasv...@gmail.com wrote: Maybe you misunderstood me. I am looking for a way for the TextView to draw the text differently based on my markups. Ohhh - Yeah, my idea won't work then =P . And I haven't tried anything like that so IDK. - 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 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 -- ~ 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 -- 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] ContentProviderResult[] delete fail or success
When using contentResolver.delete(uri, null, null) then determining success can be done by looking at the return value of how many rows were affected. However, deleting a contact through ContentProviderOperation and applyBatch returns ContentProviderResult[] How can you identify whether the delete operation was successful or not from the ContentProviderResult object? ArrayListContentProviderOperation ops = new ArrayListContentProviderOperation(); ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI) .withSelection(Data._ID + =?, new String[] {String.valueOf(dataId)}) .build()); ContentProviderResult[] results = getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); if (results != null results[0] != null) { // How to extract whether success or failure from results[0] ? } In my testing: (1a) I call the delete method and results.length == 1 (1b) I have a look and the contact is indeed deleted in phone Contact (2) I call the delete method again even though the targeted contact is already deleted, but it still returns results.length == 1. And no exception is thrown... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] EditText key press
Is there any way to detect the KeyDown / KeyUp events of the soft keyboard in an EditText? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 key press
Apparently the onKeyListener doesn't work for soft keyboards, and I cannot use a TextWatcher as I need the specific KEY_UP and KEY_DOWN events. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: EditText key press
I'll be surprised if this is possible. For starters, it might not be a keyboard and therefore may not have the concept of keys, such as: https://market.android.com/details?id=com.access_company.graffitihl=en On Tue, Nov 1, 2011 at 9:16 AM, Aki arnab...@gmail.com wrote: Apparently the onKeyListener doesn't work for soft keyboards, and I cannot use a TextWatcher as I need the specific KEY_UP and KEY_DOWN events. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Analytics SDK?
+1 for Flurry. The device and carrier info is interesting (I won't commit to useful as I couldn't back that up with much conviction ;) ). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: EditText key press
Thats sad. Actually I need to detect Key combos. I figured detecting the key press events was the best way to proceed. Can you suggest an alternative? Some way using which I will be able to detect key combinations? I know key combinations are not an Android convention. Still, I would like to try something out. Any help would be great :) - Aki PS : Big fan of your books. Keep up the good work! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: EditText key press
Surprisingly I am able to detect the key press event of the ENTER key of the soft keyboard, but not of the character keys. That doesn't seem like very consistent behaviour, if they don't work, none of them should work. Whats is special about the ENTER key? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: EditText key press
On Tue, Nov 1, 2011 at 9:33 AM, Aki arnab...@gmail.com wrote: Thats sad. Actually I need to detect Key combos. I figured detecting the key press events was the best way to proceed. Can you suggest an alternative? Some way using which I will be able to detect key combinations? I would not recommend using key combinations. I know key combinations are not an Android convention. Correct. Beyond that, there's no native support for the concept. KeyEvents can have a meta key (e.g., ALT) mixed in with a regular key, but that's it. Still, I would like to try something out. Any help would be great :) You're welcome to subclass EditText, implement onKeyDown() and try stuff out, but I think you're going to have problems. For example, let's say you wanted to do something when the user pressed A and B at the same time. You're going to have two KeyEvents, one for A and one for B. Let's say A arrives first in onKeyDown(). You have no way to know if B will be forthcoming or not. If you chain to the superclass for A, you will wind up with an A in the EditText. If the user then presses B, not only will you need to do whatever key combination logic you want, but you will also have to get rid of the A. Also, bear in mind that device manufacturers tend to tinker with EditText more than other widgets. Context menus, for example, are unreliable, as some device manufacturers appear to have implemented their own long-click handler and are bypassing the context menu system. It's entirely possible device manufacturers are playing games with keypresses as well, in ways that might foul up whatever sort of key combination support you manage to work out. Also also, bear in mind that not all devices are multitouch, and the emulator is not multitouch. PS : Big fan of your books. Keep up the good work! Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: EditText key press
On Tue, Nov 1, 2011 at 9:41 AM, Aki arnab...@gmail.com wrote: Surprisingly I am able to detect the key press event of the ENTER key of the soft keyboard, but not of the character keys. That doesn't seem like very consistent behaviour, if they don't work, none of them should work. Whats is special about the ENTER key? Particularly on tablets, it triggers the action, at least on single-line EditTexts. Perhaps that is why they treat it a bit differently. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: EditText key press
Thank you for the elaborate answer Mark. I will try out extending EditText. You see, I came up with the idea of key combinations because I needed something corresponding to a shortcut, without taking up screen space. I am unwilling to use long clicks or gestures as they take too long to execute. If its a shortcut the user should be able to do it quickly. So, how can I implement a shortcut without key combinations? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Starting Google Analytics session when application goes to background
I am using Google Analytics in my application. I would like the tracking session to be reset when the application goes to the background. I would like to do it without having to maintain state of each activity (my application has quite many Activities and I would rather not update the application state in each Activities onCreate / onPause / OnDestroy). Is this possible? Moreover, I would like to differentiate between the application going to the background due to say a phone call or alarm to when the user actually presses the home or back button to exit the application. Any help would be appreciated. Thanks in advance. - Aki -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: EditText key press
On Tue, Nov 1, 2011 at 9:49 AM, Aki arnab...@gmail.com wrote: Thank you for the elaborate answer Mark. I will try out extending EditText. You see, I came up with the idea of key combinations because I needed something corresponding to a shortcut, without taking up screen space. I have no idea what a shortcut is. If you don't put it on the screen, many users won't find it. This is why the options menu is now in the action bar and why context menus are waning in popularity. Even gestures are troublesome if there's no visual cue to suggest that some sort of swipe is possible and will have an effect. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] to move an image view along a bezier curve
I have drawn a bezier curve and I want my imageview which is a picture of a ball to follow the path traced by the curve and eventually fall to the ground.How do I do that? Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: EditText key press
I wouldn't worry about users finding it, my target users will already know them. Anyway, I'll give the custom EditText a shot, otherwise I'll have to figure something else out. Thanks for the help :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Analytics SDK?
+1 for Flurry :D On Tue, Nov 1, 2011 at 11:24 AM, Oli Wright oli.wri...@gmail.com wrote: +1 for Flurry. The device and carrier info is interesting (I won't commit to useful as I couldn't back that up with much conviction ;) ). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TextView -- text transformation
Ok, thanks. Will check it out. On Nov 1, 8:31 pm, Kostya Vasilyev kmans...@gmail.com wrote: Or perhaps try something out with this: http://developer.android.com/reference/android/text/style/MetricAffec... The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class Or this: http://developer.android.com/reference/android/text/style/Replacement... -- Kostya 01.11.2011 16:17, Miguel Morales ?: Make it a custom webview and use html? There's also spannable which lets you define things like clickable links in text. I believe it also supports html formatting. On Tue, Nov 1, 2011 at 5:13 AM, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Mon, Oct 31, 2011 at 11:08 PM, Zsolt Vasvari zvasv...@gmail.com mailto:zvasv...@gmail.com wrote: Maybe you misunderstood me. I am looking for a way for the TextView to draw the text differently based on my markups. Ohhh - Yeah, my idea won't work then =P . And I haven't tried anything like that so IDK. ----- 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 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 -- ~ 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 -- Kostya Vasilyev- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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:change backgroudn
Hi i have around 14 images if i want change keep on image how to do for each activity . like i have 10 screen for each how to change the images. please tell me any one .help required -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SDK 4, R15, where is the navigation button?
Bumping the question until I'll get an answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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:change backgroudn
need more explanation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator ICS : add account
Let me know if you are successful at actually adding a Google Account and getting it to work with either the Calendar or People apps. I have been unsuccessful. On Nov 1, 6:25 pm, arnouf arnaud.far...@gmail.com wrote: Thanks... But without talking the new calendar API. If you want add a contact or see calendar application you must create an account. Ok, so i'm going to create an AVD using Google API. 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] ListView + EditText
I have a ListView which displays rows which can have a variety of controls. If the row contains TextViews, ImageViews, and/or Buttons, everything works as expected. However, if I add a EditText control to a row, then I no longer seem to be able to select a row (touching outside of the EditText control, of course). Note that if I have a button on the row, it still works, but if I touch the row itself, onItemClick never fires. Is it not possible to have EditText controls on rows of a ListView? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] re:change backgroudn
Hi i have mainactivity in and i have 10 actvity screens if each screen navigating in the activity screen : like right to left and left to right needs to change the backgroud images how can i change. those images are stored and fixed.default one image i need to show after that user by clicking image can be change On Tue, Nov 1, 2011 at 7:47 PM, Ratheesh Valamchuzhy android...@gmail.com wrote: need more explanation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: \n Does NOT work ?
I'm looking at it in Windows system. On Oct 28, 6:16 pm, Studio LFP studio@gmail.com wrote: \n works if you are on a Unix based system. If you are using a Windows (DOS) based system, you'll want to use \r\n. Are you looking at your file in an text editor like notepad on a Windows system? Steven Studio LFPhttp://www.studio-lfp.com On Friday, October 28, 2011 4:43:17 PM UTC-5, melis wrote: Hello, i'm using \n but it does not create a new line? Is there anyone knows why? mCurrentFile.write(z: +String.valueOf(value[a * 4 + 3])+ \n); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: \n Does NOT work ?
and \r\n worked by the way. Thank you so much. On Oct 28, 6:16 pm, Studio LFP studio@gmail.com wrote: \n works if you are on a Unix based system. If you are using a Windows (DOS) based system, you'll want to use \r\n. Are you looking at your file in an text editor like notepad on a Windows system? Steven Studio LFPhttp://www.studio-lfp.com On Friday, October 28, 2011 4:43:17 PM UTC-5, melis wrote: Hello, i'm using \n but it does not create a new line? Is there anyone knows why? mCurrentFile.write(z: +String.valueOf(value[a * 4 + 3])+ \n); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: \n Does NOT work ?
Hello, i tried your advise but i get this (z: 8.121132brtime: 2.862953E12) output. On Oct 30, 2:57 am, adithya holla adithyaho...@gmail.com wrote: try br -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I implement bar code reader in android ..
Try http://code.google.com/p/zxing/ Cheers Emanuel Moecklin 1gravity LLC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I implement bar code reader in android ..
we can call use the zxing bar code reader in our app ...try this package com.resource; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class BarcodeScan extends Activity implements OnClickListener { private Button Scan; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.barcodescan); Scan =(Button) findViewById(R.id.scan); Scan.setOnClickListener(this); } public void onClick(View v) { switch (v.getId()) { case R.id.scan: Intent intent = new Intent(com.google.zxing.client.android.SCAN); intent.putExtra(SCAN_MODE, QR_CODE_MODE); startActivityForResult(intent, 0); break; } }; public void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 0) { if (resultCode == RESULT_OK) { String contents = intent.getStringExtra(SCAN_RESULT); String format = intent.getStringExtra(SCAN_RESULT_FORMAT); // Handle successful scan } else if (resultCode == RESULT_CANCELED) { // Handle cancel } } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I implement bar code reader in android ..
I think that this one is a perfectly reasonable question, especially since all you have to do to read barcodes is fire an intent at the barcode reader. Google barcode reader intent android Kris On Tue, Nov 1, 2011 at 8:18 AM, TreKing treking...@gmail.com wrote: On Tue, Nov 1, 2011 at 12:57 AM, venugopal reddy venugopal.re...@tspl.com wrote: How do I implement bar code reader in android .. Write the code for a bar code reader in android. =P Seriously, if you want a non-dumbass response, you need to ask a better question: http://catb.org/~esr/faqs/smart-questions.html - 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] ARMy of one?
Is it true that almost all Android phones are powered by an ARM chip made by ARM company in England? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ARMy of one?
On 1 November 2011 15:23, bob b...@coolgroups.com wrote: Is it true that almost all Android phones are powered by an ARM chip made by ARM company in England? Why would you ask such question to this group and subject yourself to ridicule, rather than simply type your question into Google and have the instant answer? -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ARMy of one?
ARM doesn't make the chips. They design the IP cores for the chips, so their main investment is the chip design, not the chip itself. The chips are made by many many other companies. Kris On Tue, Nov 1, 2011 at 11:23 AM, bob b...@coolgroups.com wrote: Is it true that almost all Android phones are powered by an ARM chip made by ARM company in England? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Looking for beta testers having a device with gyroscope sensor
I have added a sensor search option to https://www.elusivestars.com. So now you can just type in gyro in in search and it will show you the devices available for your test. Developers can signup regardless of location, for Members we are currently limited to US. Pete On Oct 29, 12:56 am, josean1968 josean1...@gmail.com wrote: Hello, I am the developer of this application:https://market.android.com/details?id=com.netpatia.android.filteredco... The application looks just like another compass, but it uses readings coming from the gyroscope sensor (if present) to improve responsiveness and stability. The problem is that I currently have access to only one device having a gyroscope: an LG Optimus Black (LG-P790), and the gyroscope sensor implementation on such device seems to behave different than the rest of devices. So, the result is that after having done a lot of work implementing complex maths (like Kalman filters) I have a published application that only works as expected on a very few devices. I have a new version, with the necessary modifications so it should work on any device. I would like to confirm that it works properly but before publishing again something that does not behave as expected. So, please if any of you is having a device with gyroscope sensor (*) I would be very grateful if you can test the application and report if it is working as it should. (*) So far, I know about these devices having gyroscope sensor: Samsung / Google Nexus S Samsung I9100 Galaxy S II LG Optimus (all devices belonging to that family) SonyEricsson Xperia play HTC Sensation Comments and feedback are welcome! Thanks a lot in advance, José Antonio Pérez http://netpatia.blogspot.com SteadyCompass.apk 433KViewDownload -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ARMy of one?
This shows how the arm specification is used inside the System on a Chip (SoC) designed by qualcomm. It also shows how these SoCs are in smartphones, and tablets. http://en.wikipedia.org/wiki/Snapdragon_(system_on_chip) From the page it says, The Snapdragon application processor core, dubbed Scorpion, is Qualcomm's own design. I believe that means it is arm compatible instruciton set, but not an arm licensed cpu core. On Tue, Nov 1, 2011 at 11:30 AM, Kristopher Micinski krismicin...@gmail.com wrote: ARM doesn't make the chips. They design the IP cores for the chips, so their main investment is the chip design, not the chip itself. The chips are made by many many other companies. Kris On Tue, Nov 1, 2011 at 11:23 AM, bob b...@coolgroups.com wrote: Is it true that almost all Android phones are powered by an ARM chip made by ARM company in England? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- John F. Davis 独树一帜 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ListView + EditText
I think it's possible. But I have never tried though. But what I have learnt is that ListView aren't the best way to handle such an UI. This link would perhaps give you some more insights. http://groups.google.com/group/android-developers/browse_thread/thread/50f0fc185da8fe4d On Nov 1, 7:23 pm, John Gaby jg...@gabysoft.com wrote: I have a ListView which displays rows which can have a variety of controls. If the row contains TextViews, ImageViews, and/or Buttons, everything works as expected. However, if I add a EditText control to a row, then I no longer seem to be able to select a row (touching outside of the EditText control, of course). Note that if I have a button on the row, it still works, but if I touch the row itself, onItemClick never fires. Is it not possible to have EditText controls on rows of a ListView? 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] Hide bottom status bar in Android 3.2 Honeycomb!
Hello guys, If this subject was already discussed somewhere in the forums with the solution without ROOTing the device, I would like to apologize ahead of time... As we know that the Bottom Status Bar in the Android Honeycomb takes lots of real-estate on the Tablet screen, since this is the case and one of my applications that I am creating needs that space, is there someway to hide it without ROOTING the device? I research a lot on this subject and I haven't found any solutions that I am looking for and at the same time I don't understand why there isn't way to do that now (hide it, shrink it, move it, whatever) ... What I understand is that if some people will remove that completely, the users will be stuck in that program and the only way to get out is to restart the device...At the same time I would like to argue that the developer should know better... As fun ROOTING the system sounds, I again would like stay away from that The following link contains some in depth discussion on this subject, since March 10th, 2011... In fact some people did an in depth analysis on this subject with the potential solutions... Does anyone know if this will be an option in the near future without ROOTING the device? If so, does anyone know how of the near future that is going to be, because I am really on a tight deadline here? http://code.google.com/p/android/issues/detail?id=15408 Please let me know if have any answers to my questions and I would like to thank you ahead of time.. Thank you and Best Regards, Sebo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator ICS : add account
Well, I booted up the Google API emulator fine. But, in the calendar app, it only has the option of adding an exchange account. I can't see anywhere where it asks for a Google account. On Nov 1, 7:18 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Let me know if you are successful at actually adding a Google Account and getting it to work with either the Calendar or People apps. I have been unsuccessful. On Nov 1, 6:25 pm, arnouf arnaud.far...@gmail.com wrote: Thanks... But without talking the new calendar API. If you want add a contact or see calendar application you must create an account. Ok, so i'm going to create an AVD using Google API. 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] Android 4: Save for Offline Reading
Is there a way to block Save for Offline Reading in Android 4? It seems this feature would be need for mobile web developers looking to at least attempt to protect sensitive and private data(i.e. Financial, Healthcare, Personal,) Is there a meta tag or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 4: Save for Offline Reading
Is there a way to block Save for Offline Reading in Android 4? It seems this feature would be need for mobile web developers looking to at least attempt to protect sensitive and private data(i.e. Financial, Healthcare, Personal,) Is there a meta tag or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Hide bottom status bar in Android 3.2 Honeycomb!
Hmmm, Quite an issue. Can't help you more other than starring the issue :) BTW, frankly speaking, the location of the status bar is a bit weird, as far as usability is concerned, especially the Back button. Hope, that it gets fixed soon enough. On Nov 1, 9:24 pm, Sebastian Tomaszewski stomasze101...@gmail.com wrote: Hello guys, If this subject was already discussed somewhere in the forums with the solution without ROOTing the device, I would like to apologize ahead of time... As we know that the Bottom Status Bar in the Android Honeycomb takes lots of real-estate on the Tablet screen, since this is the case and one of my applications that I am creating needs that space, is there someway to hide it without ROOTING the device? I research a lot on this subject and I haven't found any solutions that I am looking for and at the same time I don't understand why there isn't way to do that now (hide it, shrink it, move it, whatever) ... What I understand is that if some people will remove that completely, the users will be stuck in that program and the only way to get out is to restart the device...At the same time I would like to argue that the developer should know better... As fun ROOTING the system sounds, I again would like stay away from that The following link contains some in depth discussion on this subject, since March 10th, 2011... In fact some people did an in depth analysis on this subject with the potential solutions... Does anyone know if this will be an option in the near future without ROOTING the device? If so, does anyone know how of the near future that is going to be, because I am really on a tight deadline here?http://code.google.com/p/android/issues/detail?id=15408 Please let me know if have any answers to my questions and I would like to thank you ahead of time.. Thank you and Best Regards, Sebo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 4: Save for Offline Reading
Wait... When I go to my bank statement on my browser, I can click save on my web browser... Does this mean my browser is flawed? Kris On Tue, Nov 1, 2011 at 12:32 PM, kc3000 kendrick_wil...@hotmail.com wrote: Is there a way to block Save for Offline Reading in Android 4? It seems this feature would be need for mobile web developers looking to at least attempt to protect sensitive and private data(i.e. Financial, Healthcare, Personal,) Is there a meta tag or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Implementing drag and drop feature
Drag drop inside a ListView still seems to be very difficult with HC or ICS. I haven't seen any examples that do this yet. But yeah, drag from one view and drop on another is pretty easy and simple. On Nov 1, 7:12 am, TreKing treking...@gmail.com wrote: On Fri, Oct 28, 2011 at 12:20 PM, wBishop walterb...@gmail.com wrote: What's my best option, listviews? linearlayouts? Any hints to the drag and drop functionality? http://developer.android.com/search.html#q=dragand dropt=0 - 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: Implementing drag and drop feature
On Tue, Nov 1, 2011 at 12:48 PM, Kumar Bibek coomar@gmail.com wrote: Drag drop inside a ListView still seems to be very difficult with HC or ICS. I haven't seen any examples that do this yet. https://github.com/commonsguy/cwac-touchlist -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Implementing drag and drop feature
Oops, Thanks Mark. I had missed that one. On Tue, Nov 1, 2011 at 10:20 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Nov 1, 2011 at 12:48 PM, Kumar Bibek coomar@gmail.com wrote: Drag drop inside a ListView still seems to be very difficult with HC or ICS. I haven't seen any examples that do this yet. https://github.com/commonsguy/cwac-touchlist -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Account suspended
Well, if it was a DMCA, I think the law states you have the right to know who filed it. On Oct 28, 9:10 am, Kristopher Micinski krismicin...@gmail.com wrote: That's for a chrome extension... so I'd say... no. Kris On Fri, Oct 28, 2011 at 11:56 AM, JackN j...@jacknorth.com wrote: You? http://www.chillingeffects.org/dmca512c/notice.cgi?NoticeID=131464 On Oct 26, 5:27 am, Sy simonaplat...@googlemail.com wrote: I received an email yesterday informing me that my developer account has been suspended. Your Android Market Publisher account has been suspended due to multiple suspension violations of our terms of service. I wasn't told what exactly I'd done wrong or which application has broken the rules. I've tried several times to get a response from Google so I can appeal or find out what I've done wrong. I did get a response back: You'll find plenty of recently updated information, plus a link to our contact form athttp://market.android.com/support/; However there is no direct link to a form and I'm not sure how or what I need to do to get assistance. Now today it appears the checkout is also missing. I really enjoy writing Android applications and would like to continue to do so, how can I get help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hide bottom status bar in Android 3.2 Honeycomb!
On Tue, Nov 1, 2011 at 12:24 PM, Sebastian Tomaszewski stomasze101...@gmail.com wrote: As we know that the Bottom Status Bar in the Android Honeycomb takes lots of real-estate on the Tablet screen, since this is the case and one of my applications that I am creating needs that space, is there someway to hide it without ROOTING the device? No. I research a lot on this subject and I haven't found any solutions that I am looking for and at the same time I don't understand why there isn't way to do that now (hide it, shrink it, move it, whatever) ... Because users need to be able to control their devices, and the control buttons on tablets are in the system bar. What I understand is that if some people will remove that completely, the users will be stuck in that program and the only way to get out is to restart the device...At the same time I would like to argue that the developer should know better... Malware authors say the same thing. Does anyone know if this will be an option in the near future without ROOTING the device? I will be stunned if it is ever an option for developers to attack users this way. Users might have options for getting rid of the bar, and the OS (on its own or via modded ROMs) might switch to some other model where the bar is only sporadically visible. If so, does anyone know how of the near future that is going to be, because I am really on a tight deadline here? Even if Android 4.1/5.0/whatever the J release is were to add this feature, it will be late 2013 before a preponderance of devices runs that version of Android or higher. That would not seem to fit with any likely definition of tight deadline. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Implementing drag and drop feature
On Tue, Nov 1, 2011 at 12:57 PM, Kumar Bibek coomar@gmail.com wrote: Oops, Thanks Mark. I had missed that one. It's only so-so -- it's code I refactored out of the old AOSP Music app, and hence I don't fully grok it. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android 4: Save for Offline Reading
Can you name any such meta tag or something that blocks File|Save As on any desktop browser? On Tue, Nov 1, 2011 at 12:32 PM, kc3000 kendrick_wil...@hotmail.com wrote: Is there a way to block Save for Offline Reading in Android 4? It seems this feature would be need for mobile web developers looking to at least attempt to protect sensitive and private data(i.e. Financial, Healthcare, Personal,) Is there a meta tag or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Implementing drag and drop feature
It works. I might use it for my app. :) On Tue, Nov 1, 2011 at 10:29 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Nov 1, 2011 at 12:57 PM, Kumar Bibek coomar@gmail.com wrote: Oops, Thanks Mark. I had missed that one. It's only so-so -- it's code I refactored out of the old AOSP Music app, and hence I don't fully grok it. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hide bottom status bar in Android 3.2 Honeycomb!
SIGHT... THank you [?]... On Tue, Nov 1, 2011 at 9:59 AM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Nov 1, 2011 at 12:24 PM, Sebastian Tomaszewski stomasze101...@gmail.com wrote: As we know that the Bottom Status Bar in the Android Honeycomb takes lots of real-estate on the Tablet screen, since this is the case and one of my applications that I am creating needs that space, is there someway to hide it without ROOTING the device? No. I research a lot on this subject and I haven't found any solutions that I am looking for and at the same time I don't understand why there isn't way to do that now (hide it, shrink it, move it, whatever) ... Because users need to be able to control their devices, and the control buttons on tablets are in the system bar. What I understand is that if some people will remove that completely, the users will be stuck in that program and the only way to get out is to restart the device...At the same time I would like to argue that the developer should know better... Malware authors say the same thing. Does anyone know if this will be an option in the near future without ROOTING the device? I will be stunned if it is ever an option for developers to attack users this way. Users might have options for getting rid of the bar, and the OS (on its own or via modded ROMs) might switch to some other model where the bar is only sporadically visible. If so, does anyone know how of the near future that is going to be, because I am really on a tight deadline here? Even if Android 4.1/5.0/whatever the J release is were to add this feature, it will be late 2013 before a preponderance of devices runs that version of Android or higher. That would not seem to fit with any likely definition of tight deadline. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en328.png
[android-developers] fragment Tag and onCreateView
Attempting to learn about fragments, and studying the docs and some samples, I am not really clear as to what the fragment tag represents in an XML file and how it relates to the fragment container view that is supposed to be passed to onCreateView. Mainly, in the sample that I'm using, which defines the fragment in the XML file using the syntax fragment android:name=... android:id=..., when onCreateView in the fragment is called, the 2nd argument (supposed to be the containing ViewGroup) is always null. What's up with that? Shouldn't it be the LinearLayout or whatever contains this fragment in the XML code? In fact, the entire declaration of fragment confuses me, since I don't think that it is really a view by itself, so why does it have width and height dimensions? After all, if you dynamically add a fragment to a ViewGroup, it's the view returned by onCreateView that gets displayed, so why these dimensions? Same thing with the fragment ID; is this the ID of the view created by the fragment, or of its container, or something else? I must be missing a concept here, but maybe I just have to start working on my own code conversion to fragments and see what happens... Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TCP Socket communication between C# and Android
Hi Everyone, I have a .net c# application acting as a server listening on a particular port, and an Android app that I'm building acting as the client which will connect and send / receive tcp messages to / from the .net server application. I have it working at the moment but am faced with a challenge that I'm hoping has a better solution than the one I've implemented. My Android app connects to the .net server fine, upon successfully connecting the .net application sends back a tcp message - my Android app receives this message but it won't continue code execution whilst it's reading the connected stream unless I close the network stream in the .net server application. Below is the bit of code which handles reading / writing to the network stream: out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socketObj.getOutputStream())), true); in = new BufferedReader( new InputStreamReader( socketObj.getInputStream())); out.printLn(my command); String text = ; String responseStr = ; while ((text = in.readLine()) != null) { responseStr += text; } So the while loop above continues to execute until I close the network stream in the .net app. Is there some way of specifying to the Android / Java network stream that the data being sent has ended so it can break out that while loop and continue code execution apart from closing down the network stream on the .net side? Thanks for the help. T -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TCP Socket communication between C# and Android
You need a separate thread for reading. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 1, 2011 at 11:09 PM, Tonez apires...@gmail.com wrote: Hi Everyone, I have a .net c# application acting as a server listening on a particular port, and an Android app that I'm building acting as the client which will connect and send / receive tcp messages to / from the .net server application. I have it working at the moment but am faced with a challenge that I'm hoping has a better solution than the one I've implemented. My Android app connects to the .net server fine, upon successfully connecting the .net application sends back a tcp message - my Android app receives this message but it won't continue code execution whilst it's reading the connected stream unless I close the network stream in the .net server application. Below is the bit of code which handles reading / writing to the network stream: out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socketObj.getOutputStream())), true); in = new BufferedReader( new InputStreamReader( socketObj.getInputStream())); out.printLn(my command); String text = ; String responseStr = ; while ((text = in.readLine()) != null) { responseStr += text; } So the while loop above continues to execute until I close the network stream in the .net app. Is there some way of specifying to the Android / Java network stream that the data being sent has ended so it can break out that while loop and continue code execution apart from closing down the network stream on the .net side? Thanks for the help. T -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best way to communicate between two applications (on the same device)?
Hi What is the best way for communicating between two applications? I want to create a central management app for my suite of applications so the one app would request data from the other much like how applications can query the market app for licence information using androids Licencing verification library. 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] Best way to communicate between two applications (on the same device)?
You can fire intents between the two. Or you can look into Messenger. Or you can read up on AIDL, which is the most flexible but also hardcore solution. How much do the apps have to communicate? A little? Or a lot? This question determines which one of these is necessary. Kris On Tue, Nov 1, 2011 at 1:40 PM, Boozel boozelcl...@gmail.com wrote: Hi What is the best way for communicating between two applications? I want to create a central management app for my suite of applications so the one app would request data from the other much like how applications can query the market app for licence information using androids Licencing verification library. 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
[android-developers] android object deep clone library
Hi Is there any object deep clone library for android which works fine. Take care. Regards Goutom 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] How start youtube app with search terms
Unfortunatlly its its not opening default youtube app but ask for action and outube app is not offered. If I call Intent.ACTION_VIEW with url what lead direct to any video YT app is started. r^ On 1 November 2011 03:27, TreKing treking...@gmail.com wrote: On Mon, Oct 31, 2011 at 12:52 PM, Robert Slama robsl...@gmail.com wrote: I'm looking for solution how I can start youtube activity with search terms. Can someone help me with that? Or ist possible start yt activity with that or not? Try launching: http://www.youtube.com/results?search_query=your+search+termaq=f - 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] Re: CPU leak android application
It's a little more complicated than that. 2% of CPU usage in the background with the CPU running at normal speed is a *lot*. And really, an app in the background shouldn't be using any CPU. If it is sitting there blocked waiting for something to do, it won't use any CPU. The only reason it would use CPU is because it is waking up for some reason to do something. Another wrinkle is that Android devices aggressively scale the CPU, so 2% of an essentially idle CPU may be a lot smaller because the CPU is running at that point at a much lower frequency. At any rate, my suggestion for debugging this is to run the profiler on your app when it is in the background and look at what it is doing during that time. On Mon, Oct 31, 2011 at 11:08 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Tue, Nov 1, 2011 at 2:01 AM, imran ali imran...@gmail.com wrote: Thanks Kris, yes, i am not using any thing either service or background thread computation, but still it has been consuming approx 2% CPU, i have been looking it through another application Android assistant. is there any way to know running thread of application from eclipse? so that i can understand that, which thread is running and using CPU. Regards imran ali Imran, Don't worry about this at all. 2% background usage is completely normal and fine. Your app is running always running some code: because your app is actually an instance of a vm which is processing messages on a looper. So even if your app isn't doing intensive processing, it's constantly checking to see if it got new messages, doing gc, and related background things. The same goes for any desktop application. Open up your task manager or run top on a linux box: you'll see tons of processes using ~1-2% of the cpu time, it's completely normal application behavior. 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: search hardware button
The home button is not something applications ever see. The back button is always required to be available on the device (even if that is done through an on-screen affordance). The search button has always been and is still one of many optional extra keys. The menu key until 3.0 was a required key. Starting with 3.0 the platform has been moving to make this an optional key, hence the need for the API to find out about it. On Mon, Oct 31, 2011 at 9:09 PM, albnok alb...@gmail.com wrote: Interestingly, Android SDK 14/version 4.0 introduced: http://developer.android.com/reference/android/view/ViewConfiguration.html#hasPermanentMenuKey%28%29 I discovered this with a leaked Google+ 2.0 app that would crash on loading Chord with a Class. However, the Home, Back and Search buttons don't get such APIs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Starting Google Analytics session when application goes to background
On Tue, Nov 1, 2011 at 8:57 AM, Aki arnab...@gmail.com wrote: I am using Google Analytics in my application. GA is not part of the SDK, so you're going to be hard-pressed to get a good answer here. Try the GA documentation and see if there is a forum or user group. I'll try anyway. I would like the tracking session to be reset when the application goes to the background. You mean you want to call stop on the tracker? Why? I would like to do it without having to maintain state of each activity (my application has quite many Activities and I would rather not update the application state in each Activities onCreate / onPause / OnDestroy). Is this possible? What state do you think you need to be tracking? Moreover, I would like to differentiate between the application going to the background due to say a phone call or alarm to when the user actually presses the home or back button to exit the application. You can override the back key per Activity. Beyond that, there is no difference in how your Activity gets stopped - it's just another activity coming over it, which includes the Home activity. - 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: CPU leak android application
Another wrinkle is that Android devices aggressively scale the CPU, so 2% of an essentially idle CPU may be a lot smaller because the CPU is running at that point at a much lower frequency. Ah, yes, I had supposed that this was the case, but wasn't sure on it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] String isEmpty()
Why in the world would my app crash with a No such method Java error on a statement like if (!myString.isEmpty() for a perfectly valid String object? If I simply change it to if (myString.length() 0) it works just fine, so it's not like I'm not pointing to a valid String object or anything. Interestingly, this only appears to happen when running it on my actual Android 2.2 phone. It works OK on a V2.3.3 emulator. It is built with the V2.3.3 SDK. What gives? Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] String isEmpty()
On Tue, Nov 1, 2011 at 3:40 PM, Doug Gordon gordo...@gmail.com wrote: Why in the world would my app crash with a No such method Java error on a statement like if (!myString.isEmpty() for a perfectly valid String object? If I simply change it to if (myString.length() 0) it works just fine, so it's not like I'm not pointing to a valid String object or anything. isEmpty() was added in API Level 9. Interestingly, this only appears to happen when running it on my actual Android 2.2 phone. It works OK on a V2.3.3 emulator. It is built with the V2.3.3 SDK. What gives? Android 2.2 was API Level 8. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] String isEmpty()
Because String.isEmpty() didn't exist in 2.2. You can verify this by looking at http://developer.android.com/reference/java/lang/String.html#isEmpty() and checking the Filter by API level option at the top. You should use TextUtils.isEmpty() instead. On Tue, Nov 1, 2011 at 12:40 PM, Doug Gordon gordo...@gmail.com wrote: Why in the world would my app crash with a No such method Java error on a statement like if (!myString.isEmpty() for a perfectly valid String object? If I simply change it to if (myString.length() 0) it works just fine, so it's not like I'm not pointing to a valid String object or anything. Interestingly, this only appears to happen when running it on my actual Android 2.2 phone. It works OK on a V2.3.3 emulator. It is built with the V2.3.3 SDK. What gives? Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] String isEmpty()
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/01/2011 12:40 PM, Doug Gordon wrote: Why in the world would my app crash with a No such method Java error on a statement like if (!myString.isEmpty() for a perfectly valid String object? If I simply change it to if (myString.length() 0) it works just fine, so it's not like I'm not pointing to a valid String object or anything. Interestingly, this only appears to happen when running it on my actual Android 2.2 phone. It works OK on a V2.3.3 emulator. It is built with the V2.3.3 SDK. What gives? The method String.isEmpty() exists only since Java 1.6/Android API 9. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6wTEwACgkQ9RoMZyVa61fD+gCdGHVsK5es6a7SmL/eIvM1PbEJ Y78An2ltBoh3UywysReYeUxDFgty8Ite =h2dt -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] String isEmpty()
On 11/1/2011 3:45 PM, Marc Petit-Huguenin wrote: The method String.isEmpty() exists only since Java 1.6/Android API 9. Thanks. That explains a lot. This was a recent change. I thought surely I'd used that method before, but when I searched my entire project, isEmpty was nowhere to be found! It obviously wasn't available when I did my original development on Android 2.1. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en