Re: [android-developers] Timeout error when tryin to do REST
did you set internet permission in Manifest? On Thu, Jul 26, 2012 at 6:30 PM, Larry Meadors larry.mead...@gmail.comwrote: Is the phone on your LAN or using the cell network? Larry On Mon, Jul 23, 2012 at 8:50 AM, Fernando Juarez ferjuarez...@gmail.comwrote: Hi I need some help: I´m developing an Android app with Eclipse and ADT, It´s a very simple app. The app connects to a server via POST, it works fine when I set my IP o my localhost IP and execute on the emulator, but when I run the app in the Android Device (my cellphone) It can´t connect, throws an Timeout error, I tried with a different web service and the error it´s the same. This is my code: public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.httpCall(); } public void httpCall(){ try{ String name = null; String pass = null; String options = null; HttpParams httpParameters = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParameters, 2); HttpConnectionParams.setSoTimeout(httpParameters, 2); ConnManagerParams.setTimeout(httpParameters, 2); DefaultHttpClient client = new DefaultHttpClient(httpParameters); UsernamePasswordCredentials creds = new UsernamePasswordCredentials(restuser, restbpm); client.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT), creds); HttpPost post = new HttpPost( http://10.36.0.141:8080/bonita-server-rest/API/runtimeAPI/instantiateProcess/holamundo--1.0 ); post.setHeader(content-type, application/x-www-form-urlencoded); List NameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(options, user:admin)); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse resp = client.execute(post); String respStr = EntityUtils.toString(resp.getEntity()); TextView tv = new TextView(this); tv.setText(respStr); setContentView(tv); } catch(Exception ex){ Log.e(ServicioRest,Error!, ex); } } 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using a specific GLES library with the emulator-x86
Hi, I don't know about using specific GLES library but there's a virtual machine flag you can set in AVD settings. After setting this flag (sorry I can't remember the name of it) I had GLES2 compatible environment on OSX using Intel x86 image out of the box. -- H On Jul 27, 2012 5:37 PM, goodG arji...@gmail.com wrote: Hi, I have a GLES library ( libEGL.so + libGLESv2.so provided by the VGA manufacturer ) which support a GLES 2.0 hardware accelerated context for my videocard, they are compiled as a 32 bit Linux object, like the libraries used by the emulator in the Android SDK. The problem is that the Android SDK use this libraries instead of the standard 2 named before. - libEGL_translator.so - libGLES_CM_translator.so - libGLES_V2_translator.so - libOpenglRender.so and no one of this 4 32 bit libraries is actually pointing to any GLES 2.0 libraries, infact my emulator lacks of GLES 2 support, and just support the GLES 1.1. My configuration is: - Ubuntu Precise Pangolin 12.04 64 bit - Intel Q6600 - ATI 5770 I have a fully functional emulator with KVM enable and GPU accelaration with the SDK image targeting Ice Cream Sandwich for X86 which is provided by Intel via the official Android SDK repository. Everything is fine for me except the fact that i just have OpenGL ES 1.1 support and i need support for the version 2.0, i have the appropriate libraries for my host configuration that can give me a GLES 2.0 context, the problem is i don't know how to instruct the emulator to use this 2 libraries instead of the default ones. 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
[android-developers] Is there an altenative method for animation to lockCanvas / unlockCanvasAndPost
Hi! I've made a program that runs at 60 fps on most device, but on my GalaxyTab 2 7.0 It runs at 30 fps. I've search for the reason and found that lockCanvas can take up to 10ms and unlockCanvasAndPost can take up to 15ms ! I don't understand why these 2 functions are so slow (sometimes) ! Is there an alternative method to make a 60 fps animation ! (i.e not using a separate thread calling lockCanvas and unlockCanvasAndPost) Rem: all the job made with the ndk into a bitmap before I blit it on the sceen ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: About one of my app idea | Please share your thoughts.
Thanks Nobu. On Wed, Jul 25, 2012 at 8:46 PM, Nobu Games dev.nobu.ga...@gmail.comwrote: But apart from normal text+image pages, I'm planning to include simple animations, audio background and touch events along with the content. Please do not try to reinvent the Internet of the late 1990ies. GIF animations and background MIDI music galore popped into my mind while reading this... :-/ This is to provide a better reading experience to the users. People got very distracted by that. It distracts you from reading and doesn't improve the reading experience. Unless you are trying to pull off something interactive for children, I think then it's ok to have. Actually, I'm targeting kids comics. Say for example some Cinderella story with on touch animations and sound effects etc. The main problem I see here is that you'll have to invent a format / standard / desktop software for creating that multimedia content. It's highly unlikely that book authors are ready to adopt that. You'd need lots of marketing and traveling around to book fairs etc. for convincing them into doing work for a single platform (Android) and proprietary format invented by you. And in the end of the day you'll have to ask yourself the following question: how is that interactive print format any different than an HTML page with embedded multimedia contents? You re right upto an extend. The ides is still in incubation. I have seen apps like Kobo out there which excels with text only contents. I'm planning to use Urban Airship as the backend. As far as I know they just provide a unified push service for several platforms. What do you mean with using them as a backend? They have in-app purchases, subscriptions management etc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Subin Sebastian www.nintriva.com http://subinsebastien.tumblr.com http://in.linkedin.com/in/subinsebastien http://plus.google.com/subin https://plus.google.com/118262481642737404812 http://facebook.com/subinsebastien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Jelly Bean, READ_LOGS and 'Application Lockers'
On Fri, Jul 27, 2012 at 1:26 PM, Bryan Ashby nuskoo...@gmail.com wrote: Perhaps another solution is a API set and a new level of permission authentication. E.g., an developer would need to sign with a key that contains a trusted CA (Google stamp of approval or such) That is not how Android works. There are no CAs, no entity (including Google) who owns the platform to approve what apps can do. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly Bean, READ_LOGS and 'Application Lockers'
How about a broadcast to DeviceAdminReceiver. 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] HI ALL
Hi all now i am implementing Website design. this is my website http://www.retigence.com Can you please give me feed back how its looking... And also give me the some tips to increase the google page ranking Thanking 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] HI ALL
Hel On Sat, Jul 28, 2012 at 3:03 PM, aparna rani indela@gmail.com wrote: Hi all now i am implementing Website design. this is my website http://www.retigence.com Can you please give me feed back how its looking... And also give me the some tips to increase the google page ranking Thanking 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, M VIJAYAKUMAR || http://iamvijayakumar.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] HI ALL
No... On Sat, Jul 28, 2012 at 11:33 AM, aparna rani indela@gmail.com wrote: Hi all now i am implementing Website design. this is my website http://www.retigence.com Can you please give me feed back how its looking... And also give me the some tips to increase the google page ranking Thanking 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 -- Michael Banzon http://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Beginner can't execute program on VM
On 24/07/2012 09:56, Fabrizio Bartolomucci wrote: Hullo, I am a beginner in Android development coming from the iOS. I trying setting the Andorid SDK and Eclipse by opening a new project and executing it. On the SDK part everythings seems ok but the Virtual machine seems to take no notice. There exists some point I should take note of and I have not? Thanks, Fabrizio Did you follow the instructions from the android dev website ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] HI ALL
Hi. -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | There it was, right in the title bar: spooky1...@gmail.com | Microsoft Operations POS. Running Mac OS X Lion | ICBM / Hurricane: | Never before has a TLA been so appropriately 30.44406N 86.59909W| mis-parsed. (alt.sysadmin.recovery) 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] HI ALL
awesum i just love it!!! keep it up!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView with custom view item refresh issue
Hi all, I thank all for your answers. I've understood the strange behaviour that doesn't makes my ListView to refreshes correctly. Here is the link where I've found the solution: https://groups.google.com/forum/?fromgroups#!topic/android-developers/2Ub4yhyKumM This topic clearly explains that, when the callback method getView is called, the parameter convertView is null only when ListView tries to draw the first 5 items, from A to E. When I scroll down the content of the list, and the ListView draws the items 6 and 7, it reuses the views previoulsy created, hence convertView is not null and my getView implementation goes into else branch. What I've missed was to bind the old view, with the new model item getting showed. So the fix was simply to add, in this branch, the update of the bind between recycled view and model item. HTH Sergio Il giorno giovedì 26 luglio 2012 12:59:05 UTC+2, Sergio Panico ha scritto: Hi all, I need your help to understand the refresh behaviour of a ListView where I've defined a my custom view for the ListView's items. I think It's better explain it with an example: my adapter contains 7 items: A, B, C, D, E, F, G correctly initialized, filled and working. The associated ListView shows 5 (out of 7) items: A, B, C, D, E. The problem is that, when I scroll down the ListView's content instead of showing me items F and G, I've got A and B items again. I understood that this is only a viewing issue becouse the model elements associated with the last two items, correctly belong to F and G items. :| Following the ovveride of getView(...) method of my adapter (extending BaseAdapter): @Override public View getView(int position, View convertView, ViewGroup parent) { MyItemView miv = (( MyItemView ) convertView); if (context == null) return null; if (convertView == null) { miv = new MyItemView (); . } else { miv.refreshView(); //refresh the view content } return miv; } and the refreshView() method of MyItemView (extending LinearLayout): @Override public void refreshView() { label1.setText(..); label2.setText(..); label2.setText(..); invalidate(); } Thanks a lot to all! Bye Sergio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hi Developers:
You realize that your sarcasm is lost on these people, right? On Jul 27, 2012 2:24 PM, Justin Anderson magouyaw...@gmail.com wrote: I know you are a nice guy and always do the search on other's behalf but I think the best response is to not respond at all just like everyone else here. If the poster is not smart enough to first try the options that are already available to him/her then he/she does not deserve even a second of your time. My nice guy comment was supposed to come across sarcastic... I respond to these posts because unless you actually tell people who post questions like this to go and do the work on their own they usually just keep spamming the list with pointless questions. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 12:18 PM, Nadeem Hasan nha...@nadmm.com wrote: I know you are a nice guy and always do the search on other's behalf but I think the best response is to not respond at all just like everyone else here. If the poster is not smart enough to first try the options that are already available to him/her then he/she does not deserve even a second of your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.
Hi, I'm developing an app which uses ViewPager(holds 4 fragments) and a layout that hosts single-page fragments. I haven't populated my fragments with bitmap data but I'm already anxious about memory management. Because of the bogus design I can't extract ViewPager to a separate activity which makes me do: setVisibility(View.GONE) on the ViewPager when I need to show a single-page fragment and vise-versa. Most of my fragments(both in ViewPager and single-page fragment holder) will hold bitmaps that'll be drawn from Internet. In most cases what I think I should do is: when fragment gets hidden - relevant bitmaps should be cleaned out of memory and brought back from SD-card/Internet when fragment gets shown again or implement somewhat like getMemory memoryCredit ? keep : destroy; However I don't have enough experience with this and your suggestions are more than welcome. So far, I made an example where I hide fragments with either setVisibility or fragmentTransaction.hide and none of those two fire any callback like onPause which makes me think that I can't call recycle directly on the bitmaps. I've alsod looked into this libraryhttps://github.com/thest1/LazyListwhich makes use of private MapImageView, String imageViews=Collections.synchronizedMap(new WeakHashMapImageView, String()); and I assume that it means that GC gonna recycle those backbone bitmaps even without calling recycle - am I right ? However in class called MemoryCache he has private MapString, Bitmap cache=Collections.synchronizedMap( new LinkedHashMapString, Bitmap(10,1.5f,true)); and it's not weak - might that be a problem? Thanks. P.S. I have a bunch of small questions I couldn't figure out on my own: 1) Does ImageView.SetImageResource applied against the same id twice or thrice consumes memory for the same bitmap or uses a separate range for every imageview element ? 2) same as 1. but for BitmapFactory.decodeResource 3) What part of Bitmap object consumes the most memory. If it's backbone memory object than what is it ? Where can I elucidate the structure of bitmap memory for myself ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADB Multi-phone Connection Reliability
Kostya, Thanks, I doubt the ports/hubs are an issue (since it happens on several computers, with or without hubs), but the USB cables could be the problem. Do you think these cables would be worth trying? http://www.monoprice.com/products/product.asp?c_id=103cp_id=10303cs_id=1030307p_id=8639format=2 If not, do you have any better suggestions of what to look for? -Andrey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using a specific GLES library with the emulator-x86
did you mean Gpu emulation ? how do you check the support for a GLES2 context ? Il giorno sabato 28 luglio 2012 08:23:41 UTC+2, Harri Smått ha scritto: Hi, I don't know about using specific GLES library but there's a virtual machine flag you can set in AVD settings. After setting this flag (sorry I can't remember the name of it) I had GLES2 compatible environment on OSX using Intel x86 image out of the box. -- H On Jul 27, 2012 5:37 PM, goodG arji...@gmail.com wrote: Hi, I have a GLES library ( libEGL.so + libGLESv2.so provided by the VGA manufacturer ) which support a GLES 2.0 hardware accelerated context for my videocard, they are compiled as a 32 bit Linux object, like the libraries used by the emulator in the Android SDK. The problem is that the Android SDK use this libraries instead of the standard 2 named before. - libEGL_translator.so - libGLES_CM_translator.so - libGLES_V2_translator.so - libOpenglRender.so and no one of this 4 32 bit libraries is actually pointing to any GLES 2.0 libraries, infact my emulator lacks of GLES 2 support, and just support the GLES 1.1. My configuration is: - Ubuntu Precise Pangolin 12.04 64 bit - Intel Q6600 - ATI 5770 I have a fully functional emulator with KVM enable and GPU accelaration with the SDK image targeting Ice Cream Sandwich for X86 which is provided by Intel via the official Android SDK repository. Everything is fine for me except the fact that i just have OpenGL ES 1.1 support and i need support for the version 2.0, i have the appropriate libraries for my host configuration that can give me a GLES 2.0 context, the problem is i don't know how to instruct the emulator to use this 2 libraries instead of the default ones. 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] Using a specific GLES library with the emulator-x86
Yes, it's called GPU Emulation in menus but final flag is hw.gpu.enabled=yes. What I did was I had a very simple OpenGL app which I changed so that I used setEGLContextVersion(2) instead. And it seemed to work ok. Anyway. I never tested GLES20 properly just ran a few quick tests and concluded nice it seems to work. And can't do it right now either. -- H On Jul 28, 2012 10:13 PM, goodG arji...@gmail.com wrote: did you mean Gpu emulation ? how do you check the support for a GLES2 context ? Il giorno sabato 28 luglio 2012 08:23:41 UTC+2, Harri Smått ha scritto: Hi, I don't know about using specific GLES library but there's a virtual machine flag you can set in AVD settings. After setting this flag (sorry I can't remember the name of it) I had GLES2 compatible environment on OSX using Intel x86 image out of the box. -- H On Jul 27, 2012 5:37 PM, goodG arji...@gmail.com wrote: Hi, I have a GLES library ( libEGL.so + libGLESv2.so provided by the VGA manufacturer ) which support a GLES 2.0 hardware accelerated context for my videocard, they are compiled as a 32 bit Linux object, like the libraries used by the emulator in the Android SDK. The problem is that the Android SDK use this libraries instead of the standard 2 named before. - libEGL_translator.so - libGLES_CM_translator.so - libGLES_V2_translator.so - libOpenglRender.so and no one of this 4 32 bit libraries is actually pointing to any GLES 2.0 libraries, infact my emulator lacks of GLES 2 support, and just support the GLES 1.1. My configuration is: - Ubuntu Precise Pangolin 12.04 64 bit - Intel Q6600 - ATI 5770 I have a fully functional emulator with KVM enable and GPU accelaration with the SDK image targeting Ice Cream Sandwich for X86 which is provided by Intel via the official Android SDK repository. Everything is fine for me except the fact that i just have OpenGL ES 1.1 support and i need support for the version 2.0, i have the appropriate libraries for my host configuration that can give me a GLES 2.0 context, the problem is i don't know how to instruct the emulator to use this 2 libraries instead of the default ones. 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 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] Launching an intent from a Widget Settings Class
The title pretty much sums up what I am trying to do at this point. I have 99.9% of my code done but now its just a matter of debugging the question present is: Is there a way to set an intent with in a settings class if not how would I go about making the settings class its own app icon so users can get to set up any time. The catch is the app I am working on is a system that is set up to instant fire so there is no time to get into a settings window from with in the app itself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Goiogle Play - Dev Console not updating since July 25
I was wondering if anyone else was seeing this. When I check my dev console there are now stats for my apps after July 25. Is there a problem with Google Play or did I miss a memo? 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: Goiogle Play - Dev Console not updating since July 25
You're right, mine has updated either. On Saturday, July 28, 2012 12:00:46 PM UTC-4, Kaptkaos wrote: I was wondering if anyone else was seeing this. When I check my dev console there are now stats for my apps after July 25. Is there a problem with Google Play or did I miss a memo? 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: Goiogle Play - Dev Console not updating since July 25
sorry, meant hasn't On Saturday, July 28, 2012 12:00:46 PM UTC-4, Kaptkaos wrote: I was wondering if anyone else was seeing this. When I check my dev console there are now stats for my apps after July 25. Is there a problem with Google Play or did I miss a memo? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.
1) Does ImageView.SetImageResource applied against the same id twice or thrice consumes memory for the same bitmap or uses a separate range for every imageview element ? I don't quite understand your question. When a Bitmap is loaded as a Drawable (which is what ImageView does), it gets cached by the system (using weak references.) This means that if do this: Drawable d1 = loadDrawable(R.drawable.myImage); Drawable d2 = loadDrawable(R.drawable.myImage); you will get 2 different instances of Drawable, but the underlying Bitmap will be loaded in memory only once. 2) same as 1. but for BitmapFactory.decodeResource Every time you call this method you will load a new instance of a Bitmap object, which means you will use more memory. 3) What part of Bitmap object consumes the most memory. If it's backbone memory object than what is it ? Where can I elucidate the structure of bitmap memory for myself ? A Bitmap is backed by a byte array containing all the pixels. This is what consumes the most memory. As of Android 3.0, this byte array can be found in Bitmap.java, in previous versions of the platform the pixel storage exists on the native side (you'd have to investigate SkBitmap.cpp.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView with custom view item refresh issue
Interesting… I usually just create a new View every time in getView… so I've never run into that. On Saturday, July 28, 2012 6:10:50 AM UTC-5, Sergio Panico wrote: Hi all, I thank all for your answers. I've understood the strange behaviour that doesn't makes my ListView to refreshes correctly. Here is the link where I've found the solution: https://groups.google.com/forum/?fromgroups#!topic/android-developers/2Ub4yhyKumM This topic clearly explains that, when the callback method getView is called, the parameter convertView is null only when ListView tries to draw the first 5 items, from A to E. When I scroll down the content of the list, and the ListView draws the items 6 and 7, it reuses the views previoulsy created, hence convertView is not null and my getView implementation goes into else branch. What I've missed was to bind the old view, with the new model item getting showed. So the fix was simply to add, in this branch, the update of the bind between recycled view and model item. HTH Sergio Il giorno giovedì 26 luglio 2012 12:59:05 UTC+2, Sergio Panico ha scritto: Hi all, I need your help to understand the refresh behaviour of a ListView where I've defined a my custom view for the ListView's items. I think It's better explain it with an example: my adapter contains 7 items: A, B, C, D, E, F, G correctly initialized, filled and working. The associated ListView shows 5 (out of 7) items: A, B, C, D, E. The problem is that, when I scroll down the ListView's content instead of showing me items F and G, I've got A and B items again. I understood that this is only a viewing issue becouse the model elements associated with the last two items, correctly belong to F and G items. :| Following the ovveride of getView(...) method of my adapter (extending BaseAdapter): @Override public View getView(int position, View convertView, ViewGroup parent) { MyItemView miv = (( MyItemView ) convertView); if (context == null) return null; if (convertView == null) { miv = new MyItemView (); . } else { miv.refreshView(); //refresh the view content } return miv; } and the refreshView() method of MyItemView (extending LinearLayout): @Override public void refreshView() { label1.setText(..); label2.setText(..); label2.setText(..); invalidate(); } Thanks a lot to all! Bye Sergio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using a specific GLES library with the emulator-x86
I don't think any serious OpenGL developers work in the emulator. They probably use real devices like the Galaxy Tab. On Thursday, July 26, 2012 8:43:00 AM UTC-5, goodG wrote: Hi, I have a GLES library ( libEGL.so + libGLESv2.so provided by the VGA manufacturer ) which support a GLES 2.0 hardware accelerated context for my videocard, they are compiled as a 32 bit Linux object, like the libraries used by the emulator in the Android SDK. The problem is that the Android SDK use this libraries instead of the standard 2 named before. - libEGL_translator.so - libGLES_CM_translator.so - libGLES_V2_translator.so - libOpenglRender.so and no one of this 4 32 bit libraries is actually pointing to any GLES 2.0 libraries, infact my emulator lacks of GLES 2 support, and just support the GLES 1.1. My configuration is: - Ubuntu Precise Pangolin 12.04 64 bit - Intel Q6600 - ATI 5770 I have a fully functional emulator with KVM enable and GPU accelaration with the SDK image targeting Ice Cream Sandwich for X86 which is provided by Intel via the official Android SDK repository. Everything is fine for me except the fact that i just have OpenGL ES 1.1 support and i need support for the version 2.0, i have the appropriate libraries for my host configuration that can give me a GLES 2.0 context, the problem is i don't know how to instruct the emulator to use this 2 libraries instead of the default ones. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ADB Multi-phone Connection Reliability
2012/7/28 Andrey tur...@gmail.com Kostya, Thanks, I doubt the ports/hubs are an issue (since it happens on several computers, with or without hubs), but the USB cables could be the problem. Do you think these cables would be worth trying? http://www.monoprice.com/products/product.asp?c_id=103cp_id=10303cs_id=1030307p_id=8639format=2 Hard to say, look ok. Unless your current cables are really thin and flimsy, I wouldn't try to get too fancy. I'm currently using micro-USB cables that were bundled with some of my devices (Sony Ericsson, HTC... but Samsung's looked too thin to me). I think it's mostly about providing enough power to the devices. My current setup was just sheer luck, I stumbled into it after upgrading my monitor (DELL U2412M). The built-in USB hub is, of course, powered, and I believe the monitor's power supply is of better quality than you'll find in USB hubs these days. To summarize my experience: - Phones connected directly to the motherboard, or the case's front ports. Bundled cables, plain aftermarket cables, fancy aftermarket cables -- adb connections dropping. - Phones connected to powered USB2 hubs. No-name hubs, brand name hubs (e.g. Belkin) -- adb connections dropping. - Phones connected to the powered USB2 hub built into the monitor, same micro-USB cables -- adb connections stable all day. If your monitors don't have USB ports, you might want to try a USB3 hub - since USB3 has a higher power capacity than USB2, it should have a better power supply. -- K If not, do you have any better suggestions of what to look for? -Andrey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OpenGL ES 2 support in emulator?
wondering if there is an update on this and if the necessary things are there to run the ES 2.0 programs by regular developers on the emulator. Thanks Satya On Friday, March 23, 2012 3:18:06 AM UTC-4, Romain Guy (Google) wrote: The emulator itself supports OpenGL ES 2.0 already with the -gpu flag, but it requires a system image with adequate drivers. There is no ETA at the moment. FWIW, I gave a demo of the emulator running with x86 and OpenGL ES 2.0 at the GDC in San Francisco a couple of weeks ago. On Thu, Mar 22, 2012 at 5:56 AM, Andrew Demidenko demon2...@gmail.com wrote: any news? On Saturday, May 21, 2011 3:22:53 AM UTC+6, David Turner wrote: On Fri, May 20, 2011 at 6:07 PM, Thomas thomasjakw...@gmail.com wrote: I'm wondering if Google has any plans to include OpenGL ES 2 support in the Android emulator at some point in the future? Yes, we're working on it. No ETA, we'll announce it when it's ready. ES 2 is becoming increasingly more important as users upgrade for 2nd generation Android phones and the percentage of 1st generation phones (that do not support ES 2) diminishes. I'm considering not supporting earlier versions at all (as of now, they are less than 6% of the total market- see http://developer.android.com/resources/dashboard/platform-versions.html). The only solution at the moment is to either compile OpenGL ES 2 code straight to a desktop OS (provided you're only using features compatible with standard OpenGL) or to get a 3rd party OpenGL ES 2 emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ListView with custom view item refresh issue
A nice post describing that is here http://lucasr.org/2012/04/05/performance-tips-for-androids-listview/ With an example of what is called a view holder to have a performance improvement. Also in the Google IO 2010 it is well explain from the developer itself http://www.youtube.com/watch?v=wDBM6wVEO70 On Sat, Jul 28, 2012 at 2:41 PM, bob b...@coolfone.comze.com wrote: Interesting… I usually just create a new View every time in getView… so I've never run into that. On Saturday, July 28, 2012 6:10:50 AM UTC-5, Sergio Panico wrote: Hi all, I thank all for your answers. I've understood the strange behaviour that doesn't makes my ListView to refreshes correctly. Here is the link where I've found the solution: https://groups.google.com/**forum/?fromgroups#!topic/** android-developers/2Ub4yhyKumMhttps://groups.google.com/forum/?fromgroups#!topic/android-developers/2Ub4yhyKumM This topic clearly explains that, when the callback method getView is called, the parameter convertView is null only when ListView tries to draw the first 5 items, from A to E. When I scroll down the content of the list, and the ListView draws the items 6 and 7, it reuses the views previoulsy created, hence convertView is not null and my getView implementation goes into else branch. What I've missed was to bind the old view, with the new model item getting showed. So the fix was simply to add, in this branch, the update of the bind between recycled view and model item. HTH Sergio Il giorno giovedì 26 luglio 2012 12:59:05 UTC+2, Sergio Panico ha scritto: Hi all, I need your help to understand the refresh behaviour of a ListView where I've defined a my custom view for the ListView's items. I think It's better explain it with an example: my adapter contains 7 items: A, B, C, D, E, F, G correctly initialized, filled and working. The associated ListView shows 5 (out of 7) items: A, B, C, D, E. The problem is that, when I scroll down the ListView's content instead of showing me items F and G, I've got A and B items again. I understood that this is only a viewing issue becouse the model elements associated with the last two items, correctly belong to F and G items. :| Following the ovveride of getView(...) method of my adapter (extending BaseAdapter): @Override public View getView(int position, View convertView, ViewGroup parent) { MyItemView miv = (( MyItemView ) convertView); if (context == null) return null; if (convertView == null) { miv = new MyItemView (); . } else { miv.refreshView(); //refresh the view content } return miv; } and the refreshView() method of MyItemView (extending LinearLayout): @Override public void refreshView() { label1.setText(..); label2.setText(..); label2.setText(..); invalidate(); } Thanks a lot to all! Bye Sergio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Beginner can't execute program on VM
Remember to create a Virtual Device that matches the API level you are compiling against. From the shell you may execute adb devices It should show an entry for each device you have connected. You may view the devices from Eclipse GUI Window-Show View-Devices (If devices is not listed then go into Window-Show View- Other... - Android- Device or use Alt+Shift+Q,Q . If the device is not listed there then the build process will not connect. On Tuesday, July 24, 2012 3:56:19 AM UTC-4, Fabrizio Bartolomucci wrote: Hullo, I am a beginner in Android development coming from the iOS. I trying setting the Andorid SDK and Eclipse by opening a new project and executing it. On the SDK part everythings seems ok but the Virtual machine seems to take no notice. There exists some point I should take note of and I have not? Thanks, Fabrizio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Beginner can't execute program on VM
Maybe unlock the emulator by swiping the screen or pressing the home button? If you post a screenshot of the emulator, I bet we can help you. On Tuesday, July 24, 2012 2:56:19 AM UTC-5, Fabrizio Bartolomucci wrote: Hullo, I am a beginner in Android development coming from the iOS. I trying setting the Andorid SDK and Eclipse by opening a new project and executing it. On the SDK part everythings seems ok but the Virtual machine seems to take no notice. There exists some point I should take note of and I have not? Thanks, Fabrizio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.
Thanks for the answers! Would you mind to suggest on the part about fragments and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The activity number might slightly increase yet I think it's not the fragments but their bitmaps that gonna cause trouble with memory. For displaying the fragments I have two containers: a ViewPager(rotates 3-4 fragments) element fand a FrameLayout(displays strictly one fragment) element. Right now I'm simply hiding one type of container and show another - setVisibility or fragmentTransaction.hide (I haven't figured what is the difference between those apart from the latest gives an ability of adding to activity's backstack). Is their any better way of switching between those. Additionally, even if those fragments might not hold much memory by themselves - should I wrap those objects with SoftReference ? Any other precautions I should consider implementing it ? Thanks ! On Saturday, July 28, 2012 9:36:27 PM UTC+3, Romain Guy (Google) wrote: 1) Does ImageView.SetImageResource applied against the same id twice or thrice consumes memory for the same bitmap or uses a separate range for every imageview element ? I don't quite understand your question. When a Bitmap is loaded as a Drawable (which is what ImageView does), it gets cached by the system (using weak references.) This means that if do this: Drawable d1 = loadDrawable(R.drawable.myImage); Drawable d2 = loadDrawable(R.drawable.myImage); you will get 2 different instances of Drawable, but the underlying Bitmap will be loaded in memory only once. 2) same as 1. but for BitmapFactory.decodeResource Every time you call this method you will load a new instance of a Bitmap object, which means you will use more memory. 3) What part of Bitmap object consumes the most memory. If it's backbone memory object than what is it ? Where can I elucidate the structure of bitmap memory for myself ? A Bitmap is backed by a byte array containing all the pixels. This is what consumes the most memory. As of Android 3.0, this byte array can be found in Bitmap.java, in previous versions of the platform the pixel storage exists on the native side (you'd have to investigate SkBitmap.cpp.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.
Thanks for the answers! Would you mind to suggest on the part about fragments, bitmaps and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The fragment number might slightly increase yet I think it's not the fragments but their bitmaps that gonna cause troubles with memory. For displaying the fragments I have two containers: a ViewPager(rotates 3-4 fragments) element and a FrameLayout(displays strictly one fragment) element. Right now I'm simply hiding one type of container and showing another - setVisibility or fragmentTransaction.hide (I haven't figured out what is the difference between these two apart from the latest gives an ability of adding to activity's backstack). Is their any better way of switching between the containers ? Additionally, even if those fragments might not hold much memory by themselves - should I wrap those objects with SoftReference ? Could you tell any precautions/advices for implementing an app with such structure ? Thanks. On Saturday, July 28, 2012 9:36:27 PM UTC+3, Romain Guy (Google) wrote: 1) Does ImageView.SetImageResource applied against the same id twice or thrice consumes memory for the same bitmap or uses a separate range for every imageview element ? I don't quite understand your question. When a Bitmap is loaded as a Drawable (which is what ImageView does), it gets cached by the system (using weak references.) This means that if do this: Drawable d1 = loadDrawable(R.drawable.myImage); Drawable d2 = loadDrawable(R.drawable.myImage); you will get 2 different instances of Drawable, but the underlying Bitmap will be loaded in memory only once. 2) same as 1. but for BitmapFactory.decodeResource Every time you call this method you will load a new instance of a Bitmap object, which means you will use more memory. 3) What part of Bitmap object consumes the most memory. If it's backbone memory object than what is it ? Where can I elucidate the structure of bitmap memory for myself ? A Bitmap is backed by a byte array containing all the pixels. This is what consumes the most memory. As of Android 3.0, this byte array can be found in Bitmap.java, in previous versions of the platform the pixel storage exists on the native side (you'd have to investigate SkBitmap.cpp.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.
If you have a fragment that holds on to a lot of memory in its view hierarchy and are concerned about this, then use FragmentTransaction.remove() to make it no longer visible -- that will remove it from its parent view and destroy its view hierarchy, so it doesn't hold on to any references. (If you are manually loading bitmaps in the fragment, in onDestroyView() you can clear the references there.) Of course this means a bit more overhead when the user returns to the fragment, since its view hierarchy needs to be re-inflated and initialized again. But it won't be any worse than the first time the user visited it, and you need that to be fast as well. It is true that FragmentTransaction.hide() does not remove and the destroy the fragment's view hierarchy, just doing View.setVisibility(). But that is not all -- it takes care of managing the fragment lifecycle so that fragment will be paused and stopped (since it is no longer visible). You can implement the lifecycle to free up resources if you need to. This will also result in them being freed when the entire activity is stopped, which is probably what you want as well. You shouldn't be directly hiding the view associated with a fragment. That is what FragmentTransaction.hide/show() is for. There is no need to directly hide the view owned by it, and doing so means that you are letting the correct fragment semantics execute. (And for what it's worth, if you have no reason to use fragments with ViewPager, there is nothing forcing you to -- you can write your own adapter that directly manages raw views and doesn't use fragments at all.) On Sat, Jul 28, 2012 at 1:45 PM, Dmitriy F midnight@gmail.com wrote: Thanks for the answers! Would you mind to suggest on the part about fragments, bitmaps and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The fragment number might slightly increase yet I think it's not the fragments but their bitmaps that gonna cause troubles with memory. For displaying the fragments I have two containers: a ViewPager(rotates 3-4 fragments) element and a FrameLayout(displays strictly one fragment) element. Right now I'm simply hiding one type of container and showing another - setVisibility or fragmentTransaction.hide (I haven't figured out what is the difference between these two apart from the latest gives an ability of adding to activity's backstack). Is their any better way of switching between the containers ? Additionally, even if those fragments might not hold much memory by themselves - should I wrap those objects with SoftReference ? Could you tell any precautions/advices for implementing an app with such structure ? Thanks. On Saturday, July 28, 2012 9:36:27 PM UTC+3, Romain Guy (Google) wrote: 1) Does ImageView.SetImageResource applied against the same id twice or thrice consumes memory for the same bitmap or uses a separate range for every imageview element ? I don't quite understand your question. When a Bitmap is loaded as a Drawable (which is what ImageView does), it gets cached by the system (using weak references.) This means that if do this: Drawable d1 = loadDrawable(R.drawable.**myImage); Drawable d2 = loadDrawable(R.drawable.**myImage); you will get 2 different instances of Drawable, but the underlying Bitmap will be loaded in memory only once. 2) same as 1. but for BitmapFactory.decodeResource Every time you call this method you will load a new instance of a Bitmap object, which means you will use more memory. 3) What part of Bitmap object consumes the most memory. If it's backbone memory object than what is it ? Where can I elucidate the structure of bitmap memory for myself ? A Bitmap is backed by a byte array containing all the pixels. This is what consumes the most memory. As of Android 3.0, this byte array can be found in Bitmap.java, in previous versions of the platform the pixel storage exists on the native side (you'd have to investigate SkBitmap.cpp.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
[android-developers] No internet Calling account Error
I'm writing a piece of code that has a error every time I run it stating: -No internet calling account availible I'm wondering if there is some kind of permissions involved in this or something else I am missing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launching an intent from a Widget Settings Class
On Sat, Jul 28, 2012 at 10:57 AM, Cythes cytheshic...@gmail.com wrote: The title pretty much sums up what I am trying to do at this point. Personally, I don't think your title is very clear. Is there a way to set an intent with in a settings class Set an Intent? On what? For what? What is a settings class? if not how would I go about making the settings class its own app icon so users can get to set up any time. If by settings class you mean a settings activity your users should be able to navigate to, then just add the Launcher category to your manifest for that Activity. The catch is the app I am working on is a system that is set up to instant fire so there is no time to get into a settings window from with in the app itself. I, for one, have no idea what instant fire means. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can I configure the Refund Period when using ServerManagedPolicy () in Android LVL
You cannot control the values for VT, GT, GR and UT. The server sets these values automatically (as described herehttp://developer.android.com/guide/google/play/licensing/licensing-reference.html#extras ). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
Besides debugging, there are a number of other things that are very useful to users that you can do with log access. One of these, is apps that provide special per-app settings and hence need to know which app is currently running. Here are some examples: 1. The SmartApp Protector app (and others like it) password-locks particular applications to prevent children from accessing them. It needs to read logs to pop up its window on top of a launching app. This is a very useful product to parents who want their kids to be able to occasionally play games on their phones but not do other things, and has 5-10 million downloads. 2. My not yet officially released VolumeSwipe for the Kindle Fire--which lacks volume buttons--that enables a portion of the screen as a volume slider, but only in some media apps, so it doesn't get in the way where it's not needed. This app needs to monitor which activity is being launched to turn the slider on/off. 3. My not yet officially released PerApp which lets you lock orientation on a per-app basis (there are other apps for this, too), as well as adjust volume boost and screen time-out on a per-app basis. 4. Some users, including myself, annoyed by the standard way Android devices do orientation switching--for my usage patterns, the orientation switches too often. I like to be able to hold the phone at all sorts of angles without it switching orientation, but yet have the ability to switch it easily. I have some test code on my phone which overrides the default orientation switching, so that it only switches if the phone is affirmatively held in an upright position. But the code needs to know which app is running, because we don't want to override the switching in apps that don't allow any orientation switching. 5. There is a Tasker plugin to detect app launch. This enables many, many useful things. For instance, suppose some game has annoying startup sounds. It can be quite useful to a user to set Tasker to kill the media volume whenever that game starts. 6. On devices where there is an API to change fonts, it could be VERY useful to change font face and/or size on a per-app basis. On my PalmOS devices, I could do this with my FontSmoother app, and it was very convenient. These kinds of things can provide a lot of value to users, and disabling log access forces users to have to root their devices to do these things. The more that permissions like READ_LOGS are restricted in new OS versions, the more motivation users have to root their devices, with consequent much more serious security problems, in order to do cool things. The millions of SmartApp Protector users might choose to delay upgrading to a JB device if they hear this app doesn't work on JB. I realize it's probably too late for READ_LOGS. But maybe some better documented alternative can be added for apps that need to detect app launch. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using eclipse with the NDK?
Thanks to you and Nikolay for the help - I had missed the how to although I pieced it together from stackoverflow. I had tried that before posting, unfortunately. I'll take my future discussion to the ndk group so spooky won't embarrass himself further. On Friday, July 27, 2012 5:33:00 PM UTC-7, goodG wrote: Start from here http://developer.android.com/sdk/installing/installing-adt.html Using the URL provided in the Eclipse package manager you will see 2 options, 1 about generic development with Android, the second one about Native development ( aka using the NDK ) Install both of this 2 options, or make sure that you have correctly installed this 2 plugins. The last thing to do is to set the path for your NDK in the settings menu: Window Preferences Android NDK Now you have the NDK integrated with your Eclipse IDE. For each project you have to manually enabled the native support, do it this way: right click on your project in the tree folder view Android Tools Add native support now if you right click again on your project you will get the options that you need to deal with C/C++ code under Android and the NDK build process. Il giorno sabato 28 luglio 2012 01:59:13 UTC+2, SChaser ha scritto: Does anyone know where to find instructions for using Eclipse for generation of code and debugging the native part of a mixed Java/C project? I didn't see it in the r8b docs, which appear to be totally command line oriented. Googling so far hasn't turned up anything that works for me (Windows, Cygwin, Indigo). I have an existing app but have never been able to do breakpoint debugging in the C part of the code (and yes, I need C for very high performance for a little part of the app). I guess I could use gdb (if I can get it to work, but would prefer to use eclipse). Is there a reason why this isn't documented? Is it not really ready for use? Or am I just not finding the documents/ 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] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On Jul 29, 12:18 am, Alex Pruss arpr...@gmail.com wrote: These kinds of things can provide a lot of value to users, and disabling log access forces users to have to root their devices to do these things. That's not the real problem though. Reading the logs was never the right way to customize the behavior of the device to the current running activity - it was at most a crude workaround. The real problem is that android is designed with the idea that apps should not alter the system's behavior on each other, and has extremely limited mechanisms for recognizing special apps that would be permitted to do so. While a real solution for that is long overdue, it's also a much more complicated design conversation than the topic at hand. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en