[android-developers] ContactManger Doubts
Hi all, I'm referring to the android sample, ContactManager for API level 15. 1) ContactManager.java = getContacts() Is there any way that I could filter out contact only from sim card or phonebook ? 2) ContactAdder.java = AccountManager.get(this).addOnAccountsUpdatedListener(this, null, true); I believe that this will pass in all available account on the device Account[] accounts = AccountManager.get(this).getAccounts(); for (Account account : accounts) { String possibleEmail = account.name; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ContactManager doubts
Hi all, I have doubts on android sdk-15 sample ContactManager. 1) ContactManager.java = getContacts() Is there any way i query out contacts only located in sim card or phone book ? 2) ContactAdder.java = onAccountsUpdated(Account[] a) When i'm in debug mode on my device, I check the account array and realise only gmail, what'sapp are available. Is sim card or phone book not an account ? Is there any way I could insert directly into sim card or phonebook ? 3) No delete or update has been introduced in this demo I know that I can use Intent.ACTION_INSERT_OR_EDIT, but I don't wish to do that. I would like to follow the demo and create custom user interface for it. Is there any tutorial out there that introduces delete or update contact for me to follow ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
It seems that on the JB emulator everything works as before. Is that by design? Thanks. On Thursday, July 12, 2012 9:29:20 PM UTC+3, nnk wrote: There's no documented, approved way to read the log entries. Having said that, if you just exec() logcat, as you did before, you'll automatically get your own log entries. You don't need to do anything special. The log system knows which log entries belong to you, and which log entries belong to others, and will only give you your log entries. -- Nick On Jul 12, 10:24 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote: however every app can read the logs containing only the lines *they* have written, without needing any permission. OK, I'll bite: how do you do this? Most of the read-the-logs code that I have seen uses logcat via Runtime#exec(), and I don't see a command-line switch on logcat to limit output to just your own process' lines. (BTW, count me as one of the fans of this decision, despite the very loud grumblings I expect you will receive from various quarters) Thanks! -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] can we restart systemserver..............?
Not from a third party app. You can stop/start it with adb shell stop and adb shell start. If it is stopped, all of the framework goes down, including all applications. You can't stop/start individual system services. On Sat, Jul 14, 2012 at 10:17 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, Generally SystemServer wiil start all systemservices (ActivityManagerService, PackageManager etc..)right. 1)Is it possible to restart the systemserver so that all systemservices will be restarted. 2) Similarly can we restart the particular systemservice for ex: PackageManagerService. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Where is the link to google projects ??? before it was here http://code.google.com/
Before one had access to many google projects just by www.code.google.com is there a link that point to same ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] want to manually install android 2.3.3 samples into ANDROID SDK ???
I have downloaded android 2.3.3 samples from dl-ssl.google.com . and now i want to intall the sample into ANDROID SDK.. IN WHICH SPECIFIC DIRECTORY SHOULD I WANT TO PLACE THE DOWNLOADED SAMPLES TO GET IT INSTALLED INTO SDK ?? Any help ??? Thankx in advance crazy on coding . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android SDK tools installation error
https://lh4.googleusercontent.com/-xAww2DabOX4/UAHtoe4FtPI/ACs/dq0ZwEh_HYE/s1600/andriod+sdk+tools+error.png I got this error when am trying to install the SDK I have updated my Java, i have restarted many times could anyone help me with some tips on how to fix this error thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where is the link to google projects ??? before it was here http://code.google.com/
No its typically something new project On 7/15/12, zousey luc...@gmail.com wrote: Before one had access to many google projects just by www.code.google.com is there a link that point to same ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to unit test drag n drop - honeycomb
I am starting Android JUnit Testing at the moment and I am running in exactly the same issue. The first event (DOWN) seems to get processes properly, but the next event (MOVE) results in the mentioned security exception. Granting the requested permission resulted in no joy as well. Did you solve your issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ask!
Is the htc evo 3D much better tha sensation ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ScrollView.setHorizontalScrollBarEnabled(true) doens't work
I have a ScrollView which scrolls vertically when I add enough rows to the table I create dynamically. When I additional columns so they cannot all be displayed and call ScrollView.setHorizontalScrollBarEnabled(true) there is no horizontal scrolling or scrollbar, however. The JavaDocs don't mention that anything else has to be done to enable horizontal scrolling. Is this a bug, or is it a case of undocumented dependencies in order to get horizontal scrolling to work? 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] NDK with stlport_shared for standalone binary?
I want to compile a standalone binary from C++ sources which use some basic STL stuff like string, vector and so on. If I compile it with 'stlport_static' everything works fine. However with 'stlport_shared' I get this error message when executing the binary on the device: link_image[1965]: 14649 could not load needed library 'libstlport_shared.so' for '/data/prog' (load_library[1120]: Library 'libstlport_shared.so' not found)CANNOT LINK EXECUTABLE Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does Android Support Secondary Microsd Card?
Hi Everyone, I was wondering if Android supports a secondary MicroSD card. And if it does, then are there any phone or tablets on the market which provide a secondary slot for a secondary MicroSD card? Thanks, Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: backend for app?
Why not use Java, eclipse SDK, sqlite? (*mysql is way better than sqlite, but sqlite seems more direct for apps) On Thursday, July 12, 2012 3:50:39 PM UTC-4, dave wrote: is there a better backend for apps? i know php and mysql. should i just go with what i know? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: sdk version Compatibility
Not sure why my posts are not saving, but I have an app that is hitting the same problem with 4.0.4 for one of my users. The app launches, the splash screen shows, then the program crashes and locks up the device. No user errors or stack trace is loaded to my developer console. I have no way to test this, as the emulator and my eclipse sdk only have 4.0.3 installed, and I cannot seem to find anything specific to 4.0.4. Any advice?? -ac On Thursday, July 12, 2012 9:37:37 AM UTC-4, reshmy anup wrote: Hi.. I have created an android application in sdk 2.3.3.It is working in 4.0.3 also. But it is crashing in samsung galaxy s3.The os version of that device is 4.0.4.Is there any particular reason for that crashing in s3?It is working fine in s2. Thanks and regards Reshmy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fragments, removing only 1 item from the backstack.
I have a problem of managing fragments. (Using Support Package, revision 9 (June 2012)) I have an activity with 2 fragments on the screen. If I add fragment A, then add Fragment B, then destroy fragment A Fragment B is also destroyed. I'm managing fragments this way (there is the begin and commit lines) *add* ft.add(location, fragment, tag); ft.addToBackStack(tag); *Remove* this.mFragmentManager.popBackStack(tag,FragmentManager.POP_BACK_STACK_INCLUSIVE); ft.remove(fragment); This works quite well, my back stack gets cleaned, bar this little quirk. I've no idea how I can simply remove a single fragment from the backstack, as popping the backstack removes everything below that fragment. Any ideas or am I'm just being thick? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Device unable to read USSD Code
Hello everyone, I have a problem with my phone, a Motorola XPRT, running on Android 2.2 Froyo; I just received it and I'm using it on a GSM network, everything works fine except the USSD Codes. When I dial any USSD Code the phone displays USSD Running then IMEI Canceled. I contacted Motorola but they know shit about this. I used my SIM card on another phone and USSD Codes work fine. So the problem comes from the phone. Is there any software manipulation I can make in order to fix this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: sdk version Compatibility
I have a user reporting the same behavior with 4.0.4. There are no errors listsed on my site, and he says that there are no errors or exceptions, the program just quits. I downloaded your app today but it doesn't work on my phone. I've got a new galaxy s 3. The app shows the splash screen then goes black and locks up my phone. Is there any eclipse sdk release so that I can test on an emulator? Any known issues with 4.0.4?? Thanks -ac On Thursday, July 12, 2012 9:37:37 AM UTC-4, reshmy anup wrote: Hi.. I have created an android application in sdk 2.3.3.It is working in 4.0.3 also. But it is crashing in samsung galaxy s3.The os version of that device is 4.0.4.Is there any particular reason for that crashing in s3?It is working fine in s2. Thanks and regards Reshmy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ScrollView.setHorizontalScrollBarEnabled(true) doens't work
ScrollView only supports vertical scrolling as documented. If you want horizontal scrolling you need to use HorizontalScrollView. On Sat, Jul 14, 2012 at 6:39 PM, Dean Schulze dean.w.schu...@gmail.comwrote: I have a ScrollView which scrolls vertically when I add enough rows to the table I create dynamically. When I additional columns so they cannot all be displayed and call ScrollView.setHorizontalScrollBarEnabled(true) there is no horizontal scrolling or scrollbar, however. The JavaDocs don't mention that anything else has to be done to enable horizontal scrolling. Is this a bug, or is it a case of undocumented dependencies in order to get horizontal scrolling to work? 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where is the link to google projects ??? before it was here http://code.google.com/
Yes I can see that it is something new, is there a link that point to google projects ? where not only https://developers.google.com/products/; they are many other google projects ho do I discover them ? On Sunday, July 15, 2012 10:19:45 AM UTC+2, Dwipam a.k.a. Appy wrote: No its typically something new project On 7/15/12, zousey luc...@gmail.com wrote: Before one had access to many google projects just by www.code.google.com is there a link that point to same ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On my instance of JB emulator it runs with new behavior. Make sure you've started correct emulator, as I noticed several times that ADT/SDK 20.0 could start something else (non-selected item) from the list. On Sunday, July 15, 2012 9:54:18 AM UTC+3, Ran wrote: It seems that on the JB emulator everything works as before. Is that by design? Thanks. On Thursday, July 12, 2012 9:29:20 PM UTC+3, nnk wrote: There's no documented, approved way to read the log entries. Having said that, if you just exec() logcat, as you did before, you'll automatically get your own log entries. You don't need to do anything special. The log system knows which log entries belong to you, and which log entries belong to others, and will only give you your log entries. -- Nick On Jul 12, 10:24 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote: however every app can read the logs containing only the lines *they* have written, without needing any permission. OK, I'll bite: how do you do this? Most of the read-the-logs code that I have seen uses logcat via Runtime#exec(), and I don't see a command-line switch on logcat to limit output to just your own process' lines. (BTW, count me as one of the fans of this decision, despite the very loud grumblings I expect you will receive from various quarters) Thanks! -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
I was definitely running the JB emulator. So if you install aLogcat on the emulator, you can see only your own app logs? and nothing else? - Ran On Sun, Jul 15, 2012 at 12:02 PM, Ievgenii Nazaruk ievgenii.naza...@gmail.com wrote: On my instance of JB emulator it runs with new behavior. Make sure you've started correct emulator, as I noticed several times that ADT/SDK 20.0 could start something else (non-selected item) from the list. On Sunday, July 15, 2012 9:54:18 AM UTC+3, Ran wrote: It seems that on the JB emulator everything works as before. Is that by design? Thanks. On Thursday, July 12, 2012 9:29:20 PM UTC+3, nnk wrote: There's no documented, approved way to read the log entries. Having said that, if you just exec() logcat, as you did before, you'll automatically get your own log entries. You don't need to do anything special. The log system knows which log entries belong to you, and which log entries belong to others, and will only give you your log entries. -- Nick On Jul 12, 10:24 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote: however every app can read the logs containing only the lines *they* have written, without needing any permission. OK, I'll bite: how do you do this? Most of the read-the-logs code that I have seen uses logcat via Runtime#exec(), and I don't see a command-line switch on logcat to limit output to just your own process' lines. (BTW, count me as one of the fans of this decision, despite the very loud grumblings I expect you will receive from various quarters) Thanks! -- Mark Murphy (a Commons Guy)http://commonsware.com|htt** p://github.com/commonsguyhttp:**//commonsware.com/blog|http://** twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy Android Training in NYC:http://marakana.com/**training/android/http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Memory issues in list view with bitmaps
What is the best way to handle a very long list view with bitmaps in a low memory device? I'm getting crashes after I scroll a bit... I don't want to loose image quality... I was thinking about loading only the number of items which is possible for the available memory, but this is obviously a bad solution. Do I have to recycle manually the bitmaps, in getView(), according to the position...? Is this the way to handle 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] Re: Memory issues in list view with bitmaps
I forgot to say, I'm targeting API 7. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On Sunday, 15 July 2012 11:08:13 UTC+2, Ran wrote: I was definitely running the JB emulator. So if you install aLogcat on the emulator, you can see only your own app logs? and nothing else? using aLogcat in the JB emulator I could see all system 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
Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
me too. Isn't that the old behavior? - Ran On Sun, Jul 15, 2012 at 1:33 PM, b0b pujos.mich...@gmail.com wrote: On Sunday, 15 July 2012 11:08:13 UTC+2, Ran wrote: I was definitely running the JB emulator. So if you install aLogcat on the emulator, you can see only your own app logs? and nothing else? using aLogcat in the JB emulator I could see all system 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] Emulator hardware keyboard mapping table?
Hi all, Now that the emulator seemingly supports using the computer's physical keyboard in a more generic way, I have experimented a bit to try to get it to fully work. Specifically, I'd like to enter the åäöÅÄÖ characters without having to longpress A or O to get the popup menu and some fiddling seems to indicate that this should be possible: Under Physical keyboard int he emulator I can select Swedish - Android keybard which for some reason has the title qwerty2 - it indicates that pressing Ctrl-Space should toggle between those that I've enabled, that doesn't work, but is no big deal really. However, it seems that the mapping table is broken since when I press I get ; and shifted , gives me ö while ' gives me ä. Interestingly, if I switch my keyboard mapping of my laptop to be standard English US, the emulator will indeed generate the correct Swedish keys! (Well, not quite 100%, but all the important ones anyway) This is OK as a workaround, but I'd say it is on the inconvenient side. Is there any way I can create a correct mapping table? The emulator -keyset help file was the closest thing I could come up with, but it seems to work on a different level. I'm happy to experiment and provide whatever I find out back to the sources as long as I can get a pointer to where I should start... BTW: I'm on Linux (Ubuntu) in case that makes any difference. Many thanks in advance / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best books for learning Android
Yeah, after having been bitten having out of date tools docs early in my book versions, I try to update them within a month for any changes to core workflow. That way, new developers with new tools have the right info. Secondary stuff might be a bit off for longer, and I still have more tools chapters to write. Thanks for subscribing, and I hope you enjoy the book! Mark Murphy - mmur...@commonsware.com sent from some random Android device On Jul 15, 2012 1:39 AM, Jason Hsu jhsu802...@gmail.com wrote: Thanks so much for your suggestions. As a result, I have subscribed to Mark Murphy's books. Mark, your books provide great examples of Android apps that actually work. And you weren't fooling about being up-to-date, because the new edition you just released INCLUDES the changes in the latest version of Eclipse. (I'm referring to the procedure for starting a project, which is somewhat different from that in the earlier version of Eclipse/ADT.) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
in JB, a useful debug app like aLogcat becomes useless as it i unable to retrive the full log. I've had the perfect example a few mins ago. A JB user contacting me for an issue with my app and requiring that he send me a full log to troubleshoot WTF MediaPlayer is doing. Impossible easily on JB as aLogcat is not working anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Strange memory consumption numbers on the emulator
I made a test about memory comsumption loading bitmaps. It runs fine on a device - it doesn't occupy even 2 mb, but on the emulator it soon occupies 20 mb. Both the device and the emulator have resolution 480 x 800 and both are running Android 2.3.3. In both cases, I also outputted the dimenstions of the loaded bitmaps, and they are the same - 640 x 588. This is the test class: public class TestActivity extends Activity { ImageView imageView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); showDeviceResolution(); Log.d(memory, stats before view); showMemoryStats(); setContentView(R.layout.mylayout); Log.d(memory, stats after view); showMemoryStats(); imageView = (ImageView)findViewById(R.id.image); } @Override public void onWindowFocusChanged(boolean hasFocus) { Log.d(memory, stats before animation); showMemoryStats(); initTest(); super.onWindowFocusChanged(hasFocus); } private void initTest() { Drawable b1 = getResources().getDrawable(R.drawable.b1); Log.d(test, bitmap1 dim: + ((BitmapDrawable)b1).getBitmap().getWidth() + x + ((BitmapDrawable)b1).getBitmap().getHeight()); imageView.setImageDrawable(b1); showMemoryStats(); Drawable b2 = getResources().getDrawable(R.drawable.b2); Log.d(test, bitmap2 dim: + ((BitmapDrawable)b2).getBitmap().getWidth() + x + ((BitmapDrawable)b2).getBitmap().getHeight()); imageView.setImageDrawable(b2); showMemoryStats(); Drawable b3 = getResources().getDrawable(R.drawable.b3); imageView.setImageDrawable(b3); showMemoryStats(); Drawable b4 = getResources().getDrawable(R.drawable.b4); imageView.setImageDrawable(b4); showMemoryStats(); Drawable b5 = getResources().getDrawable(R.drawable.b5); imageView.setImageDrawable(b5); showMemoryStats(); Drawable b6 = getResources().getDrawable(R.drawable.b6); imageView.setImageDrawable(b6); showMemoryStats(); Drawable b7 = getResources().getDrawable(R.drawable.b7); imageView.setImageDrawable(b7); showMemoryStats(); Drawable b8 = getResources().getDrawable(R.drawable.b8); imageView.setImageDrawable(b8); showMemoryStats(); Drawable b9 = getResources().getDrawable(R.drawable.b9); imageView.setImageDrawable(b9); showMemoryStats(); Drawable b10 = getResources().getDrawable(R.drawable.b10); imageView.setImageDrawable(b10); showMemoryStats(); Drawable b11 = getResources().getDrawable(R.drawable.b11); imageView.setImageDrawable(b11); showMemoryStats(); Drawable b12 = getResources().getDrawable(R.drawable.b12); imageView.setImageDrawable(b12); showMemoryStats(); Drawable b13 = getResources().getDrawable(R.drawable.b13); imageView.setImageDrawable(b13); showMemoryStats(); Drawable b14 = getResources().getDrawable(R.drawable.b14); imageView.setImageDrawable(b14); showMemoryStats(); Drawable b15 = getResources().getDrawable(R.drawable.b15); imageView.setImageDrawable(b15); showMemoryStats(); Drawable b16 = getResources().getDrawable(R.drawable.b16); imageView.setImageDrawable(b16); showMemoryStats(); Drawable b17 = getResources().getDrawable(R.drawable.b17); imageView.setImageDrawable(b17); showMemoryStats(); } public static void showMemoryStats() { double nativeUsage = Debug.getNativeHeapAllocatedSize(); Log.i(memory, nativeUsage: + (nativeUsage / 1048576d)); } public void showDeviceResolution() { DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); String str = resolution: + dm.widthPixels + x + dm.heightPixels; Log.d(memory, resolution: + str); } } On the device the native usage increments only a bit each time, and as said at the end is still under 2mb, on the other side the emulator loads more than 1mb each time and at the end runs out of memory, because it loaded more than 20mb... Can somebody explain me what's going on here... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] JUnit, TouchUtils, DragDrop and INJECT_EVENTS permission
Hi all, I am having serious trouble JUnit testing an Activity that uses the API Level 11+ DragDrop Framework. I am using TouchUtils.dragViewTo() to emulate a drag that in turn causes the Activity under test to start a drag using the API Level 11+ call View.startDrag() The test aborts with a security exception that states that INJECT_EVENTS permission is required. The log entry before the exception also gives a hint as to why this happend: 07-15 13:38:38.121: W/InputDispatcher(204): Permission denied: injecting event from pid 4064 uid 10061 to window drag owned by uid 1000 I also tried sending the events directly (using Instrumentation) instead of using TouchUtils. It turns out the exception is thrown on the first MOVE type motion event - the DOWN before the move works successfully. This brings me to an assumption: Does the new DragDrop framework somehow use a window above the current activity to perform the drag action? Is this window owned by another process than the currently running one? This would at least explain why my tests are failing... Is there a way to fix this and have my tests work properly under these circumstances? Or am I missing something obvious here? Thanks in advance for your help, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Facebook clipping my share text
Hi there, I am adding social sharing of highscores to my app. It works fine on Google+, but when sharing in facebook the text is clipped, showing only the link to the application and the text it gathers from google play, and also an image icon that has nothing to see with my app but it is also gathered by Facebook from google play due the application link. This is the text I send as defined on strings.xml resouce, for l10n: string name=game_sharing_score formatted=false My new High Score on Gamename: %d\n Sure you cannot beat me! :-P\n\n If you have an Android phone or tablet, you can download Gamename from here:\n https://play.google.com/store/apps/details?id=gamepackage /string (I have changed real game name and package by Gamename and gampackage in this message. Of course in the app the values are the actual ones). The code for sharing is the following one: String shareScoreMsg = String.format(context.getString(R.string.game_sharing_score), highestScore); Intent shareScoreInt = new Intent(Intent.ACTION_SEND); shareScoreInt.setType(text/plain); shareScoreInt.putExtra(Intent.EXTRA_TEXT, shareScoreMsg); game.startActivity(Intent.createChooser(shareScoreInt, context.getString(R.string.game_sharing_score_title))); game is an Activity descendant instance, and context is the application context, and the resource string game_sharing_score_title is just a title for the activity that says Share your score. Anyway everything works fine with the code, the problem seems to be with facebook itself, that although it receives the whole text, it just shares the last link to Google Play. Does someone knows any workaround for this issue? Thanks a lot 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: Facebook clipping my share text
JFTR I also tested with WhatsUp and it works fine also with this service, so it is pretty clear that the problem is just with FaceBook. On 15/07/12 14:07, Francisco M. Marzoa Alonso wrote: Hi there, I am adding social sharing of highscores to my app. It works fine on Google+, but when sharing in facebook the text is clipped, showing only the link to the application and the text it gathers from google play, and also an image icon that has nothing to see with my app but it is also gathered by Facebook from google play due the application link. This is the text I send as defined on strings.xml resouce, for l10n: string name=game_sharing_score formatted=false My new High Score on Gamename: %d\n Sure you cannot beat me! :-P\n\n If you have an Android phone or tablet, you can download Gamename from here:\n https://play.google.com/store/apps/details?id=gamepackage /string (I have changed real game name and package by Gamename and gampackage in this message. Of course in the app the values are the actual ones). The code for sharing is the following one: String shareScoreMsg = String.format(context.getString(R.string.game_sharing_score), highestScore); Intent shareScoreInt = new Intent(Intent.ACTION_SEND); shareScoreInt.setType(text/plain); shareScoreInt.putExtra(Intent.EXTRA_TEXT, shareScoreMsg); game.startActivity(Intent.createChooser(shareScoreInt, context.getString(R.string.game_sharing_score_title))); game is an Activity descendant instance, and context is the application context, and the resource string game_sharing_score_title is just a title for the activity that says Share your score. Anyway everything works fine with the code, the problem seems to be with facebook itself, that although it receives the whole text, it just shares the last link to Google Play. Does someone knows any workaround for this issue? Thanks a lot 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
Re: [android-developers] Showing Action Bar ONLY on tablet?
On Sun, Jul 15, 2012 at 4:31 AM, Dianne Hackborn hack...@android.com wrote: Okay: Apple is famous for having great UIs. iOS does not have a hard menu button. I believe there is an implication that you can do a great UI here without relying on a hard menu button. Forget Apple - I've never been an Apple user, I've no idea how full-screen apps cope with Apple hardware. As I'm sure you understand only too well, the core of my argument is elsewhere. At this point, I just meant to emphasise the point that to users, things have a feel to them which means not all solutions that technically work are created equal. I remarked that Apple gets a lot of praise for understanding this and getting their UX mostly right. That doesn't mean they never screw up, that their stuff can't be improved upon or that it's equally well suited for any purpose. Saying no Menu button should be enough for everyone reminds a similar well-known statement that concerned 640kB of memory - supporting such claims you run an acute risk of getting on the wrong side of history. :-) But this is what I was really here to reply to. Seriously? You are comparing whether there is a physical button for invoking a menu vs. an affordance within the application to a statement that one will never need more than the *amount* of a certain resource? Yep, exactly. What's your problem with that? Using memory is fundamental to software which is why the original statement was rather short-sighted - it didn't really take a clairvoyant to be able to imagine future software doing more stuff and eating more memory. Bringing up UI is equally fundamental to software (I don't remember if I ever saw an Android app that had no use for the menu button), especially on small screens, and that it would be very beneficial to have a standard way of doing so - in particular if there's no good reason not to have such a way. Also I believe I mentioned quite a few of more substantial arguments for off-screen controls, including a fairly realistic case study of an app that would be crippled by not having off-screen controls - why don't you choose to respond to some of that? In particular, what's the insurmountable problem with an off-screen menu button? 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] PhoneGap Presentation
I am *very* pleased to announce Bill Steele as this month's guest speaker. Bill will be presenting on PhoneGap at the Cincinnati Android Developers Group Monthly Presentation Discussion: http://www.meetup.com/cincy-android/events/70053092/ I have attended a couple of the PhoneGap meetings hosted by Bill through our sister meetup.com group All Things Mobile. Most recently Bill participated in a head-to-head, cross-platform coding challenge in which the participants were asked to build a simple tip calculator. Bill carried the torch for both Windows Phone and iOS. Bill is a Senior Trainer at Max Technical Training in Mason, Ohio and a successful Entrepreneur having started VirtualHUD. Bill Mote -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ScrollView.setHorizontalScrollBarEnabled(true) doens't work
Here's what the JavaDocs say: Define whether the horizontal scrollbar should be drawn or not. The scrollbar is not drawn by default. What do you mean by as documented? The Java Docs don't give any qualifications about its use. They're misleading. I need both vertical and horizontal scrolling. ScrollView gives me vertical scrolling, but apparently not horizontal scrolling. The JavaDocs for ScrollView don't say why that should be the case. On Sunday, July 15, 2012 2:55:13 AM UTC-6, Romain Guy (Google) wrote: ScrollView only supports vertical scrolling as documented. If you want horizontal scrolling you need to use HorizontalScrollView. On Sat, Jul 14, 2012 at 6:39 PM, Dean Schulze dean.w.schu...@gmail.comwrote: I have a ScrollView which scrolls vertically when I add enough rows to the table I create dynamically. When I additional columns so they cannot all be displayed and call ScrollView.setHorizontalScrollBarEnabled(true) there is no horizontal scrolling or scrollbar, however. The JavaDocs don't mention that anything else has to be done to enable horizontal scrolling. Is this a bug, or is it a case of undocumented dependencies in order to get horizontal scrolling to work? 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problem getting current EGL config
I'm using code to query the current EGL config similar to this: int [] curConfigId = new int [1]; egl.eglQueryContext (curDisp, curCtxt, EGL11.EGL_CONFIG_ID, curConfigId); EGLConfig [] cfgs = new EGLConfig [1]; int [] numCfgs = new int [1]; egl.eglChooseConfig (curDisp, new int [] { EGL11.EGL_CONFIG_ID, curConfigId[0], EGL11.EGL_NONE }, cfgs, 1, numCfgs); It's hard to get detailed info on EGL but for all I know, this should work - except that it doesn't. In particular, the EGLConfig this gets me has a 16bit depth buffer whereas actually there are no ancillary buffers attached to the current context or surface. In contrast, if I just run eglChooseConfig(), requesting the first config with RGB 565, I get the current config. (I can tell if I got the correct EGLConfig because I use it then to make a pbuffer which I subsequently eglMakeCurrent() with the current EGLContext. This fails with EGL_BAD_MATCH (I think) if the config used to create the pbuffer was not compatible with the current context's config.) Am I messing up somewhere, or is this a bug in Android EGL implementation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Facebook clipping my share text
This seems to be a recurrent problem with Facebook. I have found a lot of messages of people that can share links but not text through a SEND_ACTION intent. And some of those messages are older than one year... it seems like FB guys are not very interested on its Android app. It's a pitty. Something that could be so easy and, in fact, it is really easy for Twitter, Google+, WhatsUp, etc... becomes a lot more complicated due FB s*ckers. :-| -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: sdk version Compatibility
Reshmy I looked into my stack trace and found a couple of problems. Both were sqlite related and I fixed them with a few lines of code change. Do you have a stack trace? -ac On Thursday, July 12, 2012 9:37:37 AM UTC-4, reshmy anup wrote: Hi.. I have created an android application in sdk 2.3.3.It is working in 4.0.3 also. But it is crashing in samsung galaxy s3.The os version of that device is 4.0.4.Is there any particular reason for that crashing in s3?It is working fine in s2. Thanks and regards Reshmy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Make SlidingDrawer's content always visible?
I'm using android:bottomOffset to make the drawer stick out 100dip from the bottom. That works fine, but my content is not visible. It's only visible when I touch the drawer. How can I make that its always visible (the 100dip show the content)? I first thought it's a visibility issue, because the visibility of the content is set to GONE in onFinishInflate(), prepareContent(), closeDrawer()... copied the SlidingDrawer and removed these lines, didn't solve it. It seems that it is a position issue, currently I'm playing with the numbers but still don't find how to make the view appear where it should be... and don't have more time for this... any help is 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
Re: [android-developers] Re: backend for app?
He's not asking about on the device, he's asking about on the *server*, where you really aren't tied to any of the same constraints as when you're on a device, so as long as you use the same interface, you're free to implement the other database however you want... kris On Sat, Jul 14, 2012 at 9:55 PM, Andrew Cesario andrewcesa...@gmail.com wrote: Why not use Java, eclipse SDK, sqlite? (*mysql is way better than sqlite, but sqlite seems more direct for apps) On Thursday, July 12, 2012 3:50:39 PM UTC-4, dave wrote: is there a better backend for apps? i know php and mysql. should i just go with what i know? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: backend for app?
Sorry about that, misread the 'backend' statement. I get what he is doing now... look forward to learning more about the 'backend' development but I have no suggestions other than to agree with ... why not?. -ac On Sun, Jul 15, 2012 at 11:15 AM, Kristopher Micinski krismicin...@gmail.com wrote: He's not asking about on the device, he's asking about on the *server*, where you really aren't tied to any of the same constraints as when you're on a device, so as long as you use the same interface, you're free to implement the other database however you want... kris On Sat, Jul 14, 2012 at 9:55 PM, Andrew Cesario andrewcesa...@gmail.com wrote: Why not use Java, eclipse SDK, sqlite? (*mysql is way better than sqlite, but sqlite seems more direct for apps) On Thursday, July 12, 2012 3:50:39 PM UTC-4, dave wrote: is there a better backend for apps? i know php and mysql. should i just go with what i know? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Make SlidingDrawer's content always visible?
This is an image of the problem. and P.S. This default behaviour also looks erroneous to me, I don't know why somebody would want to make the offset only for the handle, making a gap between it and the content, and then on touch put the content directly under the handle... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: screen.png
[android-developers] Re: Memory issues in list view with bitmaps
Some options: - load thumbnails only and let the user click one to see it large - use a scrolling thumbnail image bar which and show its centre image above it as large as possible. On a phone imaging a small bar (full width) at the bottom of the screen with 3 or 5 thumbnails. You would show the centre thumbnail above the bar filling the rest of the screen and the user would swipe left/right on the thumbnails to change image. - only show 1 large image and make the user swipe to scroll to the next. In all of the above options there is only ever 1 large image loaded at any time. Thumbnails should be re-sampled as they are loaded so as to only use a few KB. On Sunday, July 15, 2012 11:00:57 AM UTC+1, user123 wrote: I forgot to say, I'm targeting API 7. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can't figure out DatePickerDialog behavior in Jelly Bean
Hi, Full details on StackOverflow http://stackoverflow.com/q/11444238/489607. I'm asking here because I'm thinking nobody will answer, and for what I've found I believe this question warrants a position in this group. Anyway, I have basically 2 problems. #1 - Jelly Bean changed the DatePickerDialog appearance. Right now, a Cancel button isn't provided by default like on previous versions. This doesn't seem like a problem because we can set a negative button and it will appear just fine. Nothing serious. #2 - OnDateSet is called no matter what the user does. If the user clicks the set button, the method is called twice. If the user clicks cancel, the cancel method is called, and then the onDateSet method is called. If the user presses the back key or touches outside the dialog, the onDateSet is called. Is there anything I can do to prevent this? Thank you, David Cesarino -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problem getting current EGL config
Never mind, after an hour more googling I found out that eglQueryContext() is probably just another thing that's FUBAR in Android EGL implementation. It appears that it basically returns a random config ID. On Sun, Jul 15, 2012 at 4:04 PM, Latimerius l4t1m3r...@googlemail.com wrote: I'm using code to query the current EGL config similar to this: int [] curConfigId = new int [1]; egl.eglQueryContext (curDisp, curCtxt, EGL11.EGL_CONFIG_ID, curConfigId); EGLConfig [] cfgs = new EGLConfig [1]; int [] numCfgs = new int [1]; egl.eglChooseConfig (curDisp, new int [] { EGL11.EGL_CONFIG_ID, curConfigId[0], EGL11.EGL_NONE }, cfgs, 1, numCfgs); It's hard to get detailed info on EGL but for all I know, this should work - except that it doesn't. In particular, the EGLConfig this gets me has a 16bit depth buffer whereas actually there are no ancillary buffers attached to the current context or surface. In contrast, if I just run eglChooseConfig(), requesting the first config with RGB 565, I get the current config. (I can tell if I got the correct EGLConfig because I use it then to make a pbuffer which I subsequently eglMakeCurrent() with the current EGLContext. This fails with EGL_BAD_MATCH (I think) if the config used to create the pbuffer was not compatible with the current context's config.) Am I messing up somewhere, or is this a bug in Android EGL implementation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly Bean and Strict Mode
Ok found the cause of StrictMode.setThreadPolicy() not working. I was making this call in the onCreate() of a subclass of the Application class. This worked prior to Jelly Bean. Now in JB, it must be called after an Activity's onCreate() to take effect. Looks like the default StrictMode ThreadPolicy initialization done by the framework is not done the same way in JB than prior versions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] want to manually install android 2.3.3 samples into ANDROID SDK ???
On Sat, Jul 14, 2012 at 10:13 PM, krish getintouch.kr...@gmail.com wrote: IN WHICH SPECIFIC DIRECTORY SHOULD I WANT TO PLACE THE DOWNLOADED SAMPLES TO GET IT INSTALLED INTO SDK ?? Please check your keyboard. Your SHIFT and '? keys seem to be stuck. The directory shouldn't matter. Samples don't get INSTALLED INTO SDK - 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] Ask!
1 - Please use a title that gives even a slight indication of what your post is about. This will help you get help and will help others find the topic in the future if they search for it. On Sat, Jul 14, 2012 at 9:04 PM, Kelvin saputra kelvinsaput...@gmail.comwrote: Is the htc evo 3D much better tha sensation ? 2. This has nothing to do with Android Development an is thus off-topic for this list. Try the discuss group. - 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] Help with listView App
On Sat, Jul 14, 2012 at 7:32 PM, Oscar Franco ozde...@gmail.com wrote: Hello i'm trying to make a simple feeder app right now I only have the UI but I seem to have problems with it... my code compiles and I'm parsing an static XML file from web any chance you could help? Few people are going to download a zip file from a random post on the internet. Fewer people are going to open this zip file and debug your project for you. Please post a clear explanation of what you problem is along with relevant sample code and LogCat output (keep it short and to the point). Read this as well: http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] is Button automatically increase the width when mode is changed ( portrait to Landscape)
On Sun, Jul 15, 2012 at 6:25 AM, surya pavan tsuryapa...@gmail.com wrote: plz help me button size adjustment in landscape mode Please learn to spell please. Please explain your actual problem. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ScrollView.setHorizontalScrollBarEnabled(true) doens't work
On Sun, Jul 15, 2012 at 8:25 AM, Dean Schulze dean.w.schu...@gmail.comwrote: What do you mean by as documented? The Java Docs don't give any qualifications about its use. They're misleading. I think he's referring to the class overview for ScrollView. http://developer.android.com/reference/android/widget/ScrollView.html The last line states: *ScrollView only supports vertical scrolling. For horizontal scrolling, use HorizontalScrollView.* I need both vertical and horizontal scrolling. Have you tried: http://lmgtfy.com/?q=android+scroll+hoizontal+and+vertical - 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] Can't figure out DatePickerDialog behavior in Jelly Bean
I'm sorry, I've noticed there is already a bug filled for this. Issue 34833. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: search box - search in sqlite
I don't know how can i display it on screen. -- bé -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] hwlp me why this Error is arriving ;( in the log cat...
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en07-15 14:39:42.362: E/Trace(643): error opening trace file: No such file or directory (2) 07-15 14:39:43.311: I/Choreographer(643): Skipped 280 frames! The application may be doing too much work on its main thread. 07-15 14:39:43.431: D/gralloc_goldfish(643): Emulator without GPU emulation detected. 07-15 14:39:52.141: I/Choreographer(643): Skipped 62 frames! The application may be doing too much work on its main thread.
[android-developers] Problem with running an app on Android Emulator
I have a Macbook Pro, I've just launched my device following your amazing tutorial and tried to download an app following a video about how getting apps on our android emulator with 4shared.com . I tried to download the app called Kakaotalk but when trying to open it, it doesn't work (here's a screenshot: http://i49.tinypic.com/szyeqr.png) as in there's no help button I can click. Plus, I don't know why but when typing I have to use the emulator keyboard because if I type through my pc keyboard it doesn't work like it doesn't type anything. Screenshot: http://i47.tinypic.com/24bvuav.png As you can see I can only type clicking with my pc's mouse on each letter of the keyboard on bottom left. I'd be really grated if you might help me.. 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] search box - search in sqlite
Hi. Somebody made search dialog in android which is built in? Can somebody share a simple example? thanks, bela kurthy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HTTP Post works only on port 80 when on mobile network (Galaxy Nexus)
Hello! I have a problem with posting data when using mobile data network on a port different than 80. This happens only on Galaxy Nexus. I have also reported a bug with detailed description (http://code.google.com/p/android/issues/detail?id=34769). There is also a demo app so anyone can test this. I was also trying to send a post using a socket, like it's described on http://www.exampledepot.com/egs/java.net/PostSocket.html. In this case everything works fine. I hope that someone will see this and tell me what the hell am I doing wrong or confirm that bug :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android SDK tools installation error
I think its your computer have some question! 2012/7/15 avotech avosoftw...@gmail.com https://lh4.googleusercontent.com/-xAww2DabOX4/UAHtoe4FtPI/ACs/dq0ZwEh_HYE/s1600/andriod+sdk+tools+error.png I got this error when am trying to install the SDK I have updated my Java, i have restarted many times could anyone help me with some tips on how to fix this error thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue
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
Re: [android-developers] Re: Memory issues in list view with bitmaps
I think this must release bitmap! 2012/7/15 user123 ivanschu...@gmail.com I forgot to say, I'm targeting API 7. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TextView textSize unknown during Constrcutor (Jellybean)?
Hi I've noticed Jellybean is having a different behavior when it comes to creating TextViews. I have a class that extends Widget.TextView, up until API 16 the textSize was already known after you initialize your class using TextView's constructors (at least on APIs 7-15) Why is this no longer true on API 16? is that a bug or on purpose? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can you have RadioButtons in a RadioGroup in a TableRow?
Hi darrimps, Thanks for posting this question and the final solution that you produces was also awesome because I was stuck in the same kind of problem but it was using checkboxes.NOw I abandoned my idea an decided to go with ur idea using the radio buttons.Thanks again. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] maybe a focus issue? EditText number problem
I am having a problem with entering numbers into an EditText field. I have a ListView of EditText fields in one column. If I click into the first field I can add a number with no problems, I also have the next option on the number pad to easily traverse to the next item. This all works fine until I get to the second to last item in the column. Once I hit this point I have a done option (this is incorrect, should be next) and if I click done, then click into the last EditText Item my number pad quickly changes to a character pad and loses focus on the item making it completely un-editable. The keyboard also moves the whole screen up so it makes the display difficult to read, I don't now if that could be the problem. My EditText fields are created dynamically and initialized with the type InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL any thoughts on this weird issue? Please and Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Make SlidingDrawer's content always visible?
Date: Sun, 15 Jul 2012 08:50:52 -0700 From: ivanschu...@gmail.com To: android-developers@googlegroups.com Subject: [android-developers] Re: Make SlidingDrawer's content always visible? This is an image of the problem. and P.S. This default behaviour also looks erroneous to me, I don't know why somebody would want to make the offset only for the handle, making a gap between it and the content, and then on touch put the content directly under the handle... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] session mangement
hi.guys i am create some login page.i want when login successful .session was create.please tell me.how to mange session means.set,destroy,checking thank u -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AppWidgetProvider
Sorry, maybe I was not clear in describing the problem. The description of NetworkOnMainThreadException says: The exception that is thrown when an application attempts to perform a networking operation on its main thread. This is only thrown for applications targeting the Honeycomb SDK or higher. Applications targeting earlier SDK versions are allowed to do networking on their main event loop threads, but it's heavily discouraged. The manifest where my Service is declared says that I am targeting SDK 10 while Honeycomb is 12, so I was surprised to see this kind of exception. On Sunday, July 15, 2012 3:12:16 AM UTC+2, TreKing wrote: On Sat, Jul 14, 2012 at 6:12 PM, Gicci wrote: As it seems to me that I am performing network access in the same way of the provided example, is it broken as well? Run it and see? Is it normal that as environment for the widget execution I get the one of the home app and not the one I have declared? I think that could use some clarification. - 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] Resolution problem
As far I know each folder covers certain resolution range. If I save bitmaps in hdpi it will be used by devices considered as hdpi. Now, for a 480 x 800 device, it will not matter if I store there 480 x 800 bitmaps or let's say 700 x 1000. As far I saw in some tests I made, the bitmaps look the same, and the memory consumption is the same. But now if I don't have folders for higher resolution devices, and don't use compatibility mode, as far I understand (please somebody correct me if I'm wrong), the system will try to use the bitmaps from hdpi folder (right?). And there it will make a difference if the bitmaps are in 480 x 800 or 700 x 1000, because the system will scale the bitmaps assuming they are in hdpi size, and if they are actually already in xhdpi size (or near to it), then it will load a scaled, very big bitmap and this will consume a lot of memory. Saying this, because I had this problem with drawable and drawable-hdpi. I had erroneusly stored all the bitmaps, which were in hdpi resolution, in the drawable folder, instead the hdpi folder (hdpi folder was empty), so the hdpi devices scaled the bitmaps from the drawable folder (which were already in hdpi) resulting in enourmous bitmaps and out of memory errors. Not sure if I will get this problem again with hdpi and xhdpi... if yes, I can think about 2 solutions: 1. Disable the scaling for xhdpi using supports-screens tag in the manifest, this way enabling compatibilty mode. 2. Scale the bitmaps in hdpi down, so they fit exactly hdpi. But what is exactly hdpi? Which exact screen resolution should I refer in order to scale the bitmaps? And 3, would be to create bitmaps for xhdpi but that's not a solution for me, since xhdpi is not explicitedly supported. 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
Re: [android-developers] AppWidgetProvider
Sounds like a bug to me. Even though widgets are rendered by another process - the home screen - the widget provider lives in your own application's process. What you can do is use IntentService, and push widget updates from there. It's not necessary to update widgets from within onUpdate - you can get the necessary Android service objects (like AppWidgetManager) from an IntentService, a worker thread, or anywhere really. -- K 2012/7/16 Gicci gicci...@gmail.com Sorry, maybe I was not clear in describing the problem. The description of NetworkOnMainThreadException says: The exception that is thrown when an application attempts to perform a networking operation on its main thread. This is only thrown for applications targeting the Honeycomb SDK or higher. Applications targeting earlier SDK versions are allowed to do networking on their main event loop threads, but it's heavily discouraged. The manifest where my Service is declared says that I am targeting SDK 10 while Honeycomb is 12, so I was surprised to see this kind of exception. On Sunday, July 15, 2012 3:12:16 AM UTC+2, TreKing wrote: On Sat, Jul 14, 2012 at 6:12 PM, Gicci wrote: As it seems to me that I am performing network access in the same way of the provided example, is it broken as well? Run it and see? Is it normal that as environment for the widget execution I get the one of the home app and not the one I have declared? I think that could use some clarification. --**--** --**--- 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] Resolution problem
-hdpi or -xhdpi is not resolution, it's screen density - pixels per inch. hdpi is 240 dpi xhdpi is 320 dpi mdpi is 160dpi, and is the reference density, at which dp's are same as pixels http://developer.android.com/guide/practices/screens_support.html Images placed in -hdpi will be used as is without scaling on -hdpi devices and will be scaled up on -xhdpi devices (taking 1,77 times more memory). But on the other hand, higher density devices have higher per-app runtime heap limits. -- K 2012/7/16 user123 ivanschu...@gmail.com As far I know each folder covers certain resolution range. If I save bitmaps in hdpi it will be used by devices considered as hdpi. Now, for a 480 x 800 device, it will not matter if I store there 480 x 800 bitmaps or let's say 700 x 1000. As far I saw in some tests I made, the bitmaps look the same, and the memory consumption is the same. But now if I don't have folders for higher resolution devices, and don't use compatibility mode, as far I understand (please somebody correct me if I'm wrong), the system will try to use the bitmaps from hdpi folder (right?). And there it will make a difference if the bitmaps are in 480 x 800 or 700 x 1000, because the system will scale the bitmaps assuming they are in hdpi size, and if they are actually already in xhdpi size (or near to it), then it will load a scaled, very big bitmap and this will consume a lot of memory. Saying this, because I had this problem with drawable and drawable-hdpi. I had erroneusly stored all the bitmaps, which were in hdpi resolution, in the drawable folder, instead the hdpi folder (hdpi folder was empty), so the hdpi devices scaled the bitmaps from the drawable folder (which were already in hdpi) resulting in enourmous bitmaps and out of memory errors. Not sure if I will get this problem again with hdpi and xhdpi... if yes, I can think about 2 solutions: 1. Disable the scaling for xhdpi using supports-screens tag in the manifest, this way enabling compatibilty mode. 2. Scale the bitmaps in hdpi down, so they fit exactly hdpi. But what is exactly hdpi? Which exact screen resolution should I refer in order to scale the bitmaps? And 3, would be to create bitmaps for xhdpi but that's not a solution for me, since xhdpi is not explicitedly supported. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Resolution problem
Ok, thanks. And how do I know what resolution put in the hdpi folder? I want that the resolution of the images there look well in 240 dpi devices and scale without wasting unnecessary memory to xhdpi... On Sunday, July 15, 2012 11:20:42 PM UTC+2, Kostya Vasilyev wrote: -hdpi or -xhdpi is not resolution, it's screen density - pixels per inch. hdpi is 240 dpi xhdpi is 320 dpi mdpi is 160dpi, and is the reference density, at which dp's are same as pixels http://developer.android.com/guide/practices/screens_support.html Images placed in -hdpi will be used as is without scaling on -hdpi devices and will be scaled up on -xhdpi devices (taking 1,77 times more memory). But on the other hand, higher density devices have higher per-app runtime heap limits. -- K As far I know each folder covers certain resolution range. If I save bitmaps in hdpi it will be used by devices considered as hdpi. Now, for a 480 x 800 device, it will not matter if I store there 480 x 800 bitmaps or let's say 700 x 1000. As far I saw in some tests I made, the bitmaps look the same, and the memory consumption is the same. But now if I don't have folders for higher resolution devices, and don't use compatibility mode, as far I understand (please somebody correct me if I'm wrong), the system will try to use the bitmaps from hdpi folder (right?). And there it will make a difference if the bitmaps are in 480 x 800 or 700 x 1000, because the system will scale the bitmaps assuming they are in hdpi size, and if they are actually already in xhdpi size (or near to it), then it will load a scaled, very big bitmap and this will consume a lot of memory. Saying this, because I had this problem with drawable and drawable-hdpi. I had erroneusly stored all the bitmaps, which were in hdpi resolution, in the drawable folder, instead the hdpi folder (hdpi folder was empty), so the hdpi devices scaled the bitmaps from the drawable folder (which were already in hdpi) resulting in enourmous bitmaps and out of memory errors. Not sure if I will get this problem again with hdpi and xhdpi... if yes, I can think about 2 solutions: 1. Disable the scaling for xhdpi using supports-screens tag in the manifest, this way enabling compatibilty mode. 2. Scale the bitmaps in hdpi down, so they fit exactly hdpi. But what is exactly hdpi? Which exact screen resolution should I refer in order to scale the bitmaps? And 3, would be to create bitmaps for xhdpi but that's not a solution for me, since xhdpi is not explicitedly supported. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Resolution problem
2012/7/16 user123 ivanschu...@gmail.com Ok, thanks. And how do I know what resolution put in the hdpi folder? Depends on the image. Only you can know the answer to that. I want that the resolution of the images there look well in 240 dpi devices and scale without wasting unnecessary memory to xhdpi... Scaling to higher density (and thus, size) will use more memory no matter what, but it should not matter on the higher-density devices. If those are game background - type images, you may want to consider using -nodpi and doing your own scaling. -- 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
[android-developers] Re: Run application with system / root permissions.
On 07/15/2012 12:19 AM, Kristopher Micinski wrote: That's the point of rooting your device. There is no permission or specifier that you can use to request root permissions. kris I think the point the OP wanted to make. If you have a rooted device: How can you grant certain 'root' features to one app, but not to another one? As I didn't root my device so far I don't know whether and what exact security risks there are having a rooted device and installing somebody elses app compared to installing somebody elses app on a non rooted device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Device unable to read USSD Code
Sorry, it says *MMI Cancelled* after USSD Code Running. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility
I've got an app in the market which uses the accessibility service. For it to work correctly in Jelly bean I need to add the android.permission.BIND_ACCESSIBILITY_SERVICE permission to the service declaration in the android manifest file. Doing this is fine and gets things working for jelly bean, but then going back to my gingerbread Nexus One, it ends up crashing with the following error: 07-15 22:15:56.090: E/ACRA(1168): Caused by: java.lang.SecurityException: Not allowed to start service Intent { cmp=com.example/.MainRunningService (has extras) } without permission android.permission.BIND_ACCESSIBILITY_SERVICE I can't think how to get around this. Any suggestions. I would have thought it would have got silently ignored in older builds. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility
Forgot to say my versions in the manifest are set as follows: android:minSdkVersion=8 android:targetSdkVersion=16 Plus I've updated to the latest android-support-v13.jar file in the project -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Run application with system / root permissions.
On Sun, Jul 15, 2012 at 6:07 PM, Gelonida N gelon...@gmail.com wrote: On 07/15/2012 12:19 AM, Kristopher Micinski wrote: That's the point of rooting your device. There is no permission or specifier that you can use to request root permissions. kris I think the point the OP wanted to make. If you have a rooted device: How can you grant certain 'root' features to one app, but not to another one? As I didn't root my device so far I don't know whether and what exact security risks there are having a rooted device and installing somebody elses app compared to installing somebody elses app on a non rooted device. I don't think you read his question, if you had you'd see he had said: Also, consider that I cannot ask the users to have their mobiles rooted. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Run application with system / root permissions.
On Sun, Jul 15, 2012 at 6:57 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Sun, Jul 15, 2012 at 6:07 PM, Gelonida N gelon...@gmail.com wrote: On 07/15/2012 12:19 AM, Kristopher Micinski wrote: That's the point of rooting your device. There is no permission or specifier that you can use to request root permissions. kris I think the point the OP wanted to make. If you have a rooted device: How can you grant certain 'root' features to one app, but not to another one? As I didn't root my device so far I don't know whether and what exact security risks there are having a rooted device and installing somebody elses app compared to installing somebody elses app on a non rooted device. I don't think you read his question, if you had you'd see he had said: Also, consider that I cannot ask the users to have their mobiles rooted. kris Also, if he's asking about the semantics of different rooted devices, this isn't the place to ask those questions. You should note that most rooted distros of Android already have the features you're speaking of... kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility
On Sun, Jul 15, 2012 at 6:51 PM, Andy dev andrewpmo...@gmail.com wrote: I've got an app in the market which uses the accessibility service. For it to work correctly in Jelly bean I need to add the android.permission.BIND_ACCESSIBILITY_SERVICE permission to the service declaration in the android manifest file. Doing this is fine and gets things working for jelly bean, but then going back to my gingerbread Nexus One, it ends up crashing with the following error: 07-15 22:15:56.090: E/ACRA(1168): Caused by: java.lang.SecurityException: Not allowed to start service Intent { cmp=com.example/.MainRunningService (has extras) } without permission android.permission.BIND_ACCESSIBILITY_SERVICE I can't think how to get around this. Any suggestions. I would have thought it would have got silently ignored in older builds. Hmmm... The key will be using versioned resource sets (e.g., res/values/ and res/values-v16/) to have different options for the different API levels. One approach you can try would be to set up a string resource with regular and -v16 values. The -v16 value would be android.permission.BIND_ACCESSIBILITY_SERVICE. The regular one would either be the empty string (if that works) or some permission that the system does hold and works. It's entirely possible that you will have some difficulty finding such a permission, and I have never tried using the empty string here. Another alternative would be to set up a pair of boolean resources (bools.xml). One, is_jelly_bean, would be set to true in -v16 and false in the default set. The other, is_not_jelly_bean, would be set to false in -v16 and true in the default set. Then, have two service elements in the manifest. One would have your android:permission=android.permission.BIND_ACCESSIBILITY_SERVICE and android:enabled=@bool/is_jelly_bean. The other service would not have your android:permission attribute and would have android:enabled=@bool/is_not_jelly_bean. Both would point to the same AccessibilityService implementation if possible, or else one points to a subclass of your existing AccessibilityService (if Android yelps about two service elements for the same component). With respect to the backwards compatibility, that would not be possible in this case. However, it would have been nice if they would have documented what to do better. -- 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: Hwo to use getLineCount method in TextView? what is the internal Layout?
that work. thanks alot for your idea.thread help much. i'll let u know if i have similar problem. thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Run application with system / root permissions.
I just tested it and Runtime.getRuntime().exec(su); does the trick on my rooted device. I guess you also could use sudo in front of your commands. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: session mangement
1. This has nothing to do with the Android SDK 2. That's such a basic topic with loads and loads and loads of tutorials and source code readily available for your enjoyment on the mighty interwebs 3. Google is your friend 4. ... 5. Profit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Any Design Pattern for Android?
Hi all, Any Design Pattern for Android? I have some in-house pattern I built for this purpose. But I am not 100% happy about them/. Do you have any recommendations? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Any Design Pattern for Android?
http://developer.android.com/design/index.html On Sun, Jul 15, 2012 at 8:30 PM, Michael Leung michaelchi...@gmail.com wrote: Hi all, Any Design Pattern for Android? I have some in-house pattern I built for this purpose. But I am not 100% happy about them/. Do you have any recommendations? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Wifi-Only tablet missing NETWORK_PROVIDER!?
Thanks for the reply. I suspected that it was something like this, but I assumed that since it had the Google Play application that it had already been approved for location manager. I decided to go the skyhook way when I continued to develop the application. So back in May, I got the SDK and dev key from them. Is there a way that I can integrate the SDK into the actual os (ICS) on the unit? Or should I just package skyhook with the app so I can be sure that all hardware is supported? Thanks, E On Saturday, July 14, 2012 3:03:23 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Fri, Jul 13, 2012 at 10:53 PM, E. Recio ere...@polywog.org wrote: Why is there no network_provider available on this tablet? You would have to ask the device manufacturer. Is there something I am missing with regards to Wifi-Only tablets? The so-called network provider uses either WiFi hotspot proximity or cell tower triangulation. The latter is definitely not possible if you lack the chips to talk to cell towers. The former assumes that there is a back-end service provider with location data for hotspots, such as Google or Skyhook Wireless. Perhaps your device manufacturer does not have deals with such a service provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: What is the best way to handle out of memory, because of bitmaps, on devices pre-honeycomb with low memory limit
Is your app needs bitmaps as many as Gallery ? My way is that, 1. re-use all the Manage Object which contains the reference of the Bitmaps to avoid gc to collection this structures. 2. manually recycle bitmaps when not needed 3. multi-thread decode bitmap and insert 2012/7/15 user123 ivanschu...@gmail.com I don't understand why it's not just possible to (easily) say, please, free all the memory in the native heap *now* - I don't care if I have to wait a bit, for garbage collection and so on. But this is not possible and I have just to rely on the system and see how my app keeps crashing... On Sunday, July 15, 2012 12:35:44 AM UTC+2, user123 wrote: My app has a lot static images (backgrounds, buttons, etc.) and a lot of small images, which loads from the web. These images are shown in a list view, for example. I'm looking for a strategy to avoid out of memory errors. In the devices with less than 25 mb it runs out of memory very soon and crashes. What I have done: - Put the static images with the correct resolution in the correct folder (in this specific case it's hdpi). - Create a singleton class which caches the dynamically loaded images. Even if I disable the caching in the singleton class, I'm running out of memory. I logged the native usage with Debug.**getNativeHeapAllocatedSize() and I know that bitmaps are the cause of the problem. I can't lose quality of the images. I would take in account slower loading speed, as long as the app doesn't crash! But calling System.gc() doesn't seem to be reliable, even less with native heap, and recycle manually the bitmaps at the end of each activity is a pain, because first, I have to initialize all the backgrounds in code, in order to get a reference to the bitmap, then I have to use some data structure, to hold all the bitmaps, and at the end of each activity call recycle on all, and then I have also to manage, that, in the next activity, I don't try to use the same bitmap instances, because I'll get exception trying to use a recycled bitmap. So what do I have to do? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does a license validation return a user subscription token? What are the values returned by the license server, signedData?
I see the LicenseValidator is passed a signedData value and a signature. The signedData looks like signedData=0|1581469947|com.kizbit.pairfinder|2|ANlOHQMztsdENZquudNmyH65HJt+4atp+g==|1342402183117 Is there anything special I should do with this data and does it contain the user subscription token for when they purchase the app? How can I give the first months of a subscription free when the user purchases an 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
Re: [android-developers] Does Android Support Secondary Microsd Card?
It's hard to say support. if u want to support a secondary MicroSD card, many things should be done. i.e,: Apps should be installed in which card? How to mount sdcard? Which one should be mounted in /mnt/sdcard, cuz Android Api get default externel storage using this mount point. Galaxy Note has a 16GB internal storage, and also supply a sdcard slot for external sdcard, maybe it can be called a secondary MicroSD card, but it's just mount secondary card as a sub folder in /mnt/sdcard, /mnt/sdcard/External Storage(?,sorry, i can't remember exactly the mount point ) . Another is solution MediaTek platform. Mount points are /mnt/sdcard and /mnt/sdcard2, Apps get external storage by public API, also they only get /mnt/sdcard. 2012/7/15 Dan dan.bez...@gmail.com Hi Everyone, I was wondering if Android supports a secondary MicroSD card. And if it does, then are there any phone or tablets on the market which provide a secondary slot for a secondary MicroSD card? Thanks, Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Jelly Bean Crash with Bitmap Recycle Sorry, an error has occurred: bitmap is recycled
Ah, yes, thanks Romain, that was it! Cheers. On Sunday, 15 July 2012 06:45:58 UTC+10, Romain Guy (Google) wrote: Ah, this is an interesting bug that we ran into ourselves. createScaledBitmap() can return the *same* bitmap if the scaled copy would have the same dimensions as the original image. The proper way to do this is to write: bitmap = Bitmap.createdScaledBitmap(oldBitmap, etc...); if (bitmap != oldBitmap) oldBitmap.recycle(); On Fri, Jul 13, 2012 at 6:42 AM, Craigo wrote: Hi Google, My app that has been running for over 2 years without an update, finally broke with Jelly Bean. The error: Sorry, an error has occurred: bitmap is recycled. The problem was with calling recycle on a bitmap: Bitmap bitmapOld = bitmap; bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false); bitmapOld.recycle(); Note: I never referenced bitmapOld again. The fix was easy, I just don't recycle any more. However, it seems odd that this would have broken. Maybe creating the scaled bitmap shares memory with the unscaled bitmap? Anyway, hopefully this information is useful to someone. Cheers, and keep up the excellent work! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Any Design Pattern for Android?
I mean any framework for design pattern, such as MVC and MVVP? On Mon, Jul 16, 2012 at 10:42 AM, Mark Murphy mmur...@commonsware.comwrote: http://developer.android.com/design/index.html On Sun, Jul 15, 2012 at 8:30 PM, Michael Leung michaelchi...@gmail.com wrote: Hi all, Any Design Pattern for Android? I have sI ome in-house pattern I built for this purpose. But I am not 100% happy about them/. Do you have any recommendations? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Switching Fragments to Full Screen
Kostya, I understand what you are discussing, however I am having a hard time figuring out how to implement it. Specifically, I am trying to look at this when dealing with a MapFragment and a ListFragment. Since there was no direct way to handle the MapFragment it is created through the TabHost method discussed at various websites online. This means that the actual Fragment class implements a TabHost, while the Activity class holds the real MapActivity as well as the buttons. This means that most examples I have found dealing with callbacks tend to be implemented within the fragment, however, the buttons and such are only within the MapActivity class. I am not sure how to create a callback that can access the buttonclick from within the MapActivity, that reaches through the Fragment class back to the original calling activity to hide views and change layouts. Part of my problem with this is not being sure how to transmit data between different fragments in this special case in the first place. All help is 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
Re: [android-developers] Does Android Support Secondary Microsd Card?
The standard platform does not support multiple cards. Many manufacturers make modifications to support multiple cards, but as a result this is not a consistent feature. On Sat, Jul 14, 2012 at 2:42 PM, Dan dan.bez...@gmail.com wrote: Hi Everyone, I was wondering if Android supports a secondary MicroSD card. And if it does, then are there any phone or tablets on the market which provide a secondary slot for a secondary MicroSD card? Thanks, Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Some issues related to Google Cloud Messaging Service
Hi all, I would like to say that I am working on a project using Google Cloud Messaging Service. I am facing two issues; 1. I am not able to get Arabic Text Messages. Only I can receive English text message. 2. I am not able to receive messages on GPRS. Only I can receive messages on WIFI. Waiting your kind response. Kind Regards, Muhammad Rashid -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 protect video/audio content (OMA DRM on Android)
hi, I am deal with the oma drm issue on android 4.0, do you have any idea to add the simple forward locked feature on the android? On Sat, Nov 6, 2010 at 3:14 AM, Mathias Lin m...@mathiaslin.com wrote: I'm looking for a way to protect video and audio content (around 2GB) from being copied / played on other devices than the one where the app has initially been bought and installed on. What's currently the best approach? I try to research on the web but can hardly find any up-to-date information on this topic for Android. I looked into the (controversial) OMA DRM, can hardly find any information on how to implement DRM management on Android, the Android docs give no information on that. I also looked at third party vendors and found around 2-3 (i.e. Mutable Inc., Discretix and Irdeto), I emailed them for further information but haven't heard back from any. It also seems that they're products/offerings are already outdated or not further supported, at least some websites aren't updated since 2007 (Mutable Inc.). Then there's an open source lib, OpenIPMP (http://sourceforge.net/** projects/openipmp/ http://sourceforge.net/projects/openipmp/) by Mutable Inc., but it also seems to been last updated in 2006. Interestingly I found on http://android.git.kernel.org/** ?p=platform/frameworks/base.**git;a=commit;h=** d074e30ce44b9e33da43b67a4515b8**986ca72b26http://android.git.kernel.org/?p=platform/frameworks/base.git;a=commit;h=d074e30ce44b9e33da43b67a4515b8986ca72b26the following notice: -- snip -- Initial contribution from Sony Corporation. Add DRM Framework to support DRM content playback together with StageFright. - DRM Framework code is added - include/drm - drm - api/current.xml is updated to include DRM Framework Java APIs - cmds/servicemanager/service_**manager.c is modified to add drmManager and drmIOService. -- snap -- Is DRM implemented differently for StageFright and OpenCore - or does only one of those Framework support it? I found some DRM related classes in the developer docs, but not enough information to fully get the big picture. Many others ask similar question, nobody seems to know details. http://stackoverflow.com/**questions/3462037/what-is-the-** situation-with-android-**support-for-oma-drmhttp://stackoverflow.com/questions/3462037/what-is-the-situation-with-android-support-for-oma-drm http://stackoverflow.com/**questions/2524304/how-to-** implement-oma-forward-lock-on-**androidhttp://stackoverflow.com/questions/2524304/how-to-implement-oma-forward-lock-on-android http://stackoverflow.com/**questions/2509688/oma-dm-** features-supported-in-android-**apishttp://stackoverflow.com/questions/2509688/oma-dm-features-supported-in-android-apis Some background on what I need: Our Android application holds ~ 2 GB of audio/video content which the user pays for and downloads. We now need to implement a way to secure the content from being copied. Here are some information what we need/have: - Android 2.x application - playing video/audio (i.e. mp4, but any Android supported format will do) - data is around 2GB (containing of many small files) - users/target group is in Mainland China only (for the moment) - for the user it's a one-time purchase, means he purchases all 2GB files at once (not per single file) - the media files are played back in our Android app with our implemented media player (http://developer.android.com/**reference/android/media/** MediaPlayer.htmlhttp://developer.android.com/reference/android/media/MediaPlayer.html) or VideoView (http://developer.android.com/**reference/android/widget/** VideoView.htmlhttp://developer.android.com/reference/android/widget/VideoView.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.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en