Re: [android-developers] Write to another application's internal memory
Please add permission: uses-permission android:name=android.permission.GET_TASKS/ On Tue, Nov 27, 2012 at 1:26 PM, Android Test aandroidt...@gmail.comwrote: Hi All, I have 2 applications with different package names. E.g. App1 and App2. App1 needs to write some files to App2's internal memory so that it could be uploaded to the backend. I have used the following in App1 to do so: filePath = getPackageManager().getPackageInfo(app2.package.name, 0).applicationInfo.dataDir; I can get the correct path but could not write to it. I checked the logcat, it is showing Permission denied. Am I missing something? What's else needs to be done? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Write to another application's internal memory
Android Test wrote: Hi All, I have 2 applications with different package names. E.g. App1 and App2. App1 needs to write some files to App2's internal memory so that it could be uploaded to the backend. I have used the following in App1 to do so: filePath = getPackageManager().getPackageInfo(app2.package.name, 0).applicationInfo.dataDir; I can get the correct path but could not write to it. I checked the logcat, it is showing Permission denied. Am I missing something? What's else needs to be done? Thanks in Advance google for sharedUserId 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] Google Map
HI Ehsan Currently u may have generated Map key using debug keystore...Try to generate it using application's keystore.. On Tue, Nov 27, 2012 at 1:03 PM, Ehsan Ghasisin ehsan@gmail.com wrote: unfortunately no On Tue, Nov 27, 2012 at 3:21 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Tue, Nov 27, 2012 at 12:42 PM, Ehsan Ghasisin ehsan@gmail.comwrote: Hi , my program work without any error in emulator. i have problem when install my program on my device Hi Ehsan, have you tried on any other device? If yes, what was the response of that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards, Nirav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to connect server into client
you have to changet the http port because it is already used by some server or application and on client side testing u have to use 10.0.0.2 instead of localhost -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Debug Certificate
Thank you Arya, it has worked after adding the -v. I've already got the Android Maps API Key. I did it from the Linux terminal. +1 On Tue, Nov 27, 2012 at 9:18 AM, Asheesh Arya asheesharya...@gmail.comwrote: C:\Program Files\Java\jre7\binkeytool -list -v -alias androiddebugkey -keystor e c:\users\.android\debug.keystore -storepass android -keypass a ndroid just add -v when u generate md5 command in cmd it will generate md5 and sha1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nsubuga Hassan. http://goo.gl/CIFNO GDG Mbale lead http://mbale.gtugs.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Method called after release()
11-27 08:59:37.222: E/AndroidRuntime(4156): java.lang.RuntimeException: Method called after release() 11-27 08:59:37.222: E/AndroidRuntime(4156): at android.hardware.Camera.setPreviewDisplay(Native Method) 11-27 08:59:37.222: E/AndroidRuntime(4156): at android.hardware.Camera.setPreviewDisplay(Camera.java:394) 11-27 08:59:37.222: E/AndroidRuntime(4156): at com.example.mediarecorder.CameraActivity$CameraPreview.surfaceCreated(CameraActivity.java:253) On Thursday, September 23, 2010 11:27:03 PM UTC+5:30, Pedro Teixeira wrote: Thank you It finally worked! I had to do it like you said exactlly.. in my case: if(mCamera!=null){ mPreviewRunning = false; mCamera.stopPreview(); mCamera.setPreviewCallback(null); mCamera.release(); mCamera=null; } works fine now.. I'm in the other activity with no crashes ;) Thanks On Sep 23, 2010, at 10:26 AM, blindfold wrote: I also find the Method called after release() occasionally in my camera app's crash logs with end users, and have thus far not been able to track it down because I did not encounter it on my own phones (ADP1 with Android 1.6 and HTC Desire with Android 2.2). Apparently something camera related in android.hardware.Camera sometimes lives on even after releasing the camera, or I overlooked something in doing a join when cleaning up. Difficult to debug. You can try inserting mCamera.setPreviewCallback(null) in between mCamera.stopPreview() and mCamera.release(), ending it all with setting mCamera=null and wrapping everything in a mCamera!=null check and see if that works for you. Regards On Sep 23, 10:35 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: No ideias for this? I just keep reading on google to release the camera.. and I've just done that but I get the error anyway.. On Sep 22, 2010, at 11:43 PM, Pedro Teixeira wrote: Hi, I'm getting this error ( in the end of this post)... which I guess I understand it's because I'm calling something after releasing it.. but I can't find a wy to work it around... Here is the method: public void surfaceDestroyed(SurfaceHolder holder) { mPreviewRunning = false; mCamera.stopPreview(); mCamera.release(); } I've tried all combinations.. I've tried: mCamera.setPreviewCallback(null); This class, where the surfaceview is implemented can be accessed by 2 different classes.. one that doesnt implement surfaceview and other that does.. the error just shows me when I go from the activity that uses the camera to the activity that also uses camera.. I don't know what else to do.. I've google it and can't find any answer. any suggestion? 09-22 19:55:57.475: ERROR/AndroidRuntime(900): Uncaught handler: thread main exiting due to uncaught exception 09-22 19:55:57.605: ERROR/AndroidRuntime(900): java.lang.RuntimeException: Method called after release() 09-22 19:55:57.605: ERROR/AndroidRuntime(900): at android.hardware.Camera.stopPreview(Native Method) 09-22 19:55:57.605: ERROR/AndroidRuntime(900): at com.pedroteixeira.thennnow.cameraView.surfaceDestroyed (cameraView.java: 184) 09-22 19:55:57.605: ERROR/AndroidRuntime(900): at android.view.SurfaceView.reportSurfaceDestroyed(SurfaceView.java:426) 09-22 19:55:57.605: ERROR/AndroidRuntime(900): at android.view.SurfaceView.updateWindow(SurfaceView.java:351) 09-22 19:55:57.605: ERROR/AndroidRuntime(900): at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java: 182) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to connect server into client
Thanks for ur reply. but i have used different ip and port that connection. But that is worked first time correctly more than one time i ran the same port that is not working on that time. how to configure the same port will run more than one time.. if u know that pls reply me... On Tuesday, 27 November 2012 14:26:20 UTC+5:30, Mulsaniya Bhadresh wrote: you have to changet the http port because it is already used by some server or application and on client side testing u have to use 10.0.0.2 instead of localhost -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Map
I used this commands is it true or false ? C:\Program Files\Java\jdk1.7.0_05\binkeytool -v -list -alias androiddebugkey - keystore C:\Users\predator\.android\debug.keystore -storepass android -keypass . On Tue, Nov 27, 2012 at 4:27 PM, Nirav Parmar n.parma...@gmail.com wrote: HI Ehsan Currently u may have generated Map key using debug keystore...Try to generate it using application's keystore.. On Tue, Nov 27, 2012 at 1:03 PM, Ehsan Ghasisin ehsan@gmail.comwrote: unfortunately no On Tue, Nov 27, 2012 at 3:21 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Tue, Nov 27, 2012 at 12:42 PM, Ehsan Ghasisin ehsan@gmail.comwrote: Hi , my program work without any error in emulator. i have problem when install my program on my device Hi Ehsan, have you tried on any other device? If yes, what was the response of that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards, Nirav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Map
C:\Users\predator\.android\debug.keystorethats debug keystore...try to create using application's keystore.. On Tue, Nov 27, 2012 at 3:54 PM, Ehsan Ghasisin ehsan@gmail.com wrote: I used this commands is it true or false ? C:\Program Files\Java\jdk1.7.0_05\binkeytool -v -list -alias androiddebugkey - keystore C:\Users\predator\.android\debug.keystore -storepass android -keypass . On Tue, Nov 27, 2012 at 4:27 PM, Nirav Parmar n.parma...@gmail.comwrote: HI Ehsan Currently u may have generated Map key using debug keystore...Try to generate it using application's keystore.. On Tue, Nov 27, 2012 at 1:03 PM, Ehsan Ghasisin ehsan@gmail.comwrote: unfortunately no On Tue, Nov 27, 2012 at 3:21 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Tue, Nov 27, 2012 at 12:42 PM, Ehsan Ghasisin ehsan@gmail.comwrote: Hi , my program work without any error in emulator. i have problem when install my program on my device Hi Ehsan, have you tried on any other device? If yes, what was the response of that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards, Nirav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards, Nirav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi
thank you bro,i got solution.using remote DB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Wrapping horizontal list view?
On Mon, Nov 26, 2012 at 1:48 PM, Gal Ben-Haim gbenh...@gmail.com wrote: I actually don't want to scroll horizontally at all. I want items to be places from left to right, and warp to the next row when there's not enough room for the next item. also, this should scroll vertically. Perhaps you can adapt the FixedGridLayout class included in the ApiDemos sample project. It does not support scrolling but this can be solved by putting it inside a ScrollView. On Mon, Nov 26, 2012 at 5:42 PM, bob b...@coolfone.comze.com wrote: This widget is no longer supported. Other horizontally scrolling widgets include HorizontalScrollView and ViewPager from the support library. sic On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote: I'm facing the same problem as this old question. I want to create an horizontal wrapping (and vertical scrolling) ListView, for example: 11 222 44 66 7 888 9 where each numbers group is a list item. I found this old answer suggesting using a Gallery widget, but it only allows to scroll horizontally. how can I create such view ? On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote: You can use a Gallery widget. On Thu, Jan 7, 2010 at 3:48 PM, Marcus vorw...@gmail.com wrote: I'm attempting to create a list view that shows clickable items that wrap horizontally much like the To/From/CC/BCC fields in OS X and the iPhone's Mail programs or like the TO field in Facebook's messages (really like most mail programs). My questions are: 1. Is there a way to do this with a ListView? Everything I've seen and experimented with is either horizontal scrolling or vertically stacking, but not horizontal wrapping. If there's a way, would you point me in the right direction as far as first steps to take to implement it? 2. Is anyone aware of an existing app with available source that has a view like this that I could look at as an example? The Google Mail/SMS apps just have single strings that are not clickable for those fields. -- Romain Guy Android framework engineer roma...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google Map
Ehsan, which Log leave the device ? try debug application in device and post the output. Em domingo, 25 de novembro de 2012 16h41min33s UTC-2, Ehsan Ghasisin escreveu: Hi Every one . I created Google map in android and test with emulator and it worked currently , but when install in my phone (Samsung galaxy ) my program didn't show anything just show a simple page . Tnx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Maps Navigation Tethering..
Hi. Previously i have created an application in Android that.. I had created an TCP client and server communication between two android mobiles through wifi protocol by means of handshaking theri Ipaddress. But i couldnt able to communicate, once one of the Android mobile was kept in wifi Tethering mode.Why it is like that ? if i am wrong in it. then could please say the reason for that. * Yes, you can use maps on a tablet tethered through wifi to an android phone to get data* if the highlighted is possible could you please say how to perform it. I need your help plz. Example code is der na.. share with me.. On Tuesday, November 27, 2012 12:03:35 AM UTC+5:30, Robert Greenwalt wrote: I don't understand the point of your email. Do you have a question? Your one use of ? isn't really a question. Yes, you can use maps on a tablet tethered through wifi to an android phone to get data. R On Mon, Nov 26, 2012 at 1:30 AM, Karunakaran Vikash kvk25...@gmail.comjavascript: wrote: Hi , i need to use a Network Data usage of Android mobile device by another android Tablet. think of this scenario , I am having a two Android devices, one is a mobile and another is Tablet. I am having an application in tablet such as Navigation MusicPlayer. Navigation(Maps) is Done by using the datausage of the android Mobile.I dont have option to put SIM in my Tablet. Whether TCP communication is established between a Android Mobile and Tablet for streaming the songs ?? Android Mobile will be in thethering Mode.Till I studied, there is socket address itself not generating for me in thethering mode mobile.. any refrences, plz help. Thanks in advance.. Thanks Regards, v.Karunakaran -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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] Disclaimer in Android Developer Console for Google Play Market
In the Android Developer Console one can provide a URL to a disclaimer, which will be shown to a user before he can install an application from the app store. Does anybody know about an application that is using this? Is this already available to end-users? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Auto-reconnect w/Bluetooth
I've attempted to find typical protocols as to how others handle auto-reconnection using Bluetooth on Android with their own devices. There is a chance that the device I will be working with will go into a sleep mode after a minute or two. When it does this, the bluetooth connection is lost/closed. When it is manually interacted with again, it would be nice if there was a way for the application that I am designing to re-connect with the device. Currently, it is designed to send me a message before it sleeps and I was to use this as a trigger for the application to be warned of any outgoing messages in the future. The application would have to make sure it reconnects with the device before sending a message out. If however, there was a feature or a way to accomplish it in a passive manner, that would preferred. And it would cover the situation of the bluetooth device getting too far away from the Android device, where that warning message would never be received. All searches typically are associated with Applications that can be downloaded but not much talk about keeping connections alive from a developers point of view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 sets in Eclipse?
Hi there, I do not know if I have very clear the concept of Working Set on Eclipse, and if they work with Android projects. I am working right now in two different apps, but each one has several Android projects: first a library with common things, and then free and pay versions different for Amazon and Google Play. So for each app, I have five Eclipse projects. I rather like to work with these isolated, while keeping them in the same workspace, so I tried creating a Working Set, but I cannot see it neither on the Project Explorer, Package Explorer or Navigator views, so I do not know from where I can select that Working Set. I have checked that, in fact, it has been created trying to recreate it again which raises an Eclipse error about a Working Set with that name yet exits. So... where can I select it? Best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Working sets in Eclipse?
Ok, I managed to solve it. The working set selection option is on the arrow menu I have never used until today... Best regards, On Tuesday, November 27, 2012 4:00:48 PM UTC+1, Fran wrote: Hi there, I do not know if I have very clear the concept of Working Set on Eclipse, and if they work with Android projects. I am working right now in two different apps, but each one has several Android projects: first a library with common things, and then free and pay versions different for Amazon and Google Play. So for each app, I have five Eclipse projects. I rather like to work with these isolated, while keeping them in the same workspace, so I tried creating a Working Set, but I cannot see it neither on the Project Explorer, Package Explorer or Navigator views, so I do not know from where I can select that Working Set. I have checked that, in fact, it has been created trying to recreate it again which raises an Eclipse error about a Working Set with that name yet exits. So... where can I select it? Best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Disclaimer in Android Developer Console for Google Play Market
On Tue, Nov 27, 2012 at 8:12 AM, phoku mboeh...@fh-muenster.de wrote: In the Android Developer Console one can provide a URL to a disclaimer, Disclaimer? Are you referring to the Privacy Policy (Link to Policy section)? - 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] Disclaimer in Android Developer Console for Google Play Market
Yes! Have you ever used this? On Tue, Nov 27, 2012 at 4:31 PM, TreKing treking...@gmail.com wrote: On Tue, Nov 27, 2012 at 8:12 AM, phoku mboeh...@fh-muenster.de wrote: In the Android Developer Console one can provide a URL to a disclaimer, Disclaimer? Are you referring to the Privacy Policy (Link to Policy section)? - 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 -- Matthias Böhmer Innovative Retail Laboratory DFKI GmbH, Campus D3_4, Stuhlsatzenhausweg 3, D-66123 Saarbrücken, Germany http://www.innovative-retail.de http://dfki.de/~mabo04 Tel.: +496818 5775 5018 Fax.: +496818 5775 5007 - Deutsches Forschungszentrum für Künstliche Intelligenz GmbH Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern Geschaeftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Amtsgericht Kaiserslautern, HRB 2313 - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disclaimer in Android Developer Console for Google Play Market
On Tue, Nov 27, 2012 at 9:38 AM, Matthias Böhmer matthias.boeh...@dfki.dewrote: Yes! Have you ever used this? Nope, sorry, lol. Just thought clarifying might help you get someone that has. If no one shares their experience, you might try looking at a few of the big boys - companies that would definitely have privacy policies in place and would probably make use of this feature. Netflix comes to mind, and they have a Privacy Policy link in their description, but it's not really clear if this is auto-inserted by Play or of their own doing. If you're wondering if the user *must* review this before downloading, then no, I don't think it's required. I believe it's there for informational and convenience purposes only. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to connect server into client
Just run the server once. On Tuesday, November 27, 2012 3:22:45 AM UTC-6, Tom wrote: Thanks for ur reply. but i have used different ip and port that connection. But that is worked first time correctly more than one time i ran the same port that is not working on that time. how to configure the same port will run more than one time.. if u know that pls reply me... On Tuesday, 27 November 2012 14:26:20 UTC+5:30, Mulsaniya Bhadresh wrote: you have to changet the http port because it is already used by some server or application and on client side testing u have to use 10.0.0.2 instead of localhost -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: why progress dialog dismiss after rotating the screen landscap to portrait
I would just fix the orientation to landscape or portrait so you don't have to worry about this mess. On Monday, November 26, 2012 9:36:23 PM UTC-6, monty wrote: Hello, i am using android annotation , in my app i am using progress dialog but after rotation the screen it dismiss(why). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problem get data web sent bluetooth
Maybe you should close the Bluetooth connection before opening it again? On Tuesday, November 27, 2012 12:34:32 AM UTC-6, Antonis Kanaris wrote: Hello.I try this code package com.example.timer1; ; public class ReadWebArduino1 extends Activity { TextView txt; Handler handler = new Handler(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); txt=(TextView)findViewById(R.id.txt); myLabel = (TextView)findViewById(R.id.label); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); InputStream content = execute.getEntity().getContent(); BufferedReader buffer = new BufferedReader(new InputStreamReader(content)); String s = ; while ((s = buffer.readLine()) != null) { response += s; } } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { txt.setText(result); } } public void readWebpage(View view) { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.site.net/LEDstate.txt; }); } protected void onStart() { super.onStart(); runnable.run(); } private Runnable runnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.site.net/LEDstate.txt; }); try { findBT(); openBT(); sendData(); } catch (IOException ex) { } handler.postDelayed(this, 1);//Refresh page time is 10secs } }; void findBT() { mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if(mBluetoothAdapter == null) { myLabel.setText(No bluetooth adapter available); } if(!mBluetoothAdapter.isEnabled()) { Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBluetooth, 0); } SetBluetoothDevice pairedDevices = mBluetoothAdapter.getBondedDevices(); if(pairedDevices.size() 0) { for(BluetoothDevice device : pairedDevices) { if(device.getName().equals(HC-07)) { mmDevice = device; break; } } } myLabel.setText(Bluetooth Device Found); } void openBT() throws IOException { UUID uuid = UUID.fromString(1101--1000-8000-00805f9b34fb); //Standard SerialPortService ID mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid); mmSocket.connect(); mmOutputStream = mmSocket.getOutputStream(); //mmInputStream = mmSocket.getInputStream(); // beginListenForData(); myLabel.setText(Bluetooth Opened); } void sendData() throws IOException { //String msg = myTextbox.getText().toString(); String msg=H; msg += \n; mmOutputStream.write(msg.getBytes()); myLabel.setText(Data Sent); } } my problem is bt data no loop(work only the first time) and how sent the web data to msg variable for out to bt.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: Write to another application's internal memory
Why not just write it to the SD card? On Tuesday, November 27, 2012 1:56:27 AM UTC-6, Android Test wrote: Hi All, I have 2 applications with different package names. E.g. App1 and App2. App1 needs to write some files to App2's internal memory so that it could be uploaded to the backend. I have used the following in App1 to do so: filePath = getPackageManager().getPackageInfo(app2.package.name, 0).applicationInfo.dataDir; I can get the correct path but could not write to it. I checked the logcat, it is showing Permission denied. Am I missing something? What's else needs to be done? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] screen_resolution for multiple device
Hi everybody, please someone tell me that how to do U.I design of view that can be install every device any size even its, small medium normal ,every all of that is available in market how to do this please some one tell me.i am in trouble. Thanks: sadhana. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disclaimer in Android Developer Console for Google Play Market
The purpose of a privacy policy is for you to describe all the sneaky stuff you're going to do with the customer's personal info. Then when they complain, you say, Well, it was in the privacy policy. You DID read the privacy policy, didn't you? On Tuesday, November 27, 2012 9:40:48 AM UTC-6, phoku wrote: Yes! Have you ever used this? On Tue, Nov 27, 2012 at 4:31 PM, TreKing treki...@gmail.com javascript: wrote: On Tue, Nov 27, 2012 at 8:12 AM, phoku mboe...@fh-muenster.dejavascript: wrote: In the Android Developer Console one can provide a URL to a disclaimer, Disclaimer? Are you referring to the Privacy Policy (Link to Policy section)? - 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matthias Böhmer Innovative Retail Laboratory DFKI GmbH, Campus D3_4, Stuhlsatzenhausweg 3, D-66123 Saarbrücken, Germany http://www.innovative-retail.de http://dfki.de/~mabo04 Tel.: +496818 5775 5018 Fax.: +496818 5775 5007 - Deutsches Forschungszentrum für Künstliche Intelligenz GmbH Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern Geschaeftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Amtsgericht Kaiserslautern, HRB 2313 - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: why progress dialog dismiss after rotating the screen landscap to portrait
On Tue, Nov 27, 2012 at 9:57 AM, bob b...@coolfone.comze.com wrote: I would just fix the orientation to landscape or portrait so you don't have to worry about this mess. What about leaving the app and coming back to it later? What about the user changing their locale settings? What about users that want to view the app in the layout (landscape or portrait) that you arbitrarily don't support? You may think this is fixing the problem, but you're really just hiding it for the one case, and it *will* resurface in more obscure scenarios and actually making things more complicated in the long run, giving you a much bigger mess, which will be much harder to track down and clean up. Fixing the orientation is *not *a solution for managing dialogs across rotations - it's a crutch that shitty Android programmers resort to when they don't want to deal with the complexities of the Android configuration changes. Please do not advise people to do this - you're perpetuating bad information and doing them a disservice. http://developer.android.com/guide/topics/manifest/activity-element.html#config - 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] Android Maps Navigation Tethering..
You could use a tethering link for p2p connections, but you'd probably be better off using a wifi direct link instead - it's made for p2p and has api for finding the ip address of the other side. As for your question about the highlighted bit: Turn wifi tethering on on phone (settings - wirelessnetworks,more - Tethering portable hotspot - Setup Wifi hotspot - enter a network ssid, save, Portable Wifi hotspot. Next on the tablet connect to the wifi network you named above. Launch maps Robert On Tue, Nov 27, 2012 at 5:27 AM, Karunakaran Vikash kvk2551...@gmail.comwrote: Hi. Previously i have created an application in Android that.. I had created an TCP client and server communication between two android mobiles through wifi protocol by means of handshaking theri Ipaddress. But i couldnt able to communicate, once one of the Android mobile was kept in wifi Tethering mode.Why it is like that ? if i am wrong in it. then could please say the reason for that. * Yes, you can use maps on a tablet tethered through wifi to an android phone to get data* if the highlighted is possible could you please say how to perform it. I need your help plz. Example code is der na.. share with me.. On Tuesday, November 27, 2012 12:03:35 AM UTC+5:30, Robert Greenwalt wrote: I don't understand the point of your email. Do you have a question? Your one use of ? isn't really a question. Yes, you can use maps on a tablet tethered through wifi to an android phone to get data. R On Mon, Nov 26, 2012 at 1:30 AM, Karunakaran Vikash kvk25...@gmail.comwrote: Hi , i need to use a Network Data usage of Android mobile device by another android Tablet. think of this scenario , I am having a two Android devices, one is a mobile and another is Tablet. I am having an application in tablet such as Navigation MusicPlayer. Navigation(Maps) is Done by using the datausage of the android Mobile.I dont have option to put SIM in my Tablet. Whether TCP communication is established between a Android Mobile and Tablet for streaming the songs ?? Android Mobile will be in thethering Mode.Till I studied, there is socket address itself not generating for me in thethering mode mobile.. any refrences, plz help. Thanks in advance.. Thanks Regards, v.Karunakaran -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Action Bar
Quick question. Is there a way to detect, in the browser, if a device is using a menu button or the action bar? I ask because I'm trying to figure out how to instruct users to add a bookmark on their device, and some devices running ICS still have a menu button that they have to use to add a bookmark, so I need to know that. Thanks in advance for any help offered!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disclaimer in Android Developer Console for Google Play Market
Just wanted to know if the Market App is already using the Privacy Policy when a user wants to install an app which is using one. On Tue, Nov 27, 2012 at 5:11 PM, bob b...@coolfone.comze.com wrote: The purpose of a privacy policy is for you to describe all the sneaky stuff you're going to do with the customer's personal info. Then when they complain, you say, Well, it was in the privacy policy. You DID read the privacy policy, didn't you? On Tuesday, November 27, 2012 9:40:48 AM UTC-6, phoku wrote: Yes! Have you ever used this? On Tue, Nov 27, 2012 at 4:31 PM, TreKing treki...@gmail.com wrote: On Tue, Nov 27, 2012 at 8:12 AM, phoku mboe...@fh-muenster.de wrote: In the Android Developer Console one can provide a URL to a disclaimer, Disclaimer? Are you referring to the Privacy Policy (Link to Policy section)? - 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-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matthias Böhmer Innovative Retail Laboratory DFKI GmbH, Campus D3_4, Stuhlsatzenhausweg 3, D-66123 Saarbrücken, Germany http://www.innovative-retail.de http://dfki.de/~mabo04 Tel.: +496818 5775 5018 Fax.: +496818 5775 5007 - Deutsches Forschungszentrum für Künstliche Intelligenz GmbH Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern Geschaeftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Amtsgericht Kaiserslautern, HRB 2313 - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] screen_resolution for multiple device
Hi Sandhna, It depends what type of UI are you creating, however, Android provides different resolution folder called, MDP,HDPI,LDPI based on that, you need to create different stylesheets or sometimes different layouts. Hope you understand,what i mean. Mukesh On Tue, Nov 27, 2012 at 9:40 PM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: Hi everybody, please someone tell me that how to do U.I design of view that can be install every device any size even its, small medium normal ,every all of that is available in market how to do this please some one tell me.i am in trouble. Thanks: sadhana. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: screen_resolution for multiple device
*Supporting Multiple Screens;* http://developer.android.com/guide/practices/screens_support.html On Tuesday, November 27, 2012 4:15:44 PM UTC, Sadhna Upadhyay wrote: Hi everybody, please someone tell me that how to do U.I design of view that can be install every device any size even its, small medium normal ,every all of that is available in market how to do this please some one tell me.i am in trouble. Thanks: sadhana. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Action Bar
On Tue, Nov 27, 2012 at 11:17 AM, Bobbie bobbie.st...@gmail.com wrote: Quick question. Is there a way to detect, in the browser, if a device is using a menu button or the action bar? I ask because I'm trying to figure out how to instruct users to add a bookmark on their device, and some devices running ICS still have a menu button that they have to use to add a bookmark, so I need to know that. You seem to be running under the assumption that there is either only one browser all users will be using or that all browsers will work this way. - 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] Action Bar
You seem to be running under the assumption that there is either only one browser all users will be using or that all browsers will work this way. You seem to be running under the assumption that I'm not already checking the browser's name and version as well as the OS' version. I've done a good bit of Android development, I'm not a n00b, just trying to see if anyone here knows something I missed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Action Bar
Love it when people criticize your post(s), method(s) and question(s) instead of actually contributing to a conversation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Action Bar
On Tue, Nov 27, 2012 at 12:34 PM, Bobbie bobbie.st...@gmail.com wrote: You seem to be running under the assumption that I'm not already checking the browser's name and version as well as the OS' version. I was, due to your use of the browser and not stating otherwise. Sorry. - 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] Action Bar
Aha! I can see where you would assume that, then. =) Please forgive my sarcasm and shortness, not having a great day. On Tuesday, November 27, 2012 1:42:38 PM UTC-5, TreKing wrote: On Tue, Nov 27, 2012 at 12:34 PM, Bobbie bobbie...@gmail.comjavascript: wrote: You seem to be running under the assumption that I'm not already checking the browser's name and version as well as the OS' version. I was, due to your use of the browser and not stating otherwise. Sorry. - 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] Homescreen widget - sizing font to fit content.
Hi, trying to work out how to set a TextView in a homescreen widget, so the font is correct and nothing is truncated. This is a resizable homescreen/lockscreen widget. Can someone give me a pointer? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do you show 'Are you sure you want to quit' dialog?
Hi, I want to present a yes/no dialog when user enters back, on main activity 'are you sure you want to quit? ' And if they click ok, quit the application. To do this I show a dialog in onDestroy() that asks yes/no question but that doesn't work. What is correct way to implement 'are you sure you want to quit the application' dialog? -Subodh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 the coordinates of an image within an ImageView ?
I have tried the code below, but the coordinates of were very wrong iv_foto.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: X = (int) event.getX(); Y = (int) event.getY(); Intent intent = new Intent(MarcaFoto.this, PickFriendsActivity.class); PickFriendsActivity.populateParameters(intent, null, false, true); startActivityForResult(intent, PICK_FRIENDS_ACTIVITY); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: 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
Re: [android-developers] How do you show 'Are you sure you want to quit' dialog?
The application never quits, and so onDestroy() won't be called when the user pushes the back button (it will be called when Android kicks your process out of memory). Instead you would want to override onPause coming from a press of the back button. A better solution would be to realize that the application simply doesn't quit, so asking the user if they're sure they want to quit is silly: since this won't happen even if they push the back button... Kris On Tue, Nov 27, 2012 at 4:15 PM, Subodh Nijsure subodh.nijs...@gmail.comwrote: Hi, I want to present a yes/no dialog when user enters back, on main activity 'are you sure you want to quit? ' And if they click ok, quit the application. To do this I show a dialog in onDestroy() that asks yes/no question but that doesn't work. What is correct way to implement 'are you sure you want to quit the application' dialog? -Subodh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do you show 'Are you sure you want to quit' dialog?
This sounds like an Android anti-pattern. I would suggest you design your app so that is does not need a do you want to quit. 1) onDestroy is not guaranteed to be called. 2) end-users do not expect apps to ask them I they should quit. On Tuesday, November 27, 2012 9:15:36 PM UTC, Subodh Nijsure wrote: Hi, I want to present a yes/no dialog when user enters back, on main activity 'are you sure you want to quit? ' And if they click ok, quit the application. To do this I show a dialog in onDestroy() that asks yes/no question but that doesn't work. What is correct way to implement 'are you sure you want to quit the application' dialog? -Subodh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Data safety when writing important data to SD card
I am opening a file for append using BufferedWriter. Each time the app is run, more data is added to the file. At first a made a little class representing the file and gave it a write() method that would take a string and send it out, then flush() the Writer. I was wondering when I should close the file, or whether I really needed to. Will java close the file for me when the app goes away? Right now, since the writes are few and far between, I'm just opening and closing the file each time I write a line to it, but that seems really awkward. Thanks, Toby -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get the coordinates of an image within an ImageView ?
? 2012/11/27 Ricardo Cardoso rick@gmail.com I have tried the code below, but the coordinates of were very wrong iv_foto.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: X = (int) event.getX(); Y = (int) event.getY(); Intent intent = new Intent(MarcaFoto.this, PickFriendsActivity.class); PickFriendsActivity.populateParameters(intent, null, false, true); startActivityForResult(intent, PICK_FRIENDS_ACTIVITY); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: 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] Re: Homescreen widget - sizing font to fit content.
Maybe use this function in the Paint class: public float measureText (String text) Added in API level 1 Return the width of the text. Parameters text The text to measure. Cannot be null. Returns The width of the text On Tuesday, November 27, 2012 1:15:53 PM UTC-6, MarkG123 wrote: Hi, trying to work out how to set a TextView in a homescreen widget, so the font is correct and nothing is truncated. This is a resizable homescreen/lockscreen widget. Can someone give me a pointer? 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: Data safety when writing important data to SD card
Tobiah wrote: I am opening a file for append using BufferedWriter. Each time the app is run, more data is added to the file. At first a made a little class representing the file and gave it a write() method that would take a string and send it out, then flush() the Writer. I was wondering when I should close the file, or whether I really needed to. Will java [sic] close the file for me when the app goes away? Right now, since the writes are few and far between, I'm just opening and closing the file each time I write a line to it, but that seems really awkward. What does seems awkward mean, let alone really awkward? What harm does awkward cause? What's awkward is holding a resource like a file open for a really long time when you aren't using it. File handles are a finite resource. Like all such, you should manage them wisely. Assess the objective costs and benefits of the approach in the context where you use it. Writes are few and far between, depending on what you mean by few and far, could very well be a use case for closing the file between writes. Or not. At what point does not few and not far become significant enough to justify not closing the file? Almost certainly the non-measurable degree of awkwardness is not relevant. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Completed source for First App
Im having some problems with the second part of the First app found on: http://developer.android.com/training/basics/firstapp/building-ui.html Everything compiles properly. I got through the first part: http://developer.android.com/training/basics/firstapp/creating-project.html Id like to match what the final source is to my own app. Maybe i forgot something. I have the lifecycle activity source from the sdk, but that isnt it. That comes on later pages. Is there a place to download the source? I couldnt find a 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
Re: [android-developers] How do you show 'Are you sure you want to quit' dialog?
Kristopher Micinski wrote: The application never quits, and so onDestroy() won't be called when the user pushes the back button (it will be called when Android kicks your process out of memory). Instead you would want to override onPause coming from a press of the back button. A better solution would be to realize that the application simply doesn't quit, so asking the user if they're sure they want to quit is silly: since this won't happen even if they push the back button... Subodh Nijsure subodh@gmail.com javascript: wrote: I want to present a yes/no dialog when user enters back, on main activity 'are you sure you want to quit? ' And if they click ok, quit the application. To do this I show a dialog in onDestroy() that asks yes/no question but that doesn't work. What is correct way to implement 'are you sure you want to quit the application' dialog? Alan Cooper's _About Face: The Essentials of User Interface Design_ compares a program that incessantly asks what it ought to know to a human secretary, and points out that you'd terminate a human (with extreme prejudice) who behaved like a computer program. Paraphrasing: You: Give me that document from yesterday. Comp: What's the name of that document? You: Name? I don't know - the one you and I were working on! Comp: I need the name. You: Name ... name ... ah, here it is - 'MyMemo.doc'. Comp: OK, I'll get it for you. Where'd we store it? etc. If I tell you I want to quit (assuming such a thing is possible), I don't expect you to nag, Are you really, really sure you really, really want to quit, really? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get the coordinates of an image within an ImageView ?
?? 2012/11/27 Ricardo Cardoso rick@gmail.com ? 2012/11/27 Ricardo Cardoso rick@gmail.com I have tried the code below, but the coordinates of were very wrong iv_foto.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: X = (int) event.getX(); Y = (int) event.getY(); Intent intent = new Intent(MarcaFoto.this, PickFriendsActivity.class); PickFriendsActivity.populateParameters(intent, null, false, true); startActivityForResult(intent, PICK_FRIENDS_ACTIVITY); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: 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
Re: [android-developers] How do you show 'Are you sure you want to quit' dialog?
On Tue, Nov 27, 2012 at 3:15 PM, Subodh Nijsure subodh.nijs...@gmail.comwrote: What is correct way to implement 'are you sure you want to quit the application' dialog? While I agree this shouldn't be necessary, to actually answer your question, see Story 1: http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get the coordinates of an image within an ImageView ?
What are these question-mark posts of yours? What are you trying to communicate? Maybe you should consider including some actual words in your posts. -- Lew Ricardo Cardoso wrote: ?? 2012/11/27 Ricardo Cardoso rick...@gmail.com javascript: ? 2012/11/27 Ricardo Cardoso rick...@gmail.com javascript: [snip] -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get the coordinates of an image within an ImageView ?
I have tried the code below, but the coordinates of were very wrong iv_foto.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: X = (int) event.getX(); Y = (int) event.getY(); Intent intent = new Intent(MarcaFoto.this, PickFriendsActivity.class); PickFriendsActivity.populateParameters(intent, null, false, true); startActivityForResult(intent, PICK_FRIENDS_ACTIVITY); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: break; } return true; } }); 2012/11/27 Ricardo Cardoso rick@gmail.com I have tried the code below, but the coordinates of were very wrong iv_foto.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: X = (int) event.getX(); Y = (int) event.getY(); Intent intent = new Intent(MarcaFoto.this, PickFriendsActivity.class); PickFriendsActivity.populateParameters(intent, null, false, true); startActivityForResult(intent, PICK_FRIENDS_ACTIVITY); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: 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
Re: [android-developers] Data safety when writing important data to SD card
Check out the AtomicFile class. It was introduced in API 17. Seems like prior to the write, it copies the file to a backup file name, and then if the write fails, it copies the backup back over the original file. There are other implementations of safe file writing in AOSP. See frameworks/base/com/android/internal/os/AtomicFile.java and frameworks/base/core/java/com/android/internal/util/JournaledFile.java. You won't be able to import these directly, but you can probably just copy the code because it's Apache licensed. IIRC, JournaledFile will write to a backup file until the write completes, then moves the backup over the original file. On Tue, Nov 27, 2012 at 4:41 PM, Toby t...@tobiah.org wrote: I am opening a file for append using BufferedWriter. Each time the app is run, more data is added to the file. At first a made a little class representing the file and gave it a write() method that would take a string and send it out, then flush() the Writer. I was wondering when I should close the file, or whether I really needed to. Will java close the file for me when the app goes away? Right now, since the writes are few and far between, I'm just opening and closing the file each time I write a line to it, but that seems really awkward. Thanks, Toby -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write to another application's internal memory
Hi Bob, Because, I don't want it to be visible to users. At the same time do no want other unauthorized applications to be able to access the info. On Wed, Nov 28, 2012 at 12:04 AM, bob b...@coolfone.comze.com wrote: Why not just write it to the SD card? On Tuesday, November 27, 2012 1:56:27 AM UTC-6, Android Test wrote: Hi All, I have 2 applications with different package names. E.g. App1 and App2. App1 needs to write some files to App2's internal memory so that it could be uploaded to the backend. I have used the following in App1 to do so: filePath = getPackageManager().**getPackageInfo(app2.package.**name http://app2.package.name, 0).applicationInfo.dataDir; I can get the correct path but could not write to it. I checked the logcat, it is showing Permission denied. Am I missing something? What's else needs to be done? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Write to another application's internal memory
Maybe a good solution would be creating a lib project to take care of that data and import it in bouth projects. Then, in this lib project you culd use a database, shared preferences or anything you want to hold the data. ;-) Best regards. Em 28/11/2012 00:03, Android Test aandroidt...@gmail.com escreveu: Hi Bob, Because, I don't want it to be visible to users. At the same time do no want other unauthorized applications to be able to access the info. On Wed, Nov 28, 2012 at 12:04 AM, bob b...@coolfone.comze.com wrote: Why not just write it to the SD card? On Tuesday, November 27, 2012 1:56:27 AM UTC-6, Android Test wrote: Hi All, I have 2 applications with different package names. E.g. App1 and App2. App1 needs to write some files to App2's internal memory so that it could be uploaded to the backend. I have used the following in App1 to do so: filePath = getPackageManager().**getPackageInfo(app2.package.**name http://app2.package.name, 0).applicationInfo.dataDir; I can get the correct path but could not write to it. I checked the logcat, it is showing Permission denied. Am I missing something? What's else needs to be done? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Data safety when writing important data to SD card
On 11/27/2012 2:38 PM, Lew wrote: Tobiah wrote: I am opening a file for append using BufferedWriter. Each time the app is run, more data is added to the file. At first a made a little class representing the file and gave it a write() method that would take a string and send it out, then flush() the Writer. I was wondering when I should close the file, or whether I really needed to. Will java [sic] close the file for me when the app goes away? Right now, since the writes are few and far between, I'm just opening and closing the file each time I write a line to it, but that seems really awkward. What does seems awkward mean, let alone really awkward? What harm does awkward cause? I think inelegant would have been a better choice of words but What's awkward is holding a resource like a file open for a really long time when you aren't using it. Nice. I feel better already. File handles are a finite resource. Like all such, you should manage them wisely. Assess the objective costs and benefits of the approach in the context where you use it. Writes are few and far between, depending on what you mean by few and far, could very well be a use case for closing the file between writes. Or not. A record would be written to the file sometimes every few minutes, and at most every 10 seconds or so. At what point does not few and not far become significant enough to justify not closing the file? Almost certainly the non-measurable degree of awkwardness is not relevant. Thanks for clearing the waters. I feel a lot better about the way I wrote this bit of the code. Cheers. Tobiah P.S., why did you put the [sic] in my quote? Was it because it would not be java that closes the file, but rather the OS, or rather I'm not even close? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Data safety when writing important data to SD card
[sic] identifies misspelled words. You probably wanted to write Java with a capital J. On Tuesday, November 27, 2012 10:08:15 PM UTC-5, Tobiah wrote: On 11/27/2012 2:38 PM, Lew wrote: Tobiah wrote: I am opening a file for append using BufferedWriter. Each time the app is run, more data is added to the file. At first a made a little class representing the file and gave it a write() method that would take a string and send it out, then flush() the Writer. I was wondering when I should close the file, or whether I really needed to. Will java [sic] close the file for me when the app goes away? Right now, since the writes are few and far between, I'm just opening and closing the file each time I write a line to it, but that seems really awkward. What does seems awkward mean, let alone really awkward? What harm does awkward cause? I think inelegant would have been a better choice of words but What's awkward is holding a resource like a file open for a really long time when you aren't using it. Nice. I feel better already. File handles are a finite resource. Like all such, you should manage them wisely. Assess the objective costs and benefits of the approach in the context where you use it. Writes are few and far between, depending on what you mean by few and far, could very well be a use case for closing the file between writes. Or not. A record would be written to the file sometimes every few minutes, and at most every 10 seconds or so. At what point does not few and not far become significant enough to justify not closing the file? Almost certainly the non-measurable degree of awkwardness is not relevant. Thanks for clearing the waters. I feel a lot better about the way I wrote this bit of the code. Cheers. Tobiah P.S., why did you put the [sic] in my quote? Was it because it would not be java that closes the file, but rather the OS, or rather I'm not even close? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Data safety when writing important data to SD card
On Tue, Nov 27, 2012 at 9:08 PM, Tobiah t...@tobiah.org wrote: P.S., why did you put the [sic] in my quote? http://grammar.ccc.commnet.edu/grammar/capitals.htm See #4. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how can i manage security for mysql database permission as global
This has nothing to do with Android. You may have more luck asking in the MySQL forums. On Tuesday, November 27, 2012 12:56:31 AM UTC-5, Krishna Veni wrote: I have to developed one android application. The app is performed the data is retrieved from mysql database and displayed on android device. here i have to gave the permission globally on my mysql database. my mysql database permission is global means all are allowed to access my mysql database.but i have to allow to access my mysql database myself only.others are does not allow to access. So this situation how can i manage security for my mysql database. am beginner for 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] Fragments slow to load when coming back
Hello! Here's the situation : I have a parent activity that have 3 fragments associated with it. Basically, there is the actionBar and three tabs. Each tab holds a fragment in which there is a listview. The data are the same for all the 3 listviews, just filtered in different way so, in the parent activity, I call a webservice to fetch the data and then I push the data to all three fragments and populate their listviews. When I select an item from one of the listviews, I land on another activity. The PROBLEM is, when I come back (to the activity with 3 fragments), there seems to be a lag from the moment I push the actionbar up button and the activity loads. Tough to explain, but when I hit the up button, it stays selected for about 2 seconds and then switch to the activity. I'm using setRetainInstance on fragments...other than that, I don't know what could be the cause. Do you have any idea? Anything common about using fragments and coming back to this activity after leaving it. Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do you show 'Are you sure you want to quit' dialog?
Hi, here is the code to get the confirmation screen, public void onBackPressed() { Builder builder = new AlertDialog.Builder(context); builder.setTitle(application); builder.setIcon(R.drawable.icon1); builder.setMessage(Would you like to exit); builder.setNegativeButton(Exit, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); System.exit(RESULT_OK); } }); builder.setPositiveButton(Not now, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); builder.show(); // } paste this code in the intent where you want to have a exit confirmation, All the best, Thank Shiva Shankar On Wednesday, November 28, 2012 2:45:36 AM UTC+5:30, Subodh Nijsure wrote: Hi, I want to present a yes/no dialog when user enters back, on main activity 'are you sure you want to quit? ' And if they click ok, quit the application. To do this I show a dialog in onDestroy() that asks yes/no question but that doesn't work. What is correct way to implement 'are you sure you want to quit the application' dialog? -Subodh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get the coordinates of an image within an ImageView ?
Ricardo Cardoso wrote: I have tried the code below, but the coordinates of were very wrong see ImageView.getImageMatrix() pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait
On Tue, Nov 27, 2012 at 11:37 PM, monty mca.himanshusha...@gmail.comwrote: *This is my code in android annotation .when i rotate the device dialog get dismissed it gives these error's see attachment.* *I want dialog after rotation also. any one help* William already gave you the answer - you use showDialog, even if it's deprecated, or use the the DialogFragments. Your third more ridiculous option is to manage the dialog yourself, dismissing it onDestroy and recreating it in onCreate if it was previously showing. - 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 do you show 'Are you sure you want to quit' dialog?
On Wed, Nov 28, 2012 at 12:40 AM, shiva pendem pendem.shiv...@gmail.comwrote: public void onClick(DialogInterface dialog, int id) { dialog.cancel(); System.exit(RESULT_OK); } 1 - Do not use System.exit, just finish() the Activity. 2 - Your calls to dialog.cancel() are pointless as clicking the buttons on the dialog will dismiss it anyway. 3 - This might be a matter of style, but if your positive action is to Exit (i.e., the user is saying yes), that should be the positive button. Conversely not now is no is the negative button. - 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