[android-developers] Re: Calendar: functional request
Simple feature request: Entering repeated calendar apointments is not possible on android phones. Is this feature planned? or could it be planned? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 reliable is Google Marketplace Device Compatibility Report?
I have been playing with side by side tablet/smartphone version of my app using the single marketplace listing method, and whilst that works, I have some curious reports of what my app will and won't run on for example: Galaxy S2(GT-I9100) NOT COMPATIBLE Galaxy S2(GT-I9103) COMPATIBLE Galaxy Tab 10.1(GT-P7300) NOT COMPATIBLE Galaxy Tab 10.1(GT-P7500) COMPATIBLE And so forth, with many identical devices having different status My manifest snippet: uses-sdk android:minSdkVersion=4 android:targetSdkVersion=8/ compatible-screens !-- all small size screens -- screen android:screenSize=small android:screenDensity=ldpi / screen android:screenSize=small android:screenDensity=mdpi / screen android:screenSize=small android:screenDensity=hdpi / screen android:screenSize=small android:screenDensity=xhdpi / !-- all normal size screens -- screen android:screenSize=normal android:screenDensity=ldpi / screen android:screenSize=normal android:screenDensity=mdpi / screen android:screenSize=normal android:screenDensity=hdpi / screen android:screenSize=normal android:screenDensity=xhdpi / !-- all large size screens -- screen android:screenSize=large android:screenDensity=ldpi / screen android:screenSize=large android:screenDensity=mdpi / screen android:screenSize=large android:screenDensity=hdpi / screen android:screenSize=large android:screenDensity=xhdpi / /compatible-screens I'm seeing stuff like this (which is worrying...) http://i51.tinypic.com/2cfsl7m.png I need to be able to offer different apps to tablets to what I offer to smartphones on the single marketplace listing. My listing actually has 2 APK's (this is just the smartphone one), the tablet one is API 11+ and xlarge screens in it's manifest, and seems to work OK. If I remove all the sizes, then the markeplace will try and replace my table version when I make it live, I have to exclude xlarge from the smartphone version, and exclude everything but xlarge in the tablet version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Read NfcA card
Hello,everyboby! I hava learn how to read nfc card.When i read the typeA card ,i have some problem. In the protcet, i ues these: Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); NfcA tag=NfcA.get(tagFromIntent); and i can get the ATQA,SAK,but i don't know how to use transceive(byte[] data),and how i can read the card?? If you know that, please give me some tips and help, please? Thank you very much! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Calendar: functional request
The thing you can do on the web calendar and not a phone is a repeated apointment every 28 days. This is something you can't do with iPhone or Windows Phone 7, but it can be better than that. On my old phone a Sony Ericcson P990i it was possible. Gretings, On 8 sep, 11:01, martypantsROK martyg...@gmail.com wrote: works fine on my android phone. That's a pretty simple thing that nearly ALL calendars have had for years On Sep 6, 11:01 pm, Ivo Michiel ivo.mich...@gmail.com wrote: Simple feature request: Entering repeated calendar apointments is not possible on android phones. Is this feature planned? or could it be planned? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Battery Consumption of app
Hi, How can we know how much my app [ livewallpaper here ] is consuming? I assume refresh rate will highly affect battery consumption. Regards, -A -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 reliable is Google Marketplace Device Compatibility Report?
I strongly discourage you from using compatible-screens. This was added (under duress) at the specific request of some game developers to be able to target specific combinations of screen sizes and densities. My feeling is that someone actually using this is sooner or later going to regret it. If you want to specify different screen sizes, just use supports-screens. And really I would further strongly discourage doing multiple apks for different screen sizes. I think the writing on the wall is pretty obvious about the future problems you will have here: more and more companies showing devices with docking stations and other such things that result in the device's screen size changing radically. I wouldn't expect anything in the platform to magically make your two separate apks work correctly together on such devices. On Thu, Sep 8, 2011 at 11:32 PM, MarkG123 mark.gilles...@gmail.com wrote: I have been playing with side by side tablet/smartphone version of my app using the single marketplace listing method, and whilst that works, I have some curious reports of what my app will and won't run on for example: Galaxy S2(GT-I9100) NOT COMPATIBLE Galaxy S2(GT-I9103) COMPATIBLE Galaxy Tab 10.1(GT-P7300) NOT COMPATIBLE Galaxy Tab 10.1(GT-P7500) COMPATIBLE And so forth, with many identical devices having different status My manifest snippet: uses-sdk android:minSdkVersion=4 android:targetSdkVersion=8/ compatible-screens !-- all small size screens -- screen android:screenSize=small android:screenDensity=ldpi / screen android:screenSize=small android:screenDensity=mdpi / screen android:screenSize=small android:screenDensity=hdpi / screen android:screenSize=small android:screenDensity=xhdpi / !-- all normal size screens -- screen android:screenSize=normal android:screenDensity=ldpi / screen android:screenSize=normal android:screenDensity=mdpi / screen android:screenSize=normal android:screenDensity=hdpi / screen android:screenSize=normal android:screenDensity=xhdpi / !-- all large size screens -- screen android:screenSize=large android:screenDensity=ldpi / screen android:screenSize=large android:screenDensity=mdpi / screen android:screenSize=large android:screenDensity=hdpi / screen android:screenSize=large android:screenDensity=xhdpi / /compatible-screens I'm seeing stuff like this (which is worrying...) http://i51.tinypic.com/2cfsl7m.png I need to be able to offer different apps to tablets to what I offer to smartphones on the single marketplace listing. My listing actually has 2 APK's (this is just the smartphone one), the tablet one is API 11+ and xlarge screens in it's manifest, and seems to work OK. If I remove all the sizes, then the markeplace will try and replace my table version when I make it live, I have to exclude xlarge from the smartphone version, and exclude everything but xlarge in the tablet version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Re: Read NfcA card
Hallo, NfcA tag=NfcA.get(tagFromIntent); and i can get the ATQA,SAK,but i don't know how to use transceive(byte[] data),and how i can read the card?? There is no simple answer to that question. FIrst you need to know what card/tag technology you have. (E.g. Topaz/Jewel, MIFARE Ultralight, MIFARE CLassic, MIFARE DESfire, ISO 14443-4 smartcard, ...) If you are not sure about what technology your card is, usually, you should be able to derive this information from the ATQA/SAK values. br, Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem when Modify the Default botton bar location from center_vertical | right to bottom | center_horizental in portrait orientation?
This is the content of my layout filelauncher.xml : RelativeLayout android:id=@+id/all_apps_button_cluster android:layout_width=fill_parent android:layout_height=@dimen/button_bar_height android:layout_gravity=bottom|center_horizontal com.android.launcher2.HandleView style=@style/HotseatButton android:id=@+id/all_apps_button android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:layout_width=wrap_content android:src=@drawable/all_apps_button launcher:direction=horizontal / ImageView android:id=@+id/hotseat_left style=@style/HotseatButton.Left android:layout_toLeftOf=@id/all_apps_button android:layout_width=wrap_content android:src=@drawable/hotseat_phone android:layout_centerVertical=true android:onClick=launchHotSeat / ImageView android:id=@+id/hotseat_right style=@style/HotseatButton.Right android:layout_toRightOf=@id/all_apps_button android:layout_width=wrap_content android:src=@drawable/hotseat_browser android:layout_centerVertical=true android:onClick=launchHotSeat / /RelativeLayout also the style attrs: style name=HotseatButton item name=android:paddingLeft12dip/item item name=android:paddingRight12dip/item item name=android:background@drawable/hotseat_bg_center/item item name=android:layout_widthwrap_content/item item name=android:layout_heightfill_parent/item item name=android:scaleTypecenter/item item name=android:focusabletrue/item item name=android:clickabletrue/item /style style name=HotseatButton.Left item name=android:layout_marginLeft4dip/item item name=android:background@drawable/hotseat_bg_left/item item name=android:layout_heightfill_parent/item /style style name=HotseatButton.Right item name=android:layout_marginRight4dip/item item name=android:background@drawable/hotseat_bg_right/item item name=android:layout_heightfill_parent/item /style * FYI:com.android.launcher2.HandleView** extends from an ImageView class* But the result is like this(*if it cannot be seen, please refer to the attachment ^_^ *): I want the phone,the middle and the brower button to align to the buttom of the screen,but whether how many align attrs[in RelativeLayout] I added to it, it just makes no sense. Thank you in advance, :)! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: modify_Launcher_botton_bars.png
Re: [android-developers] Sharekit
On 9 September 2011 03:13, bob b...@coolgroups.com wrote: Does anyone know how Sharekit shortens URLs? I need to do the same thing on Android. You need publicly available service running on the Internet that translates between long URLs and short ones. Once shortened URL is out, you will need to keep the translation in theory indefinitely. Just use goo.gl - they provide REST API. -- 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
[android-developers] how to add new resource in Preference
I want to add some new resources in Preference which like title and summary, it seems that need to add the related id in attrs.xml and public.xml to announce it. When I tried to give an ID for the new resource, it report the id is out of range, so, seems the number couldn't extended. is it possible to enlarge this id range? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 is RockPlayer doing hardware decoding?
Hi, Would somebody have some idea what exactly has RockPlayer done in the Hardware Decoding mode on a high level basis? I mean have they used the mediaplayer as it is or they have changed something at the source code level of MediaPlayer to get more improvements than the MediaPlayer (support more RTSP Url formats) and things like that? Thank you, B.Arunkumar On Sep 4, 6:42 am, Felix long felixl...@gmail.com wrote: Yes, You're right. The hardware decoding mode only means using inbuilt MediaPlayer in these players. 2011/9/3 B.Arunkumar awsnetworkrecor...@gmail.com Thank you for your reply. The RockPlayer gives you the option of choosing either the Hardware or Software Decoding mode. The Software Decoding mode I am pretty sure does what you are saying, uses the FFMPEG package to decode the frames. Does the hardware decoding mode of RockPlayer also use FFMPEG? The question I have is the inbuilt MediaPlayer and VideoView classes of Android use the inbuilt hardware decoder of the device. Is the Hardware Decoding mode of RockPlayer doing something similar? A thought process along the same lines is if it possible to use the hardware decoder of the device programmatically through some means? Thank you, B.Arunkumar On Sep 2, 8:33 pm, Drezden mmjohns...@gmail.com wrote: I believe they're using a customized build of FFMpeg that gets accessed through the NDK. FFMpeg has the ability to do a lot of manipulation with video, audio, and images. On Sep 2, 9:15 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, Would somebody be able to guide me on howRockPlayer/MoboPlayer does the hardware decoding of image frames? Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Best Regards Felix Long -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] The number of used satellites for the calculation of GPS fix
how can i get the number of satellites, i used in my GPS localisation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add new resource in Preference
hi, when i want to use shared preference. i used this: http://androidorange.blogspot.com/2011/06/android-sharedpreferences.html?spref=bl Maybe it help you. On Sep 9, 10:22 am, Ellen ellen...@hotmail.com wrote: I want to add some new resources in Preference which like title and summary, it seems that need to add the related id in attrs.xml and public.xml to announce it. When I tried to give an ID for the new resource, it report the id is out of range, so, seems the number couldn't extended. is it possible to enlarge this id range? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Read NfcA card
Hi,Michael!Thanks your answer. I need to read and write ISO 14443-4 smart card .I had used mTechLists = new String[][] { new String[] { NfcA.class.getName() } } NfcA tag=NfcA.get(tagFromIntent).How to use IsoDep? The problem with me for a long time. Next, What I should do? Can give me some hints? Thank you very much! On 9月9日, 下午3时18分, Michael Roland mi.rol...@gmail.com wrote: Hallo, NfcA tag=NfcA.get(tagFromIntent); and i can get the ATQA,SAK,but i don't know how to use transceive(byte[] data),and how i canreadthe card?? There is no simple answer to that question. FIrst you need to know what card/tag technology you have. (E.g. Topaz/Jewel, MIFARE Ultralight, MIFARE CLassic, MIFARE DESfire, ISO 14443-4 smartcard, ...) If you are not sure about what technology your card is, usually, you should be able to derive this information from the ATQA/SAK values. br, Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Inflating editext into AlertDialog...
I know that the solution to the problem is to inflate an edittext into the dialog using views. I'm founding a snippet like that. On Sep 9, 3:17 am, TreKing treking...@gmail.com wrote: On Thu, Sep 8, 2011 at 8:00 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: what is the working method to do this? There didn't seem to be one, from what I remember from that last discussion. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Streaming video
I am streaming video from server(live555) using rtsp. I can watch video using VLC video, but not on android device. Can you provide me some examples of correct encoded files or format requirements? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Streaming video
This has nothing to do with this list. This is for development with the Android SDK, not for end-user questions for things other than Android. On Fri, Sep 9, 2011 at 6:41 AM, hudvin hud...@gmail.com wrote: I am streaming video from server(live555) using rtsp. I can watch video using VLC video, but not on android device. Can you provide me some examples of correct encoded files or format requirements? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] The number of used satellites for the calculation of GPS fix
On Fri, Sep 9, 2011 at 5:13 AM, souissi haythem haythe...@gmail.com wrote: how can i get the number of satellites, i used in my GPS localisation? http://developer.android.com/reference/android/location/GpsSatellite.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Battery Consumption of app
On Fri, Sep 9, 2011 at 3:03 AM, A. Purohit gopal.a...@gmail.com wrote: How can we know how much my app [ livewallpaper here ] is consuming? I assume refresh rate will highly affect battery consumption. Have your app run for 12 hours or so on a device that is not plugged in. Check the battery screen in the Settings app (usually in the About area, though that might vary by device). If you don't show up, then you are OK, to a rough approximation. Getting detailed power stats is more troublesome and tend to be device-specific, such as PowerTutor: http://ziyang.eecs.umich.edu/projects/powertutor/ The ultimate is using the Qualcomm MDP and its Trepn power profile, but that device is rather expensive. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] exit application
how t exit application on a single click of a button. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] exit application
http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 On Fri, Sep 9, 2011 at 7:23 AM, sandy sandeepsaga...@gmail.com wrote: how t exit application on a single click of a button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The number of used satellites for the calculation of GPS fix
thanks this give me caracteristic of a satellite. but i want first to know the number of satellites my android used to get a GPS fix? On Sep 9, 1:16 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 5:13 AM, souissi haythem haythe...@gmail.com wrote: how can i get the number of satellites, i used in my GPS localisation? http://developer.android.com/reference/android/location/GpsSatellite -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Inflating editext into AlertDialog...
On Fri, Sep 9, 2011 at 5:14 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: I know that the solution to the problem is to inflate an edittext into the dialog using views. I'm founding a snippet like that. AlertDialog allows you to set an arbitrary view as its content. - 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] dialog
http://developer.android.com/guide/topics/ui/dialogs.html http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog 2011/9/8 Miguel Morales therevolti...@gmail.com: Override the dialog class and set your own layout. I *think* dialog builder also has a method for setting your own layout. On Thu, Sep 8, 2011 at 3:09 PM, bob b...@coolgroups.com wrote: Can someone tell me how to pop up a dialog with two buttons on it that say Facebook and Twitter? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] exit application
Lets assume u wanna put exit button in menu and you have a baseActivity which extends Activity so that its easy to implement on all the activities. In your application instead of extending all your activities with Acitivity(Android) you must extend it with your own BaseActivity. Then place the followin code on menu button click public boolean onMenuItemClick(MenuItem item) { // TODO Auto-generated method stub Intent broadcastIntent = new Intent(); broadcastIntent.setAction(exit); sendBroadcast(broadcastIntent); return false; } In BaseActivity you can have the following code protected void onStart() { // TODO Auto-generated method stub super.onStart(); receiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub finish(); } }; IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(exit); try{ registerReceiver(receiver, intentFilter); }catch (Exception e) { // TODO: handle exception Log.d(BASE SCREEN INTENT RECEIVER, +++); e.printStackTrace(); } } The idea is simple create a broadcast receiver in base class which extends all activities so that if user clicks on any activity in your application your intent is caught by Base Class and it renders it well njoi On Fri, Sep 9, 2011 at 4:53 PM, sandy sandeepsaga...@gmail.com wrote: how t exit application on a single click of a button. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: log disappears
tanx for command line tip ;) 2011/9/8 Indicator Veritatis mej1...@yahoo.com: A common reason for its disappearance is that Eclipse somehow lost track of which device it is supposed to be connected to. Clock on the little 'Device' icon in the DDMS perspective to make it come back. But this irritating disappearing trick, and a few other inconveniences, is why for serious debugging, I do not rely on the DDMS perspective: I open a terminal window (yes, I run Eclipse under Linux) and use a command line such as adb logcat or even adb logcat tee | logcatout.txt to keep a copy for handy searching later. Sometimes even this fails, but then stopping and restarting adb almost always fixes it. On Sep 8, 12:08 pm, Rafael Maas rafaelm...@gmail.com wrote: same thing happens here :( 2011/9/8 bob b...@coolgroups.com: Anyone know why sometimes the log disappears in the Eclipse log window? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] cancel button
On Thu, Sep 8, 2011 at 10:17 PM, bob b...@coolgroups.com wrote: Is there any easy way to add a cancel button to this? Yes. Keep looking at Builder and what functions you have available. - 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: The number of used satellites for the calculation of GPS fix
On Fri, Sep 9, 2011 at 7:38 AM, souissi haythem haythe...@gmail.com wrote: thanks this give me caracteristic of a satellite. but i want first to know the number of satellites my android used to get a GPS fix? Ah, sorry. getExtras() on the Location object should have a satellites value (int, I guess) that is the number of satellites used to derive the fix. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cure your android cancer
This actually looks useful, but your post reads like automated spam and thus will likely get ignored by most people. - 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] request android-ndk5 for mac
On Thu, Sep 8, 2011 at 1:03 PM, dani maoz maoz.d...@gmail.com wrote: Can anyone post a download link for android-ndk-r5 download link Sure http://tinyurl.com/3kzuhor - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get Super user permission at App level ?
hello team, any one have idea how can access Super user permission at Application level? 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: can you switch screen orientation via an app?
Never mind I used a better search keyword (don't know why I didn't think of it yesterday!) and found a widget that does the job (more or less). Thanks anyways, --jim -- 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to implement JSAPI in android
Thanks for previous replies I want to convert my speech to text. I have searched for this particular issue in website they mentioned about JSAPI (java speech API). i am not sure how this api works in android. if you guys have any idea about how to convert speech to text pls guide me. I tried android inbuilt speech recognize intent. This intent is not more useful. The maximum amount of text getting wrong. -- HARIRAM -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The number of used satellites for the calculation of GPS fix
i have tried: gps_loc.getExtras().getInt(satellites); //gps_loc is the location, i got But it doesn't work and my programme was blocked!!! On Sep 9, 1:54 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 7:38 AM, souissi haythem haythe...@gmail.com wrote: thanks this give me caracteristic of a satellite. but i want first to know the number of satellites my android used to get a GPS fix? Ah, sorry. getExtras() on the Location object should have a satellites value (int, I guess) that is the number of satellites used to derive the fix. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Black screen after switching to another app
The thread runs like it should and no instances are null. Does anyone know what else could cause the black screen? On Sep 8, 3:03 pm, MobileVisuals eyv...@astralvisuals.com wrote: Does anyone know what I can try to do to fix this issue? On Sep 7, 2:07 pm, MobileVisuals eyv...@astralvisuals.com wrote: I have already debugged the code lots of times with breakpoints, but I can not find the cause for the black screen. The thread runs like it should and no instances are null. On Sep 7, 10:30 am, MarcoAndroid marco...@gmail.com wrote: Are you sure you know which code gets executed? I'd add breakpoints/ logging statements to see what's happening... At least a logstatement on all onStart(), onResume() onXYZ() methods entry points. Maybe then you get a better idea on what's going on. On 6 sep, 18:58, MobileVisuals eyv...@astralvisuals.com wrote: Thanks, I added this code to the app, but the problem remains. I don't know if I should use suspend and resume on the GUI thread, because the documentation says that it could cause deadlocks.Do you know if there is some more that I can do to solve this issue? protected void onPause() { super.onPause(); if (!menu2d) glSurfaceView.onPause(); else mLunarView.getThread().suspend(); } protected void onResume() { super.onResume(); if (!menu2d) glSurfaceView.onResume(); else mLunarView.getThread().resume(); } On Sep 6, 2:43 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 6 September 2011 13:32, MobileVisuals eyv...@astralvisuals.com wrote: My app has a SurfaceView and a GLSurfaceView. I can switch back and forth between these. The SurfaceView is the application GUI. I test switching to another app. I can then switch back to the GLSurfaceView in my app. I then try to switch back to the GLSurfaceView,where the application GUI is. Here is where the problem occurs. A black screen is shown instead of the GUI. The app still works, because the application menu is shown when the menu button is pressed. But nothing is drawn on the screen, it is only black. I have tried almost everything to fix this, I have checked that the thread is running and that no instance of any object (like the SurfaceHolder) is null. What could be the reason for this black screen? Do you call GLSurfaceView.resume() from Activity.resume() ? By the same token you should be calling GLSurfaceView.pause() in the right moment of your activity lifecycle. HTH -- 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
[android-developers] Re: Battery Consumption of app
Thanks Mark. Power Tutor looks useful. I am still developing app but just thought about battery life :) Thanks, -A On Sep 9, 4:20 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 3:03 AM, A. Purohit gopal.a...@gmail.com wrote: How can we know how much my app [ livewallpaper here ] is consuming? I assume refresh rate will highly affect battery consumption. Have your app run for 12 hours or so on a device that is not plugged in. Check the battery screen in the Settings app (usually in the About area, though that might vary by device). If you don't show up, then you are OK, to a rough approximation. Getting detailed power stats is more troublesome and tend to be device-specific, such as PowerTutor: http://ziyang.eecs.umich.edu/projects/powertutor/ The ultimate is using the Qualcomm MDP and its Trepn power profile, but that device is rather expensive. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: windowSoftInputMode=adjustResize not working on landscape or full screen
This bug was added in 2009 in the Android bug report system! It was first noticied in Android 1.5 and also occurs in 3.1. Seems that Google guys don't consider this a bug. http://code.google.com/p/android/issues/detail?id=5497q=windowSoftInputModecolspec=ID%20Type%20Status%20Owner%20Summary%20Stars The argument that the notification should not be sent in FULL SCREEN mode is not fair. If i'm a programmer that created an application that is in full screen, its obvious that i would not add such flag to the manifest. It would be nice to see this fixed in a version. guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Upgrading from 1.6 to 2.2+
Ok thanks Mark. The only strange things they did (since they were written a while back from not so experienced developers) was read and write files (log files) on the SD Card using File I/O classes and use the file:///android_asset/ ... from WebViews for opening html files locally. Has access to storage been disabled after 2.2 using file:// or is that a misleading information I read in a posting? On Sep 8, 4:50 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 8, 2011 at 4:40 PM, kypriakos demet...@ece.neu.edu wrote: Would such phones run apps written with API 4 without major overhaul? Unless your apps are doing something very strange, they should run fine. Again, if these app are on the Market, they are probably already running on newer versions of Android. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Upgrading from 1.6 to 2.2+
On Fri, Sep 9, 2011 at 9:42 AM, kypriakos demet...@ece.neu.edu wrote: Ok thanks Mark. The only strange things they did (since they were written a while back from not so experienced developers) was read and write files (log files) on the SD Card using File I/O classes and use the file:///android_asset/ ... from WebViews for opening html files locally. Has access to storage been disabled after 2.2 using file:// or is that a misleading information I read in a posting? file:///android_asset works for WebViews. file:// works for WebViews, at least for newer versions of Android (it didn't originally, not sure when they enabled it). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OpenGL Samsung Galaxy S2 S II Problem With Rotation
Hi, I have the same problem reported by one user of my game (for Galaxy S2). Textures that are rotated are either completely invisible or rendered incorrectly. I use opengl 1.0, without VBO and without mipmapping. As I do not have access to galaxy S2 I would be grateful if you post your solution once you find it. thanks marcin On Tue, Sep 6, 2011 at 1:03 AM, emanuele padula e.pad...@gmail.com wrote: Thank you Christopher. I'll do some test regarding the mipmapping, but i'm not sure that it will work. Thank you for you suggestion. 2011/9/5 Christopher Van Kirk christopher.vank...@gmail.com I'm seeing a similar problem on that device, but I haven't spent any time looking for an answer yet. I see that you're using VBOs...I've read somewhere that some devices have trouble with them but I don't know if it's true or which devices might be affected. I also know that in my case I'm also using VBOs, but I'm not rotating the texture, I'm stretching it without a mipmap, and it's a JPEG. Sorry couldn't be more help. On 9/5/2011 10:15 PM, pad wrote: Hi, I have a huge problem ONLY with SAMSUNG GALAXY S2 and i cannot figure out if the problem is my code or of this device!! ON ALL OTHER PHONES IT WORKS GREAT!! I'm Using ONLY OpenGL 1.0. The problem is that with the code below my game cannot draw the object that need rotation (the objects are not visualized on the screen). Objects with no rotation (angle = 0.0) are drawn perfectly. ONLY on samsung galaxy s2 the rotated images are not visualized on the screen. There is some bug in SG2 that i have to take in cosideration or some specific initialization? Can you help me??? Thank you in advance public static void drawBitmap(final GL10 gl, final float x, final float y, final float rotate_x, final float rotate_y, final MyImage m, final float angle) { // Draw using verts or VBO verts. gl.glPushMatrix(); // gl.glLoadIdentity(); final int indexPerTile = TextureManager.INDEX_PER_TILE; final int indexRow = m.fx.row * TextureManager.INDEX_PER_TILE * TextureManager.TILE_PER_ROW; if (angle == 0.0f) { gl.glTranslatef(x, y, 0f); gl.glScalef(m.scaleWidth, m.scaleHeight, 1); m.fx.grid.drawStrip(gl, true, indexRow, indexPerTile);// the code of this method is below if (m.alpha != 1 || m.red != 1 || m.blue != 1 || m.green != 1) { gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } } else { final float xt = rotate_x; final float yt = rotate_y; gl.glTranslatef(xt, yt, 0f); gl.glRotatef(-angle, 0f, 0f, 1.0f); gl.glTranslatef(-xt + x, -yt + y, 0f); gl.glScalef(m.scaleWidth, m.scaleHeight, 1); m.fx.grid.drawStrip(gl, true, indexRow, indexPerTile); // the code of this method is below if (m.alpha != 1 || m.red != 1 || m.blue != 1 || m.green != 1) { gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } } gl.glPopMatrix(); } public void drawStrip(final GL10 gl, final boolean useTexture, final int startIndex, final int indexCount) { int count = indexCount; if (startIndex + indexCount= this.mIndexCount) { count = this.mIndexCount - startIndex; } gl.glDrawElements(GL10.GL_**TRIANGLES, count, GL10.GL_UNSIGNED_SHORT, this.mIndexBuffer.position(**startIndex)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Upgrading from 1.6 to 2.2+
Excellent - ok thanks Mark I appreciate the responses. On Sep 9, 10:21 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 9:42 AM, kypriakos demet...@ece.neu.edu wrote: Ok thanks Mark. The only strange things they did (since they were written a while back from not so experienced developers) was read and write files (log files) on the SD Card using File I/O classes and use the file:///android_asset/ ... from WebViews for opening html files locally. Has access to storage been disabled after 2.2 using file:// or is that a misleading information I read in a posting? file:///android_asset works for WebViews. file:// works for WebViews, at least for newer versions of Android (it didn't originally, not sure when they enabled it). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADB could see Samsung Galaxy Tab 10.1 but now it can't!
Well this will help no one but after working on this for days, I installed some unrelated software updates this morning, rebooted, and now the Galaxy Tab is seen by ADB! If anyone has any thoughts on what could cause this to happen please let me know so I can attempt to find a solution or debug procedure for the next person the has this problem. On Sep 5, 10:15 am, RodneyJLambert rodney.j.lamb...@gmail.com wrote: I have a Ubuntu development system that I have been using to do Android development and until this week the ADB would detect myGalaxyTab10.1, now the ADB will not list thetabas an available device. lsusb shows : $ lsusb Bus 002 Device 046: ID 04e8:685e Samsung Electronics Co., Ltd Bus 002 Device 005: ID 059b:0370 Iomega Corp. Bus 002 Device 004: ID 0518:0001 EzKEY Corp. USB to PS2 Adaptor v1.09 Bus 002 Device 003: ID 058f:6254 Alcor Micro Corp. USB Hub Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub adb devices returns : $./adb devices List of devices attached 51-android.rules : SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0666 SUBSYSTEM==usb, SYSFS{idVendor}==22b8, MODE=0666 SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666 SUBSYSTEM==usb, SYSFS{idVendor}==1004, MODE=0666 The result of running uname -r is : 2.6.35-30-generic Ubuntu 10.10 Android SDK Tools, revision 12 Android SDK Platform-tools, revision 6 The ADB can see my other devices (G2 and G2X) like normal. It seems like something has changed in Ubuntu that is causing theGalaxyTab 10.1 to be treated differently that it was two weeks ago! It is also worth mentioning that ADB on my Windows Vista system can see thetab. Does anyone have any ideas about what might have changed to cause a valid target device to suddenly no longer be detected by ADB? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The number of used satellites for the calculation of GPS fix
On Sep 9, 3:16 pm, souissi haythem haythe...@gmail.com wrote: i have tried: gps_loc.getExtras().getInt(satellites); //gps_loc is the location, i got But it doesn't work and my programme was blocked!!! On Sep 9, 1:54 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 7:38 AM, souissi haythem haythe...@gmail.com wrote: thanks this give me caracteristic of a satellite. but i want first to know the number of satellites my android used to get a GPS fix? Ah, sorry. getExtras() on the Location object should have a satellites value (int, I guess) that is the number of satellites used to derive the fix. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training why dont you just examine key set of extras? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The number of used satellites for the calculation of GPS fix
start with: final IterableGpsSatellite satellites = gpsStatus.getSatellites(); then for each GpsSatellite: call usedInFix() and count the ones used On Sep 9, 4:24 pm, skink psk...@gmail.com wrote: On Sep 9, 3:16 pm, souissi haythem haythe...@gmail.com wrote: i have tried: gps_loc.getExtras().getInt(satellites); //gps_loc is the location, i got But it doesn't work and my programme was blocked!!! On Sep 9, 1:54 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 7:38 AM, souissi haythem haythe...@gmail.com wrote: thanks this give me caracteristic of a satellite. but i want first to know the number of satellites my android used to get a GPS fix? Ah, sorry. getExtras() on the Location object should have a satellites value (int, I guess) that is the number of satellites used to derive the fix. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training why dont you just examine key set of extras? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OpenGL Samsung Galaxy S2 S II Problem With Rotation
The problem is that i'm in your same situation but i even use the mipmapping. Maybe only few changes during initialization can fix it, but without an sg2 to test is too hard. Anyone has ideas or fixed something similar on sg2?? Thank you in advance Il giorno 09/set/2011 16.31, Marcin Mikosik marcin.miko...@gmail.com ha scritto: Hi, I have the same problem reported by one user of my game (for Galaxy S2). Textures that are rotated are either completely invisible or rendered incorrectly. I use opengl 1.0, without VBO and without mipmapping. As I do not have access to galaxy S2 I would be grateful if you post your solution once you find it. thanks marcin On Tue, Sep 6, 2011 at 1:03 AM, emanuele padula e.pad...@gmail.com wrote: Thank you Christopher. I'll do some test regarding the mipmapping, but i'm not sure that it will work. Thank you for you suggestion. 2011/9/5 Christopher Van Kirk christopher.vank...@gmail.com I'm seeing a similar problem on that device, but I haven't spent any time looking for an answer yet. I see that you're using VBOs...I've read somewhere that some devices have trouble with them but I don't know if it's true or which devices might be affected. I also know that in my case I'm also using VBOs, but I'm not rotating the texture, I'm stretching it without a mipmap, and it's a JPEG. Sorry couldn't be more help. On 9/5/2011 10:15 PM, pad wrote: Hi, I have a huge problem ONLY with SAMSUNG GALAXY S2 and i cannot figure out if the problem is my code or of this device!! ON ALL OTHER PHONES IT WORKS GREAT!! I'm Using ONLY OpenGL 1.0. The problem is that with the code below my game cannot draw the object that need rotation (the objects are not visualized on the screen). Objects with no rotation (angle = 0.0) are drawn perfectly. ONLY on samsung galaxy s2 the rotated images are not visualized on the screen. There is some bug in SG2 that i have to take in cosideration or some specific initialization? Can you help me??? Thank you in advance public static void drawBitmap(final GL10 gl, final float x, final float y, final float rotate_x, final float rotate_y, final MyImage m, final float angle) { // Draw using verts or VBO verts. gl.glPushMatrix(); // gl.glLoadIdentity(); final int indexPerTile = TextureManager.INDEX_PER_TILE; final int indexRow = m.fx.row * TextureManager.INDEX_PER_TILE * TextureManager.TILE_PER_ROW; if (angle == 0.0f) { gl.glTranslatef(x, y, 0f); gl.glScalef(m.scaleWidth, m.scaleHeight, 1); m.fx.grid.drawStrip(gl, true, indexRow, indexPerTile);// the code of this method is below if (m.alpha != 1 || m.red != 1 || m.blue != 1 || m.green != 1) { gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } } else { final float xt = rotate_x; final float yt = rotate_y; gl.glTranslatef(xt, yt, 0f); gl.glRotatef(-angle, 0f, 0f, 1.0f); gl.glTranslatef(-xt + x, -yt + y, 0f); gl.glScalef(m.scaleWidth, m.scaleHeight, 1); m.fx.grid.drawStrip(gl, true, indexRow, indexPerTile); // the code of this method is below if (m.alpha != 1 || m.red != 1 || m.blue != 1 || m.green != 1) { gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } } gl.glPopMatrix(); } public void drawStrip(final GL10 gl, final boolean useTexture, final int startIndex, final int indexCount) { int count = indexCount; if (startIndex + indexCount= this.mIndexCount) { count = this.mIndexCount - startIndex; } gl.glDrawElements(GL10.GL_**TRIANGLES, count, GL10.GL_UNSIGNED_SHORT, this.mIndexBuffer.position(**startIndex)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Inflating editext into AlertDialog...
how? On Sep 9, 1:40 pm, TreKing treking...@gmail.com wrote: On Fri, Sep 9, 2011 at 5:14 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: I know that the solution to the problem is to inflate an edittext into the dialog using views. I'm founding a snippet like that. AlertDialog allows you to set an arbitrary view as its content. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?
OK, so how would I achieve this as a single APK? Should I check the OS version API 11+ for tablets, 11 for smartphones? How does this work when the next combined OS comes out? Should I check screen density on the fly and open the correct activity? Will I have problems using honeycomb controls in a smartphone OS? I have quite a basic app, but the activities and Holo theming stuff is different in the tablet version, need some guidance on how to get my app to the biggest potential audience... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 reliable is Google Marketplace Device Compatibility Report?
OK, so how would I achieve this as a single APK? Should I check the OS version API 11+ for tablets, 11 for smartphones? How does this work when the next combined OS comes out? Should I check screen density on the fly and open the correct activity? Will I have problems using honeycomb controls in a smartphone OS? I have quite a basic app, but the activities and Holo theming stuff is different in the tablet version, need some guidance on how to get my app to the biggest potential audience... On Sep 9, 8:08 am, Dianne Hackborn hack...@android.com wrote: I strongly discourage you from using compatible-screens. This was added (under duress) at the specific request of some game developers to be able to target specific combinations of screen sizes and densities. My feeling is that someone actually using this is sooner or later going to regret it. If you want to specify different screen sizes, just use supports-screens. And really I would further strongly discourage doing multiple apks for different screen sizes. I think the writing on the wall is pretty obvious about the future problems you will have here: more and more companies showing devices with docking stations and other such things that result in the device's screen size changing radically. I wouldn't expect anything in the platform to magically make your two separate apks work correctly together on such devices. On Thu, Sep 8, 2011 at 11:32 PM, MarkG123 mark.gilles...@gmail.com wrote: I have been playing with side by side tablet/smartphone version of my app using the single marketplace listing method, and whilst that works, I have some curious reports of what my app will and won't run on for example: Galaxy S2(GT-I9100) NOT COMPATIBLE Galaxy S2(GT-I9103) COMPATIBLE Galaxy Tab 10.1(GT-P7300) NOT COMPATIBLE Galaxy Tab 10.1(GT-P7500) COMPATIBLE And so forth, with many identical devices having different status My manifest snippet: uses-sdk android:minSdkVersion=4 android:targetSdkVersion=8/ compatible-screens !-- all small size screens -- screen android:screenSize=small android:screenDensity=ldpi / screen android:screenSize=small android:screenDensity=mdpi / screen android:screenSize=small android:screenDensity=hdpi / screen android:screenSize=small android:screenDensity=xhdpi / !-- all normal size screens -- screen android:screenSize=normal android:screenDensity=ldpi / screen android:screenSize=normal android:screenDensity=mdpi / screen android:screenSize=normal android:screenDensity=hdpi / screen android:screenSize=normal android:screenDensity=xhdpi / !-- all large size screens -- screen android:screenSize=large android:screenDensity=ldpi / screen android:screenSize=large android:screenDensity=mdpi / screen android:screenSize=large android:screenDensity=hdpi / screen android:screenSize=large android:screenDensity=xhdpi / /compatible-screens I'm seeing stuff like this (which is worrying...) http://i51.tinypic.com/2cfsl7m.png I need to be able to offer different apps to tablets to what I offer to smartphones on the single marketplace listing. My listing actually has 2 APK's (this is just the smartphone one), the tablet one is API 11+ and xlarge screens in it's manifest, and seems to work OK. If I remove all the sizes, then the markeplace will try and replace my table version when I make it live, I have to exclude xlarge from the smartphone version, and exclude everything but xlarge in the tablet version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Inflating editext into AlertDialog...
On Fri, Sep 9, 2011 at 11:24 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: how? Try reading the documentation and using the clearly named function. - 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: How reliable is Google Marketplace Device Compatibility Report?
Neither. OS version does NOT have anything to do with tablets. (This is depressing, working on ICS there are *way* too many apps that are actually checking API level = 11 to indicate it is running on a tablet. :/). Screen density also has nothing to do with screen size. I suggest first reading this blog post: http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html On Fri, Sep 9, 2011 at 9:32 AM, MarkG123 mark.gilles...@gmail.com wrote: OK, so how would I achieve this as a single APK? Should I check the OS version API 11+ for tablets, 11 for smartphones? How does this work when the next combined OS comes out? Should I check screen density on the fly and open the correct activity? Will I have problems using honeycomb controls in a smartphone OS? I have quite a basic app, but the activities and Holo theming stuff is different in the tablet version, need some guidance on how to get my app to the biggest potential audience... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How reliable is Google Marketplace Device Compatibility Report?
On Fri, Sep 9, 2011 at 12:32 PM, MarkG123 mark.gilles...@gmail.com wrote: OK, so how would I achieve this as a single APK? That would depend on what this is. Should I check the OS version API 11+ for tablets, 11 for smartphones? As Ms. Hackborn pointed out, this is invalid. You first need to decide what you mean when you say tablets and smartphones. Is it screen size? Is it telephony capability? Weight in grams? Availability of certain hardware buttons? Availability of honeycomb controls? Something else? IOW, there is nothing magic about the nouns smartphones and tablets. Different devices have different characteristics. You need to determine which *characteristics* you are varying your app upon. Should I check screen density on the fly and open the correct activity? That's certainly possible, though I have no idea what you think you are accomplishing with it. Density is orthogonal to anything you might construe as tablets vs. smartphones. Any Android device could have any available density. Will I have problems using honeycomb controls in a smartphone OS? Not if you set up your resources properly. Use the -v11 resource set suffix for places where you are implying the existence of honeycomb controls. I have quite a basic app, but the activities and Holo theming stuff is different in the tablet version, need some guidance on how to get my app to the biggest potential audience... Put one set of themes in res/values/ and another in res/values-v11/ with the same names. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] adjustPan notifications
Hi, Is there any kind of notification that's sent when using adjustPan in the windowSoftInputMode attribute? I want to know how much the screen was panned. TIA guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth sync fails.
Hi, I am trying to develop an application on bluetooth. I am successfully able to pair and send,receive data. Everything works fine. I have a service running in the background, which keep on checking for any incoming connections. Now if i leave the device as is for an hour or more. Android automatically stops and later starts the service. After the service restarts, I am not successfully able to receive any incoming connections from Bluetooth. There are no error in the logs as such. Googling suggested to try START_STICKY and power wake. I have tried START_STICKY for the service and Power wake as well. But all this doesnt seem to help. Any pointers is highly appreciated. Thanks and regards, Ankur. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: FFMPEG Question
On Sep 7, 10:08 am, dani maoz maoz.d...@gmail.com wrote: Can i ffmpeg on Android Emulator? Yes, and you can use Google to find out more information. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java Thread class vs Android HanderThread: which is better?
On Sep 7, 8:52 pm, Pratik Prajapati pratik.prajap...@gmail.com wrote: Android documentation says that consider usingAsyncTaskhttp://developer.android.com/reference/android/os/AsyncTask.html or HandlerThreadhttp://developer.android.com/reference/android/os/HandlerThread.html, instead of the traditional Threadhttp://developer.android.com/reference/java/lang/Thread.html class Any specific reason for this? Is it like HanderThread is just simpler implantation or also provides better performance? HandlerThread is (surprise) a thread with a Handler attached to it to process the messages in the thread's Looper. If you don't need or use a Handler for processing messages, then you don't need HandlerThread. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android: AdActivity Window Flags
Hello, I am using the Android SDK. My activity which should display the ads has the window flag WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED and is running above the lock screen. I do not want to go into detail why exactly that is necessary, but I have good reasons for this. In order to let the com.google.ads.AdActivity to be visible to the user, I have to add the FLAG_SHOW_WHEN_LOCKED to this activities window also. How to do this? I tried to extend com.google.ads.AdActivity and reference my extended version, but that does not seem to work. AdMob does not find my activity, because its searching for com.google.ads.AdActivity android:name in the manifest. Appreciate your help, Julian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MonkeyRunner image compare
Hello, I'm having an issue with using MonkeyRunner. The goal of my script is to be able to compare saved screenshots with current screenshots in an app. I am still deciding whether to go with python or java, they're both having issues. With Python, the MonkeyImage.sameAs(MonkeyImage, percent) is not functioning. I get the error print str(result.sameAs(image2, 1.0)) at com.android.monkeyrunner.MonkeyImage.sameAs(MonkeyImage.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PySingleton cannot be cast to com.android.monkeyrunner.core.IMonkeyImage With Java, there is no loadImageFromFile function available. I've heard rumors about a ChimpChat.jar coming out that will be better to use with Java, but haven't actually seen it. Does anyone have any recommendations? 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] onTouchEvent method is not working
I am working on a drawing application. When I touch on screen primitive is drawing properly but when I am dragging on emulator screen only few times onTouch event is called. // mPaint is a Paint object. @Override public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mCanvas.drawBitmap(primitive, x, y, mPaint); touch_start(x, y); invalidate(); break; case MotionEvent.ACTION_MOVE: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_UP: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; } return true; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scrolling erratic in Emulator in OS X Lion
I have installed the android SDK on a mac running OS X Lion using eclipse as the IDE. When I run apps in the emulator, scrolling is completely broken. If I scroll a list all the way to the top, android then scrolls it all the way back down again. If I scroll slowly, the scrolling is jumping up and down all over the place. Even if I disable the 'scroll direction: natural' option to revert os x scrolling the emulator still behaves erratically when scrolling (at least using my mac books touchpad). This was happening with the Android 2.1 and 2.3.3 emulators. Is there any fix for 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] Is it possible for a WebView select element to show a Spinner title?
Hello, I would like to know if I can show a title like that from the Spinner using HTML with a select element. I've tried the obvious (title attribute) with no luck. I'd appreciate the help. Thanks. The title I'm referring to can be seen in the following image: http://www.google.com/imgres?q=android+spinner+imagehl=ensa=Xbiw=1238bih=683tbm=ischprmd=ivnstbnid=xY51OqXuE20HNM:imgrefurl=http://chrisblunt.com/2011/03/01/android-spinner-like-ui-for-selecting-multiple-options/docid=o40PdK7MxWjGXMw=480h=338ei=T9doTs6qM83pgAfkoYT0DAzoom=1iact=hcvpx=195vpy=383dur=2750hovh=188hovw=268tx=78ty=157page=2tbnh=154tbnw=218start=32ndsp=18ved=1t:429,r:0,s:32 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Working with WiFi
Hi I want to create a Wifi application for android which can scan and connect to particular access point( when you click on that Accesspoint). Up to now I created a Listview which can show list of access points. now by clicking on anyone network( Item) I want to connect to it. what I have to do now for connecting or adding network?? Please help me I am unable to find references for creating Wifi Application for anroid. Thanks in Advance. chandu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Black screen after switching to another app
have it go to an xml test page before you test it with the GLSurfaceView. This is what i do to test the application and then when everything is changing between the pages then implement your GLSurfaceView. On Sep 8, 8:03 am, MobileVisuals eyv...@astralvisuals.com wrote: Does anyone know what I can try to do to fix this issue? On Sep 7, 2:07 pm, MobileVisuals eyv...@astralvisuals.com wrote: I have already debugged the code lots of times with breakpoints, but I can not find the cause for the black screen. The thread runs like it should and no instances are null. On Sep 7, 10:30 am, MarcoAndroid marco...@gmail.com wrote: Are you sure you know which code gets executed? I'd add breakpoints/ logging statements to see what's happening... At least a logstatement on all onStart(), onResume() onXYZ() methods entry points. Maybe then you get a better idea on what's going on. On 6 sep, 18:58, MobileVisuals eyv...@astralvisuals.com wrote: Thanks, I added this code to the app, but the problem remains. I don't know if I should use suspend and resume on the GUI thread, because the documentation says that it could cause deadlocks.Do you know if there is some more that I can do to solve this issue? protected void onPause() { super.onPause(); if (!menu2d) glSurfaceView.onPause(); else mLunarView.getThread().suspend(); } protected void onResume() { super.onResume(); if (!menu2d) glSurfaceView.onResume(); else mLunarView.getThread().resume(); } On Sep 6, 2:43 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 6 September 2011 13:32, MobileVisuals eyv...@astralvisuals.com wrote: My app has a SurfaceView and a GLSurfaceView. I can switch back and forth between these. The SurfaceView is the application GUI. I test switching to another app. I can then switch back to the GLSurfaceView in my app. I then try to switch back to the GLSurfaceView,where the application GUI is. Here is where the problem occurs. A black screen is shown instead of the GUI. The app still works, because the application menu is shown when the menu button is pressed. But nothing is drawn on the screen, it is only black. I have tried almost everything to fix this, I have checked that the thread is running and that no instance of any object (like the SurfaceHolder) is null. What could be the reason for this black screen? Do you call GLSurfaceView.resume() from Activity.resume() ? By the same token you should be calling GLSurfaceView.pause() in the right moment of your activity lifecycle. HTH -- 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
[android-developers] custom launcher limitations?
Hi I just wanted to ask the group, I have been working on a custom launcher which has been going rather well. I was wondering however, if from the launcher app would it be possible to stop other apps on the phone from loading data into their own web browsers (webview nested within their app by the looks of it), and also stop the app from saving files (ie pdf) to the SD card? Please ask if you need more details from me if I havent been clear what I'm asking Thanks in advance for any advice -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Out Of Memory Error with Images loaded through XML
Hi there, I have an XML layout containing an image view which loads the first image ( of a series of 8 images). Also in the layout are two arrows - one for previous and one for next, using these buttons the image in the view changes using setImageResource and pass IDs as R.id.image1, R.id.image2 and so on. The images being loaded are 8 bit indexed PNGs at 800x600, 65KB each file. On loading the fourth or fifth image, the program throws an OOM error and terminates. The solutions I found suggest deal with loading Bitmaps at runtime through code and use inSampleSize, recycle() and the GC to deal with this. Obviously, each call to the GC on a button press is slowing down the app (at least in the emulator) considerably. Please advise. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] signature recording
Hi, Is it possible to record a user's signature if they use a stylus and write onto screen? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 + SQLite - Brazilian student
hi i am a student from Brazil and I am studying android. I would ask if you could share a material on Android and sqlite (CRUD). Thank you all -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TrafficStats.getMobileRxBytes() and TrafficStats.getMobileTxBytes() reset very frequently on 3.0.1 Honeycomb
Hi I have noticed a problem on my Samsung Galaxy 10.1. The APIs to get mobile data sent and received, namely TrafficStats.getMobileRxBytes and TrafficStats.getMobileTxBytes reset very frequently, making it impossible to monitor 3G data usage through my test App. Has anyone faced the same problem or are there potential solutions available. Thanks Nav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Memory Usage and Garbage Collection issues on 1.6 and 2.1
I'm checking my app for Memory Leaks/Usage and came across something weird that I've only seen so far in Android 1.6 and 2.1. After clicking around in the app a bit and I run adb shell dumpsys meminfo for my application, I see the following: DUMP OF SERVICE meminfo: Applications Memory Usage (kB): Uptime: 34639912 Realtime: 153524709 ** MEMINFO in pid 5778 [com.app.myapp] ** nativedalvik other total size:14336 4679 N/A19015 allocated: 13971 4139 N/A18110 free:280 540 N/A 820 (Pss): 2986 41811349120658 (shared dirty):972 3948 620 5540 (priv dirty): 2876 32241097617076 Objects Views: 545 ViewRoots:4 AppContexts: 32 Activities: 31 Assets:2AssetManagers:2 Local Binders: 43 Proxy Binders: 79 Death Recipients:2 OpenSSL Sockets:1 SQL heap: 91 dbFiles:0 numPagers:4 inactivePageKB:0 activePageKB:0 Asset Allocations zip:/data/app/com.app.myapp.apk:/resources.arsc: 119K The memory dump was after clicking around in the app, going from Activity to Activity and that is all. This isn't reproduce-able in 2.2+ and it seems that I'm either missing something simple, or there's something about pre 2.2 versions of Android that I'm just not aware of. What could be the cause of this? The app will eventually crash with an OutOfMemoryError once the objects pile up. 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] Get 2G only state in android
Dear all.. Anyone know how to get network selection mode in android? (2G only, 3G only, auto) 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] MonkeyRunner over TCP
I tried to use MonkeyRunner to access a device over TCP and ran into an unknown host service problem. Further digging revealed a May16 thread on this group from the MonkeyRunner author stating that this had not been tried and was unsure if it was possible. Has the capability to implement MonkeyRunner over TCP been added to more recent code? If not, what would it take and is it feasible to do so? I am interested in seeing this happen, and willing to chip in to make it happen, as it would make testing our device in different contexts much easier. thanks, Erick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to prevent select element option text from overflowing to down arrow in WebView
Hello, I'm using a WebView to display html content within an android app. I've got a select element (dropdown) that has an option with text that is longer than the element itself. In this case the text goes past the separator line and into the right part where the down arrow is. Is there any CSS that can be used to prevent overflow past the separator line? I have tried different variations of overflow and text-overflow with no luck so far. Any help would be greatly appreciated. Thanks! Joe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help Understanding Security Exception
I'm seeking some help in understanding the possible reasons of the following error : Caused by: java.lang.SecurityException at android.os.BinderProxy.transact(Native Method) at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) at android.os.ServiceManager.addService(ServiceManager.java:72) at android.net.vpn.VpnManager.startVpnService(VpnManager.java: 102) I'm getting and exception in my code when I try to start the VPN service on a 3.2 tablet device. Oddly, I don't get this error on a 2.2 device. Is this indicative of insufficient permissions for my application? Or perhaps some other system level restriction on starting the VPN service? Advice appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to change battery charging animation
Hello, Can anyone tell me how to change the battery charging animation i.e. ''...the animation that you see when your phone is turned off and you plug the usb cable into a power source... ? Regards Sarika -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] is there any way to clip select element option text in a WebView
Hello, I have a WebView displaying html. A dropdown box (select element) shows option value text fine but if the text is too long, it will render past the divider line and over to the right where the down arrow is. Is there any CSS attribute that would allow me to clip the text at the divider line? Thanks very much. Joe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Serial Port Connectivity
I have an twitter app.I want to open my twitts in hyper terminal(Serial port). when I click on my twitter app,then all twitts will be show on my hyper terminal.via a bluetooth.Can I do this. Please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sms based app for field data collection
hi, every body, iam develoing an application Field user will send the data from a remote place through the sms and that data has to be submitted to the server in the sql or oracle on the computer. how to accomplish this task. write now Iam able to send the data to another mobile. but not able to store it on the remote machine that is the server. pl. give suggestion and code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Image in ListView flicks when calling notifyDataSetChanged method.
I have a listview, extended from BaseAdapter. I have implemented a functionality of a never ending list, when user reaches at the end of the list, adapter fetches new rows from internet. I also load images in each row, they also come from internet. I use AsyncTask to load images asynchronously. When I get those images, I store them in a local variables so that if user needs them again, I can show them from local variables rather loading from internet again. The whole functionality is working nice, the only problem I get is as follow, When user reaches at the bottom of the list, the adapter loads new rows. And after that I call notifyDataSetChanged() method of adapter. At this point the whole screen of my app flicks. Each and every image on screen flicks, so user gets some unpleasent experience. How can I resolve this issue? Am I missing 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] Stuck in developing application
Hello I have created an application in Android.where there is a PDf file which I converted into the Epub File I want to read this file from code,line by line.so can I read this.Please help me. Thankyou in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android App
Hello, Please have a look on https://market.android.com/details?id=com.storychimes.threepigs2feature=search_result I want to create an App in android for reading E-pub in device...like a given link -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] PARTIAL_WAKE_LOCK and thread running in a service
I have got a service which runs a thread. The thread save some data in a file (in the sdcard). When Android goes to sleep, I need that the service and the thread continue running. I tried it with a PARTIAL_WAKE_LOCK, but it doesn't work; the thread stops while Android is sleeping. Other locks like FULL_WAKE_LOCK works, but I need to use PARTIAL_WAKE_LOCK because, in the future, in that thread I will read from a serial port and I don't care the screen turn off. I don't know if I have some mistake in the code, or if I don't understand the PARTIAL_WAKE_LOCK. Somebody can tell me why my solution doesn't wrok? This is part of the code of the main activity, where the service is stareted: public void onClick(View v) { if (SerialPortService.WAKELOCK == null) { PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); SerialPortService.WAKELOCK = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, SerialPortService.WL_TAG); SerialPortService.WAKELOCK.acquire(); startService(new Intent(getApplicationContext(), SerialPortService.class)); } } This is the code of the service: public class SerialPortService extends Service { public static String WL_TAG = serial_port_wl_tag; public static PowerManager.WakeLock WAKELOCK = null; private BufferedWriter out = null; public IBinder onBind(Intent intent) { return null; } public void onCreate() { super.onCreate(); try { File root = Environment.getExternalStorageDirectory(); if (root.canWrite()){ File dataFile = new File(root, batterytest.txt); FileWriter dataFileWritter = new FileWriter(dataFile); out = new BufferedWriter(dataFileWritter); } } catch (IOException ioe) { Log.d(TEST, Could not open file + ioe.getMessage()); } readThread = new ReadThread(); readThread.start(); } public void onDestroy() { if (readThread != null) readThread.interrupt(); WAKELOCK.release(); WAKELOCK = null; try { out.close(); } catch (IOException ioe) { Log.d(TEST, Could not close file + ioe.getMessage()); } super.onDestroy(); } private class ReadThread extends Thread { public void run() { super.run(); while (!isInterrupted()) { try { Thread.sleep(5000); if (out != null) { Calendar now = Calendar.getInstance(); out.write(now.getTime().toString()); out.newLine(); } catch (IOException ioe) { Log.d(TEST, Could not read file + ioe.getMessage());} return; } catch (InterruptedException e) { return; } } } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 90 Degrees Radial Gradient
Hi all! I am working on a custom View that shows a (round) gauge. I would like to make the background of the scale to go from green to yellow to red (270 degree scale) to black. The problem I am facing is that I can not figure out how to make a 90 degree radial gradient - to be specific I would like to draw a gradient that goes from green to yellow radially in 90 degrees (and then from yellow to red (in 90 degrees) and from red do back (again in 90 degrees)). My current code looks like: canvas.drawOval(scaleRect, scalePaint); canvas.save(Canvas.MATRIX_SAVE_FLAG); canvas.rotate(-135, 0.5f, 0.5f); paintSection.setShader(new RadialGradient(0.0f, 0.0f, 1.0f, Color.GREEN, Color.YELLOW, Shader.TileMode.REPEAT)); canvas.drawArc(scaleRect, -90, 90, true, paintSection); canvas.rotate(90, 0.5f, 0.5f); paintSection.setShader(new RadialGradient(0.0f, 0.0f, 1.0f, Color.YELLOW, Color.RED, Shader.TileMode.MIRROR)); canvas.drawArc(scaleRect, -90, 90, true, paintSection); canvas.rotate(90, 0.5f, 0.5f); paintSection.setShader(new RadialGradient(0.0f, 0.0f, 1.0f, Color.RED, Color.BLACK, Shader.TileMode.MIRROR)); canvas.drawArc(scaleRect, -90, 90, true, paintSection); canvas.restore(); and does not produce the required look. Thank you in advance. Regards Simon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help Understanding Security Exception
Hello, I'm looking for some advice understanding the cause of the following exception in my app: Caused by: java.lang.SecurityException at android.os.BinderProxy.transact(Native Method) at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) at android.os.ServiceManager.addService(ServiceManager.java:72) at android.net.vpn.VpnManager.startVpnService(VpnManager.java: 102) This is happening on a 3.2 tablet when I attempt to start the VPN service, whereas the same code/app runs fine on a 2.2 device (phone). What is the root cause of such an exception? Does anyone know if 3.x has added restrictions to prevent apps from starting the VPN system service? Advice appreciated. -Mike Ellery -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sliding/moving fragments (like Gmail and Email app) in Honeycomb
How can I recreate the layout animation affects you see in the Gmail app on Android 3.0+ where clicking on an email in the ListView shifts and shrinks the ListView to the left, then shows the email contents on the right. I know you can use PropertyAnimators, ObjectAnimators, etc., but these don't allow for changing the size of an object, just the location, scale, etc. There must be something I'm missing, since I know that you cannot remove and add the fragment to a new container within the same transaction and the Gmail and Email apps accomplish this extremely efficiently and smoothly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 getting started
I haven't written even a single line of my first android app, but I have been programming C# and other languages for a while. I have read many of the tutorials, and I think I have a plan of action for my first app. My first app will be a home automation controller which will be driven entirely by listviews and textviews. The users will be able to configure the app to have as many listviews as they need (Home security, Home Automation, Home Entertainment, Master Bedroom, etc). I think there will be the first Main listview where the users can have their other listviews displayed and available for selection. You select one of the main menu options and it takes you to a second listview where there will be other actions, such as Arm, Disarm, turn lights on, turn lights off, close garage door, etc. I think the entire structure of the menus and submenus could be described in an XML configuration file. So, here's my problem. I know you cannot create an activity at runtime. And that's exactly what I have described. The main menu and each submenu would be a unique activity in Android. So how should I redesign my app? Can I have the entire menu and sub-menus perform as a single activity? If so, how will my listview change from the first main menu to show the items for the selected menu item? And will the user be able to go back to the main menu by pressing the back arrow? Also, is there an option for my users to be able to create the configuration file on their computer and then somehow upload the configuration file to their phone so my app can use it? Ultimately I may design a menu creation app, but my users are pretty tech-savvy and writing an xml file will not be too difficult for them and will provide them a lot of flexibility. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Webview android
I have a problem with webview, I tried to use the http://raphaeljs.com/ library but was working only on my computer. I tried to use the browser and doesn't work as well. I tried to download Firefox on my phone and it's work! Anyone can suggest me any idea? I would like to use a webview of Firefox but I haven't any idea how to do it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problems with deactivating the title bar
Hi everyone, I´m 15 years old (in a few weeks 16) and I´m very new to Android and Java and at the moment I just copy and past, but I want to learn the language Java complete but later. So my Problem: I didn´t deavticate the title bar in the manifest, because I have an ProgessBar to show how long it tooks to load the Page (webview). Know I want to deactivate the title bar after it loaded 100%. I found requestWindowFeature(Window.FEATURE_NO_TITLE); as an option, but when I use it the app crashes when 100% is loaded. So here my whole code: package de.iapptipps; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.Window; import android.webkit.WebChromeClient; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Toast; public class IAppTippsActivity extends Activity { private WebView webview; @Override public void onCreate(Bundle savedInstanceState) { getWindow().requestFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.main); super.onCreate(savedInstanceState); webview = new WebView(this); setContentView(webview); webview.getSettings().setJavaScriptEnabled(true); final Activity activity = this; { webview.setWebChromeClient(new WebChromeClient() { public void onProgressChanged(WebView view, int progress) { activity.setTitle( Lädt...); activity.setProgress(progress * 100); if(progress == 100) requestWindowFeature(Window.FEATURE_NO_TITLE); } }); } webview.setWebViewClient(new WebViewClient() { public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { Toast.makeText(activity,description, Toast.LENGTH_SHORT).show(); } }); webview.loadUrl(http://iapptipps.de;); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) webview.canGoBack()) { webview.goBack(); return true; } return super.onKeyDown(keyCode, event); } } And here my Manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=de.iapptipps android:installLocation=auto android:versionCode=4 android:versionName=1.0.3 uses-sdk android:minSdkVersion=7 / uses-permission android:name=android.permission.INTERNET / application android:label=@string/app_name android:icon=@drawable/icon1 activity android:name=.IAppTippsActivity android:label=@string/app_name android:theme=@android:style/Theme intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest And the main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent / /LinearLayout Know I postet my whole app. I hope you can help me. I tested the app an 2.3.3, 2.1 and 3.2 on my virtual machines all crashing. Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ADB could see Samsung Galaxy Tab 10.1 but now it can't!
I have often had to restart the adb daemon on my ubuntu box with root privs. - so often, in fact, that I have a little shell script with the following commands: /opt/android/android-sdk-linux_86/platform-tools/adb kill-server /opt/android/android-sdk-linux_86/platform-tools/adb start-server ...which I run as root. If the adb server was started with a user other than root (often happens under eclipse, for instance), then you will typically not be able to connect to the device. Maybe give those commands a shot if/when this happens again. -Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] setting outgoig call to an mp3 file
hi i want to make an app when you receive an incoming call.it will accept the incoming call and in reply to this call an mp3 file will be played in place of user response. but not heard to the user.only listenable to the user who is calling.is it possible to control the output voice in android?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Samsung Galaxy Tablet messes up co-ordinates when scrolling
I am developing a web-application which needs to work on Android browser. In some pages, the application has links to navigate on other parts of the same page. The links work fine in non-mobile browsers, but messes up on Android browser on Samsung Tablet. The problems appear only when we do some vertical scrolling. My application uses JQuery. Has anyone faced such problems on Samsung Galaxy Tablets? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating Groups in contacts application
Hi, I want to customize the Contacts application provided in the 2.3.3 Gingerbread source code. I want to add the grouping option for the contacts. Could anyone suggest on how to go about? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get views and widgets of activities in a default android applications (Settings, contacts etc)
Hi, I am already feeling great to be a member of this group. I am new to android development. I am trying to do a project which will read the different layouts, views and all other resource in when an activity is opened. Can we write an application which will have a service that will continuously monitor for the opening of a new activity even from the default android applications like settings, contacts etc. And it will get the activity resource objects in the code side (during run time). Like in Hierarchy viewer. This is strictly for debugging purposes. I will use this to study the accessibility of different android resources. Any help on this is highly appreciated. Thanks in advance. Ajay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Contact fields infor in android phones
Hi, Whats the way to find out about what fields for a contact are supported on an android phone? Any database where they are stored or need to query the contact application? Regards, Swati -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TrafficStats.getMobileRxBytes() and TrafficStats.getMobileTxBytes() reset very frequently on 3.0.1 Honeycomb
Hi While trying the traffic stats API, TrafficStats.getMobileRxBytes() and TrafficStats.getMobileTxBytes() on Android 3.0.1 (on my Galaxy Tab 10.1), i noticed that the stats reported by the APIs reset very frequently. This makes it impossible to monitor Cellular data sent and received by the phone. The Traffic Stat APIs work perfectly on my 2.2 and 2.3 phones where the values reported by the APIs resets only after a phone reboot. The behavior seems to have changed in 3.0.1 atleast. Can someone please clarify, if this is a known issue or is there any new API that supersedes the APIs getMobileRxBytes() and getMobileTxBytes() . If this is not a known issue, then I can try logging a bug with Google. Thanks Nav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] log disappears
I met this several time too Original Message From: bob b...@coolgroups.com Time:Thu, 08 Sep 2011 11:59:40 +0530 To: Android Developers android-developers@googlegroups.com CC: Subject: [android-developers] log disappears Anyone know why sometimes the log disappears in the Eclipse log window? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Uninstalling Running Application.
Hello, I wanted to know what happens when I try to uninstall an ACTIVE(RUNNING) application. Does that application get any notification? How the packagemanager handles such scenario? Does the onDestroy method get called for the current activity/service of the active application? Thanks, Sangram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is it possible to use MonkeyRunner from java
Hello Bill, When will this ChimpChat.jar be available? Also, will it include functionality to load IMonkeyImage's from disk to compare with current screenshots? I noticed this is currently not supported in Java, but is in Python. On Aug 22, 1:42 pm, Bill Napier nap...@android.com wrote: We re-factored a bunch of code to take a lot of the MonkeyRunner source and make it available as a library, specifically for people doing project similar to what you're doing. You should probably stop depending on the monkeyrunner.jar and start depending on chimpchat.jar (the new java library that encapsulates this functionality). A new example looks like this: MapString, String options = new TreeMapString, String(); options.put(backend, adb); ChimpChat chimpchat = ChimpChat.getInstance(options); IChimpDevice device = chimpchat.waitForConnection(); Which is the same snippet as before, but with the updated code. Bill On Sat, Aug 20, 2011 at 1:34 PM, Vikram smartd...@gmail.com wrote: Dear Bill, Why would I be getting the following error while trying to compile ? Exception in thread AWT-EventQueue-0 java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from AdbBackend to IMonkeyBackend AM using what you had quoted to initiate the connection to the device. CHeers, Vikram. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] in-App Printing within Android
Within my app I'd like to be able to allow users to print various reports (formatted subsets of queries from SQLite database). Google Cloud Printing seems too complicated an option for widespread user base. Any suggestions? Any print functionality being released in future versions in order to keep up with iOS solutions? Thanks, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is it possible to use MonkeyRunner from java
Hello Bill, Is this ChimpChat.jar available? I can't seem to find it. I have SDK Tools r12. Also, will this ChimpChat allow for loading IMonkeyImage's from disk? I see that it is currently only supported in Python and not when writing test scripts in Java. My overall goal is to write a script that compares old screenshots with current screenshots from an app. Thanks On Aug 22, 1:42 pm, Bill Napier nap...@android.com wrote: We re-factored a bunch of code to take a lot of the MonkeyRunner source and make it available as a library, specifically for people doing project similar to what you're doing. You should probably stop depending on the monkeyrunner.jar and start depending on chimpchat.jar (the new java library that encapsulates this functionality). A new example looks like this: MapString, String options = new TreeMapString, String(); options.put(backend, adb); ChimpChat chimpchat = ChimpChat.getInstance(options); IChimpDevice device = chimpchat.waitForConnection(); Which is the same snippet as before, but with the updated code. Bill On Sat, Aug 20, 2011 at 1:34 PM, Vikram smartd...@gmail.com wrote: Dear Bill, Why would I be getting the following error while trying to compile ? Exception in thread AWT-EventQueue-0 java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from AdbBackend to IMonkeyBackend AM using what you had quoted to initiate the connection to the device. CHeers, Vikram. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: can you switch screen orientation via an app?
On Sep 8, 1:42 pm, Jim Graham spooky1...@gmail.com wrote: Does anyone know if this is possible? And if so, can you point me to the right terms to search for in the dev guide? I've only got a few days to write this before I have to go into the hospital for cancer surgery, and I'd like to have it working before then well, there appears to be a manifest permission for that: http://developer.android.com/reference/android/Manifest.permission.html#SET_ORIENTATION I'm not sure how to take advantage of this in the code, however. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Query
Hi, I have tried following code for reading epub file created by using pdf to epub converter,but i didnt got the content of file as output so kindly solve my problem package net.learn2develop.Eread; //import java.awt.print.Book; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.List; import nl.siegmann.epublib.domain.Book; //import org.example.mymenu.Book; //import nl.siegmann.epublib.domain.TocReference; //import nl.siegmann.epublib.epub.epubReader; import android.app.Activity; import android.content.res.AssetManager; //import android.graphics.Bitmap; //import android.graphics.BitmapFactory; import android.os.Bundle; import android.util.Log; /** * Log the info of 'assets/books/testbook.epub'. * * @author paul.siegmann * */ public class Eread extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); AssetManager assetManager = getAssets(); try { // find InputStream for book InputStream epubInputStream = assetManager .open(/assets/comi.epub); // Load Book from inputStream Book book = (new Eread()).readEpub(epubInputStream); } catch (IOException e) { Log.e(epublib, e.getMessage()); } } Book readEpub(InputStream epubInputStream) { // TODO Auto-generated method stub Eread epubReader = new Eread(); try { Book book = epubReader.readEpub(new FileInputStream(comi.epub)); // book.getTableOfContents(); // book.getContents(); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en