[android-developers] update notification ...
hello all, i want to ask how to send notification for user to update app .. is there any way from market or to add extra code ?? 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] update notification ...
very gud question, even am also looking for the same.. On Tue, Jul 17, 2012 at 12:00 PM, ala hammad 3la2.7am...@gmail.com wrote: hello all, i want to ask how to send notification for user to update app .. is there any way from market or to add extra code ?? 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 -- Thanks Regards Vinoth Kumar A - - - - - - - - - - Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient. you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient. please notify the sender immediately by return email, and delete this message and any attachments from your system. Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachment. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: update notification ...
welcome ven :) for experience people help us .. please .. On Tuesday, 17 July 2012 09:00:11 UTC+3, ala hammad wrote: hello all, i want to ask how to send notification for user to update app .. is there any way from market or to add extra code ?? 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] Show Spinner Initial Text
Hello Members, I have a little problemI want to display Initial text when Spinner display. Generally it shows nothing...it not good to show Please Help... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView / JavaScriptInterface / String []
Oddly enough, String [] is accepted as a parameter without problem, just not a return value. Feels a bit buggy or forgotten. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility
Now if I could only find out the reason why since ice cream sandwich accessibility has caused some phones to start talking to them as soon as the accessibility service of my app is enabled even though talkback is off and I don't use any TTS in the app. In case you didn't see it: http://code.google.com/p/android/issues/detail?id=23105 Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Show Spinner Initial Text
On Tue, Jul 17, 2012 at 1:31 AM, abhijeet tomar abhijeet...@gmail.comwrote: I want to display Initial text when Spinner display. Generally it shows nothing...it not good to show This is not very clear. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] File location of database file by using SQLiteDatabase
These are under /data/db/packagename or something similar. You cannot access to database files straightforward on a real device if it is not chrooted. On Jul 16, 2012 2:53 PM, Alok Yadav er.al...@gmail.com wrote: Hi All, In SQLiteDatabase, Table and its rows and columns are saved in a file. i want to know the location that database file in which inserted new record and updated new record saved. Pls suggest me the location of that file as i want to see my data in that file. 1) If i am using my app in Emulator. 2) If i am using my app in Android mobile where i have only .apk file of my app. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] update notification ...
On Tue, Jul 17, 2012 at 1:00 AM, ala hammad 3la2.7am...@gmail.com wrote: i want to ask how to send notification for user to update app .. Store a simple file on a server you periodically check to compare the app's version code with what is the latest. is there any way from market or to add extra code ?? When it works (which is not often) the mark... Play ... app will notify the user itself. - 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: Audio Stream buffers within 8 secs on Emulator but takes almost 50 secs to buffer on a Phone
On Monday, July 16, 2012 11:00:07 AM UTC+5:30, Zoheb Rahman wrote: I have tried the code on the emulator using Platform 2.2 API level 8 as well as an Emulator using Platform 4.0.3 using API level 15 .. it works perfectly and starts the stream in about 5 secs. But when i run the code on my HTC one x (Android Version 4.0.3)or tried running it on the HTC Desire S(Android Version 2.3.5) it takes over 50 secs to stream Here is my code public static MediaPlayer mp; public String url = http://vprbbc.streamguys.net:80/vprbbc24.mp3;; public void onCreate(Bundle savedInstanceState) { mp = new MediaPlayer(); try { mp.setDataSource(url); mp.setOnErrorListener(this); mp.setOnPreparedListener(this); mp.prepareAsync(); } catch(IOException e){ e.printStackTrace(); } } // close of onCreate public void onPrepared(MediaPlayer player) { mp.start(); There is no issue with the internet connection. Both the phone and the emulator are connected to the same internet connection. I have also tried running the code on a samsung tab and the streams starts up in roughly 6 secs. Tried running this on several android phones yesterday, samsung, HTC and sony ericsson take between 50 to 80 secs to start playing. The samsung tab is the GT-P1000 that runs android 2.2 only this one device seems to play the stream fast enough -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Auto change,
On Mon, Jul 16, 2012 at 4:30 AM, ven iamvinot...@gmail.com wrote: Its my frd app, after 1 days the rules are changing automatically.. we have 15 sports rules, 1 goes to 2nd 2nd goes to 3rd etc. Pls suggest me what mistake they may did What in the hell are you talking about? - 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] Show Spinner Initial Text
On Tue, Jul 17, 2012 at 12:01 PM, abhijeet tomar abhijeet...@gmail.comwrote: Hello Members, I have a little problemI want to display Initial text when Spinner display. Generally it shows nothing...it not good to show Please Help... Hi Abhijeet, if you want to show the title of the spinner, just use prompt property of spinner in your layout like this. android:prompt = pick an item; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exporting my Android Project
On Mon, Jul 16, 2012 at 1:31 PM, papand13 papan...@gmail.com wrote: My .apk file came out nicely, but when i installed it on my Android Device, it was split up into the different tabs of the app. Show your manifest. If that's your launcher, you likely included the CATEGORY.LAUNCHER attribute in the manifest for each of those Activities. You only want to include it for one - the one that's the entry point for the app. - 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] DialogFragment - show soft keyboard upon creation
Ok, all is working now. The problem came from wanting to only enable the ok button once a minimum number of characters had been entered. I was doing this through setOnKeyListener - this blocked the soft keyboard appearing automatically (if the user touched the edittext, the soft keyboard showed anyway). So, I have removed this call and now use the following with success : getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); On Monday, 16 July 2012 19:49:18 UTC+2, MagouyaWare wrote: Do any of these attributes help? In particular I am thinking of the stateVisible or stateAlwaysVisible options: http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 11:46 AM, dnkoutso wrote: Everything around the Android keyboard feels hacky. Try one of the following: 1) Set requestFocus/ in your XML in the edittext. 2) do a post such as et.post(new Runnable() { et.requestFocus() }} etc. 3) do a post again but your use own code in your original post. Good luck. On Monday, July 16, 2012 9:26:40 AM UTC-7, Simon Giddings wrote: Yes, I use this as well, but forgot to include it in the code I posted here. On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote: Have you tried et.requestFocus() ? 2012/7/16 Simon Giddings I have a simple dialog built with the compatibility libraries DialogFragment. It holds only 1. EditText 2. 2 buttons When the dialog is shown, the edit text control has the focus. At this point, I want to open the soft keyboard automatically. Here is what I am doing within the onCreateView method : EditText et; et = (EditText)v.findViewById(R.id.**txtAddress); Activity act = getActivity(); if(act != null) { InputMethodManager imm = (InputMethodManager)act.** getSystemService(Context.**INPUT_METHOD_SERVICE); if(imm != null) imm.showSoftInput(et, InputMethodManager.SHOW_**FORCED); } Even though I get to the showSoftInput step with no problem, the keyboard is still not displayed. So, how can I correctly get the soft keyboard to be shown ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility
Thanks, I'm aware of that. Is was me who raised it :-) On Tuesday, July 17, 2012 7:42:15 AM UTC+1, Pent wrote: Now if I could only find out the reason why since ice cream sandwich accessibility has caused some phones to start talking to them as soon as the accessibility service of my app is enabled even though talkback is off and I don't use any TTS in the app. In case you didn't see it: http://code.google.com/p/android/issues/detail?id=23105 Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding functions dynamically from application to Jar
You cannot extend case statements in your code dynamically, but take a look at the strategy design pattern (http://en.wikipedia.org/wiki/Strategy_pattern). I think that's what you need. Design patterns are not Android specific by the way, they are just a set of best practices in designing software. - Ali Chousein https://play.google.com/store/apps/details?id=com.apps.social_nav https://play.google.com/store/apps/details?id=com.apps.weather_buddy http://www.paygol.com/android/implementation -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiple listviews with single sql database
I am new into android app development although i successfully created a singly list view with access to a single database but i am a bit lost on how will i make multiple list views accessing a single database -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Handling Bitmap Out of Memory Error
Hi, We are using 640*480 resolution video frames with frame rate of 10 frames/sec. Another question related to bitmaps is do we really need to recycle bitmaps or can we assume that the Garbage Collector would take care of disposing bitmaps? Thank you, B.Arunkumar On Jul 17, 6:49 am, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Hi, I bet that Motorola has android 2.1 or 2.1.-update1 I'm fed up of OOM problems with these, and have not found a solution after lot of tries, including changing several bitmaps by graphic primitives drawn on the fly to use less memory, so I just assumed that there is something I must live with. On the other hand, at least in my cases and I think in most of the cases, if you cannot load these bitmaps your application cannot work properly, so there is no way of handling such situation that may be better than the crash itself. Anyway your bitmap seems to be too big. What resolution are you using? SGSII has 800x480 pixels, that means that you need about to 1536000 bytes for storing a full screen bitmap as ARGB_, but you are requesting more than the double, a waste of space. And if you are doing the same with several bitmaps, it is A LOT of wasted memory. Regards, On 16/07/12 14:23,B.Arunkumarwrote: Hi, We have an app which renders bitmaps on imageview. On Samsung Galaxy, it works fine. But On Motorola Droid, it runs into memory issues and crashes every now and then with the following logcat. /dalvikvm-heap( 3640): 3686400-byte external allocation too large for this process. E/GraphicsJNI( 3640): VM won't let us allocate 3686400 bytes W/dalvikvm( 3640): threadid=11: thread exiting with uncaught exception (group=0x4001d7e0) E/AndroidRuntime( 3640): FATAL EXCEPTION: Thread-25 E/AndroidRuntime( 3640): java.lang.OutOfMemoryError: bitmap size exceeds VM budget E/AndroidRuntime( 3640): at android.graphics.Bitmap.nativeCreate(Native Method) E/AndroidRuntime( 3640): at android.graphics.Bitmap.createBitmap(Bitmap.java:468) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTPClient.ProcessFrame(RTPClient.java:419) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTPClient.ProcessRtpVideoPacket(RTPClient.java: 204) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.AdvanceProcess(RTSPUDPclient.java: 659) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.processSelectionKey(RTSPUDPclient.java: 726) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.run(RTSPUDPclient.java:2068) E/AndroidRuntime( 3640): at java.lang.Thread.run(Thread.java:1096) W/ActivityManager( 1081): Force finishing activity com.example.OnVRViewer/.AsyncRecordTrial My question is even though we have a try catch on Bitmap.createBitmap it is still crashing. Why is the catch block not working? And how do we handle the exception without crashing on Motorola Droid. Following is my code right now: try { bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); } catch (Exception ex) { android.util.Log.e(Bitmap, Error); } 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
Re: [android-developers] SAP web service consuming by android
try { HttpClient httpclient = new DefaultHttpClient(); UsernamePasswordCredentials creds = new UsernamePasswordCredentials(username, password); ((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),creds); //give the Below request details u will get from soap Ui String data = soapenv:Envelope + xmlns:soapenv=\http://schemas.xmlsoap.org/soap/envelope/\; + xmlns:urn=\urn:sap-com:document:sap:soap:functions:mc-style\+ (soapenv:Body + urn:Zemptrack + Mno/Mno//Give parameter values here which u want to send u want to send + Userid/Userid + Year/Year + /urn:Zemptrack /soapenv:Body /soapenv:Envelope); Log.e(Referral_Request, xmlRequest +data); HttpPost post = new HttpPost(give the url address if u open the WSDL link bottom u will find the Another link address use that one); StringEntity se = new StringEntity(data,HTTP.UTF_8); post.setHeader(Content-Type, text/xml;charset=UTF-8); post.addHeader(SOAPAction: ,); post.setEntity(se); BasicHttpResponse httpResponse = (BasicHttpResponse)httpclient.execute(post); httpResponse.getEntity(); String Status = httpResponse.getStatusLine().toString(); InputStream is = httpResponse.getEntity().getContent(); String line = ; StringBuilder sb = new StringBuilder(); BufferedReader rd = new BufferedReader(new InputStreamReader(is)); while ((line = rd.readLine()) != null) { sb.append(line); } Log.i(Response:,Referral_Request Response data is:+sb.toString()); } catch (Exception e) { Log.e(getClass().getSimpleName(), e.toString()); } finally { if (is != null) { // is.close(); } } On Fri, Jul 13, 2012 at 5:56 PM, MERT TUNÇBİLEK merttuncbi...@gmail.comwrote: Hi everyone, I try to consume SAP web service by android with ksoap2 but ı did not achieve it, since this error, WARN/System.err(1229): org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope(position:START_TAG { http://schemas.xmlsoap.org/wsdl/}wsdl:definitionstargetNamespace='urn:sap-com:document:sap:soap:functions:mc-style'@1:686 in java.io.InputStreamReader@4052bc78) I investigated and almost 95% of people, that try to access SAP web service, have this error but there is not a succesfull answer. please help me. are there any other way to access SAP web service by android without KSOAP2. Thanks. Mert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Handling Bitmap Out of Memory Error
GC does NOT take care of recycling Bitmaps, so the answer is that YOU should do that. On Jul 17, 2012 9:16 AM, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, We are using 640*480 resolution video frames with frame rate of 10 frames/sec. Another question related to bitmaps is do we really need to recycle bitmaps or can we assume that the Garbage Collector would take care of disposing bitmaps? Thank you, B.Arunkumar On Jul 17, 6:49 am, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Hi, I bet that Motorola has android 2.1 or 2.1.-update1 I'm fed up of OOM problems with these, and have not found a solution after lot of tries, including changing several bitmaps by graphic primitives drawn on the fly to use less memory, so I just assumed that there is something I must live with. On the other hand, at least in my cases and I think in most of the cases, if you cannot load these bitmaps your application cannot work properly, so there is no way of handling such situation that may be better than the crash itself. Anyway your bitmap seems to be too big. What resolution are you using? SGSII has 800x480 pixels, that means that you need about to 1536000 bytes for storing a full screen bitmap as ARGB_, but you are requesting more than the double, a waste of space. And if you are doing the same with several bitmaps, it is A LOT of wasted memory. Regards, On 16/07/12 14:23,B.Arunkumarwrote: Hi, We have an app which renders bitmaps on imageview. On Samsung Galaxy, it works fine. But On Motorola Droid, it runs into memory issues and crashes every now and then with the following logcat. /dalvikvm-heap( 3640): 3686400-byte external allocation too large for this process. E/GraphicsJNI( 3640): VM won't let us allocate 3686400 bytes W/dalvikvm( 3640): threadid=11: thread exiting with uncaught exception (group=0x4001d7e0) E/AndroidRuntime( 3640): FATAL EXCEPTION: Thread-25 E/AndroidRuntime( 3640): java.lang.OutOfMemoryError: bitmap size exceeds VM budget E/AndroidRuntime( 3640): at android.graphics.Bitmap.nativeCreate(Native Method) E/AndroidRuntime( 3640): at android.graphics.Bitmap.createBitmap(Bitmap.java:468) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTPClient.ProcessFrame(RTPClient.java:419) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTPClient.ProcessRtpVideoPacket(RTPClient.java: 204) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.AdvanceProcess(RTSPUDPclient.java: 659) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.processSelectionKey(RTSPUDPclient.java: 726) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.run(RTSPUDPclient.java:2068) E/AndroidRuntime( 3640): at java.lang.Thread.run(Thread.java:1096) W/ActivityManager( 1081): Force finishing activity com.example.OnVRViewer/.AsyncRecordTrial My question is even though we have a try catch on Bitmap.createBitmap it is still crashing. Why is the catch block not working? And how do we handle the exception without crashing on Motorola Droid. Following is my code right now: try { bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); } catch (Exception ex) { android.util.Log.e(Bitmap, Error); } 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alternative ad provider to Admob
Here is a list of all Android ad networks, sorted by their market share: http://www.appbrain.com/stats/libraries/ad On Saturday, July 14, 2012 4:20:12 AM UTC+2, Zaid wrote: I am looking for an alternative ad provider for android, i am currently using admob banner ads for my android applications. i know this question has been asked before, but there are many new ad networks popping up and i would like some up to date answers. i am looking for banner ads,preferably something as easy to integrate as AdMob. any suggestions for ad providers? 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
Re: [android-developers] session mangement
Go to your bank, withdraw about $3000 and use them top pay someone that actually know how to do that work. On Jul 16, 2012 10:35 AM, laxman k laxman.k1...@gmail.com wrote: how to mange session..plz tell m. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Alternative ad provider to Admob
you can use InMobi ads On Tue, Jul 17, 2012 at 12:57 PM, Uwe Maurer uwe.mau...@gmail.com wrote: Here is a list of all Android ad networks, sorted by their market share: http://www.appbrain.com/stats/libraries/ad On Saturday, July 14, 2012 4:20:12 AM UTC+2, Zaid wrote: I am looking for an alternative ad provider for android, i am currently using admob banner ads for my android applications. i know this question has been asked before, but there are many new ad networks popping up and i would like some up to date answers. i am looking for banner ads,preferably something as easy to integrate as AdMob. any suggestions for ad providers? 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to execute Bluetooth HDP Demo
Hi wambin, Then, you have found the same troubles that all of us. Regards. On Tue, Jul 17, 2012 at 7:59 AM, wambin ambitiouss...@gmail.com wrote: Hi, thanks to reply. The problem is that ApplicationConfiguration remain, in spite of calling unregisterAppConfiguration(). I confirmed the demo can communicate with a health device at first time, but second time or later it cann't. Sometimes Android reboots when I unregister the application config and REregister. The demo can communicate only once whenever rebooting. My health devices blood pressure: HEM-7081-IT weighing machine: HBF-206IT pedometer: HJ-720IT I can communicate currectly with all of these devices and get health data.(only once whenever rebooting) On Thursday, July 12, 2012 6:06:55 PM UTC+9, jfernandez wrote: Hi wambin: Could you tell more about the exact problem that you are experiencing? And, what's the medical device that you are using? Regards. On Tue, Jul 10, 2012 at 12:16 PM, wambin ambitiouss...@gmail.com wrote: Hi jfernandez and all. I've had the same problem for half a year. My device is Galaxy Nexus SC-04D ver4.0.4. I've not solved this problem yet, in spite of half a year researches. I gradually be sure that this is a bug of unregisterAppConfig(). Here is a report about this problem. Google android group http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars I think this is a only way to report the bug to Android API developers, because developer.android.com provides this forum as a Support. So, I want you to add a star or comment to this issue, if you have the same problem. And wish to be debug. On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote: Hi all, I have observed a strange and undesirable behaviour that I'm going to describe. When an HDP channel is stablished, the Android system starts a long proccess of freeing memory (I have lots of Logcat messages like dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the system crashes and the smartphone is rebooted. I don't know if this is a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does anybody has the same problem? Thanks and regards! On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing the BluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone isunableto open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of the Bluetooth Health Profile API? Any ideas? Thanks. Regards. [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel Value:/org/bluez/278/hci0/ dev_00_80_25_14_A1_BC/chan3115 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from
[android-developers] Re: update notification ...
thanks for your answer but need to know a little thing .. which better service to check app version after 1 day or more or just alert dialog when user open app .. please suggest method to update app for user :) regards , On Tuesday, 17 July 2012 09:00:11 UTC+3, ala hammad wrote: hello all, i want to ask how to send notification for user to update app .. is there any way from market or to add extra code ?? 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] Re: Handling Bitmap Out of Memory Error
Am 17.07.12 09:22, schrieb Francisco M. Marzoa Alonso: GC does NOT take care of recycling Bitmaps, so the answer is that YOU should do that. public void recycle () ... This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Audio Stream buffers within 8 secs on Emulator but takes almost 50 secs to buffer on a Phone
Look for related messages on Logcat. On Jul 17, 2012 8:51 AM, Zoheb Rahman zoh...@gmail.com wrote: On Monday, July 16, 2012 11:00:07 AM UTC+5:30, Zoheb Rahman wrote: I have tried the code on the emulator using Platform 2.2 API level 8 as well as an Emulator using Platform 4.0.3 using API level 15 .. it works perfectly and starts the stream in about 5 secs. But when i run the code on my HTC one x (Android Version 4.0.3)or tried running it on the HTC Desire S(Android Version 2.3.5) it takes over 50 secs to stream Here is my code public static MediaPlayer mp; public String url = http://vprbbc.streamguys.net:**80/vprbbc24.mp3 http://vprbbc.streamguys.net:80/vprbbc24.mp3; public void onCreate(Bundle savedInstanceState) { mp = new MediaPlayer(); try { mp.setDataSource(url); mp.setOnErrorListener(this); mp.setOnPreparedListener(this)**; mp.prepareAsync(); } catch(IOException e){ e.printStackTrace(); } } // close of onCreate public void onPrepared(MediaPlayer player) { mp.start(); There is no issue with the internet connection. Both the phone and the emulator are connected to the same internet connection. I have also tried running the code on a samsung tab and the streams starts up in roughly 6 secs. Tried running this on several android phones yesterday, samsung, HTC and sony ericsson take between 50 to 80 secs to start playing. The samsung tab is the GT-P1000 that runs android 2.2 only this one device seems to play the stream fast enough -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Handling Bitmap Out of Memory Error
The GC will take care of disposing bitmaps but it is easy to create bitmaps faster than the GC can recover the memory from old ones you no longer have a reference to. Using Bitmap.recycle() to can force memory to be recovered now. On Tuesday, July 17, 2012 8:15:10 AM UTC+1, B.Arunkumar wrote: Hi, We are using 640*480 resolution video frames with frame rate of 10 frames/sec. Another question related to bitmaps is do we really need to recycle bitmaps or can we assume that the Garbage Collector would take care of disposing bitmaps? Thank you, B.Arunkumar On Jul 17, 6:49 am, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Hi, I bet that Motorola has android 2.1 or 2.1.-update1 I'm fed up of OOM problems with these, and have not found a solution after lot of tries, including changing several bitmaps by graphic primitives drawn on the fly to use less memory, so I just assumed that there is something I must live with. On the other hand, at least in my cases and I think in most of the cases, if you cannot load these bitmaps your application cannot work properly, so there is no way of handling such situation that may be better than the crash itself. Anyway your bitmap seems to be too big. What resolution are you using? SGSII has 800x480 pixels, that means that you need about to 1536000 bytes for storing a full screen bitmap as ARGB_, but you are requesting more than the double, a waste of space. And if you are doing the same with several bitmaps, it is A LOT of wasted memory. Regards, On 16/07/12 14:23,B.Arunkumarwrote: Hi, We have an app which renders bitmaps on imageview. On Samsung Galaxy, it works fine. But On Motorola Droid, it runs into memory issues and crashes every now and then with the following logcat. /dalvikvm-heap( 3640): 3686400-byte external allocation too large for this process. E/GraphicsJNI( 3640): VM won't let us allocate 3686400 bytes W/dalvikvm( 3640): threadid=11: thread exiting with uncaught exception (group=0x4001d7e0) E/AndroidRuntime( 3640): FATAL EXCEPTION: Thread-25 E/AndroidRuntime( 3640): java.lang.OutOfMemoryError: bitmap size exceeds VM budget E/AndroidRuntime( 3640): at android.graphics.Bitmap.nativeCreate(Native Method) E/AndroidRuntime( 3640): at android.graphics.Bitmap.createBitmap(Bitmap.java:468) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTPClient.ProcessFrame(RTPClient.java:419) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTPClient.ProcessRtpVideoPacket(RTPClient.java: 204) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.AdvanceProcess(RTSPUDPclient.java: 659) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.processSelectionKey(RTSPUDPclient.java: 726) E/AndroidRuntime( 3640): at com.example.OnVRViewer.RTSPUDPclient.run(RTSPUDPclient.java:2068) E/AndroidRuntime( 3640): at java.lang.Thread.run(Thread.java:1096) W/ActivityManager( 1081): Force finishing activity com.example.OnVRViewer/.AsyncRecordTrial My question is even though we have a try catch on Bitmap.createBitmap it is still crashing. Why is the catch block not working? And how do we handle the exception without crashing on Motorola Droid. Following is my code right now: try { bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); } catch (Exception ex) { android.util.Log.e(Bitmap, Error); } 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
Re: [android-developers] Re: Handling Bitmap Out of Memory Error
:-X On Jul 17, 2012 10:29 AM, Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu wrote: Am 17.07.12 09:22, schrieb Francisco M. Marzoa Alonso: GC does NOT take care of recycling Bitmaps, so the answer is that YOU should do that. public void recycle () ... This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bricked (?) ASUS Transformer Infinity TF700T
Hello Mark, thanks for feedback. But where should I post this then? Regards Am Dienstag, 17. Juli 2012 00:06:24 UTC+2 schrieb Mark Murphy (a Commons Guy): This list is for developing apps with the Android SDK, not for using modded ROMs. On Mon, Jul 16, 2012 at 3:59 AM, t-liner markus.ped...@googlemail.com wrote: Hi there, I need your help urgently. I received a brand new TF700T and did make it work to support root. I also did unlock the bootrom protection. When I tried to install a custom ROM manager (Clockwork Mod) image from:here The device didn't want to start any more - showing message: The Device ist Unlocked. Android cardhu-user bootloader 2.10 e released by TW_epad-9.4.5.22-20120615 A03 Checking for android ota recovery Booting recovery kernel image But nothing happens anymore :o( I can wait for the battery to run empty in this mode. There' no chance to boot from Micro SD. The only thing what works at the moment is to connect the device via APX drivers. I tried to communicate with device via NVFLASH tool But when trying this - I get the message: Nvflash started Unknown Device found Does any one have an idea where to find appropriate drivers for Nvflash? 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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
[android-developers] Re: update notification ...
update : http://stackoverflow.com/questions/9849889/new-version-app On Tuesday, 17 July 2012 09:00:11 UTC+3, ala hammad wrote: hello all, i want to ask how to send notification for user to update app .. is there any way from market or to add extra code ?? 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: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility
Ah, you were subtly side-promoting, very good :-) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Clearing the RAM is not closing the whole application (i.e. all the activities)
Hello all, I have 50 + activities in my application. Application is built for android version 2.0 onwards android devices. Everything is working fine on 2.x and 3.x android running devices but there is a strange problem happening on 4.x running android devices. On 4.x device, after starting my app if I clear the RAM from the task manager i am getting an application crash. I checked the logcat prints and I found that when I clear the RAM, android kills my current running activity only (i.e. first in the activity stack). I checked the documentation and as per the documentation android should close the whole app (i.e. with the whole activity stack). But the same is not happening on 4.x devices. Unlike 4.x, 2.x and 3.x devices kills all the parent activities as well and because of that the app works without any issue on 2.x and 3.x devices. I am getting lots of crashes in my app because of this changed behavior. Is there anything I need to do in my app to handle this specifically for 4.X android versions. Please help me to solve the issue it is giving lot of trouble to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android makefile to generae the static executable
Hi, if any of you have any clue. Please let me know. This has puzzled me a couple of days long. Thanks Sam於 2012年7月17日星期二UTC+8下午4時47分45秒寫道: I am trying to generate the executable something like adbd in /sbin. The executable I wish to have is iwlist with ARM format and the type is static. I added the folder in the AndroidSourceCode/external and execute the mm command to compile The following is the Android.mk in my folder LOCAL_PATH := $(call my-dir) ifneq ($(TARGET_SIMULATOR),true) include $(CLEAR_VARS) LOCAL_MODULE := libiw LOCAL_MODULE_TAGS := eng LOCAL_SRC_FILES := iwlib.c LOCAL_C_INCLUDE += LOCAL_PATH LOCAL_PRELINK_MODULE := false include $(BUILD_SHARED_LIBRARY) # include $(CLEAR_VARS) LOCAL_FORCE_STATIC_EXECUTABLE := true LOCAL_MODULE_TAGS := eng LOCAL_SRC_FILES := iwlist.c LOCAL_SHARED_LIBRARIES := libiw LOCAL_MODULE := iwlist include $(BUILD_EXECUTABLE) # endif # !TARGET_SIMULATOR The above make file actually works by generating the iwlist executable with iwlist: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped However, I am looking for the statically linked and I was thinking LOCAL_FORCE_STATIC_EXECUTABLE := true this line should help me make this executable statically. Unfortunately, it doesnt. Kindly instruct me if you know how to do it. 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] Barcode scaner
Hy I m working with bar code reader. i have Samsung gelexy y android device. i read success fully bar code and qr code available on internet. but when i read read barcode on live product or real barcode it's not working. I use Zxing in my apps. Any one know about that.please replay 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
Re: [android-developers] Android makefile to generae the static executable
You ask in wrong place. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/*, *Google+*http://bit.ly/webnetmobile-gpand *Twitter http://webnetmobile.com/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
[android-developers] Re: WebView / JavaScriptInterface / String []
The WebView has it's own built-in JSON processing functions so no real need for an external javascript library. var jsonObject=JSON.parse(jsonString); Martin. On Tuesday, July 17, 2012 6:57:26 AM UTC+1, Doug wrote: If you need to return something more complex, you could always generate a serialized JSON data structure from JS using your favorite library, return it as a string, and then parse the results using Android's JSONObject. Doug On Friday, July 13, 2012 6:46:57 AM UTC-7, Pent wrote: I thought that might turn out to be necessary, thanks for confirming. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 disable excludeFromRecents ?
I set android:excludeFromRecents=true to A Activity in AndroidManifest.xml in order to exclude app recent history. In Addtion, A Activity is enty point when App starts and can let B Activity start. As soon as B Activity start, I want to record my app in app recent history. Is there any way to solve this matter ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bricked (?) ASUS Transformer Infinity TF700T
On Tue, Jul 17, 2012 at 4:38 AM, t-liner markus.ped...@googlemail.com wrote: thanks for feedback. But where should I post this then? Some place that focuses on ROM mods, I imagine. xda-developers, perhaps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] VideoView Error on BeagleBoard with android ICS
I am trying to play multiple videos(.mp4 format) one after the other using VideoView.It works fine on Android Tablets with ICS but it gives the error Sorry this video cannot be played error when I run it on BeagleBoard hardware with Android ICS.The logcat errors are as follows: MediaPlayer(3151):error(1,-110). MediaPlayer(3151):error(1,-110). VideoView(3151):error(1,-110). public class PlayVideoActivity extends Activity implements OnCompletionListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, TAG); mWakeLock.acquire(); setContentView(R.layout.playvideo); videoView = (VideoView) findViewById(R.id.videoView); videoView.setOnCompletionListener(this); mVideoLocalPathArrayList.add(/mnt/sdcard/downloads/mediabox/film.mp4); mVideoLocalPathArrayList.add(/mnt/sdcard/downloads/mediabox/et.mp4); mVideoLocalPathArrayList.add(/mnt/sdcard/downloads/mediabox/interview.mp4); playListVideo();} private void playListVideo() { try { if (Util.CURRENT_VIDEO 2) { Util.CURRENT_VIDEO = 0; } playVideo(mVideoLocalPathArrayList.get(Util.CURRENT_VIDEO )); } catch (Exception e) { } private void playVideo(String string) { mediaController = new MediaController(this); mediaController.setMediaPlayer(videoView); videoView.setMediaController(mediaController); //videoView.stopPlayback(); videoView.setVideoURI(Uri.parse(string)); videoView.requestFocus(); videoView.setMediaController(mediaController); videoView.start(); } @Override public void onCompletion(MediaPlayer arg0) { finish(); Util.CURRENT_VIDEO++; Intent intent = new Intent(this, PlayVideoActivity.class); startActivity(intent); } } Any advice would be helpful. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 disable excludeFromRecents ?
2012년 7월 17일 화요일 오후 7시 4분 2초 UTC+9, bta...@gmail.com 님의 말: I set android:excludeFromRecents=true to A Activity in AndroidManifest.xml in order to exclude app recent history. (long-press home key) In Addtion, A Activity is enty point when App starts and can let B Activity start. As soon as B Activity start, I want to record my app in app recent history. Is there any way to solve this matter ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 disable excludeFromRecents ?
app recent history means task manager when long-press home key -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot insert breakpoint using gdbserver/arm-linux-androideabi-gdb
Hi, I need to debug the native code and insert breakpoint. The native code is based on PJSIP project and all the related libs are assembled in libpjsipjni.so When I running C/C++ debugger and try to insert breakpoint, this error message will displayed and always shows when input continue command (gdb) Warning: Warning:\n Cannot insert breakpoint 2.\n Error accessing memory address 0x47c58: Input/output error.\n \n 174^error,msg=Warning:\ nCannot insert breakpoint 2.\nError accessing memory address 0x47c58: Input/output error.\n (gdb) Cannot insert breakpoint 2. Error accessing memory address 0x47c58: Input/output error. I have tryed to load the .so file and can see the result after info sharedlibrary command I don't know why the address cannot be accessed and cannot insert breakpoint. So thank you very much if you have any ideas to resolve this problem. Here is more information: (gdb) 153 info threads info threads\n ~ 14 Thread 21695 0x401066cc in ?? ()\n ~ 13 Thread 21594 0x401066cc in ?? ()\n ~ 12 Thread 21576 0x401066cc in ?? ()\n ~ 11 Thread 21575 0x401066cc in ?? ()\n ~ 10 Thread 21572 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 9 Thread 21571 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 8 Thread 21570 0x401066d0 in ?? ()\n ~ 7 Thread 21569 0x401066cc in ?? ()\n ~ 6 Thread 21568 0x401066cc in ?? ()\n ~ 5 Thread 21567 0x401066cc in ?? ()\n ~ 4 Thread 21566 0x401058d0 in unlink () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 3 Thread 21564 0x40105fe8 in ?? ()\n ~ 2 Thread 21561 0x401066cc in ?? ()\n ~ 1 Thread 21560 0x40803c50 in ?? ()\n warning: Couldn't restore frame in current thread, at frame 0\n ~0x40803c50 in ?? ()\n 153^done (gdb) 154-data-list-register-names 154^done,register-names=[r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,sp,lr,pc,f0,f1,f2,f3,f4,f5,f6,f7,fps,cpsr] (gdb) 155-break-insert /root/gwj_workspace/VideoTalk_temp/jni/pjsip/jni/src/pjsua_wrap.cpp:8716 155^done,bkpt={number=1,type=breakpoint,disp=keep,enabled=y,addr=0x00047c58,func=Java_org_pjsip_pjsua_pjsuaJNI_create,file=pjsip/build/..//jni/build/..//src//pjsua_wrap.cpp,fullname=/root/gwj_workspace/VideoTalk_temp/jni/pjsip/jni/src/pjsua_wrap.cpp,line=8716,times=0} (gdb) 156-stack-info-depth 156^done,depth=1 (gdb) 157-stack-list-frames 0 1 157^done,stack=[frame={level=0,addr=0x40803c50,func=??}] (gdb) 158-exec-continue 158^running (gdb) Warning: Warning:\n Cannot insert breakpoint 1. Cannot insert breakpoint 1.\n Error accessing memory address 0x47c58: Input/output error. Error accessing memory address 0x47c58: Input/output error.\n \n 158^error,msg=Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x47c58: Input/output error.\n (gdb) 159 info threads info threads\n ~ 14 Thread 21695 0x401066cc in ?? ()\n ~ 13 Thread 21594 0x401066cc in ?? ()\n ~ 12 Thread 21576 0x401066cc in ?? ()\n ~ 11 Thread 21575 0x401066cc in ?? ()\n ~ 10 Thread 21572 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 9 Thread 21571 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 8 Thread 21570 0x401066d0 in ?? ()\n ~ 7 Thread 21569 0x401066cc in ?? ()\n ~ 6 Thread 21568 0x401066cc in ?? ()\n ~ 5 Thread 21567 0x401066cc in ?? ()\n ~ 4 Thread 21566 0x401058d0 in unlink () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 3 Thread 21564 0x40105fe8 in ?? ()\n ~ 2 Thread 21561 0x401066cc in ?? ()\n ~ 1 Thread 21560 0x40803c50 in ?? ()\n warning: Couldn't restore frame in current thread, at frame 0\n ~0x40803c50 in ?? ()\n 159^done (gdb) 160-stack-info-depth 160^done,depth=1 (gdb) 161-stack-list-frames 0 1 161^done,stack=[frame={level=0,addr=0x40803c50,func=??}] (gdb) 162-data-list-changed-registers 162^done,changed-registers=[0,2,4,5,6,7,8,9,11,12,13,14,15,25] (gdb) 163 info sharedlibrary info sharedlibrary\n ~FromTo Syms Read Shared Object Library\n ~No /system/bin/linker\n ~0x40101398 0x40105f24 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~0x400ee5ec 0x400ee7b8 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libstdc++.so\n ~0x4014a67c 0x4014b464 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libm.so\n ~0x4002a31c 0x4002a3a8 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/liblog.so\n ~No libcutils.so\n ~0x40002bdc 0x40003118 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libz.so\n ~No libtime_genoff.so\n ~No libutils.so\n ~No libbinder.so\n ~No libexpat.so\n ~No libcrypto.so\n ~No libgabi++.so\n ~
[android-developers] Re: Cannot insert breakpoint using gdbserver/arm-linux-androideabi-gdb
The NDK group would be a better place for this question https://groups.google.com/forum/?fromgroups#!forum/android-ndk On Tuesday, July 17, 2012 11:19:18 AM UTC+1, 维江 郭 wrote: Hi, I need to debug the native code and insert breakpoint. The native code is based on PJSIP project and all the related libs are assembled in libpjsipjni.so When I running C/C++ debugger and try to insert breakpoint, this error message will displayed and always shows when input continue command (gdb) Warning: Warning:\n Cannot insert breakpoint 2.\n Error accessing memory address 0x47c58: Input/output error.\n \n 174^error,msg=Warning:\ nCannot insert breakpoint 2.\nError accessing memory address 0x47c58: Input/output error.\n (gdb) Cannot insert breakpoint 2. Error accessing memory address 0x47c58: Input/output error. I have tryed to load the .so file and can see the result after info sharedlibrary command I don't know why the address cannot be accessed and cannot insert breakpoint. So thank you very much if you have any ideas to resolve this problem. Here is more information: (gdb) 153 info threads info threads\n ~ 14 Thread 21695 0x401066cc in ?? ()\n ~ 13 Thread 21594 0x401066cc in ?? ()\n ~ 12 Thread 21576 0x401066cc in ?? ()\n ~ 11 Thread 21575 0x401066cc in ?? ()\n ~ 10 Thread 21572 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 9 Thread 21571 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 8 Thread 21570 0x401066d0 in ?? ()\n ~ 7 Thread 21569 0x401066cc in ?? ()\n ~ 6 Thread 21568 0x401066cc in ?? ()\n ~ 5 Thread 21567 0x401066cc in ?? ()\n ~ 4 Thread 21566 0x401058d0 in unlink () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 3 Thread 21564 0x40105fe8 in ?? ()\n ~ 2 Thread 21561 0x401066cc in ?? ()\n ~ 1 Thread 21560 0x40803c50 in ?? ()\n warning: Couldn't restore frame in current thread, at frame 0\n ~0x40803c50 in ?? ()\n 153^done (gdb) 154-data-list-register-names 154^done,register-names=[r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,sp,lr,pc,f0,f1,f2,f3,f4,f5,f6,f7,fps,cpsr] (gdb) 155-break-insert /root/gwj_workspace/VideoTalk_temp/jni/pjsip/jni/src/pjsua_wrap.cpp:8716 155^done,bkpt={number=1,type=breakpoint,disp=keep,enabled=y,addr=0x00047c58,func=Java_org_pjsip_pjsua_pjsuaJNI_create,file=pjsip/build/..//jni/build/..//src//pjsua_wrap.cpp,fullname=/root/gwj_workspace/VideoTalk_temp/jni/pjsip/jni/src/pjsua_wrap.cpp,line=8716,times=0} (gdb) 156-stack-info-depth 156^done,depth=1 (gdb) 157-stack-list-frames 0 1 157^done,stack=[frame={level=0,addr=0x40803c50,func=??}] (gdb) 158-exec-continue 158^running (gdb) Warning: Warning:\n Cannot insert breakpoint 1. Cannot insert breakpoint 1.\n Error accessing memory address 0x47c58: Input/output error. Error accessing memory address 0x47c58: Input/output error.\n \n 158^error,msg=Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x47c58: Input/output error.\n (gdb) 159 info threads info threads\n ~ 14 Thread 21695 0x401066cc in ?? ()\n ~ 13 Thread 21594 0x401066cc in ?? ()\n ~ 12 Thread 21576 0x401066cc in ?? ()\n ~ 11 Thread 21575 0x401066cc in ?? ()\n ~ 10 Thread 21572 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 9 Thread 21571 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 8 Thread 21570 0x401066d0 in ?? ()\n ~ 7 Thread 21569 0x401066cc in ?? ()\n ~ 6 Thread 21568 0x401066cc in ?? ()\n ~ 5 Thread 21567 0x401066cc in ?? ()\n ~ 4 Thread 21566 0x401058d0 in unlink () from /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~ 3 Thread 21564 0x40105fe8 in ?? ()\n ~ 2 Thread 21561 0x401066cc in ?? ()\n ~ 1 Thread 21560 0x40803c50 in ?? ()\n warning: Couldn't restore frame in current thread, at frame 0\n ~0x40803c50 in ?? ()\n 159^done (gdb) 160-stack-info-depth 160^done,depth=1 (gdb) 161-stack-list-frames 0 1 161^done,stack=[frame={level=0,addr=0x40803c50,func=??}] (gdb) 162-data-list-changed-registers 162^done,changed-registers=[0,2,4,5,6,7,8,9,11,12,13,14,15,25] (gdb) 163 info sharedlibrary info sharedlibrary\n ~FromTo Syms Read Shared Object Library\n ~No /system/bin/linker\n ~0x40101398 0x40105f24 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libc.so\n ~0x400ee5ec 0x400ee7b8 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libstdc++.so\n ~0x4014a67c 0x4014b464 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/libm.so\n ~0x4002a31c 0x4002a3a8 Yes /root/gwj_workspace/VideoTalk_temp/libs/armeabi-v7a/liblog.so\n ~No libcutils.so\n ~0x40002bdc 0x40003118 Yes
Re: [android-developers] Re: Cannot insert breakpoint using gdbserver/arm-linux-androideabi-gdb
Thank you so much 2012/7/17 RichardC richard.crit...@googlemail.com The NDK group would be a better place for this question https://groups.google.com/forum/?fromgroups#!forum/android-ndk On Tuesday, July 17, 2012 11:19:18 AM UTC+1, 维江 郭 wrote: Hi, I need to debug the native code and insert breakpoint. The native code is based on PJSIP project and all the related libs are assembled in libpjsipjni.so When I running C/C++ debugger and try to insert breakpoint, this error message will displayed and always shows when input continue command (gdb) Warning: Warning:\n Cannot insert breakpoint 2.\n Error accessing memory address 0x47c58: Input/output error.\n \n 174^error,msg=Warning:\ nCannot insert breakpoint 2.\nError accessing memory address 0x47c58: Input/output error.\n (gdb) Cannot insert breakpoint 2. Error accessing memory address 0x47c58: Input/output error. I have tryed to load the .so file and can see the result after info sharedlibrary command I don't know why the address cannot be accessed and cannot insert breakpoint. So thank you very much if you have any ideas to resolve this problem. Here is more information: (gdb) 153 info threads info threads\n ~ 14 Thread 21695 0x401066cc in ?? ()\n ~ 13 Thread 21594 0x401066cc in ?? ()\n ~ 12 Thread 21576 0x401066cc in ?? ()\n ~ 11 Thread 21575 0x401066cc in ?? ()\n ~ 10 Thread 21572 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_**temp/libs/armeabi-v7a/libc.so\**n ~ 9 Thread 21571 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_**temp/libs/armeabi-v7a/libc.so\**n ~ 8 Thread 21570 0x401066d0 in ?? ()\n ~ 7 Thread 21569 0x401066cc in ?? ()\n ~ 6 Thread 21568 0x401066cc in ?? ()\n ~ 5 Thread 21567 0x401066cc in ?? ()\n ~ 4 Thread 21566 0x401058d0 in unlink () from /root/gwj_workspace/VideoTalk_**temp/libs/armeabi-v7a/libc.so\**n ~ 3 Thread 21564 0x40105fe8 in ?? ()\n ~ 2 Thread 21561 0x401066cc in ?? ()\n ~ 1 Thread 21560 0x40803c50 in ?? ()\n warning: Couldn't restore frame in current thread, at frame 0\n ~0x40803c50 in ?? ()\n 153^done (gdb) 154-data-list-register-names 154^done,register-names=[r0,**r1,r2,r3,r4,r5,r6,** r7,r8,r9,r10,r11,**r12,sp,lr,pc,f0,f1,** f2,f3,f4,f5,f6,f7,**fps,cpsr] (gdb) 155-break-insert /root/gwj_workspace/VideoTalk_** temp/jni/pjsip/jni/src/pjsua_**wrap.cpp:8716 155^done,bkpt={number=1,**type=breakpoint,disp=keep,** enabled=y,addr=0x00047c58,**func=Java_org_pjsip_pjsua_** pjsuaJNI_create,file=pjsip/**build/..//jni/build/..//src//** pjsua_wrap.cpp,fullname=/**root/gwj_workspace/VideoTalk_** temp/jni/pjsip/jni/src/pjsua_**wrap.cpp,line=8716,times=**0} (gdb) 156-stack-info-depth 156^done,depth=1 (gdb) 157-stack-list-frames 0 1 157^done,stack=[frame={level=**0,addr=0x40803c50,func=??**}] (gdb) 158-exec-continue 158^running (gdb) Warning: Warning:\n Cannot insert breakpoint 1. Cannot insert breakpoint 1.\n Error accessing memory address 0x47c58: Input/output error. Error accessing memory address 0x47c58: Input/output error.\n \n 158^error,msg=Warning:\**nCannot insert breakpoint 1.\nError accessing memory address 0x47c58: Input/output error.\n (gdb) 159 info threads info threads\n ~ 14 Thread 21695 0x401066cc in ?? ()\n ~ 13 Thread 21594 0x401066cc in ?? ()\n ~ 12 Thread 21576 0x401066cc in ?? ()\n ~ 11 Thread 21575 0x401066cc in ?? ()\n ~ 10 Thread 21572 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_**temp/libs/armeabi-v7a/libc.so\**n ~ 9 Thread 21571 0x401057ac in toascii () from /root/gwj_workspace/VideoTalk_**temp/libs/armeabi-v7a/libc.so\**n ~ 8 Thread 21570 0x401066d0 in ?? ()\n ~ 7 Thread 21569 0x401066cc in ?? ()\n ~ 6 Thread 21568 0x401066cc in ?? ()\n ~ 5 Thread 21567 0x401066cc in ?? ()\n ~ 4 Thread 21566 0x401058d0 in unlink () from /root/gwj_workspace/VideoTalk_**temp/libs/armeabi-v7a/libc.so\**n ~ 3 Thread 21564 0x40105fe8 in ?? ()\n ~ 2 Thread 21561 0x401066cc in ?? ()\n ~ 1 Thread 21560 0x40803c50 in ?? ()\n warning: Couldn't restore frame in current thread, at frame 0\n ~0x40803c50 in ?? ()\n 159^done (gdb) 160-stack-info-depth 160^done,depth=1 (gdb) 161-stack-list-frames 0 1 161^done,stack=[frame={level=**0,addr=0x40803c50,func=??**}] (gdb) 162-data-list-changed-**registers 162^done,changed-registers=[**0,2,4,5,6,7,8,9** ,11,12,13,14,15,25**] (gdb) 163 info sharedlibrary info sharedlibrary\n ~FromTo Syms Read Shared Object Library\n ~No /system/bin/linker\n ~0x40101398 0x40105f24 Yes /root/gwj_workspace/VideoTalk_** temp/libs/armeabi-v7a/libc.so\**n ~0x400ee5ec 0x400ee7b8 Yes /root/gwj_workspace/VideoTalk_** temp/libs/armeabi-v7a/libstdc+**+.so\n ~0x4014a67c 0x4014b464 Yes /root/gwj_workspace/VideoTalk_** temp/libs/armeabi-v7a/libm.so\**n ~0x4002a31c 0x4002a3a8 Yes /root/gwj_workspace/VideoTalk_**
[android-developers] Re: Clearing the RAM is not closing the whole application (i.e. all the activities)
You need to cope with just your top activity being kill anyway so why is this a problem? On Tuesday, July 17, 2012 10:18:00 AM UTC+1, xoom wrote: Hello all, I have 50 + activities in my application. Application is built for android version 2.0 onwards android devices. Everything is working fine on 2.x and 3.x android running devices but there is a strange problem happening on 4.x running android devices. On 4.x device, after starting my app if I clear the RAM from the task manager i am getting an application crash. I checked the logcat prints and I found that when I clear the RAM, android kills my current running activity only (i.e. first in the activity stack). I checked the documentation and as per the documentation android should close the whole app (i.e. with the whole activity stack). But the same is not happening on 4.x devices. Unlike 4.x, 2.x and 3.x devices kills all the parent activities as well and because of that the app works without any issue on 2.x and 3.x devices. I am getting lots of crashes in my app because of this changed behavior. Is there anything I need to do in my app to handle this specifically for 4.X android versions. Please help me to solve the issue it is giving lot of trouble to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Clearing the RAM is not closing the whole application (i.e. all the activities)
Thanks Richard for the reply. Actually when I clear the RAM from task manager it clears all the memory of my application including some global variables shared between the activities. And when the activity restarts I am getting null pointer exceptions because this global variables are getting cleared. One way is to store the application state in bundle but is there any other way? If my whole application is closed then its fine, no need to preserve the application state also. On Tuesday, July 17, 2012 4:06:21 PM UTC+5:30, RichardC wrote: You need to cope with just your top activity being kill anyway so why is this a problem? On Tuesday, July 17, 2012 10:18:00 AM UTC+1, xoom wrote: Hello all, I have 50 + activities in my application. Application is built for android version 2.0 onwards android devices. Everything is working fine on 2.x and 3.x android running devices but there is a strange problem happening on 4.x running android devices. On 4.x device, after starting my app if I clear the RAM from the task manager i am getting an application crash. I checked the logcat prints and I found that when I clear the RAM, android kills my current running activity only (i.e. first in the activity stack). I checked the documentation and as per the documentation android should close the whole app (i.e. with the whole activity stack). But the same is not happening on 4.x devices. Unlike 4.x, 2.x and 3.x devices kills all the parent activities as well and because of that the app works without any issue on 2.x and 3.x devices. I am getting lots of crashes in my app because of this changed behavior. Is there anything I need to do in my app to handle this specifically for 4.X android versions. Please help me to solve the issue it is giving lot of trouble to 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
Re: [android-developers] Re: Unable to execute Bluetooth HDP Demo
For my 6 monthes reseach, I understand that below. No one can build Android HDP application with this HDP API. (Some people built HDP app to use Bluez with JNI. search in youtube.) I cann't find any Android HDP app in markets. (it has taken 6 monthes over since HDP API to be published!) So many people have troubles about HDP demo. Android API developers don't take any action about it. (4.1.1 jellybean has same problems http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars) The only way to report the problem to Android API developers is Google group Android. (http://code.google.com/p/android/issues/list) developer.android.com dosen't publish mail address but provide this forum. I want to add star to the HDP issues(http://code.google.com/p/android/issues/detail?id=26704q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars) API developers to see, if no one has solution. Regards. On Tuesday, July 17, 2012 4:49:41 PM UTC+9, jfernandez wrote: Hi wambin, Then, you have found the same troubles that all of us. Regards. On Tue, Jul 17, 2012 at 7:59 AM, wambin ambitiouss...@gmail.com wrote: Hi, thanks to reply. The problem is that ApplicationConfiguration remain, in spite of calling unregisterAppConfiguration(). I confirmed the demo can communicate with a health device at first time, but second time or later it cann't. Sometimes Android reboots when I unregister the application config and REregister. The demo can communicate only once whenever rebooting. My health devices blood pressure: HEM-7081-IT weighing machine: HBF-206IT pedometer: HJ-720IT I can communicate currectly with all of these devices and get health data.(only once whenever rebooting) On Thursday, July 12, 2012 6:06:55 PM UTC+9, jfernandez wrote: Hi wambin: Could you tell more about the exact problem that you are experiencing? And, what's the medical device that you are using? Regards. On Tue, Jul 10, 2012 at 12:16 PM, wambin ambitiouss...@gmail.com wrote: Hi jfernandez and all. I've had the same problem for half a year. My device is Galaxy Nexus SC-04D ver4.0.4. I've not solved this problem yet, in spite of half a year researches. I gradually be sure that this is a bug of unregisterAppConfig(). Here is a report about this problem. Google android group http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars I think this is a only way to report the bug to Android API developers, because developer.android.com provides this forum as a Support. So, I want you to add a star or comment to this issue, if you have the same problem. And wish to be debug. On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote: Hi all, I have observed a strange and undesirable behaviour that I'm going to describe. When an HDP channel is stablished, the Android system starts a long proccess of freeing memory (I have lots of Logcat messages like dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the system crashes and the smartphone is rebooted. I don't know if this is a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does anybody has the same problem? Thanks and regards! On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing the BluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone isunableto open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of the Bluetooth Health Profile API? Any ideas? Thanks. Regards. [1] http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath:
Re: [android-developers] Re: Clearing the RAM is not closing the whole application (i.e. all the activities)
Well, this would be one of many reasons that global variables should be avoided like the plague wherever possible... The correct thing to do would be to save you're application state in onSaveInstanceState() and restore it in onRestoreInstanceState() On Jul 17, 2012 4:50 AM, xoom ei.rtsp.x...@gmail.com wrote: Thanks Richard for the reply. Actually when I clear the RAM from task manager it clears all the memory of my application including some global variables shared between the activities. And when the activity restarts I am getting null pointer exceptions because this global variables are getting cleared. One way is to store the application state in bundle but is there any other way? If my whole application is closed then its fine, no need to preserve the application state also. On Tuesday, July 17, 2012 4:06:21 PM UTC+5:30, RichardC wrote: You need to cope with just your top activity being kill anyway so why is this a problem? On Tuesday, July 17, 2012 10:18:00 AM UTC+1, xoom wrote: Hello all, I have 50 + activities in my application. Application is built for android version 2.0 onwards android devices. Everything is working fine on 2.x and 3.x android running devices but there is a strange problem happening on 4.x running android devices. On 4.x device, after starting my app if I clear the RAM from the task manager i am getting an application crash. I checked the logcat prints and I found that when I clear the RAM, android kills my current running activity only (i.e. first in the activity stack). I checked the documentation and as per the documentation android should close the whole app (i.e. with the whole activity stack). But the same is not happening on 4.x devices. Unlike 4.x, 2.x and 3.x devices kills all the parent activities as well and because of that the app works without any issue on 2.x and 3.x devices. I am getting lots of crashes in my app because of this changed behavior. Is there anything I need to do in my app to handle this specifically for 4.X android versions. Please help me to solve the issue it is giving lot of trouble to 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android makefile to generae the static executable
On Tue, Jul 17, 2012 at 02:27:52AM -0700, Sam wrote: Hi, if any of you have any clue. Please let me know. This has puzzled me a couple of days long. The reason you aren't getting an answer here is because this group is for developing via the SDK. NDK questions belong in the NDK group (android-...@googlegroups.com). Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| 1) Smoking habanero powder helps defeat that Running Mac OS X Lion|off taste' quite nicely. spooky1...@gmail.com| 2) I figure a couple bong hits of [habanero] ICBM/Hurr.: / 30.44406N |powder would defeat just about anything! | 86.59909W--seen in Chile-Heads list 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
Re: [android-developers] Re: Clearing the RAM is not closing the whole application (i.e. all the activities)
On Tue, Jul 17, 2012 at 6:48 AM, xoom ei.rtsp.x...@gmail.com wrote: Actually when I clear the RAM from task manager it clears all the memory of my application including some global variables shared between the activities. And when the activity restarts I am getting null pointer exceptions because this global variables are getting cleared. One way is to store the application state in bundle but is there any other way? If my whole application is closed then its fine, no need to preserve the application state also. Your whole application is closed in all cases you have cited here. Your process is being terminated by the task manager, as you can tell by the fact that your global variables have been cleared. Your problem is that you are assuming that those global variables always exist and that users are always coming into your application through one path that sets up those variables. That is not necessarily a valid assumption -- recent tasks is just one example of a way the user can deep link elsewhere in your application. One way or another, you need to handle the case where users return to your app, running in a fresh process, but are not coming into your launcher activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Adding functions dynamically from application to Jar
Thanks Ali. I am aware of the what the design patterns are, what i needed to know is which one hits the spot in my case. Anyways I have gone ahead with something that I have figured after some head scratching and will let you all know if i succeed. On Tue, Jul 17, 2012 at 12:42 PM, Ali Chousein ali.chous...@gmail.comwrote: You cannot extend case statements in your code dynamically, but take a look at the strategy design pattern ( http://en.wikipedia.org/wiki/Strategy_pattern). I think that's what you need. Design patterns are not Android specific by the way, they are just a set of best practices in designing software. - Ali Chousein https://play.google.com/store/apps/details?id=com.apps.social_nav https://play.google.com/store/apps/details?id=com.apps.weather_buddy http://www.paygol.com/android/implementation -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Harsh Vardhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exclude asset-folder at compiletime in Eclipse
No, since I'm under Windows the link is displayed as file *.lnk by Eclipse and not as a folder. Thus the compiler should interprete as file as well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exclude asset-folder at compiletime in Eclipse
http://en.wikipedia.org/wiki/NTFS_symbolic_link 2012/7/17 Zohob phil...@online.de No, since I'm under Windows the link is displayed as file *.lnk by Eclipse and not as a folder. Thus the compiler should interprete as file as well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] possible to read drag in status bar notication
All, I wanted to read the status of drag i.e. expansion and collapse of Status bar/ system status bar. is it possible? -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dialog with dynamic ListView content
I would like to build an Alertdialog containing a ListView with dynamic changing content in the ListView. All I build is an AlertDialog and I don´t know what to implement next. ListView, ListAdapter, Activitys or w00t? Anyway the all mighty google gave me answers to questions i didn´t ask. I feel a littlebit 42 now. Thanks a lot for all the answers your finger will type. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] possible to read drag in status bar notication
AFAIK this is not possible... On Jul 17, 2012 5:56 AM, Rocky rkjhaw1...@gmail.com wrote: All, I wanted to read the status of drag i.e. expansion and collapse of Status bar/ system status bar. is it possible? -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiple listviews with single sql database
Do the same thing you did for the first list view... As many times as needed. On Jul 17, 2012 1:14 AM, horizon2012 sidharth.bola...@gmail.com wrote: I am new into android app development although i successfully created a singly list view with access to a single database but i am a bit lost on how will i make multiple list views accessing a single database -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android makefile to generae the static executable
Ok, thanks for letting me know. : ) On 7月17日, 下午7時22分, Jim Graham spooky1...@gmail.com wrote: On Tue, Jul 17, 2012 at 02:27:52AM -0700, Sam wrote: Hi, if any of you have any clue. Please let me know. This has puzzled me a couple of days long. The reason you aren't getting an answer here is because this group is for developing via the SDK. NDK questions belong in the NDK group (android-...@googlegroups.com). Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | 1) Smoking habanero powder helps defeat that Running Mac OS X Lion | off taste' quite nicely. spooky1...@gmail.com | 2) I figure a couple bong hits of [habanero] ICBM/Hurr.: / 30.44406N | powder would defeat just about anything! | 86.59909W --seen in Chile-Heads list AndroidApps Listing athttp://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
Re: [android-developers] possible to read drag in status bar notication
Test Case is - 1. I'm inside my application 2. I expand status bar. 3. once i expand it, i need to come out from my application, basically logout. 4. so I wanted to know, That whether I can capture drag/expand feature or not. On Tue, Jul 17, 2012 at 5:44 PM, Justin Anderson magouyaw...@gmail.comwrote: AFAIK this is not possible... On Jul 17, 2012 5:56 AM, Rocky rkjhaw1...@gmail.com wrote: All, I wanted to read the status of drag i.e. expansion and collapse of Status bar/ system status bar. is it possible? -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] possible to read drag in status bar notication
Thanks to reply... but My Test Case is - 1. I'm inside my application 2. I expand status bar. 3. once i expand it, i need to come out from my application, basically logout. 4. so I wanted to know, That whether I can capture drag/expand feature or not. On Tue, Jul 17, 2012 at 5:44 PM, Justin Anderson magouyaw...@gmail.comwrote: AFAIK this is not possible... On Jul 17, 2012 5:56 AM, Rocky rkjhaw1...@gmail.com wrote: All, I wanted to read the status of drag i.e. expansion and collapse of Status bar/ system status bar. is it possible? -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Show Spinner Initial Text
Narendra Sir, i have applied that...but it shows when i clicked in spinner...i want when the first spinner appeared then it will show some text. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: File location of database file by using SQLiteDatabase
Alok You can find the database file in eclipse using the following navigation: While your emulator is running, click DDMS in the upper right. Then expand data, data, yourpackagname, database as shown below. From here you can delete, download, upload the db file. On Monday, July 16, 2012 8:51:56 AM UTC-4, Alok Yadav wrote: Hi All, In SQLiteDatabase, Table and its rows and columns are saved in a file. i want to know the location that database file in which inserted new record and updated new record saved. Pls suggest me the location of that file as i want to see my data in that file. 1) If i am using my app in Emulator. 2) If i am using my app in Android mobile where i have only .apk file of my app. 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: File location of database file by using SQLiteDatabase
oops, it doesnt let me past the file... here it is attached. On Tuesday, July 17, 2012 8:53:07 AM UTC-4, Andrew Cesario wrote: Alok You can find the database file in eclipse using the following navigation: While your emulator is running, click DDMS in the upper right. Then expand data, data, yourpackagname, database as shown below. From here you can delete, download, upload the db file. On Monday, July 16, 2012 8:51:56 AM UTC-4, Alok Yadav wrote: Hi All, In SQLiteDatabase, Table and its rows and columns are saved in a file. i want to know the location that database file in which inserted new record and updated new record saved. Pls suggest me the location of that file as i want to see my data in that file. 1) If i am using my app in Emulator. 2) If i am using my app in Android mobile where i have only .apk file of my app. 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=enattachment: Snap1.jpg
[android-developers] Bound Bluetoothdevices in my app
Is that possibly in general cause i searched for it a several time without a result. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Run application with system / root permissions.
You simply cannot do that without a chrooted device. Each app runs within its own sandbox and one application cannot do nothing on other app. On Jul 14, 2012 8:32 PM, Jordi Sayeras jsayer...@gmail.com wrote: Hi, I've been searching about this topic but I haven't found a clear solution yet. As far as I know, you can specify different *protectionLevel* in your *AndroidManifest.xml*, those permissions allow other applications to interact with the one you are developing. As an example, imagine that I want to kill a processes, that is not mine (from another package) or that I want to install a driver I've developed. In both cases the problem is the same, those things need to be run as a system / root. How can I develop programs that require system / root permissions, do I need an special license? *Note:* Please, note that granting the permission: *uses-permission android:name=android.permission.KILL_BACKGROUND_PROCESSES/* Using *android:sharedUserId=android.uid.system* does not work either. Also, consider that I cannot ask the users to have their mobiles rooted. Thanks in advance. Jordi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Run application with system / root permissions.
s/chrooted/rooted/g On Jul 17, 2012 3:12 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: You simply cannot do that without a chrooted device. Each app runs within its own sandbox and one application cannot do nothing on other app. On Jul 14, 2012 8:32 PM, Jordi Sayeras jsayer...@gmail.com wrote: Hi, I've been searching about this topic but I haven't found a clear solution yet. As far as I know, you can specify different *protectionLevel* in your *AndroidManifest.xml*, those permissions allow other applications to interact with the one you are developing. As an example, imagine that I want to kill a processes, that is not mine (from another package) or that I want to install a driver I've developed. In both cases the problem is the same, those things need to be run as a system / root. How can I develop programs that require system / root permissions, do I need an special license? *Note:* Please, note that granting the permission: *uses-permission android:name=android.permission.KILL_BACKGROUND_PROCESSES/* Using *android:sharedUserId=android.uid.system* does not work either. Also, consider that I cannot ask the users to have their mobiles rooted. Thanks in advance. Jordi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] possible to read drag in status bar notication
Regardless of your test case, the answer is no, you cannot do that. In all reality though, why in the world do you want to either exit your app or log out simply when the user pulls down the notification bar? Personally, that would frustrate the hell out of me if I were using an app that did that. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 17, 2012 at 6:36 AM, Rocky rkjhaw1...@gmail.com wrote: Test Case is - 1. I'm inside my application 2. I expand status bar. 3. once i expand it, i need to come out from my application, basically logout. 4. so I wanted to know, That whether I can capture drag/expand feature or not. On Tue, Jul 17, 2012 at 5:44 PM, Justin Anderson magouyaw...@gmail.comwrote: AFAIK this is not possible... On Jul 17, 2012 5:56 AM, Rocky rkjhaw1...@gmail.com wrote: All, I wanted to read the status of drag i.e. expansion and collapse of Status bar/ system status bar. is it possible? -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android NFC - detect the send has been done
Use a server and do it ! On Mon, Jul 16, 2012 at 7:57 PM, Károly Holczhauser holczhau...@gmail.comwrote: Hi there ! I'm writing an application where I have to send a content from A device to B. After the content has been successfully transferred I have to delete it from the 'A' device. I had already done some Google search work, but I didn't find any solution. Can you help me please, how can I detect the transfer has completed event and send back a kind of OK message ? Thank you so much, Cheers, Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Show Spinner Initial Text
http://lmgtfy.com/?q=android+spinner+initial+text Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 17, 2012 at 6:41 AM, abhijeet tomar abhijeet...@gmail.comwrote: Narendra Sir, i have applied that...but it shows when i clicked in spinner...i want when the first spinner appeared then it will show some text. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 with dynamic ListView content
Use one of the variations of setSingleChoiceOptions... Here is the link to one of them: http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setSingleChoiceItems%28java.lang.CharSequence[],%20int,%20android.content.DialogInterface.OnClickListener%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 17, 2012 at 5:55 AM, superpsycho s.thues...@gmx.de wrote: I would like to build an Alertdialog containing a ListView with dynamic changing content in the ListView. All I build is an AlertDialog and I don´t know what to implement next. ListView, ListAdapter, Activitys or w00t? Anyway the all mighty google gave me answers to questions i didn´t ask. I feel a littlebit 42 now. Thanks a lot for all the answers your finger will type. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WebView in android 4.1.1 crashes for URLs with a non-standard separation of query parameters
Hi Guys, another problem with the new WebView in Jelly Bean (4.1.1): An app using the WebView crashes, when opening an URL that separates its query parameters not using the ampersand character ('') but e.g. a semi colon (';'). Reproduce: 1) Call the following URL in a WebView: http://www.heise.de/newsticker/meldung/TomTom-baut-um-1643641.html the German heise page will redirect you to http://m.heise.de/newsticker/meldung/TomTom-baut-um-1643641.html?mrw_channel=ho;mrw_channel=ho;from-classic=1 The page will load, but as soon as loading has finished the app will crash with the following stack trace: java.lang.IllegalArgumentException: bad parameter at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:139) at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:76) at android.webkit.AccessibilityInjector.getAxsUrlParameterValue(AccessibilityInjector.java:406) at android.webkit.AccessibilityInjector.shouldInjectJavaScript(AccessibilityInjector.java:322) at android.webkit.AccessibilityInjector.onPageFinished(AccessibilityInjector.java:281) at android.webkit.WebViewClassic.onPageFinished(WebViewClassic.java:3943) at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:325) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Taking a look into the code of URLEncodedUtils.parse() (which is indirectly called by WebViewClassic.onPageFinished()) shows why: The code throws the shown exception if a single query parameter contains more than one equals sign ('='). As this class assumes query parameters to be separated by '' the defect URL shown above has effectively only one query parameter from the view point of the URLEncodedUtils-class and thus this single query parameter has multiple equals signs causing the crash. The stack trace also shows, that the method is called indirectly in the event handler, so that there isn't a valid way to catch the exception. Though the shown URL is defect it occurs in reality and I think the WebView should be a little more tolerant. Best regards Sven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Show Spinner Initial Text
Hai abhijeet tomar, just refer this site you got some idea http://www.androidpeople.com/android-spinner-default-value On Tue, Jul 17, 2012 at 6:49 PM, Justin Anderson magouyaw...@gmail.comwrote: http://lmgtfy.com/?q=android+spinner+initial+text Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 17, 2012 at 6:41 AM, abhijeet tomar abhijeet...@gmail.comwrote: Narendra Sir, i have applied that...but it shows when i clicked in spinner...i want when the first spinner appeared then it will show some text. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- WITH REGARDS ARUN KUMAR P D +91-9994794759 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WebView in android 4.1.1 crashes for URLs with a non-standard separation of query parameters
You are welcome to file this as a bug report/feature request on b.android.com. On Tue, Jul 17, 2012 at 9:22 AM, sven sven.span...@googlemail.com wrote: Hi Guys, another problem with the new WebView in Jelly Bean (4.1.1): An app using the WebView crashes, when opening an URL that separates its query parameters not using the ampersand character ('') but e.g. a semi colon (';'). Reproduce: 1) Call the following URL in a WebView: http://www.heise.de/newsticker/meldung/TomTom-baut-um-1643641.html the German heise page will redirect you to http://m.heise.de/newsticker/meldung/TomTom-baut-um-1643641.html?mrw_channel=ho;mrw_channel=ho;from-classic=1 The page will load, but as soon as loading has finished the app will crash with the following stack trace: java.lang.IllegalArgumentException: bad parameter at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:139) at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:76) at android.webkit.AccessibilityInjector.getAxsUrlParameterValue(AccessibilityInjector.java:406) at android.webkit.AccessibilityInjector.shouldInjectJavaScript(AccessibilityInjector.java:322) at android.webkit.AccessibilityInjector.onPageFinished(AccessibilityInjector.java:281) at android.webkit.WebViewClassic.onPageFinished(WebViewClassic.java:3943) at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:325) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Taking a look into the code of URLEncodedUtils.parse() (which is indirectly called by WebViewClassic.onPageFinished()) shows why: The code throws the shown exception if a single query parameter contains more than one equals sign ('='). As this class assumes query parameters to be separated by '' the defect URL shown above has effectively only one query parameter from the view point of the URLEncodedUtils-class and thus this single query parameter has multiple equals signs causing the crash. The stack trace also shows, that the method is called indirectly in the event handler, so that there isn't a valid way to catch the exception. Though the shown URL is defect it occurs in reality and I think the WebView should be a little more tolerant. Best regards Sven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] PendingIntent launched from widget causes onActivityResult to not be called
I have an issue with one of my applications that is using a PendingIntent to launch an activity from a widget... This is the piece of code that does the trick: PendingIntent pendingIntent = PendingIntent.getActivity(ctx, widgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT); views.setOnClickPendingIntent(resId, pendingIntent); Now let me explain you the cases: This is the flow it should do: [Widget] - Click button, launch activity [StartTimeRegistrationActivity] - task needs to be selected so start TaskSelectionActivity for result automatically [TaskSelectionActivity] - Task selected, so the TaskSelectionActivity is finished and coming back in the onActivityResult - Do some automated stuff in this activity - Finish the activity (so finish() and go into onDestroy()) If, from somewhere in my application, I start the activity manually (so without a pending intent) it's started correctly and executes correctly. However if I start it with the PendingIntent with the flag set to PendingIntent.FLAG_UPDATE_CURRENT part of my flow is not executed anymore, specifically the onActivityResult of the StartTimeRegistrationActivity. So this becomes the flow: [Widget] - Click button, launch activity [StartTimeRegistrationActivity] - task needs to be selected so start TaskSelectionActivity for result automatically [TaskSelectionActivity] - Task selected, so the TaskSelectionActivity is finished, but not coming in the onActivityResult but directly to the onDestory() method (not passing the finish() method anywhere) If I change the pending intent to use the flag PendingIntent.FLAG_ONE_SHOT the flow is executed correctly. But then, when the StartTimeRegistrationActivity is open, and the user presses the back-button to cancel his action (a case that is perfectly acceptable for this application) he cannot click the button anymore because the PendingIntent.FLAG_ONE_SHOT declares that it will be automatically cancelled as soon as the send() method is called once on it. So any ideas here how to work around 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] Clearing a system set notification, can it be done?
At my school we have an internet security system, that every time your network connection goes inactive, it disconnects you, and you have to use the web browser to log back into the network. I created an app for my campus that detects the disconnect, and loggs the user back in with broadcast receivers, this part works fine, however, with my phone, it also detects that the network requires a login, and sets a notification: Login to the [SSID] network. Is there a way to after my application runs, dismiss this system set notification? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Forcing lower resolution drawables on phones with big screens and small RAM
Hey, thanks for the reply. I guess I should have explained more clearly. This is a lighter type animation, which responds to accelerometer input. The flame flickers (plays from a start frame on a short loop) and when you tilt the phone, the start frame is swept through an animation of the flame bending from one side to another. Because of this, I'm not sure I could really stream anything since I might need any one frame of the animation at any point. It just occurred to me that maybe I could store only half the frames and flip them in software (currently the flip is just rendered into the animation). This is why I'm just using a big image sequence (about 150 frames) as drawables. Any advice? On Saturday, July 14, 2012 12:26:13 PM UTC-4, Nobu Games wrote: How many items are in your animation list? If it is really, really huge I'd add some streaming logic to your animation player, so older frames get recycled while future frames are loaded in the background. That way you have absolute control over a moving window of frames and you could size that window according to the available amount of free memory. You wouldn't risk OOM crashes on any device with that technique. Alternatively you could create a video based on your frames and play that one back instead. On Friday, July 13, 2012 10:54:46 PM UTC-5, Matt Schoen wrote: Hey there, I've tried to find info on this, but it seems like a pretty esoteric case. I'll admit that I'm probably completely off-base to start, but the app is 99% done, so I'd rather not change my implementation from it's current state. I have an animation that I'm using a big list of drawables to display, and while it works fine on phones with enough RAM, I get VM out of memory crashes on devices with basically 512 MB RAM and below. I've found the getMemoryClass() function, which seems to report 32 for a device with 512MB. I tried overriding the density value, which successfully avoided the crash, but also resized my whole view! All I want is to be able to programmatically tell the view framework to default to the low-res images. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] can we restart systemserver..............?
HiDianne Hackborn , Thanks for the reply, still I am having some doubts, 1) I read that HeadsetObserver which is a systemservice, starts whenever headset is detected and stops working whenever we removed the headdset. Similarly I want to start or stop particular systemservice(PackageManagerService,ActivityMAnagerService etc...) whenever it's required. ** ** ** Why I want to do restart the systemservices means, whenever user presess on a button I want reload all the applications, without rebooting complete device. instead of that I am planning to restart some systemservices like PackageManagerService and ActivityManagerService because these are services which plays keyrole for loading apps(SystemApps and Market apps). ** ** 2) If it's not possible to restart the systemservices then I am planning to restart the SystemServer(SystemServer .java) so that all systemservices will be restarted, eventually all ** apps will be reloaded without rebooting complete device. ** ** I dont know whether these are possible things or not just I am thinking. I am ready to do Framework level changes. Could you please suggest me as I am new to Application Framework. On Sun, Jul 15, 2012 at 1:01 PM, Dianne Hackborn hack...@android.comwrote: Not from a third party app. You can stop/start it with adb shell stop and adb shell start. If it is stopped, all of the framework goes down, including all applications. You can't stop/start individual system services. On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, Generally SystemServer wiil start all systemservices (ActivityManagerService, PackageManager etc..)right. 1)Is it possible to restart the systemserver so that all systemservices will be restarted. 2) Similarly can we restart the particular systemservice for ex: PackageManagerService. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exclude asset-folder at compiletime in Eclipse
Thank you, it worked! It's not that comfortable (it's similar to move the asset-folder to the recycling bin and back) but it solves my problem! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New READ_EXTERNAL_STORAGE permission breaks file:// URIs
Throwing this out for discussion here... Now that I have a JB device in-hand, I've found a sneaky little problem with the new READ_EXTERNAL_STORAGE permission. Specifically, if you pass another app a URI - say via a ContentProvider - that uses the file:// protocol, then the receiving app NEEDS the new permission in order to read from that URI. Thus, the new permission has the (presumably unintended) potential to break an unknown number of existing apps when it enters production: their ContentProviders will suddenly cease to work. I ran into this because I've re-implemented most of my AppWidgets to use file:// URIs for their imagery, rather than passing the bitmap directly through RemoteViews. [This was done as a workaround for http://code.google.com/p/android/issues/detail?id=17509.] And it works fine unless you enable the READ_EXTERNAL_STORAGE check on JB hardware, at which point the images fail to load due to a permission failure from Launcher. One solution would obviously be to report this as a bug in Launcher, and for the appropriate team at Google to add READ_EXTERNAL_STORAGE to its permissions. Not a great solution, though, because it only fixes this single case. All other homescreen-replacement apps, from everyone from OEMs to indie devs, would need to make the same change. And I can promise you some won't. Another possible solution would be for me to keep these images in internal storage, making them world-readable so the URI recipient can read them. I haven't tested this to see if it'll work, but even assuming it does, it's a change that anyone who generates a file:// URI would need to make. And probably, some of them are generating URIs to files that can't reasonably be moved to internal storage. So we're back in the business of breaking existing apps. I don't know the internals well enough, but is it possible that there's a solution that could be implemented at the platform level? That whatever platform mechanism fulfills file:// URIs would bypass the READ_EXTERNAL_STORAGE permission check? Or is this by design, platform team? If so, I think it really needs to be publicized. Comments? String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Forcing lower resolution drawables on phones with big screens and small RAM
You still could go with the streaming idea. At any given time you would have a fixed size amount of frames in memory (let's say 15 bitmaps, just as an example). As the animation progresses you need to load the next batch and discard older ones. In order to prevent loading hickups you could proceed as follows: - Your window of animation bitmaps has 15 items. - As the animation counter reaches item #6 you would recycle the last 5 ones and load the next 5 ones that come after item #15 - Loading needs to be done in a background thread (AsyncTask) Of course you'd need to add special logic for your case, like allowing to loop a certain amount of animation frames and starting playback from any point of the sequence and so on. But this could be done with a fixed size window of frames. I think that's the only sane way to do that based on that huge bitmap sequence and you could even adjust the window size according to the available memory. Play around with these numbers in order to get the best result for your animation. By the way, I would just animate the flame itself and use a single, static bitmap for the lighter. That way you could use a low-resolution bitmap sequence of the flame and scale it up on devices with less memory. Lights and shadows could be faked in real time, too, by drawing overlays on the view's canvas. Maybe you can get away with that solution and don't need to implement a streaming technique. On Tuesday, July 17, 2012 9:28:59 AM UTC-5, Matt Schoen wrote: Hey, thanks for the reply. I guess I should have explained more clearly. This is a lighter type animation, which responds to accelerometer input. The flame flickers (plays from a start frame on a short loop) and when you tilt the phone, the start frame is swept through an animation of the flame bending from one side to another. Because of this, I'm not sure I could really stream anything since I might need any one frame of the animation at any point. It just occurred to me that maybe I could store only half the frames and flip them in software (currently the flip is just rendered into the animation). This is why I'm just using a big image sequence (about 150 frames) as drawables. Any advice? On Saturday, July 14, 2012 12:26:13 PM UTC-4, Nobu Games wrote: How many items are in your animation list? If it is really, really huge I'd add some streaming logic to your animation player, so older frames get recycled while future frames are loaded in the background. That way you have absolute control over a moving window of frames and you could size that window according to the available amount of free memory. You wouldn't risk OOM crashes on any device with that technique. Alternatively you could create a video based on your frames and play that one back instead. On Friday, July 13, 2012 10:54:46 PM UTC-5, Matt Schoen wrote: Hey there, I've tried to find info on this, but it seems like a pretty esoteric case. I'll admit that I'm probably completely off-base to start, but the app is 99% done, so I'd rather not change my implementation from it's current state. I have an animation that I'm using a big list of drawables to display, and while it works fine on phones with enough RAM, I get VM out of memory crashes on devices with basically 512 MB RAM and below. I've found the getMemoryClass() function, which seems to report 32 for a device with 512MB. I tried overriding the density value, which successfully avoided the crash, but also resized my whole view! All I want is to be able to programmatically tell the view framework to default to the low-res images. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New READ_EXTERNAL_STORAGE permission breaks file:// URIs
You can put your data in your own content provider. Actually, you should stop and think about doing this approach at all. You say this is for an app widget... why not provide the bitmaps as bitmaps instead of having it load the data elsewhere? Note that if you don't provide the bitmaps directly, anything you do means you are making this data globally readable by everyone (because you can't make any assumptions about the permissions available to whoever is hosting your app widget), which is generally a big no-no for security reasons. This isn't a launcher bug. Launcher is just one possible host of app widgets. You can't assume whoever is hosting your app widget will have any specific permissions. Also this is why the protection in JB is turned off by default. Right now app developers should be updating their apps to fix these issues, so when this protection is turned on for all users in a future release they will still work. Btw this change is described in the permissions section of the 4.1 API overview: http://developer.android.com/about/versions/android-4.1.html On Tue, Jul 17, 2012 at 9:21 AM, String sterling.ud...@googlemail.comwrote: Throwing this out for discussion here... Now that I have a JB device in-hand, I've found a sneaky little problem with the new READ_EXTERNAL_STORAGE permission. Specifically, if you pass another app a URI - say via a ContentProvider - that uses the file:// protocol, then the receiving app NEEDS the new permission in order to read from that URI. Thus, the new permission has the (presumably unintended) potential to break an unknown number of existing apps when it enters production: their ContentProviders will suddenly cease to work. I ran into this because I've re-implemented most of my AppWidgets to use file:// URIs for their imagery, rather than passing the bitmap directly through RemoteViews. [This was done as a workaround for http://code.google.com/p/android/issues/detail?id=17509.] And it works fine unless you enable the READ_EXTERNAL_STORAGE check on JB hardware, at which point the images fail to load due to a permission failure from Launcher. One solution would obviously be to report this as a bug in Launcher, and for the appropriate team at Google to add READ_EXTERNAL_STORAGE to its permissions. Not a great solution, though, because it only fixes this single case. All other homescreen-replacement apps, from everyone from OEMs to indie devs, would need to make the same change. And I can promise you some won't. Another possible solution would be for me to keep these images in internal storage, making them world-readable so the URI recipient can read them. I haven't tested this to see if it'll work, but even assuming it does, it's a change that anyone who generates a file:// URI would need to make. And probably, some of them are generating URIs to files that can't reasonably be moved to internal storage. So we're back in the business of breaking existing apps. I don't know the internals well enough, but is it possible that there's a solution that could be implemented at the platform level? That whatever platform mechanism fulfills file:// URIs would bypass the READ_EXTERNAL_STORAGE permission check? Or is this by design, platform team? If so, I think it really needs to be publicized. Comments? String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] can we restart systemserver..............?
This isn't anywhere nearly possible with the SDK Are you doing platform modifications? If so then android-platform is the list you want, Furthermore, I'm not sure this really makes sense, there's not support to just reload all the apps. kris On Tue, Jul 17, 2012 at 10:52 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: HiDianne Hackborn , Thanks for the reply, still I am having some doubts, 1) I read that HeadsetObserver which is a systemservice, starts whenever headset is detected and stops working whenever we removed the headdset. Similarly I want to start or stop particular systemservice(PackageManagerService,ActivityMAnagerService etc...) whenever it's required. Why I want to do restart the systemservices means, whenever user presess on a button I want reload all the applications, without rebooting complete device. instead of that I am planning to restart some systemservices like PackageManagerService and ActivityManagerService because these are services which plays keyrole for loading apps(SystemApps and Market apps). 2) If it's not possible to restart the systemservices then I am planning to restart the SystemServer(SystemServer .java) so that all systemservices will be restarted, eventually all apps will be reloaded without rebooting complete device. I dont know whether these are possible things or not just I am thinking. I am ready to do Framework level changes. Could you please suggest me as I am new to Application Framework. On Sun, Jul 15, 2012 at 1:01 PM, Dianne Hackborn hack...@android.com wrote: Not from a third party app. You can stop/start it with adb shell stop and adb shell start. If it is stopped, all of the framework goes down, including all applications. You can't stop/start individual system services. On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, Generally SystemServer wiil start all systemservices (ActivityManagerService, PackageManager etc..)right. 1)Is it possible to restart the systemserver so that all systemservices will be restarted. 2) Similarly can we restart the particular systemservice for ex: PackageManagerService. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] can we restart systemserver..............?
You can't. Asking the same question again doesn't change the answer. :/ And good ghod, no of course you can't restart the freaking activity manager without restarting all the apps. I mean... come on! You haven't actually said what you are trying to do, but the path you are going down here is almost certainly wrong for whatever it is. Restarting something like the activity manager is not in any way shape or form correct as a normal part of the system operation. On Tue, Jul 17, 2012 at 7:52 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: HiDianne Hackborn , Thanks for the reply, still I am having some doubts, 1) I read that HeadsetObserver which is a systemservice, starts whenever headset is detected and stops working whenever we removed the headdset. Similarly I want to start or stop particular systemservice(PackageManagerService,ActivityMAnagerService etc...) whenever it's required. ** ** ** Why I want to do restart the systemservices means, whenever user presess on a button I want reload all the applications, without rebooting complete device. instead of that I am planning to restart some systemservices like PackageManagerService and ActivityManagerService because these are services which plays keyrole for loading apps(SystemApps and Market apps). ** ** 2) If it's not possible to restart the systemservices then I am planning to restart the SystemServer(SystemServer .java) so that all systemservices will be restarted, eventually all ** apps will be reloaded without rebooting complete device. ** ** I dont know whether these are possible things or not just I am thinking. I am ready to do Framework level changes. Could you please suggest me as I am new to Application Framework. On Sun, Jul 15, 2012 at 1:01 PM, Dianne Hackborn hack...@android.comwrote: Not from a third party app. You can stop/start it with adb shell stop and adb shell start. If it is stopped, all of the framework goes down, including all applications. You can't stop/start individual system services. On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, Generally SystemServer wiil start all systemservices (ActivityManagerService, PackageManager etc..)right. 1)Is it possible to restart the systemserver so that all systemservices will be restarted. 2) Similarly can we restart the particular systemservice for ex: PackageManagerService. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: update notification ...
On Tue, Jul 17, 2012 at 3:17 AM, ala hammad 3la2.7am...@gmail.com wrote: which better service to check app version after 1 day or more or just alert dialog when user open app .. please suggest method to update app for user :) That's really up to you and your use case. Generally hey, there's an update is not such an important piece of information that warrants checking every day or on each start up. - 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: update notification ...
I have an open source library that does this. https://github.com/RaghavSood/AppaholicsUpdateChecker You can download and install, download and install at separate times, or check for updates and launch your app's Google Play page using it. Thanks On Tue, Jul 17, 2012 at 10:38 PM, TreKing treking...@gmail.com wrote: On Tue, Jul 17, 2012 at 3:17 AM, ala hammad 3la2.7am...@gmail.com wrote: which better service to check app version after 1 day or more or just alert dialog when user open app .. please suggest method to update app for user :) That's really up to you and your use case. Generally hey, there's an update is not such an important piece of information that warrants checking every day or on each start up. - 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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Someone stole my sound effects
Hi! to avoid that i can help you to protect your sounds.They will be available to playing back but not for copiing outside the upgraded apk to be uploaded instead of old one.Have done such trick previously. olesya.na...@mail.ru -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New READ_EXTERNAL_STORAGE permission breaks file:// URIs
On Tue, Jul 17, 2012 at 12:21 PM, String sterling.ud...@googlemail.com wrote: Now that I have a JB device in-hand, I've found a sneaky little problem with the new READ_EXTERNAL_STORAGE permission. Specifically, if you pass another app a URI - say via a ContentProvider - that uses the file:// protocol, then the receiving app NEEDS the new permission in order to read from that URI. If the file:// URI is pointing to external storage, that is not terribly surprising. Thus, the new permission has the (presumably unintended) potential to break an unknown number of existing apps when it enters production: their ContentProviders will suddenly cease to work. It's more that anyone using URI values from third-party sources need to add the permission, if there is a chance that such URI values point to external storage. They would already need WRITE_EXTERNAL_STORAGE if they would try writing to such URIs, though admittedly that is less common. One solution would obviously be to report this as a bug in Launcher, and for the appropriate team at Google to add READ_EXTERNAL_STORAGE to its permissions. Not a great solution, though, because it only fixes this single case. All other homescreen-replacement apps, from everyone from OEMs to indie devs, would need to make the same change. And I can promise you some won't. Which means you can't reliably use your workaround anymore. Another possible solution would be for me to keep these images in internal storage, making them world-readable so the URI recipient can read them. I haven't tested this to see if it'll work, but even assuming it does, it's a change that anyone who generates a file:// URI would need to make. And probably, some of them are generating URIs to files that can't reasonably be moved to internal storage. So we're back in the business of breaking existing apps. Which is why we need to publicize this more. I have been holding off doing so until I have JB hardware, which I will next week. I don't know the internals well enough, but is it possible that there's a solution that could be implemented at the platform level? That whatever platform mechanism fulfills file:// URIs would bypass the READ_EXTERNAL_STORAGE permission check? That would pretty much eliminate the purpose of the permission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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] Clearing a system set notification, can it be done?
On Tue, Jul 17, 2012 at 10:13 AM, Matt Clark mrclark32...@gmail.com wrote: At my school we have an internet security system, that every time your network connection goes inactive, it disconnects you, and you have to use the web browser to log back into the network. I created an app for my campus that detects the disconnect, and loggs the user back in with broadcast receivers, this part works fine, however, with my phone, it also detects that the network requires a login, and sets a notification: Login to the [SSID] network. Is there a way to after my application runs, dismiss this system set notification? No, sorry. You cannot affect other app's (or the OS's) notifications. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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] Preferences button to return to main activity
The findPreference method is deprecated. I'm not sure if this is part of the whole move to preference fragments or not. I'll keep searching, and if anyone else has other ideas that would be much appreciated. B. On Monday, July 16, 2012 5:58:21 PM UTC-7, billb wrote: Thanks for all the help! I'll give this a whirl and let you know how it works out. B. On Monday, July 16, 2012 5:42:24 PM UTC-7, TreKing wrote: Do you have any further insights as to how I can get this button to return the user to the mainactivity screen? Get the Preference in code: http://developer.android.com/reference/android/preference/PreferenceActivity.html#findPreference%28java.lang.CharSequence%29 Then set the intent programmatically. http://developer.android.com/reference/android/preference/Preference.html#setIntent%28android.content.Intent%29 The intent itself would probably just be an explicit one referencing your main activity, perhaps with the CLEAR_TOP flag (I think that's the one) to wipe your stack. - 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] Preferences button to return to main activity
2012/7/17 billb b...@briskynet.com The findPreference method is deprecated. Yes, but the old Preference mechamism still works, at least in 4.1. You actually don't need to use findPreference -- Rather, create a Preference subclass, override onClick, and launch the main activity with an intent that includes Intent.FLAG_ACTIVITY_CLEAR_TOP ( or call the preference activity's finish, if your stack only has the main activity and the preference activity at this time ). -- K I'm not sure if this is part of the whole move to preference fragments or not. I'll keep searching, and if anyone else has other ideas that would be much appreciated. B. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WebView in android 4.1.1 crashes for URLs with a non-standard separation of query parameters
Hi Mark, sorry for posting at the wrong place. I've created issue 35100 (http://code.google.com/p/android/issues/detail?id=35100) Best regards Sven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Table Row Selection when using SimpleCursorAdapter
The subject says it all. How can I allow a user to select a row from a table generated using the CursorAdapter by clicking (or touching) it? I'd done this previously by dynamically building each table row from a List object, but then decided to use a Cursor thinking it would be more efficient. TIA for any help.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google I/O Android sessions on YouTube
If you're like me and aren't crazy about I/O but like the tech sessions, the Android sessions are posted here: http://www.youtube.com/playlist?list=PL4C6BCDE45E05F49E -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New READ_EXTERNAL_STORAGE permission breaks file:// URIs
On Tuesday, July 17, 2012 6:59:08 PM UTC+2, Dianne Hackborn wrote: You can put your data in your own content provider. I was doing that some time ago, but then I stopped because this imagery is already cached on SD, so I figured it was more direct to just pass through a file:// URI. I'll look into reverting it; thanks for the reminder. Actually, you should stop and think about doing this approach at all. You say this is for an app widget... why not provide the bitmaps as bitmaps instead of having it load the data elsewhere? The full discussion is here: https://groups.google.com/d/topic/android-developers/oAl2Ix9erSY/discussion The summary is, passing middling-large imagery to a widget doesn't work; IPC fails silently. The content provider was the recommended workaround, and it's done well until now. Note that if you don't provide the bitmaps directly, anything you do means you are making this data globally readable by everyone (because you can't make any assumptions about the permissions available to whoever is hosting your app widget), which is generally a big no-no for security reasons. Understood. The widgets in question aren't a security risk (I'd be quite interested if someone found a way to reuse my imagery), but it's a good point for other widgets. This isn't a launcher bug. Launcher is just one possible host of app widgets. That's what I said in my OP, yes. To fix this from the content-consumer side, every appwidget host out there would have to request the new permission. Which isn't likely. You can't assume whoever is hosting your app widget will have any specific permissions. Also this is why the protection in JB is turned off by default. Right now app developers should be updating their apps to fix these issues, so when this protection is turned on for all users in a future release they will still work. Btw this change is described in the permissions section of the 4.1 API overview: http://developer.android.com/about/versions/android-4.1.html Which brings me back around to my main point: this is a permission change that needs to be made *in an app other than the one that's failing*. The file:// URI content provider can't make the change; it's the content-consuming app that needs to request the new permission. And that's not in the docs, nor is it something that's necessarily obvious to the content-consumer dev, especially if the testing they're doing is with non-file URIs. You say it's not a Launcher bug; I do see your point, but I've had differing opinions on that. If Launcher is happily accepting file:// URIs that point to external storage, shouldn't it be requesting the appropriate permission to resolve that URI? On Tuesday, July 17, 2012 7:19:05 PM UTC+2, Mark Murphy (a Commons Guy) wrote: Now that I have a JB device in-hand, I've found a sneaky little problem with the new READ_EXTERNAL_STORAGE permission. Specifically, if you pass another app a URI - say via a ContentProvider - that uses the file:// protocol, then the receiving app NEEDS the new permission in order to read from that URI. If the file:// URI is pointing to external storage, that is not terribly surprising. Sure, it's not in hindsight. But see my previous note above - it's not documented, nor especially obvious. Thus, the new permission has the (presumably unintended) potential to break an unknown number of existing apps when it enters production: their ContentProviders will suddenly cease to work. It's more that anyone using URI values from third-party sources need to add the permission, if there is a chance that such URI values point to external storage. They would already need WRITE_EXTERNAL_STORAGE if they would try writing to such URIs, though admittedly that is less common. This is what concerns me. There's nothing in the docs that mentions the URI implications of this change, so URI-consumers probably aren't thinking of it. I'm looking beyond my own widget issues here. One solution would obviously be to report this as a bug in Launcher, and for the appropriate team at Google to add READ_EXTERNAL_STORAGE to its permissions. Not a great solution, though, because it only fixes this single case. All other homescreen-replacement apps, from everyone from OEMs to indie devs, would need to make the same change. And I can promise you some won't. Which means you can't reliably use your workaround anymore. Yup, I'd worked that out already, thanks! :^) Another possible solution would be for me to keep these images in internal storage, making them world-readable so the URI recipient can read them. I haven't tested this to see if it'll work, but even assuming it does, it's a change that anyone who generates a file:// URI would need to make. And probably, some of them are generating URIs to files that can't reasonably be
Re: [android-developers] Preferences button to return to main activity
Thanks for the ideas! A quick question about subclassing Preference. The only place I use Preference directly is in XML to define the button. If I create a subclass of Preference can I then use that new class name in the XML directly in place of the Preference tag (e.g. MyButtonPreference)? If not, where do I instantiate the MyButtonPreference subclass? I'm still getting comfortable with the whole Android paradigm, so I apologize if this is something that seems straight-forward. As they say, everything is easy once you know how. B. On Tuesday, July 17, 2012 10:47:56 AM UTC-7, Kostya Vasilyev wrote: The findPreference method is deprecated. Yes, but the old Preference mechamism still works, at least in 4.1. You actually don't need to use findPreference -- Rather, create a Preference subclass, override onClick, and launch the main activity with an intent that includes Intent.FLAG_ACTIVITY_CLEAR_TOP ( or call the preference activity's finish, if your stack only has the main activity and the preference activity at this time ). -- K I'm not sure if this is part of the whole move to preference fragments or not. I'll keep searching, and if anyone else has other ideas that would be much appreciated. B. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Preferences button to return to main activity
2012/7/17 billb b...@briskynet.com Thanks for the ideas! A quick question about subclassing Preference. The only place I use Preference directly is in XML to define the button. If I create a subclass of Preference can I then use that new class name in the XML directly in place of the Preference tag (e.g. MyButtonPreference)? Yes you can, except it'll need to be something like: com.briskynet.bill.appname.GoHomePreference android:title=... android:summary= / ... etc. Basically, same thing you'd do with a view subclass - using a fully qualified class name as the tag. -- K If not, where do I instantiate the MyButtonPreference subclass? I'm still getting comfortable with the whole Android paradigm, so I apologize if this is something that seems straight-forward. As they say, everything is easy once you know how. B. On Tuesday, July 17, 2012 10:47:56 AM UTC-7, Kostya Vasilyev wrote: The findPreference method is deprecated. Yes, but the old Preference mechamism still works, at least in 4.1. You actually don't need to use findPreference -- Rather, create a Preference subclass, override onClick, and launch the main activity with an intent that includes Intent.FLAG_ACTIVITY_CLEAR_TOP ( or call the preference activity's finish, if your stack only has the main activity and the preference activity at this time ). -- K I'm not sure if this is part of the whole move to preference fragments or not. I'll keep searching, and if anyone else has other ideas that would be much appreciated. B. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Preferences button to return to main activity
On Tue, Jul 17, 2012 at 12:36 PM, billb b...@briskynet.com wrote: The findPreference method is deprecated. Correct, but still works. I'm not sure if this is part of the whole move to preference fragments or not. It is, so that's the more correct method, using PreferenceFragments. But if you don't want to go through that (yet), then this is probably the quickest and easiest way to achieve what you want. I use this a lot, it's like 3 lines of code, it's still working fine and I have no intention of moving to Fragments any time soon. - 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] PendingIntent launched from widget causes onActivityResult to not be called
On Tue, Jul 17, 2012 at 8:35 AM, Dirk Vranckaert dirkvrancka...@gmail.comwrote: However if I start it with the PendingIntent with the flag set to PendingIntent.FLAG_UPDATE_CURRENT part of my flow is not executed anymore Why are you using UpdateCurrent? Do you have extras in the intent that need to be updated? - 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] New READ_EXTERNAL_STORAGE permission breaks file:// URIs
On Tue, Jul 17, 2012 at 11:46 AM, String sterling.ud...@googlemail.comwrote: The summary is, passing middling-large imagery to a widget doesn't work; IPC fails silently. The content provider was the recommended workaround, and it's done well until now. I would really suggest reducing the memory of your bitmaps then. This limit is actually important -- if you are pushing huge bitmaps into the launcher, you run the risk of the launcher failing when it exhausts its heap due to them. We have limits. Limits are important. Respect the limits. :) This isn't a launcher bug. Launcher is just one possible host of app widgets. That's what I said in my OP, yes. To fix this from the content-consumer side, every appwidget host out there would have to request the new permission. Which isn't likely. More than not likely, it's not going to happen. Which brings me back around to my main point: this is a permission change that needs to be made *in an app other than the one that's failing*. The file:// URI content provider can't make the change; it's the content-consuming app that needs to request the new permission. And that's not in the docs, nor is it something that's necessarily obvious to the content-consumer dev, especially if the testing they're doing is with non-file URIs. Not sure what you mean not in the docs -- it is described in the document I pointed to. I do agree that there should be more discussion of this, and I can assure you there will be -- that is why we are doing things this way, to have the facility in place for JB for developers to test against before a later change actually impacts apps. You say it's not a Launcher bug; I do see your point, but I've had differing opinions on that. If Launcher is happily accepting file:// URIs that point to external storage, shouldn't it be requesting the appropriate permission to resolve that URI? No. We are pushing to get away from the free-for-all of external storage; this is one of the steps in that. We want a system in which as few apps as possible are requesting these permissions. -- 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