[android-developers] Different orientations for different phones/tablets?
Hi, Is it possible for an app to support one orientation (portrait) for phone but another orientation (landscape) for large form device like tablets? So far, it seems that we either have to support either portrait/landscape or support both orientations. You might ask why I am asking this - I have a full screen game that has been working well for portrait and it is already a pain to support different resolutions (artworks, speed of sprites, etc). But I would like to support landscape for certain devices like Transformer (in addition to portrait mode). 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
[android-developers] Re: Different orientations for different phones/tablets?
Of course. Check the screen size and lock the orientation for one or the other. On Friday, July 27, 2012 2:10:31 PM UTC+8, limtc wrote: Hi, Is it possible for an app to support one orientation (portrait) for phone but another orientation (landscape) for large form device like tablets? So far, it seems that we either have to support either portrait/landscape or support both orientations. You might ask why I am asking this - I have a full screen game that has been working well for portrait and it is already a pain to support different resolutions (artworks, speed of sprites, etc). But I would like to support landscape for certain devices like Transformer (in addition to portrait mode). 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
[android-developers] Re: Jelly Bean, READ_LOGS and 'Application Lockers'
Note that app-locking is not the only use-case for running-app- detection. My app does app-specific actions like 'if in Browser turn on wifi', 'if in Reader AND (if device orientation is vertical brightness high else brightness low)' However, Dianne has stated in another thread along the lines of the potential for abuse in app detection being too high, so don't be confident of a replacement for READ_LOGS. Pent p.s. I don't use READ_LOGS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Different orientations for different phones/tablets?
Thanks for the help! All the examples I have seen so far asked me to put portrait or landscape in the activity. I will give this a try! If you know any examples on the net please let me know (I didn't find any). On Friday, July 27, 2012 3:06:44 PM UTC+8, Zsolt Vasvari wrote: Of course. Check the screen size and lock the orientation for one or the other. On Friday, July 27, 2012 2:10:31 PM UTC+8, limtc wrote: Hi, Is it possible for an app to support one orientation (portrait) for phone but another orientation (landscape) for large form device like tablets? So far, it seems that we either have to support either portrait/landscape or support both orientations. You might ask why I am asking this - I have a full screen game that has been working well for portrait and it is already a pain to support different resolutions (artworks, speed of sprites, etc). But I would like to support landscape for certain devices like Transformer (in addition to portrait mode). 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] Re: Lock app
Isn't it possible to have some kind of Listener installing it whenever it's uninstalled? On Thursday, 26 July 2012 20:39:43 UTC+1, Kristopher Micinski wrote: You can't reliability do this, don't try. any user can just uninstall your blocker app On Jul 26, 2012 1:19 PM, Gabriel Augusto gabrielaugust...@gmail.com wrote: I searched and i found this question: http://stackoverflow.com/questions/7248080/android-lock-apps But I can't understand some things.. 2012/7/26 Pent supp...@apps.dinglisch.net This is kindof frowned upon in official circles here so I'm wearing a big sombrero to hide my identity as I post this. Several solutions have been discussed in previous threads, you just need to search a little. - accessibility service (needs server enabled by user) - system log (needs polling, beware: permission going away with JellyBean) - ActivityManager (needs polling) 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Different orientations for different phones/tablets?
Thanks, this is what I am doing now. I wanted to support portrait/landscape modes for 1280x720/800 device, so this is what I do, sounds OK? So far my test seems to be fine, except sometimes it starts up upside down for some tablet devices. Is any of the dimension is not 1280 I will stick to portrait mode. Display display = getWindowManager().getDefaultDisplay(); width = display.getWidth(); height = display.getHeight(); if (width 1280 height 1280) setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Different orientations for different phones/tablets?
You should be checking the DPI, not the absolute pixel count. I dont know about the upside down part. On Friday, July 27, 2012 3:49:42 PM UTC+8, limtc wrote: Thanks, this is what I am doing now. I wanted to support portrait/landscape modes for 1280x720/800 device, so this is what I do, sounds OK? So far my test seems to be fine, except sometimes it starts up upside down for some tablet devices. Is any of the dimension is not 1280 I will stick to portrait mode. Display display = getWindowManager().getDefaultDisplay(); width = display.getWidth(); height = display.getHeight(); if (width 1280 height 1280) setRequestedOrientation(ActivityInfo. SCREEN_ORIENTATION_PORTRAIT); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Lock app
No. Thank god. On Friday, July 27, 2012 3:48:45 PM UTC+8, Oleksandr Kruk wrote: Isn't it possible to have some kind of Listener installing it whenever it's uninstalled? On Thursday, 26 July 2012 20:39:43 UTC+1, Kristopher Micinski wrote: You can't reliability do this, don't try. any user can just uninstall your blocker app On Jul 26, 2012 1:19 PM, Gabriel Augusto gabrielaugust...@gmail.com wrote: I searched and i found this question: http://stackoverflow.com/questions/7248080/android-lock-apps But I can't understand some things.. 2012/7/26 Pent supp...@apps.dinglisch.net This is kindof frowned upon in official circles here so I'm wearing a big sombrero to hide my identity as I post this. Several solutions have been discussed in previous threads, you just need to search a little. - accessibility service (needs server enabled by user) - system log (needs polling, beware: permission going away with JellyBean) - ActivityManager (needs polling) 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] add phone number to contact
i try this code to add mobile number to contact by contact id but it didnt work builder = ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI); builder.withValue(ContactsContract.Data.CONTACT_ID, contactID); builder.withValue(ContactsContract.Data.MIMETYPE,ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE); builder.withValue(ContactsContract.CommonDataKinds.Email.DATA, number); builder.withValue(ContactsContract.CommonDataKinds.Email.TYPE, ContactsContract.CommonDataKinds.Email.TYPE_MOBILE; ops.add(builder.build()); can someone help me with that please coz i dont want to use contentvalue to add 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
Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue
Finally, I've found a solution to this problem! The official documentation for the preferences activity has just been updated. Check out the paragraph about Building a Custom Preference http://developer.android.com/guide/topics/ui/settings.html#Custom You have to implemenet both of the following methods the way it is described. Now *PreferenceManager.setDefaultValues()* also works for my custom dialog! protected void onSetInitialValue(boolean restorePersistedValue, Object defaultValue) protected Object onGetDefaultValue(TypedArray a, int index) On Sunday, July 15, 2012 2:18:37 PM UTC+2, jdr88 wrote: I just came across the same issue and can confirm the same behaviour: *android:defaultValue* of a custom DialogPreference is *not* set with PreferenceManager.setDefaultValues() method. Seems like a bug? I'm using now the solution that you proposed... On Thursday, 13 October 2011 23:11:27 UTC+2, tlegras wrote: Okay, I give up. My preference default value will be copied in the preference access code as well: value = sharedPref.getInt(mykey,myDirtyHardcodedDefaultValue ); If ever someone has a better solution, it will be welcome :) Thierry. 2011/10/11 Thierry Legras tleg...@gmail.com Hi Ibendlin, Thanks for helping me :) I don't think the problem is in SeekBarPreference.onSetInitialValue() function itself as it is never called (I have put a log in it to check). There is certainly an issue somewhere in my implementation; when setDefaultValues is called, only SeekBarPreference constructor is called. I was suspecting the xml, but I don't see any problem in it (android:defaultValue is set and android:persistent as well): com.tlegras.tools.SeekBarPreference android:key=preferences_epg_daytostore android:title=@string/preferences_epg_daytostore_title android:summary=@string/preferences_epg_daytostore_summary android:dialogMessage=Nombre de journées à télécharger. Attention, plus ce nombre est élevé, plus le chargement sera long et moins l'application sera réactive. android:text= jour(s) android:defaultValue=4 android:max=5 android:persistent=true / 2011/10/11 lbendlin l...@bendlin.us it took me a few weeks to get that right. here's my example for a boolean value. And yes, .setDefaultValues is actually working, despite what you may think :-/ @Override protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { boolean temp = restoreValue ? getPersistedBoolean(false) : defaultValue.toString().equals(true) ? true : false; if (!restoreValue) persistBoolean(temp); this.oldValue = temp; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thierry. -- Thierry. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Different orientations for different phones/tablets?
There are 2 issues that I have encountered so far with this approach: - on a Samsung tablet running Android 4, setting to portrait in code will ignore the current portrait orientation and show the device upside down (if I held it in one way with the logo on left). This does not happen if setting the portrait in the manifest file. setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) - on HTC Jetstream running Android 3.x, it will always report width and height regardless of whether the device in portrait and landscape. i.e., you might be holding the device in portrait but yet the width is more than height! 在 2012年7月27日星期五UTC+8下午3时57分34秒,Zsolt Vasvari写道: You should be checking the DPI, not the absolute pixel count. I dont know about the upside down part. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ICS/JB adaptation rate
I have some amazing numbers for my app with ICS+ adoption rate. This is an app that catters to users more likely to be technical thus having high-end phones or tablets Free version: Android 4.0.3- 4.0.444.62% Android 2.3.3- 2.3.729.46% Android 3.211.66% Android 2.25.98% Android 4.14.13% Android 3.11.94% Android 2.11.18% Numbers are even higher for the paid version: Android 4.0.3- 4.0.451.07% Android 2.3.3- 2.3.724.57% Android 3.211.37% Android 4.16.12% Android 2.24.18% Android 3.11.14% Android 2.10.59% These numbers are not representative of the cagory the app is in, with GB numbers being much higher. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] mono for android
java is not so different lenguage from C#,globally (oo orientation, jvm vs .net .. programming is always programming -big sweet game) but you is right, for every thing, tool can be better or not. I loooking Windows Phone (everything based on VS 2010 and c# ) It is the different street in the same place( where, if I see good, I am free for ten unsigned app on three device on one free account) . Learning is not problem, but I ам nот sure that I dare all my resource give to new thing (That are cause for some time the small income and a different approach) Does you have any problems with the suspension in terms of c# app vs time for learning java and android logic ? What are you doing in C# before ? Can I contact you after some time for your experience ? greeting 2012/7/26 Francisco M. Marzoa Alonso fmmar...@gmail.com Hi, When I started Android development, just three months ago, I have more knowledge on C# than in Java -I used Java about more than 15 years ago, while I have been doing things in C# just until one year ago or so-, and given this experience I think that is better to learn Java than trying to use C# for Android development. Best regards, On 26/07/12 10:00, goran gg wrote: I am not familiar with java but c# I track discussion here like silent viewer .It is very interesting. Please, forgive me for question : After years of C# , development mobile software is logical cream (ice cream like Mono 4 ). So using C#, SQL and xaml at same and different environment at the same time is great .Platform is not to mach required unlike Windows Phone. After one mount looking vs 2010 ultimate c# linq XAML and sign keytool,jarsigner.. zipalign superbly problem: required not evolution version for applay on device. whether you use MONO for android ? whether are all use shipped version ? thank for you 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] Re: ICS/JB adaptation rate
Just had a look, shocked to find I have 7.18% JB installs already. 38.5% ICS. 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] mono for android
2012/7/27 goran gg goran...@gmail.com java is not so different lenguage from C#,globally (oo orientation, jvm vs .net .. programming is always programming -big sweet game) but you is right, for every thing, tool can be better or not. I loooking Windows Phone (everything based on VS 2010 and c# ) It is the different street in the same place( where, if I see good, I am free for ten unsigned app on three device on one free account) . Learning is not problem, but I ам nот sure that I dare all my resource give to new thing (That are cause for some time the small income and a different approach) Does you have any problems with the suspension in terms of c# app vs time for learning java and android logic ? What are you doing in C# before ? Please what exact is you assortment tools for development in java android app ? Can I contact you after some time for your experience ? greeting 2012/7/26 Francisco M. Marzoa Alonso fmmar...@gmail.com Hi, When I started Android development, just three months ago, I have more knowledge on C# than in Java -I used Java about more than 15 years ago, while I have been doing things in C# just until one year ago or so-, and given this experience I think that is better to learn Java than trying to use C# for Android development. Best regards, On 26/07/12 10:00, goran gg wrote: I am not familiar with java but c# I track discussion here like silent viewer .It is very interesting. Please, forgive me for question : After years of C# , development mobile software is logical cream (ice cream like Mono 4 ). So using C#, SQL and xaml at same and different environment at the same time is great .Platform is not to mach required unlike Windows Phone. After one mount looking vs 2010 ultimate c# linq XAML and sign keytool,jarsigner.. zipalign superbly problem: required not evolution version for applay on device. whether you use MONO for android ? whether are all use shipped version ? thank for you 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
Re: [android-developers] MULTISAMPLE in ES 2.0
I think setting glSampleCoverage should be enough. Plus you may have to implement your own EGLConfigChooser which returns a multisampling supported EGLConfig. -- H On Jul 23, 2012 3:55 PM, EOG posi...@gmail.com wrote: Ho w to enable GL_MULTISAMPLE in OpenGL ES 2.0 ? there is no GLES20.GL_MULTISAMPLE value -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PBAP CLIENT
Hi Anirudh, I have a plan to implement PBAP client in Car kit to fetch contacts/incoming call/outgoing call from android powered phone. Could u please guide me some implemetation steps/tips for this?..I use ICS 4.0.3 Regards, Kishor On Friday, May 20, 2011 3:57:18 PM UTC+5:30, Anirudh Kashyap wrote: Hi, I have implemented a PBAP client. I am able to establish a OBEX Connection and connect to the PBAP server on the other android device. I am able to retrieve the vcards from certain devices. But I am not able to retrieve contacts from HTC Wildfire and DESIRE HD. When i send the GET request to PBAP Server it returns me OBEX_HTTP_UNAVAILABLE which is weired. Please can someone let me know where I am going wrong?. I am setting the following headers in the PBAP request NAME : telecom/pb.vcf TYPE : x-bt/phonebook APPLICATION PARAMETERS : FILTERS : 0x START_OFFSET : 0 MAX_LIST_COUNT : 65535 FORMAT : VCARD2.1 The above parameters work fine with Nexus S and one more phone. Regards, anirudh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 access modem in a native C libs
Did you manage to achieve what you were asking? I actually want the same thing and I'd love to hear if you managed anything :) On Saturday, July 3, 2010 1:19:09 PM UTC+3, Rover wrote: Hi there, May I ask a question here? I am porting a OS independent C library to Android (Libraries layer - to be exact). The library needs to access SIM and mobile networking. I think this needs to go through RILD interface (socket). But it is found that the RILD is dedicated to the telephony. Is it possible to set up another socket connection with RILD? If this is the case, RILD's gonna have two clients: Telephony and my library. Could RILD handle two clients simultaneously? It's been noticed there is a webkit lib in this layer. Webkit lib also needs to access mobile networking, doesn't it? How does it handle the modem access? Is there any counterpart in the up layer to assist accessing modem through telephony? I am new to Android. Any comments that can show some light will be highly appreciated. Thanks for your time Regard Charles -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Geolocation on ICS Browser
Hey Guys, Have an unusual problem of html5 geolocation services not working on my galaxy tablet running ics 4.0. Both running as a phonegap application and running on the native browser.I am getting an error as *position unavailable.* Can someone please help me on this. 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] Using a specific GLES library with the emulator-x86
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
[android-developers]
Plz help me to develope the code of an app which trace the current location of phone by gps and then store that info on a web page -- On Wed 25 Jul, 2012 10:36 PM PDT Manb wrote: Hi, I am new to android development. Can I get some help to create a customized spinner code with different color and font. with both for items and normal dispaly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Licensing question
I have a friend outside of Google that is working on an Android device and wants to ship it with YouTube already bundled. He was wondering if there is any licensing required with Google in order to do this. Not sure if this is the right forum to ask, but if anyone has any insight or can point me to the right person that would be great. Thanks, Thani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] An issue with the added functionality of the home button (4.1)
Hey, I'm wondering if there is a way to either intercept or stop the two extra functions to the home button which is long press and swipe up, which both display the google cards type activity. Actually pressing home is ok, but I want to stop the device reacting to these actions. Any help would be amazing. 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: Android XML Configuration File
thanks On Monday, 23 July 2012 19:09:23 UTC+5:30, Thomas Nolan wrote: I work for an enterprise support desk for a university, and for iPads/iPhones, we created XML configuration files that a user can download that confiure their exchange account for them. Is this possible to do for Android devices as well? Too many users have difficult setting up exchange and to streamline the process we really need to find a solution. We have over 1000 users and cannot go to each individual one to setup their exchange account. Any solution or alternative would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView with custom view item refresh issue
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: SystemClock.elapsedRealtime() drifts by up to ~1 second when the phone is in sleep mode
Leo, I am seeing this same behavior and stuggling to find a solution. Have you worked it out yet? I've tried implementing it in a Runnable and using SystemPreferences to store the times onPause, then retrieve them onResume and seen this issue. Then I moved the SystemClock.elapsedRealtime() to a service, thinking if I kept the timer running while the screen was blank that might be better. I started testing that last night on a device and it looks like it has the same issue. On Saturday, June 23, 2012 12:58:35 PM UTC-4, Leo Alekseyev wrote: I am writing an app that relies on precise clock synchronization between devices. I can sync up the clocks using NTP with good precision, and they stay in sync as long as the phones are plugged in. However, if either phone becomes disconnected from power and goes through a few sleep/wake cycles (e.g. by pressing the power button or letting it time out), the clocks will be out of sync by 0.3 - 0.7 seconds, whereas I need millisecond precision. My understanding was that *S*ystemClock.elapsedRealtime() should be immune to sleep / deep sleep states. What might be going on, and is it possible to fix this behavior? In my test code, I simply have a loop inside a thread that constantly looks at elapsedRealtime and updates UI if necessary. My test devices are HTC Hero with CM7 / Gingerbread, and Nexus S 4G with ICS.* --l * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Photos not saving anywhere?
I am developing a custom camera application on android 2.2 api level8(Device Xperia S) My application is running but when i click capture button the toast is displayed but image is not saved anywhere on the devices. Also added the permission to write on external device in menifest. Take photo class package com.example.customcamera3; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import android.app.Activity; import android.content.Context; import android.hardware.Camera; import android.hardware.Camera.PictureCallback; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.FrameLayout; import android.widget.Toast; public class TakePhoto extends Activity { private Camera mCamera; private CameraPreview mPreview; public static final int MEDIA_TYPE_IMAGE = 1; private String test=test; private PictureCallback mPicture = new PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { File pictureFile = getOutputMediaFile(MEDIA_TYPE_IMAGE); if (pictureFile == null) { Log.d(TakePhoto, Error creating media file, check storage permissions: ); return; } else { Log.d(TakePhoto, creating media file, check storage permissions: ); } try { FileOutputStream fos = new FileOutputStream(pictureFile); fos.write(data); fos.close(); Log.d(TakePhoto, Output Media File +data); } catch (FileNotFoundException e) { Log.d(TakePhoto, File not found: + e.getMessage()); } catch (IOException e) { Log.d(TakePhoto, Error accessing file: + e.getMessage()); } } }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.take_photo); // Create an instance of Camera mCamera = getCameraInstance(); mCamera.setDisplayOrientation(90); // Create our Preview view and set it as the content of our activity. mPreview = new CameraPreview(this, mCamera); FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview); preview.addView(mPreview); Button captureButton = (Button) findViewById(R.id.bcapture); captureButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // get an image from the camera mCamera.takePicture(null, null, mPicture); Toast.makeText(getBaseContext(), sup, Toast.LENGTH_SHORT) .show(); } }); } /** A safe way to get an instance of the Camera object. */ public static Camera getCameraInstance() { Camera c = null; try { c = Camera.open(); // attempt to get a Camera instance } catch (Exception e) { // Camera is not available (in use or does not exist) Log.d(TakePhoto, Camera is not Avialable); } return c; // returns null if camera is unavailable } /** Create a file Uri for saving an image or video */ private static Uri getOutputMediaFileUri(int type) { return Uri.fromFile(getOutputMediaFile(type)); } /** Create a File for saving an image or video */ private static File getOutputMediaFile(int type) { // To be safe, you should check that the SDCard is mounted // using Environment.getExternalStorageState() before doing this. File mediaStorageDir = new File( Environment .getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), TakePhoto); // This location works best if you want the created images to be shared // between applications and persist after your app has been uninstalled. // Create the storage directory if it does not exist if (!mediaStorageDir.exists()) { if (!mediaStorageDir.mkdirs()) { Log.d(TakePhoto, failed to create directory); return null; } } else { Log.d(TakePhoto, Directory exist); } // Create a media file name String timeStamp = new SimpleDateFormat(MMdd_HHmmss).format(new Date()); File mediaFile; mediaFile = new File(mediaStorageDir.getPath() + File.separator + IMG_ + timeStamp + .jpg); Log.d(TakePhoto, mediaFile.toString()); return mediaFile; } } Camera Preview class import java.io.IOException; import android.content.Context; import android.hardware.Camera; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; /** A basic Camera preview class */ public class CameraPreview extends SurfaceView implements SurfaceHolder.Callback { private SurfaceHolder mHolder; private Camera mCamera; public CameraPreview(Context context, Camera camera) { super(context); mCamera = camera; // Install a SurfaceHolder.Callback so we get notified when the // underlying surface is created and destroyed. mHolder = getHolder(); mHolder.addCallback(this); // deprecated setting, but required on Android versions prior to 3.0 mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public void surfaceCreated(SurfaceHolder holder) { // The Surface has been created, now tell the camera
[android-developers] mobile eye for windows phone 7.5 mango
i am looking for this app months and i cant find it...anyone who convert this app from ios to wp7.5 i will pay himcheck it out.http://itunes.apple.com/us/app/mobile-eye/id362651542?mt=8 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Flickering with keyboard animation
I have the same issue. Did you solve it? And if yes - how? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 SurfaceView and threads
Hi all. I have a problem. Please help. 1. I use a multiple views. Main menu surface view: view class=com.sniko.simplepong.MainMenuActivity$MainMenuSurfaceView android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dip android:scrollbars=vertical android:fadingEdge=vertical / Main menu surface class: public static class MainMenuSurfaceView extends SurfaceView implements SurfaceHolder.Callback { public static MainMenuThread drawThread; public MainMenuSurfaceView(Context context) { super(context); getHolder().addCallback(this); } public MainMenuSurfaceView(Context context, AttributeSet attrs) { super(context, attrs); getHolder().addCallback(this); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } public void surfaceCreated(SurfaceHolder holder) { drawThread = new MainMenuThread(getHolder(), getResources(), getWidth(), getHeight()); drawThread.setRunning(true); drawThread.start(); } public void surfaceDestroyed(SurfaceHolder holder) { boolean retry = true; // end thread work drawThread.setRunning(false); while (retry) { try { drawThread.join(); retry = false; } catch (InterruptedException e) { // try one more time } } } } Main menu thread: public class MainMenuThread extends Thread { int _fps = 60; int _sleepTime = 1000/_fps; Core _core; private static boolean runFlag = false; private SurfaceHolder surfaceHolder; public MainMenuThread(SurfaceHolder surfaceHolder, Resources resources, int width, int heigh) { this.surfaceHolder = surfaceHolder; _core = new Core(width, heigh); } public void setRunning(boolean run) { runFlag = run; } @Override public void run() { Canvas canvas = new Canvas(); while (runFlag) { try { canvas = surfaceHolder.lockCanvas(null); synchronized (surfaceHolder) { canvas.drawRGB(176, 196, 222); Thread.sleep(_sleepTime); _core.DrawMenuBackground(canvas); } } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (canvas != null) { surfaceHolder.unlockCanvasAndPost(canvas); } } } } } And another similar for options menu. I use multiple threads and surface view because is use 1 surface and thread class I have the next situation: When application starts, surface view start and create thread for drawing on it. When I click options button application goes to options menu and as I understand starts another thread and after few seconds options thread is stop (I think because menu surface surfaceDestroyed method is executed). By why? I was thinking that options activity and surface view create a new thread object and it independent from menu thread. That's why I use multiple threads and surface view classes. If anyone knows how to do more simpler and faster please help! 2. So and when I start to use multiple views and threads when on options menu I click back button it goes on main menu, little luggy (I think that in this time options menu thread and surface view not dispose) and then works normal (I think at that moment garbage collector kill thread or surface). So how can I avoid this. Thanks all answers!. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Advantage of introducing Isolatedprocess tag within Services in JellyBean[Android]
http://stackoverflow.com/questions/11681115/advantage-of-introducing-isolatedprocess-tag-within-services-in-jellybeanandroi# Can anyone put some light as what's the real/main advantage of introducing Isolatedprocess tag within Services in JellyBean[Android]. Is this advantageous at framework level or at the kernel level,as what we have seen that setting isolatedprocess tag value true within the Services assigns a new unique userId to that service process. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TTS / Jellybean
I'm having the same problem with my app. Only an issue with Jelly Bean, worked fine before. On Monday, July 23, 2012 9:37:53 AM UTC-5, Pent wrote: On my Nexus S European GSM 4.1, if not all possible languages are installed for the 'Google Text-to-speech Engine' then checking TTS data with this action... TestToSpeech.Engine.ACTION_CHECK_TTS_DATA ...results in immediate return in onActivityResult of result code CHECK_VOICE_DATA_MISSING_DATA with no voice data extras for the languages that *are* installed. In other words, it's apparently impossible to get a list of available voices for the engine until *all* of the possible voices are installed. Users aren't going to be impressed at having to download e.g. Italian, Spanish, French etc before being able to say something in e.g. English. Logic lapse there somewhere ? In 4.0.4 and prior the installed voices were returned. Other voices could be downloaded via the TTS config in settings. Did I miss some extra API part ? 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: Bluetooth SPP Service Discovery Intermittent but Persistent failures
I noticed the same on a Galaxy S2 running 4.0.3. So I tried to check the UUIDs prior to connect() by calling BluetoothDevice#fetchUuidsWithSdp(). This works good for some time, but at some point my BroadcastReceiver stops to receive the ACTION_UUID intents (although fetchUuidsWithSdp returned true). The same code worked on a Motorola and a Samsung Pad without any problems. On Monday, July 9, 2012 5:44:49 PM UTC+2, Justin Stander wrote: I am having a very similar problem on the Samsung Galaxy S3 running Ice Cream Sandwich. I can connect and disconnect reliably until the device the phone is connecting to is unavailable. After the connection times out or returns the rightful 'Unable to start Service Discovery' error (obviously due to the device being offline), I can never connect again to that device unless I power cycle the Phone. I am also explicitly cancelling service discovery before all connections. I can exit and restart the Android app a million times as long as the device I am connecting to is still powered on and its Bluetooth radio is powered on. The minute the Android phone fails to see my target device, that's the end of the road until I reboot Android. On Thursday, August 4, 2011 10:17:00 AM UTC-4, ole! wrote: Update: I've had so many problems with Bluetooth connections that I am updating this thread in hopes that others will be helped and a person with more Bluetooth knowledge can respond. Experimentation with other phones and BT devices indicates to me that the problem is not with the phones that I mentioned even though they have the symptoms. I believe that the response of the BT device to a service discovery request is erratic and the success of service discovery has some timing dependence. Bottom line is that if steps 1-4 (in original post) are repeated as soon as an exception is detected, I eventually get connected (within about 5 repeats). A single service discovery request has a success rate of 1/3. Note that I was repeating steps 1-4 if a user selected a menu item and this does not work well presumably due to some timing issue. Repeating just step 4 (connect method) always fails, if the first connect() failed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] instantiation of main activity
I have gone through several stages in the development of an app, compiling and executing just fine. After my latest increment of code the app builds fine, but crashes with the following message in the Log: unable to instantiate ActivityComponentinfo {}: java.lang.NullPointerException. My conclusion is that all of a sudden the Android system code is crashing before even getting to any of my code, which is also supported by the fact that if I comment out all of my app-specific code in the onCreate function, I still get the crash. However, testing several of my other apps shows them building and executing just fine. Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers]
webpage auh lots of work still left -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to make activate from sms ?
Thanks for reply. And could you give me a sample code ? Ono 2012年7月27日金曜日 5時04分57秒 UTC+9 Kristopher Micinski: Google SMS broadcast receiver On Jul 26, 2012 5:01 AM, ono onoke...@gmail.com wrote: Hi, I am searching a sample code what make activate android app by SMS. Could anyone show one to me? Java native code is good, but HTML5/JS is better. I mean like act 'Prey Anti-Theft(http://preyproject.com/)'. Any advice thanks. Ono -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] how to position imageview in linear layout with respect to screen size
Hi all, In my application,i used to customize the position of image view in linear layout.First,i position the first image view at the centre of the screen and then i try to position the second image view above the first image view.But i couldn't do that because the second image view is positioned with respect to first image view.How to position the image view with respect to screen size.Any one help on this? Thanks, vijay.k -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Public API for bluetooth headset event
Hi Raunaque, I am trying to write my application which would react to the Bluetooth headset/stereo-headset event. Pairing is done the normal way as is done between the phone and the Bluetooth device. Thanks, Ankur On Fri, Jul 27, 2012 at 2:20 PM, Raunaque Quaiser rmquai...@gmail.comwrote: what kind of application you are targetting . How are you doing pairing and connection . Regards Raunaque On Thu, Jul 26, 2012 at 3:58 PM, Ankur Agarwal agarwalanku...@gmail.comwrote: Is there any other alternative solution for this? Thanks, Ankur On Thu, Jul 26, 2012 at 12:28 PM, Ankur agarwalanku...@gmail.com wrote: Hi, I am trying to create a app which can handle bluetooth headset event or bluetooth stereo headset event(a2dp events) but I am not sure if there is any Public API exposed for this at http://developer.android.com/index.html. While developing the app for the BT stereo headset, I came across the android.bluetooth.a2dp.intent.**action.SINK_STATE_CHANGED but couldn't find any documentation for this. For BT headset it seems transmitting out AT commands which directly interacts with the lower level and does send out any events which my app could handle. I even tried handling ACTION_MEDIA_BUTTON, setting the priority for 999 incase this is already captured by another app but this didn't work as well. Is there any way how could we handle these BT events in our app. Thanks in advance! Thanks, Ankur -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiple SurfaceView and threads
The rule is only the main UI thread is allowed to draw anything on the screen. Do not use other threads to try to do this because it will only get you into trouble. There are various methods of linking background thread calculations and communications with the main thread, but only the main thread actually draws on the screen or otherwise interacts with the UI elements. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to put ads in live wallpapers?
Could you please explain why you think it is a terrible idea to mix live wallpapers with advertising? I have talked to several mobile advertising companies now and now one has any other advertising solution for live wallpapers than push notifications. Is any one else here developing live wallpapers? If so, how are you managing the advertising in the live wallpapers? Den onsdagen den 25:e juli 2012 kl. 19:10:12 UTC+2 skrev Dianne Hackborn: Mixing live wallpapers with attempts at advertising seems like a terrible idea to me. Have you considering instead trying something like in-app billing to allow users to unlock features in your app? On Wed, Jul 25, 2012 at 6:12 AM, MobileVisuals eyv...@astralvisuals.comwrote: Is there any other way to advertise in live wallpapers than push notifications? My company is using push notifications. This pays off well, but it also results in some bad reviews.I got this suggestion from another company: o Create a welcome page (name of the company, some app’s information) o Call for a Full screen ad with go and skip button o The go button will generate a click and transfer the user to the add o The skip button will transfer the user to your app to continue the app experience. Would this really work when the wallpaper is set as the current live wallpaper? The user doesn't want to press a button every time the screen is woken up? Does anyone have any other idea of how to put ads in live wallpapers? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unsubscribe
On Thu, Jul 26, 2012 at 10:35:18PM -0700, Andy dev wrote: Anyone made any progress with this issue, I still cannot pinpoint what causes it? It's nothing new...e-mail lists have been plagued with unsubscribe requests sent to the list despite very specific instructions given to users of the list since the day they signed up. As to why people do that, I'm going to be nice and not answer that part. Later, --jim -- 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] Jelly Bean, READ_LOGS and 'Application Lockers'
On Thu, Jul 26, 2012 at 10:54 PM, Bryan Ashby nuskoo...@gmail.com wrote: Google has certainly posted we're working on it type hints on many issues / upcoming features. Dates no, but it would be good to know if this is being looked at. :: snip :: I think at this point I may develop some customization's to Android myself, submit them, and hope for the best. I'm confident this can be implemented in a secure user friendly manor. What I don't want it to waste my time if someone at Google is already doing it. Which is why you will be far more likely to determine if someone at Google is already doing it if you make your own proposal for an implementation, with the clear intent to follow through on with the actual contribution, on the appropriate Google Group (e.g., android-contrib). What you will get on this list will be we're thinking about it at most, and there have been some of those that are years old with no implementation in sight, which is why I take such statements with a very large grain of salt. Though whether it can be implemented in a secure user friendly manor really depends on the style of home you live in. For example, my contributions would come from a semi-secure and occasionally user-hostile condo. :-) -- 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] instantiation of main activity
Please consider posting a full stack trace. On Thu, Jul 26, 2012 at 6:50 PM, peter gottlieb gottlieb...@gmail.com wrote: I have gone through several stages in the development of an app, compiling and executing just fine. After my latest increment of code the app builds fine, but crashes with the following message in the Log: unable to instantiate ActivityComponentinfo {}: java.lang.NullPointerException. My conclusion is that all of a sudden the Android system code is crashing before even getting to any of my code, which is also supported by the fact that if I comment out all of my app-specific code in the onCreate function, I still get the crash. However, testing several of my other apps shows them building and executing just fine. 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 -- 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] Re: Try to connect on SQL database jtdb drivers
The XYZ is the instance of the SQL server not a path So IPADRESS/instance are not working Any idea ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] modifying repligoreader.apk
So, not only are you a software pirate, but you want help from this list in your piracy. How charming. On Thu, Jul 26, 2012 at 3:32 PM, shahrokh vahedi v.shahrokh.1...@gmail.com wrote: hello... I wonder if you could modify the attached app to disable page turn animations... I'll appreciate it if you could possibly help me... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Advantage of introducing Isolatedprocess tag within Services in JellyBean[Android]
On Thu, Jul 26, 2012 at 11:42 PM, Mehrag gaurav.cs.me...@gmail.com wrote: Can anyone put some light as what's the real/main advantage of introducing Isolatedprocess tag within Services in JellyBean[Android]. It is a simple way of providing sandbox security, particularly for something that might be used by an app but could be exploited, such as a service using a scripting language to interpret scripts downloaded from the Internet. That being said, since it will create a second process, be judicious in its use, because it will consume extra RAM. -- 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] Regarding Application is not installed alert
There is no solution. The OS s indicating that the home screen's process cannot run your app (though the message itself is inaccurate). You cannot customize that message, because you did not write the operating system. On Fri, Jul 27, 2012 at 1:52 AM, Bunty syed itsmeatfo...@gmail.com wrote: Plz reply if somebody knows solution for the post... On 26 July 2012 10:01, Bunty syed itsmeatfo...@gmail.com wrote: Hi All, Actually I have one launcher with some child apps. I have given permission in all child apps so that only my launcher can launch them as follows permission android:name=android.permission.LAUNCH_KONY_POLICYINJECTED_APPS android:protectionLevel=signature/ Tat is working fine. So with above, if any other application not signed with same keystore of child apps not having required permission will get Permission denial exception while trying to launch the child apps . Now my doubt is when I click any of installed child Apps in the phone application menu, I am getting Alert saying that Application is not installed.. Tat is a expected behavior. But is there any way to customize that Alert message instead I want to display my alert message like Plz launch from my launcher app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- 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] Licensing question
On Thu, Jul 26, 2012 at 12:13 PM, Thanikai Sokka thani...@google.com wrote: I have a friend outside of Google that is working on an Android device and wants to ship it with YouTube already bundled. He was wondering if there is any licensing required with Google in order to do this. Not sure if this is the right forum to ask, but if anyone has any insight or can point me to the right person that would be great. http://source.android.com/faqs.html#compatibility -- 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] An issue with the added functionality of the home button (4.1)
On Thu, Jul 26, 2012 at 4:25 AM, Viché vichethesco...@gmail.com wrote: I'm wondering if there is a way to either intercept or stop the two extra functions to the home button which is long press and swipe up, which both display the google cards type activity. Actually pressing home is ok, but I want to stop the device reacting to these actions. Based on some quick scans of LogCat output, my guess is that this cannot be intercepted. It appears to be tied to a particular component. -- 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] Arial show?
Ok, thanks. I guess this is what Android folks use when they wanna get fancy: http://en.wikipedia.org/wiki/File:DroidSerifSpecimen.svg Here are the other two: http://en.wikipedia.org/wiki/File:DroidSansMonoSpecimen.svg http://en.wikipedia.org/wiki/File:DroidSansSpecimen.svg On Thursday, July 26, 2012 4:18:11 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Thu, Jul 26, 2012 at 5:12 PM, bob b...@coolfone.comze.com wrote: Is there an easy way to make a TextView on Android use the Arial font? Step #1: Buy a license for the Arial font (http://en.wikipedia.org/wiki/Arial#Proprietary_font) Step #2: Embed it as an asset and use setTypeface() on your TextView to apply it The key, of course, is the first step. -- 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] Arial show?
Don't forget Roboto, as well - which is a sans serif type, and is densely spaced, making it somewhat decorative... 27.07.2012 15:08 пользователь bob b...@coolfone.comze.com написал: Ok, thanks. I guess this is what Android folks use when they wanna get fancy: http://en.wikipedia.org/wiki/File:DroidSerifSpecimen.svg Here are the other two: http://en.wikipedia.org/wiki/File:DroidSansMonoSpecimen.svg http://en.wikipedia.org/wiki/File:DroidSansSpecimen.svg On Thursday, July 26, 2012 4:18:11 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Thu, Jul 26, 2012 at 5:12 PM, bob b...@coolfone.comze.com wrote: Is there an easy way to make a TextView on Android use the Arial font? Step #1: Buy a license for the Arial font (http://en.wikipedia.org/wiki/**Arial#Proprietary_fonthttp://en.wikipedia.org/wiki/Arial#Proprietary_font) Step #2: Embed it as an asset and use setTypeface() on your TextView to apply it The key, of course, is the first step. -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Developers:
How to connect oracle database using android import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class AndroidoracleActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = new TextView(this); tv.setText(orcale Connect Example.); setContentView(tv); try { Class.forName(oracle.jdbc.driver.OracleDriver); } catch (ClassNotFoundException e) { tv.setText(Where is your Oracle JDBC Driver?); e.printStackTrace(); return; } tv.setText(Oracle database driver register); Connection conn =null ; try { conn =DriverManager.getConnection(jdbc:oracle:thin:@localhost:1521:xe, Parthiban, Parthiban); } catch(SQLException e){ tv.setText(oracle driver is not installed check console); e.printStackTrace(); return ; } if(conn !=null){ tv.setText(oracle database registered u masde it to control); } else { tv.setText(failed to connection); } } } i did this code but it showing no driver wt i want todo...help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unsubscribe
2012/7/27 Jim Graham spooky1...@gmail.com On Thu, Jul 26, 2012 at 10:35:18PM -0700, Andy dev wrote: Anyone made any progress with this issue, I still cannot pinpoint what causes it? It's like life after death - no-one who knows for sure is able to share his knowledge :) It's nothing new...e-mail lists have been plagued with unsubscribe requests sent to the list despite very specific instructions given to users of the list since the day they signed up. As to why people do that, I'm going to be nice and not answer that part. Another mystery in the same category: a refund request for an in-app purchase from a user claming he didn't buy it (and no, neither he or his phone is being held captive). Later, --jim -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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'
Generally if you can do this, it's kind of considered a security hole, and while these chinese wall policies are implementable, I'm a little skeptical as to their real utility... On Jul 27, 2012 2:09 AM, Pent supp...@apps.dinglisch.net wrote: Note that app-locking is not the only use-case for running-app- detection. My app does app-specific actions like 'if in Browser turn on wifi', 'if in Reader AND (if device orientation is vertical brightness high else brightness low)' However, Dianne has stated in another thread along the lines of the potential for abuse in app detection being too high, so don't be confident of a replacement for READ_LOGS. Pent p.s. I don't use READ_LOGS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth PAN profile in Android ICS
Hello I've a question that, is ANDROID ICS support Bluetooth Personal Area Network (PAN) profile or not .? Is any one handled that, kindly let me know.! 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: Dalvikvm exception instantiating org.apache.http.entity.mime.content.FileBody
Hi DennisG: I can upload image file to server by source solution now. I will try new method.Thanks a lot. DennisG於 2012年7月26日星期四UTC+8下午3時14分03秒寫道: Sorry to all. Please forget about sources solution. Just put .JAR file into /libs folder of the project and add link to this JAR file to the Project | Properties | Jaba Build Path On Tuesday, April 10, 2012 3:49:38 PM UTC+3, DennisG wrote: Hi, I used to use org.apache.http.entity.mime.content.FileBody with org.apache.http.entity.mime.MultipartEntity sending files to server before. Suddenly I got a problem when upgrated to Android SDK ver 17th. Program is still compiled and started, but when it tries to instantiate org.apache.http.entity.mime.content.FileBody class it raises the following exception: 04-10 11:35:43.385: E/dalvikvm(457): Could not find class 'org.apache.http.entity.mime.content.FileBody', referenced from method com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance 818 (Lorg/apache/http/entity/mime/content/FileBody;) in Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync; I tried different versions of httpmimeXXX.jar but problem persists. Funny thing is that org.apache.http.entity.mime.content.StringBody and other classes from this library work fine. I guess that there is some conflict. When compiled on older version of Android SDK (ver 16) - everythihg works smoothly. So now I keeping old version of SDK on my backup laptop to compile this project. Could enyone to explain me please how can I solve this annoying problem? Regards, Dennis. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Application is not installed alert
What is 'plz'? Is it some sort of insult? I'm thinking of doing something similar. I haven't researched it yet but my planned approach is to do something in the child app to check the calling intent rather than your approach. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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'
Generally if you can do this, it's kind of considered a security hole, By whom and for what reason ? while these chinese wall policies are implementable, I'm a little skeptical as to their real utility... Luckily my customers aren't. 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: ICS/JB adaptation rate
Is yours (and Pent's) app new to the Market? On Friday, July 27, 2012 4:50:57 PM UTC+8, b0b wrote: I have some amazing numbers for my app with ICS+ adoption rate. This is an app that catters to users more likely to be technical thus having high-end phones or tablets Free version: Android 4.0.3- 4.0.444.62% Android 2.3.3- 2.3.729.46% Android 3.211.66% Android 2.25.98% Android 4.14.13% Android 3.11.94% Android 2.11.18% Numbers are even higher for the paid version: Android 4.0.3- 4.0.451.07% Android 2.3.3- 2.3.724.57% Android 3.211.37% Android 4.16.12% Android 2.24.18% Android 3.11.14% Android 2.10.59% These numbers are not representative of the cagory the app is in, with GB numbers being much higher. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ICS/JB adaptation rate
http://developer.android.com/about/dashboards/index.html On Friday, July 27, 2012 6:00:06 AM UTC+1, Zsolt Vasvari wrote: I know my app may not be a perfect sample (higher price, more sophisticated users), but it's interesting to see the various SDK level breakdown as of today: Android 2.3.3 - 2.3.7 41.91 % Android 4.0.3 - 4.0.4 34.38 % Android 2.2 9.01 % Android 3.2 8.20 % Android 4.1 2.12 % Android 2.1 2.01 % Android 3.1 1.80 % Android 4.0 - 4.0.2 0.20 % Android 1.60.15 % Others0.21 % In other words, ICS and JB are at 37% and I expect ICS+JB overtake GB in the next month. I think this is very good news overall. Hopefully, HC will drop off the face off the Earth as I have a hard time supporting HC. I am also planning to drop 2.1 support completely by the end of the year. How are other people's numbers look like? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Try to connect on SQL database jtdb drivers
Hum !!! .. my program working very well on other one SQL Server 2005 except if I tried to connect on my computer on Microsoft SQL Server Express Edition with Advanced Services This can be a problem with port lan or restriction on SQL Express When I will found a way, I will post my solution, just in case ! Thanks 2012/7/27 Andre St-Onge zaramu...@gmail.com The XYZ is the instance of the SQL server not a path So IPADRESS/instance are not working Any idea ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ICS/JB adaptation rate
Mine's been out a couple of years. 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: TTS / Jellybean
So I believe I figured out a way around this, which IMO is nicer anyway. Rather than check the TTS data before I create the TTS object, I just create it and then call: myTTS.isLanguageAvailable(Locale.getDefault()) // for the default locale, can change to whatever to see if there's TTS data available for that object. Worked fine in testing, waiting for Play Store to push update to test production. Also, I don't have the code in front of me, so I may have mistyped the syntax, but it's something like that. Googling it will find a more thorough explanation. On Thursday, July 26, 2012 10:13:50 PM UTC-5, Michael Kendle wrote: I'm having the same problem with my app. Only an issue with Jelly Bean, worked fine before. On Monday, July 23, 2012 9:37:53 AM UTC-5, Pent wrote: On my Nexus S European GSM 4.1, if not all possible languages are installed for the 'Google Text-to-speech Engine' then checking TTS data with this action... TestToSpeech.Engine.ACTION_CHECK_TTS_DATA ...results in immediate return in onActivityResult of result code CHECK_VOICE_DATA_MISSING_DATA with no voice data extras for the languages that *are* installed. In other words, it's apparently impossible to get a list of available voices for the engine until *all* of the possible voices are installed. Users aren't going to be impressed at having to download e.g. Italian, Spanish, French etc before being able to say something in e.g. English. Logic lapse there somewhere ? In 4.0.4 and prior the installed voices were returned. Other voices could be downloaded via the TTS config in settings. Did I miss some extra API part ? 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] Re: Jelly Bean, READ_LOGS and 'Application Lockers'
Most people I know on this list argue that apps should never be allowed to change system behavior. I hope you understand the implications for apps that aren't legitimate, unlike yours. Sure there are hacks, removing them happens slowly. Whats your app title, since I'm assuming you won't disclose the trick you're using, people can at least disassemble it to find out, then submit patches to Android to ensure future versions make it diffult. On Jul 27, 2012 7:34 AM, Pent supp...@apps.dinglisch.net wrote: Generally if you can do this, it's kind of considered a security hole, By whom and for what reason ? while these chinese wall policies are implementable, I'm a little skeptical as to their real utility... Luckily my customers aren't. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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'
By the way, I think anyone at Google would argue this is a security hole, so I'm not alone On Jul 27, 2012 9:37 AM, Kristopher Micinski krismicin...@gmail.com wrote: Most people I know on this list argue that apps should never be allowed to change system behavior. I hope you understand the implications for apps that aren't legitimate, unlike yours. Sure there are hacks, removing them happens slowly. Whats your app title, since I'm assuming you won't disclose the trick you're using, people can at least disassemble it to find out, then submit patches to Android to ensure future versions make it diffult. On Jul 27, 2012 7:34 AM, Pent supp...@apps.dinglisch.net wrote: Generally if you can do this, it's kind of considered a security hole, By whom and for what reason ? while these chinese wall policies are implementable, I'm a little skeptical as to their real utility... Luckily my customers aren't. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getViewTypeCount
I'm writing a class that implements ListAdapter. I'm looking at this method: --- public abstract int getViewTypeCount () Since: API Level 1 Returns the number of types of Views that will be created by getView(int, View, ViewGroup). Each type represents a set of views that can be converted in getView(int, View, ViewGroup). If the adapter always returns the same type of View for all items, this method should return 1. This method will only be called when when the adapter is set on the the AdapterView. Returns The number of types of Views that will be created by this adapter Can someone help me understand why I must implement this method? It seems like it should not be necessary to do this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getViewTypeCount
This you would use if the list items are of different type, ie, one item could have a simple textview, and another could have a textview with a button, and provided you want to have a separate layout file for these two kinds of views. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Fri, Jul 27, 2012 at 8:13 PM, bob b...@coolfone.comze.com wrote: I'm writing a class that implements ListAdapter. I'm looking at this method: --- public abstract int getViewTypeCount () Since: API Level 1 Returns the number of types of Views that will be created by getView(int, View, ViewGroup). Each type represents a set of views that can be converted in getView(int, View, ViewGroup). If the adapter always returns the same type of View for all items, this method should return 1. This method will only be called when when the adapter is set on the the AdapterView. Returns The number of types of Views that will be created by this adapter Can someone help me understand why I must implement this method? It seems like it should not be necessary to do this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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'
By the way, I think anyone at Google would argue this is a security hole, so I'm not alone They seem to allow services to do virtually anything that an activity can do at virtually any time. Doesn't seem to me they consider it a security hole. My app is called Tasker. It uses ActivityManager polling, which I detest. 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] Re: Jelly Bean, READ_LOGS and 'Application Lockers'
I didn't say that was a security hole, but I believe you could. What I said was bad was when an apparently could gain power over the system. AM polling is an option, but while it's a possible hack, they certainly don't *want* this, hence lack of an API, you can see the lengthy discussions as to the lack of a broadcast supporting this On Jul 27, 2012 10:00 AM, Pent supp...@apps.dinglisch.net wrote: By the way, I think anyone at Google would argue this is a security hole, so I'm not alone They seem to allow services to do virtually anything that an activity can do at virtually any time. Doesn't seem to me they consider it a security hole. My app is called Tasker. It uses ActivityManager polling, which I detest. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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'
By the way, I don't think your apparently shouldn't exist, I think there should be a way to extended system functionality in a secure way, and I don't think poor undocumented interfaces subject to change are the right way On Jul 27, 2012 10:05 AM, Kristopher Micinski krismicin...@gmail.com wrote: I didn't say that was a security hole, but I believe you could. What I said was bad was when an apparently could gain power over the system. AM polling is an option, but while it's a possible hack, they certainly don't *want* this, hence lack of an API, you can see the lengthy discussions as to the lack of a broadcast supporting this On Jul 27, 2012 10:00 AM, Pent supp...@apps.dinglisch.net wrote: By the way, I think anyone at Google would argue this is a security hole, so I'm not alone They seem to allow services to do virtually anything that an activity can do at virtually any time. Doesn't seem to me they consider it a security hole. My app is called Tasker. It uses ActivityManager polling, which I detest. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getViewTypeCount
Another scenario where you would use this is if you want to have sections headers in your list... For example, if you are displaying a list of contacts in alphabetical order, you can have a section header every time you get to a new letter when scrolling through the list. In this case, you would return 2. If you only have a single type of item in your list, just implement this and always return 1. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 8:47 AM, Kumar Bibek coomar@gmail.com wrote: This you would use if the list items are of different type, ie, one item could have a simple textview, and another could have a textview with a button, and provided you want to have a separate layout file for these two kinds of views. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Fri, Jul 27, 2012 at 8:13 PM, bob b...@coolfone.comze.com wrote: I'm writing a class that implements ListAdapter. I'm looking at this method: --- public abstract int getViewTypeCount () Since: API Level 1 Returns the number of types of Views that will be created by getView(int, View, ViewGroup). Each type represents a set of views that can be converted in getView(int, View, ViewGroup). If the adapter always returns the same type of View for all items, this method should return 1. This method will only be called when when the adapter is set on the the AdapterView. Returns The number of types of Views that will be created by this adapter Can someone help me understand why I must implement this method? It seems like it should not be necessary to do this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Jelly Bean, READ_LOGS and 'Application Lockers'
App, not apparently, I have an overzealous autocorrect On Jul 27, 2012 10:13 AM, Kristopher Micinski krismicin...@gmail.com wrote: By the way, I don't think your apparently shouldn't exist, I think there should be a way to extended system functionality in a secure way, and I don't think poor undocumented interfaces subject to change are the right way On Jul 27, 2012 10:05 AM, Kristopher Micinski krismicin...@gmail.com wrote: I didn't say that was a security hole, but I believe you could. What I said was bad was when an apparently could gain power over the system. AM polling is an option, but while it's a possible hack, they certainly don't *want* this, hence lack of an API, you can see the lengthy discussions as to the lack of a broadcast supporting this On Jul 27, 2012 10:00 AM, Pent supp...@apps.dinglisch.net wrote: By the way, I think anyone at Google would argue this is a security hole, so I'm not alone They seem to allow services to do virtually anything that an activity can do at virtually any time. Doesn't seem to me they consider it a security hole. My app is called Tasker. It uses ActivityManager polling, which I detest. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ICS/JB adaptation rate
On Friday, 27 July 2012 15:28:34 UTC+2, Zsolt Vasvari wrote: Is yours (and Pent's) app new to the Market? No, 1 year. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getViewTypeCount
On Fri, Jul 27, 2012 at 9:43 AM, bob b...@coolfone.comze.com wrote: Can someone help me understand why I must implement this method? It seems like it should not be necessary to do this. You don't *have* to. It's *not* necessary to do this. On Fri, Jul 27, 2012 at 10:14 AM, Justin Anderson magouyaw...@gmail.comwrote: If you only have a single type of item in your list, just implement this and always return 1. FYI, that's unnecessary as that's the default implementation. You only need to override it if you have more than the standard one view in your list. - 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: add phone number to contact
I made a little spot the* error* game for you: builder = ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI); builder.withValue(ContactsContract.Data.CONTACT_ID, contactID); builder.withValue(ContactsContract.Data.MIMETYPE,ContactsContract.CommonDataKinds. *Email.*CONTENT_ITEM_TYPE); builder.withValue(ContactsContract.CommonDataKinds.* Email*.DATA, number); builder.withValue(ContactsContract.CommonDataKinds.* Email*.TYPE, ContactsContract.CommonDataKinds.*Email.*TYPE_MOBILE; ops.add(builder.build()); can someone help me with that please coz i dont want to use contentvalue to add 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
Re: [android-developers] Problem Obtaining API Key and MapView not working
On Thu, Jul 19, 2012 at 2:54 PM, AgricultureDeveloper juliorodriguezvasq...@gmail.com wrote: if I could just get the maps to show up on my phone I could deal with the api key later on down the road. You can just run a debug build for now with your debug key and it should work just like the emulator. As for you production issue, I'd say to just start over following the steps carefully to obtain your production key. You likely just missed a step. - 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] Photos not saving anywhere?
On Thu, Jul 26, 2012 at 5:26 AM, Vaibhav Ajay Gupta vaibhav.ajaygu...@gmail.com wrote: Why images are not saving anywhere?? Please break your post down to the bare minimum amount of code required to demonstrate your problem. That's too much code for mots people to weed through. - 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 to android..which API to choose?
On Mon, Jul 23, 2012 at 4:27 PM, Carlos Oneil dubb...@gmail.com wrote: If i develop a ICS based app, will it run on a Gingerbread device? If your minSDK is Gingerbread and you use APIs that existed then, then yes, it'll work. There is also the compatibility library for this purpose. - 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] Does app updates count toward user installs on play store
On Mon, Jul 23, 2012 at 5:04 PM, Android Whiz hemant...@gmail.com wrote: I have basic question on how Google records the user installs that is listed on the play store. I doubt anyone here has an answer for you. The people that would know that for sure are neither on this list nor would answer you if they were. - 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] Storing an array of floats in SD Card
On Tue, Jul 24, 2012 at 3:17 PM, sterva7 esther.vasi...@gmail.com wrote: Can I do this? How? Is there any example I can use? http://developer.android.com/guide/topics/data/index.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] Google Play suspended one of our applications.
On Tue, Jul 24, 2012 at 8:23 AM, Kiwe Development di.ntem...@gmail.comwrote: Do you have any clue what's the violation here? Your name and icon are fairly blatant ripoffs of Pinterest, to the point that a casual passerby might confuse your product as an official Pinterest app. They're probably not happy about. I wouldn't be. Also, did you get permission from them to interact directly with their website? I'm guessing no. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to cereate table on android.
On Wed, Jul 25, 2012 at 5:16 PM, polvertum ivica.jo...@mposgroup.comwrote: How to pool data from mysql database and manipulate them in table form. This will work only on 10 screen tablets. Any ideas? Read the docs for SQLite. Read the docs for TableLayout. - 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] My app is not appearing in Google Play
On Tue, Jul 24, 2012 at 8:51 PM, Bob Crowley crowco...@gmail.com wrote: I have a published app that will not show in Google Play. Not even from my browser so filters are not the issue. It has been two days. I've gone over and over the documentation regarding how to prepare the app for distribution. Does anybody know if there is some kind of issue with Google Play right now? Doesn't show up in searching or at all (like using a direct link using your package name?) - 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] socket sharing
Is it possible to pass an open socket between different Activities in the same Application? Is this a reasonable practice or no? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Voice Actions
On Wed, Jul 18, 2012 at 8:49 AM, AlexTheLion shimanski.a...@gmail.comwrote: hello how can i use voice to get obeject move? for example: when i will say left my object will move left http://developer.android.com/reference/android/speech/package-summary.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] socket sharing
Generally you write a service that handles it and coordinate network operations by using the service from different activities. kris On Fri, Jul 27, 2012 at 1:34 PM, bob b...@coolfone.comze.com wrote: Is it possible to pass an open socket between different Activities in the same Application? Is this a reasonable practice or no? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: socket sharing
Probably better to use a service. On Friday, July 27, 2012 6:34:11 PM UTC+1, bob wrote: Is it possible to pass an open socket between different Activities in the same Application? Is this a reasonable practice or no? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getViewTypeCount
On Fri, Jul 27, 2012 at 10:14 AM, Justin Anderson magouyaw...@gmail.comwrote: If you only have a single type of item in your list, just implement this and always return 1. FYI, that's unnecessary as that's the default implementation. You only need to override it if you have more than the standard one view in your list. I was going off of this from his original post: public *abstract* int getViewTypeCount () Whether or not you have to implement it would depend on what class you are deriving from. Based on the information he provided, he would have to implement. If he is subclassing a class that already implements that method then it is correct that he doesn't need to implement it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 9:56 AM, TreKing treking...@gmail.com wrote: On Fri, Jul 27, 2012 at 9:43 AM, bob b...@coolfone.comze.com wrote: Can someone help me understand why I must implement this method? It seems like it should not be necessary to do this. You don't *have* to. It's *not* necessary to do this. On Fri, Jul 27, 2012 at 10:14 AM, Justin Anderson magouyaw...@gmail.comwrote: If you only have a single type of item in your list, just implement this and always return 1. FYI, that's unnecessary as that's the default implementation. You only need to override it if you have more than the standard one view in your list. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hi Developers:
FWIW, I don't think it is possible. However I was nice enough to do the Google search you should have done before posting here: http://lmgtfy.com/?q=oracle+db+on+android Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 5:52 AM, parthi parthisof...@gmail.com wrote: android will support oracle .huh ? which driver want to use to connect the database in android .. i attached my driver above... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] how to position imageview in linear layout with respect to screen size
How to position the image view with respect to screen size.Any one help on this? You don't want to do that... In my application,i used to customize the position of image view in linear layout.First,i position the first image view at the centre of the screen and then i try to position the second image view above the first image view.But i couldn't do that because the second image view is positioned with respect to first image view. Use a RelativeLayout... On the first image, set android:layout_centerInParent=true On the second image, set android:layout_above=@id/id_of_first_image Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 3:49 AM, Vijay Krishnan vijay.vijay...@gmail.comwrote: Hi all, In my application,i used to customize the position of image view in linear layout.First,i position the first image view at the centre of the screen and then i try to position the second image view above the first image view.But i couldn't do that because the second image view is positioned with respect to first image view.How to position the image view with respect to screen size.Any one help on this? Thanks, vijay.k -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] mobile eye for windows phone 7.5 mango
You do realize this is an *ANDROID* group? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 26, 2012 at 7:17 AM, megatypos maragos_isto...@yahoo.gr wrote: i am looking for this app months and i cant find it...anyone who convert this app from ios to wp7.5 i will pay himcheck it out. http://itunes.apple.com/us/app/mobile-eye/id362651542?mt=8 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListView with custom view item refresh issue
Look at and implement these methods: http://developer.android.com/reference/android/widget/Adapter.html#getItemViewType(int) http://developer.android.com/reference/android/widget/Adapter.html#getViewTypeCount() Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 26, 2012 at 4:59 AM, Sergio Panico sergio.pan...@gmail.comwrote: 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
Re: [android-developers] Re: Try to connect on SQL database jtdb drivers
And who need to know how the connection string work for SQLEXPRESS on the Android XXX.XXX.XXX.XXX:1434;instance=SQLEXPRESS;databaseName=WorkAdventures;user=**;password=** Replace XXX.XXX.XXX.XXX by computer name or IP Adress and by the SQL user information and under AndroidManifest.xml manifest xmlns:android=*http://schemas.android.com/apk/res/android* package=*com.example.com.andre.repartiteur* android:versionCode=*1 *android:versionName=*1.0* uses-sdk android:minSdkVersion=*16** * android:targetSdkVersion=*15* / uses-permission android:name=*android.permission.INTERNET*/ uses-permission android:name=*android.permission.ACCESS_NETWORK_STATE* / 2012/7/27 Andre St-Onge zaramu...@gmail.com Hum !!! .. my program working very well on other one SQL Server 2005 except if I tried to connect on my computer on Microsoft SQL Server Express Edition with Advanced Services This can be a problem with port lan or restriction on SQL Express When I will found a way, I will post my solution, just in case ! Thanks 2012/7/27 Andre St-Onge zaramu...@gmail.com The XYZ is the instance of the SQL server not a path So IPADRESS/instance are not working Any idea ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hi Developers:
Justin, 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
Re: [android-developers] Hi Developers:
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
Re: [android-developers] getViewTypeCount
On Fri, Jul 27, 2012 at 12:42 PM, Justin Anderson magouyaw...@gmail.comwrote: I was going off of this from his original post: public *abstract* int getViewTypeCount () Whether or not you have to implement it would depend on what class you are deriving from. Based on the information he provided, he would have to implement. Ah, whoops, I missed that part. You're absolutely right. Please disregard my original post. - 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] Intent with geo location with no maps API installed
Hi group, In my application I launch an intent to be opened in the google maps aplication. String uri = geo:0,0?q= + announcement.getAttribute(MapRegion.ANN_GEO) + ( + announcement.getAttribute(MapRegion.ID) + ); Intent intent = new Intent(android.content.Intent.ACTION_VIEW); intent.setData(Uri.parse(uri)); startActivity(intent); When the device doesn't have the maps API then my application crashes. This feature is optional and I would like to use the maps API externally. How can I detect if the maps API is installed so I can protect my code? thanks in advance, Luiz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Intent with geo location with no maps API installed
On Fri, Jul 27, 2012 at 2:33 PM, Luiz Fernando Rodrigues emaild...@gmail.com wrote: In my application I launch an intent to be opened in the google maps aplication. String uri = geo:0,0?q= + announcement.getAttribute(MapRegion.ANN_GEO) + ( + announcement.getAttribute(MapRegion.ID) + ); Intent intent = new Intent(android.content.Intent.ACTION_VIEW); intent.setData(Uri.parse(uri)); startActivity(intent); When the device doesn't have the maps API then my application crashes. Technically speaking, you are crashing because nobody has an activity that handles that particular geo: scheme. Other apps might support that scheme, beyond Google Maps (e.g., OsmAnd). This feature is optional and I would like to use the maps API externally. How can I detect if the maps API is installed so I can protect my code? You do not want to detect if the maps API is installed. You want to detect whether something can handle your startActivity() request. Again, some users may have devices with other map applications that can handle geo: Uri values. To do that, use resolveActivity() on PackageManager -- if that returns null (or if queryIntentActivities() returns an empty list, if you prefer), you know nothing can handle your startActivity() call with that Intent. -- 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] mobile eye for windows phone 7.5 mango
Hey, some of us have Windows Phone devices too :) ( whoops... ban for life now? ) 2012/7/27 Justin Anderson magouyaw...@gmail.com You do realize this is an *ANDROID* group? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 26, 2012 at 7:17 AM, megatypos maragos_isto...@yahoo.grwrote: i am looking for this app months and i cant find it...anyone who convert this app from ios to wp7.5 i will pay himcheck it out. http://itunes.apple.com/us/app/mobile-eye/id362651542?mt=8 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListView with custom view item refresh issue
I'm not seeing any evidence why getViewTypeCount() or getItemViewType() would be needed. Based on the description, the items views appear to be homogeneous. It looks weird to me that public void refreshView does not take an int position parameter. How does it know that it needs to set the views with the data for the position'th item? And that's probably what the issue is - the original MyItemView created for item A is reused for item F, and B for G, so it updates the views with the wrong data. Another point - it's not necessary to call invalidate() like you're doing. -- K 2012/7/27 Justin Anderson magouyaw...@gmail.com Look at and implement these methods: http://developer.android.com/reference/android/widget/Adapter.html#getItemViewType(int) http://developer.android.com/reference/android/widget/Adapter.html#getViewTypeCount() Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 26, 2012 at 4:59 AM, Sergio Panico sergio.pan...@gmail.comwrote: 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en