[android-developers] Error:Execution failed for task ':library:compileReleaseJavaWithJavac'.
Hello, My project (app and library) were working normally and from one day to the next started giving the following error: Error:Execution failed for task ':library:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler error output for details. After that I could not do anything, I just get that error back. How do I solve it? I did not find any solution on the internet, I've done everything. Thank you in advance and I'm sorry for English (I'm Brazilian and I do not speak English very well). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e691b922-b254-4356-b707-7e1cb8582266%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Revmob Ads SDk and selling on the app
Hi, Yes, Revmob ads are fully compliant with Google Play Policy. Regards, Raphael On Monday, June 20, 2016 at 11:16:30 AM UTC-3, RizbIT wrote: > > I would like to ask are Revmob Banner and interstitial ads ok to use with > android apps, are they google policy compliant? > > Last question: > if a Free play store app connects to a desktop pc software to > send/retrieve user data, can the user buy a licence key for that pc > software via the app using Paypal? As the licence key would be consumed > outside of the app, and policies say this is an allowable exception to > having to use in app billing via Wallet. > > Can I confirm this is true? > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/07b28ae9-8db0-4ccb-b99b-5e805dc3d48e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] what to keep in mind with OpenJDK 7
http://stackoverflow.com/questions/15848332/does-adt-support-java-7-api On Mon, May 6, 2013 at 2:49 PM, seansf ether@gmail.com wrote: Hey everybody, I just moved over to a new Linux Mint setup, basically a Ubuntu derivative, which comes with OpenJDK 7 out of the box. Some basic Android tutorials seem to build ok. It is safe to code for android using this Java version? Anything to keep in mind when using Android and OpenJDK7 ? 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Raphael http://blog.rmontanaro.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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Android 2.2 or 4.1??
That's inaccurate, right now Froyo stands for 15.5%http://www.androidpolice.com/2012/08/01/android-platform-distribution-updated-ics-up-to-almost-16-jelly-bean-0-8/ . On Thu, Aug 2, 2012 at 11:56 AM, Justin Anderson magouyaw...@gmail.comwrote: Another thing you can do is check the API level... I do that for a few features in my app. Then you don't have to use reflection. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Aug 2, 2012 at 8:51 AM, G. Blake Meike blake.me...@gmail.comwrote: Many of the features in 4.1 can also be found in the Support Package (formerly the ACL). Depending on the exact features you need, you may be able to build your app for 4.1 and then backport it to 2.2, by adding the Support Library to the project. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Thursday, August 2, 2012 7:45:56 AM UTC-7, Jeremy Villalobos wrote: Yes Do note that some API calls will throw Exceptions on Froyo. To avoid this, use Reflections For example: my app supports from Froyo upward, but Froyo does not support icons on the Preference Activity. So I use this to set the icon for ICS, and skip the step on Froyo void workAroundSetPicture(**Preference pref, int resource){ try { Method m = pref.getClass().getMethod(**setIcon, int.class); m.invoke( pref, resource ); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } The top right corner on the Android Developer documentation mentions for which Version the methods were introduced. On Wednesday, August 1, 2012 10:27:06 AM UTC-4, Eric oboite wrote: When creating my new app should I build against 2.2 or 4.1? I know 2.2 has 83% of the market right now but can I build against 4.1 and make the min sdk android 2.0? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Raphael http://blog.rmontanaro.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: HELP! Google removed my app with millions of users!
Interesting, on Alarm Clock Xtreme Free when you are just about to tap 'dismiss', it pops up an ad. Pretty sure that qualifies as *core features of your application causes users to accidentally click on advertisements. * * * Didn't check your app, though. On Fri, Jul 6, 2012 at 11:56 AM, FiltrSoft kri...@gmail.com wrote: That is sneaky, though, in his defense, the ads that I have at the bottom do not always show up when first initialized, sometimes it takes hitting the Activity a second time for them to show. On Thursday, July 5, 2012 11:54:09 PM UTC-4, John Coryat wrote: I just searched Alarm Clock Plus click fraud and found this posting: http://r.bernsteinbear.com/r/**Android/comments/v1htq/alarm_** clock_plus_click_fraud/http://r.bernsteinbear.com/r/Android/comments/v1htq/alarm_clock_plus_click_fraud/ I would say this could be the part or all of your problem. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raphael http://blog.rmontanaro.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] Recover Certificate from APK
Actually, you should have a fall back plan. It's easy to backup your key. On Thu, Jun 14, 2012 at 11:35 AM, Saurav to.saurav.mukher...@gmail.comwrote: Thanks Mark. You have always helped me out, now and in the past! I know that the encryption is irreversible, wanted to know if there is a workaround for upgrading! Could someone convey this to Google, that, loosing a keystore is possible, highly STUPID, but possible. They should have a fall back plan! To upgrade the application, with another keystore or some other secure procedure. Just a thought! I am left at the mercy of my downloaders, to shift to the new application, as I need to put my upgraded application as a new application. Regards, Saurav Mukherjee. On Wed, Jun 13, 2012 at 10:33 PM, Raghav Sood raghavs...@gmail.comwrote: Digital signatures are based upon public-key cryptography. You cannot recover a private key given a public key -- that's the whole point of public-key crypto. Such algorithms are based on one-way functions: things that are easy to do but hard to reverse. This is enough. I know what public key encryption is and how it works, I just didn't know that it was used in this case. This clarifies my question. Thanks -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raphael http://blog.rmontanaro.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] ListView HighLight when clicking the itemView
I just wonder how to cancel the highlighting effects of the sub-item of the ListView,when pressing mouse down on it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Didn't Android 4.0 have the class com.android.settings.LocalePicker ?
In my project, I want to change the language,so I call the class: com.android.settings.LocalePicker. My codes are as follows: Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName(com.android.settings, com.android.settings.LocalePicker); startActivity(intent); But I caught an exception ( on Android 4.0.x Platform): AndroidRuntime(10354): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.LocalePicker}; have you declared this activity in your AndroidManifest.xml? So I want to know, didn't Android 4.0 have the class com.android.settings.LocalePicker ? Instead, how should I do? Thanks for helping me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Still unclear -- subscriptio model using paypal
I have looked at numerous posts and there is still some ambiguity.-- Is it possible to have a subscription model using either Paypal or the in-app billing model? If we use in-app billing, do we need to prompt the user each month that we charge them? Instead of in-app billing, can we use paypal instead to collect our monthly fee? Can we charge them not using a monthly prompt? What are papers like the NYT doing? When I download their app and try to subscribe, I am taken to a form that accepts a credit card. We basically want to do the same thing, just using the Paypal Mobile Payment Library. Thank you 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] Still unclear -- subscription model using Paypal
I have looked at numerous posts and there is still some ambiguity.-- Is it possible to have a subscription model using either Paypal or the in-app billing model? Does it or does it not violate the Android Terms of Service? If we use in-app billing, do we need to prompt the user each month that we charge them? If we decide not to prompt, does that violate the Android Terms of Service? Instead of in-app billing, can we use paypal instead to collect our monthly fee? Can we charge them not using a monthly prompt? What are papers like the NYT doing? When I download their app and try to subscribe, I am taken to a form that accepts a credit card. We basically want to do the same thing, just using the Paypal Mobile Payment Library. Thank you 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] half image on application
I have a Text and an Image, I need to change the visible of them, but it occupies space in my view, How can I make for one of these, disappear and don't occupy space? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Automatic ScrollView
How can I make a Automatic scrollView? It need work automatically, without click of buttom, It need to pass some images, for user, it need to be horizontal. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apk file size limit / number of files limit
On Wed, Aug 24, 2011 at 6:54 PM, Chris Stratton cs07...@gmail.com wrote: On Wednesday, August 24, 2011 12:43:16 PM UTC-4, Drezden wrote: I would also suggest that you look into ways to pull your tiles from the web instead of storing them on the device. You very rarely see apps in the wild that have a larger footprint than 20mb and some devices like the G1 only have 70mb of storage TOTAL for all apps. So you're basically asking someone to remove everything from their device to load your app. Yes, traditional versions of android it would indeed be preferable to download the large dataset seperately and store it on the external storage (sdcard). However, for devices which permit installation to external storge or for honeycomb and later where it's all the same pool of flash blocks anyway, the difference would be a short initial download followed by a long data download within the app when it is first run. While it's tempting to think that data delivered in the apk is more secure, it's fairly trivial to extract. However data placed in external storage can be modified more easily, so might need a fingerprint check. My observation is: When the asset folder contains around 80mb of files, the app works nicely both on the emulator and on my nexus one. When it's larger than 80mb it crashes on both devices. the devises are running 2.3.3 Api level 10 (but it happens on 3.2, too). Just to make sure the problem is on the running end and not the building end, it could be worth opening the apk (it's just a carefully constructed zip file with a funny name) on a pc and verifying that all the files are there. Yea. Should be okay... Thanks a lot for the advice - really helps to understand how things are intended to work on android :) Do you know any examples and code snipplets that show how to implement such a download-at-start function best? I guess there is a lot to take into account like storage available, where to store stuff and so on... Thanks a lot again :) Best, Raphael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- inc: http://ars-machina.raphaelbauer.com tech: http://ars-codia.raphaelbauer.com web: http://raphaelbauer.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] Apk file size limit / number of files limit
Hi, I am currently developing a PhoneGap application - but I am pretty sure that my problem is way more related to Android than to PhoneGap. My app consists of a directory assets/www/maps. In this folder is a huge amount of image files that are tiles for a map library. My observation is: When the asset folder contains around 80mb of files, the app works nicely both on the emulator and on my nexus one. When it's larger than 80mb it crashes on both devices. the devises are running 2.3.3 Api level 10 (but it happens on 3.2, too). The error messages are not really helpful (error parsing apk file popup on nexus and cannot read Android Manifest via logcat on emulator). I am really a newbie on Android, so I am a bit lost here. I already tried to increase the partition size of my emulator like that: emulator -avd avd -partition-size 2047 - but this did not help. Any pointers how to continue debugging would be really great. If there are any limits on the amount of files / size of an apk let me know. I am not aware of any limits - and afaik the 50mb limit of Android apps distributed via the Android Market was lifted some time ago. Thanks a lot :) Raphael ps. I also cross posted my question at the phongap list: http://groups.google.com/group/phonegap/browse_thread/thread/8333095f7daae5a0 - but got no answer. -- inc: http://ars-machina.raphaelbauer.com tech: http://ars-codia.raphaelbauer.com web: http://raphaelbauer.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: inset a Base64.encode string into a xml
dilo.mt wrote at Dienstag, 7. Juni 2011 16:46: i tried with this : StringBuilder sb = new StringBuilder(); sb.append(image); sb.append(Base64.encode(byteArray)); sb.append(/images); but it gives me an error saying that image tag not closed, this is a part of a soap request. help me please. Your opening tag is (image) different from closing tag (images) Bye -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android SDK is so slow that is ridiculous.
We are aware of the emulator speed issue and are actively working on it. R/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 3.0 Platform Preview and Updated SDK Tools
You're welcome! R/ On Wed, Jan 26, 2011 at 1:20 PM, Spiral123 cumis...@gmail.com wrote: Thanks Google! http://android-developers.blogspot.com/2011/01/android-30-platform-preview-and-updated.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best strategy to save progress dialog state ?
Hi all ! Im developing a app that needs a progress dialog. But when the screen orientations change the app crash, like everyone knows. Then i would like to know whats the best strategy to do do this ??? thanks ! -- Raphael Baggio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best strategy to save progress dialog state ?
anyone ??? 2011/1/14 Raphael Baggio rbautoma...@gmail.com Hi all ! Im developing a app that needs a progress dialog. But when the screen orientations change the app crash, like everyone knows. Then i would like to know whats the best strategy to do do this ??? thanks ! -- Raphael Baggio -- Raphael Baggio Contato : (48) - 8836-3390 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Debugging Problem
Hi! Setting a breakpoint in Eclipse is not recognized when I start my app in debug mode. The breakpoint is in the onCreate method, the app runs normally, but no debug notification. Can someone give me a hint? Eclipse Version 3.5.2 Android 2.1 greetings -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADT master and aapt
Hi there, Yep, it's trivial as long as you have the right version of Cygwin. 1- Install cygwin. Not the latest one, you need the legacy one. Look at step 3-A in this doc: http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=docs/howto_build_SDK.txt;hb=HEAD 2- You don't need to build a full SDK, you simply need to make aapt from the top of the tree. Let me know if that helps R/ On Wed, Sep 15, 2010 at 1:38 AM, snpe snp...@gmail.com wrote: Is it possible to build Windows version of aapt.exe ? Thanks On Sep 14, 7:26 pm, Xavier Ducrohet x...@android.com wrote: Not yet. you'll have to build it yourself from master. On Tue, Sep 14, 2010 at 2:06 AM, snpe snp...@gmail.com wrote: Hi, ADT master execute aapt with the --debug-mode option. aapt in Android SDK 07 doesn't support this option. Is there Windows build of SDK which support this ? Thanks, Peco -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Change how ListView looks, Roller
The final effect should look like the selection spinning roller in the iPhone, like this: http://androidguys.savina.net/Small_Roller.png With a background, the ListView (numbers) and another PNG (transparent) on top but not selectable for the gradient effect. Any ideas? On Mar 7, 8:28 pm, Matthew Patience matthewj.patie...@gmail.com wrote: I am trying to create a roller so that the user can select the amount of money they'd like to bet. So I created a list view and then put a transparent png over top of it to make it look like a little more fancy. Although it seems when I put the png over top of the listview I can longer see the list. I know this may seem like a far fetched idea, but I'm not sure if there is a better way to go about this. Anyone know a way that I can create a rolling selector? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hashset problem
Hi, I have a problem with the hashset implementation because the followinf little part of my code uses it and doesn't give the same result according to the version of android. Here is my code : HashSetString hset=new HashSetString(); hset.add(new String(cat)); hset.add(new String(dog)); hset.add(new String(youpi)); hset.add(new String(argh)); hset.add(new String(cat)); hset.add(new String(why)); hset.add(new String(dummmy)); for(String s:hset) Log.v(test,s); with android 1.5 I obtain : argh cat why youpi dog dummmy whereas with android 2.0 I obtain argh youpi cat dummmy dog why Does anyone have any idea of the problem? Thanks in advance Raphaël -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Updates to the Android SDK
Sorry for the frustration. You should get the exact same updates whether you are using the https or the http link. R/ On Fri, Dec 4, 2009 at 4:17 PM, Sekhar sek...@allurefx.com wrote: Not working for me. The standalone manager won't connect to the SSL url (https://dl-ssl.google.com/android/repository/repository.xml); and if I make it http, it won't find compatible updates. This is really frustrating, can't believe such a basic install issue managed to slip through the cracks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Updates to the Android SDK
Grrr I have yet another issue of the block on my home XP machine. Using the standalone sdk manager, it keeps telling something is locking the tools dir so it can't install tools r4. But I killed adb, closed Eclipse, all Explorers... still won't work. Process Explorer can't find anything using that handle. Frustrating :-( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Eclair install choked with errors about locks and died horribly leaving corrupted install
On Wed, Oct 28, 2009 at 11:25 PM, Armond Avanes armond...@yahoo.com wrote: After all, I'm still on my opinion. In the case of failure, the update process should try to COPY the contents instead of moving/renaming. And a warning that some garbage have been left on temp directory. For those of us on slow connections it's really a pain to download that much and throw it away!!! I guess I've downloaded 500MB worth of data so far and still trying... The problem with copying is that if a file can't be replaced in the middle of the copy operation, what do you want the installer to do? You'd be left with half installed platform mixing some old stuff and new stuff. Or it'd have to throw away you old install (which might fail because of a locked folder anyway). As for the threading issue, I can't figure it out. It's a very sequential mode of operation right now. On your last point, you're right, I shouldn't throw away the download right away if the download was successful yet the install failed. It would be easy to allow you to retry installing right away. Still I'd really like to know what can be locking that thing :( R/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Eclair install choked with errors about locks and died horribly leaving corrupted install
On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston flyingdutc...@gmail.com wrote: I have the same issue. I started android.bat from the command prompt. Since android.bat is in the directory that is reported to be locked, my command prompt is holding a lock to it when starting android.bat not very handy... Hmm you're right. I guess I could force the tool to close and delay the installation later but that seems convoluted. A simple workaround is to run tool\android.bat from the SDK directory. IIRC that doesn't lock the directory. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: emulator: could not find virtual device named...
Well the emulator is C app and the android tool is a Java app so they have slightly different ways to get your user profile directly. Out of curiosity, if you do a set under a command-prompt, what is your USERPROFILE variable? Your best solution is to define a global environement variable ANDROID_SDK_HOME. To do that: Start Control Panel System Advanced System Settings Environment Variables. Create a new user one called ANDROID_SDK_HOME and set it to the path where you want .android to be created, e.g. maybe d:\ R/ On Wed, Oct 28, 2009 at 6:10 AM, westmeadboy westmead...@yahoo.co.uk wrote: This is a problem where the .android folder is being placed in the wrong location on Vista. When I do this: android create avd -n android1.5 -t 2 the .android folder is placed at d:\.android. This is the same when using the Eclipse ADT plugin. However, the documentation states: By default, the android tool creates the AVD directory inside ... C: \Users\user\.android\ on Windows Vista. So something is clearly going wrong. I assume its because I have relocated most of my special folders like Desktop and Documents to the d:\ drive. When I then do: android list avds it correctly shows the avd I have just created. However, if I try to run the emulator then the avd cannot be found. My workaround for this is to copy the d:\.android folder to C:\Users \user\.android In short, it looks as though the emulator and the android command are using different logic to work out the default .android location. I've tested this using the 1.5 and 2.0 SDKs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Couldn't install Android 2.0 platform
Does it happen everytime you try to download? R/ On Wed, Oct 28, 2009 at 4:04 AM, ishfb shishkov.i...@gmail.com wrote: I tried to install Android 2.0 platform via Android SDK and AVD Manager. In Available Packages I chosen to install SDK Platform Android 2.0, API 5, revision 1. The Manager started to download data. After download was fininshed I got message SSL peer shut down incorrectly. In the header there was a message Nothing was installed. Any idea what is wrong? As far as know my friend also failed to install Platform 2.0 and he had the same messages in the Manager. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: [Android Developers] Make Fade-in and Fade-Out Effect
On Wed, Oct 28, 2009 at 3:19 AM, ArNguyen vunguye...@gmail.com wrote: Hi all! I am beginner on Android game. I want to make Fade-in and fade-out effect to transform scenes (Intro game - play game - win game/ over game, ...). Please tell me how to make Fade-in and fade-out effect in Android? Thanks, http://d.android.com/guide/topics/resources/available-resources.html#animation and look in ApiDemos for examples. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multitouch support in Android 2.0
On Tue, Oct 27, 2009 at 9:45 AM, Dianne Hackborn hack...@android.com wrote: It's basically just some new APIs on MotionEvent: http://developer.android.com/reference/android/view/MotionEvent.html Hmmm and I'm not sure why, but in the doc all of those new APIs are in gray, so they should be easy to see. :) Looks like by default the filter is set to API 4 and thus methods from API 5 are grayed out. If you change the popup to API 5 at the top right the methods become ungrayed. I'll file a bug. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: environment set-up confusing, instructions unclear
Well, maps.jar is *only* available when using the Google addon. Don't build using the regular 1.5 if you want maps. Why do you want to do that? Also consider posting your errors. R/ On Oct 8, 2009 6:24 AM, ian stilbit...@gmail.com wrote: I;ve had no end of build path problems and I am still having them. One problem I had was that I selected 1.5 instead of Google apis in my build target and it would not recognize maps.jar on the path. Last night I scrambled up my build path and am unsure how to restore it properly. I had one app running properly but while trying to fix another, messed up everything in the workspace. Now none will compile. On Oct 8, 1:14 am, Lance Nanek lna...@gmail.com wrote: What problems did you run into re ... On Oct 7, 10:08 pm, ian stilbit...@gmail.com wr soote: Well maybe it's juist me, but my Android development problems often stem from build path e... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Layout - Weight not working
I'm no layout expert but instead I'd try: - android:layout_width=fill_parent for both - android:layout_weight=0 for the first one - android:layout_weight=1 for the second one. R/ On Sun, Oct 4, 2009 at 10:21 AM, Mark Murphy mmur...@commonsware.com wrote: All I want is to make the first textview take as much space as needed without wrapping and the second text view to wrap and display. I am not able to do this simple thing with Linear Layout. Use android:layout_width=wrap_content and no weight for the first TextView. Use android:layout_width=fill_parent for the second TextView. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: [adb ddms] i can't see my samsung galaxy on windows seven 64 bits
Is this for Windows? I believe you should ask Samsung for a driver. Si c'est pour Windows, je pense que tu devrais demander un pilote a Samsung. R/ On Sun, Oct 4, 2009 at 10:51 AM, letroll julien.quievr...@gmail.com wrote: Hi all, Sorry for my bad english, I'm french! I want use my phone for debugging in eclipse, but there nothing in driver of sdk 1.6 for samsung galaxy anyone can help me? Bonjour tout le monde! J'aimerai utiliser mon samsung galaxy pour débuger mes applications dans eclipse, mais il n'y a pas encore de pilote dans le sdk 1.6. Quelqu'un peut m'aider? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is it possible to override the sdcard using emulator from Eclipse (SDK 1.6, ADT 0.9.3) ?
You can give extra emulator command line options in Eclipse: - specific to your in the Debug/Run Launch Configuration of a given project. - for all projects in the main preferences android launch. R/ On Sat, Oct 3, 2009 at 1:22 PM, davemac davemac...@gmail.com wrote: I've got an AVD setup with an SD card, but I wanted to specify a different SD card image by setting a -sdcard option in Eclipse under Preferences - Android - Launch (I fill in -sdcard C:\sdcards \sdcard96M.img without the double quotes). But it seems no matter what I do, I always get the SD card that was created with the AVD. From the command line, the following works: emulator -avd myAVD -sdcard C:\sdcards\sdcard96M.img Do I need to use the command line instead of Eclipse to run this way? Thanks for your help. - dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fedora Eclipse doesn't let me install Android's ADT plugin
If you don't manage to fix the dependencies, as an alternative, you can simply get a download of Eclipse Java from eclipse.org. You don't need to mess with whatever is installed on your fedora, simply unzip it in any directory under your home dir and execute it from there. E.g. $ cd ~ $ mkdir myeclipse $ cd myeclipse $ get linux 32 or 64 bit from http://eclipse.org/downloads/packages/eclipse-ide-java-developers/galileosr1 $ unzip *.zip $ ./eclipse Something like that. R/ On Fri, Oct 2, 2009 at 10:59 AM, Lo Zeno lozeno1...@gmail.com wrote: Hello, I have a problem installing the ADT plugin in Fedora's version of Eclipse. I'm not sure it is a problem with the plugin, it's probably more Fedora's team fault (they heavily personalized and modified eclipse in Fedora's repository). I installed the version of Eclipse that is included in Fedora's official repos, which is based on version 3.4.2 build 20090211-1700. I've followed the step-by-step instruction provided in Android's website. The problem arises when I go into the Help - Software updates window. When I select the two plugins to install, it lets me install the DDMS, but not the Developer Tools. If i try (select Developer Tools then click Install) it gives me the following error message (after calculating space and dependencies): Cannot complete the request. See the details. Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.3.v200909031112-12945] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0 At first, I thought I had not installed some packages (org.eclipse.equinox.p2.iu and/or org.eclipse.wst.sse.core), so I opened YumEX and searched for those pacckages... but they are not available in Fedora's repositories. I asked for help in fedora community's forums, and they already told me that I can't mix fedora's repos with Eclipse's official repos, or it will mess up the installation. The only option, according to them, is to uninstall Fedora Eclipse and install the standard Eclipse version, but by doing so I will have to be VERY careful at every software update to not to mix updates and not update from the wrong repository (and since Fedora Eclipse's updates come from the main Fedora repo, I can't deactivate that repository or I will not be able to update my OS again). I'm not a Linux expert, I've been using Fedora for barely 3 years. I can solve small problems, but this one beats me... I hope there's a solution, because installing the standard Eclipse and risking a repository mess is not what I dream for. Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to start debugger on ADP1 device rather than AVD
What is the minSdkVersion for your app? Which android does the avd that starts run? For example if you have minSdkVersion=4 in your app's manifest, ADT will want to locate a system for android-4, but your device only runs android-3 (aka 1.5). One workaround is to edit your launch configuration in eclipse to use the manual target mode: menu Run Run/Debug Configuration select config Target tab Manual. R/ On Thu, Sep 17, 2009 at 8:02 PM, WoodManEXP woodman...@gmail.com wrote: Does anyone know how to get the debugger to launch on an ADP1?. It was recently flashed to 1.5. Dev platform is Eclipse on Windows XP with the SDK 1.5 USB driver installed (HTC Dream Composite Interface). Windows can see the device and adb can see the device with “adb devices” command. USB Debugging has been enabled on the device and the application manifest has android:debuggable=true set in it. The LogCat windows is showing log output from the ADP1 too. But when Selecting Run-Debug or Run-Run the avd is always launched. The instructions say that it should launch to the device or give a choice if the avd is running too. Do anyone know what needs to be done to get the debugger to launch against the real device instead of the avd? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Button.setTextColor, how to make it work? Options
If you want to permanently change the color scheme of the button, please consider using a custom style: http://d.android.com/guide/topics/ui/themes.html R/ On Thu, Sep 17, 2009 at 7:22 AM, WoodManEXP woodman...@gmail.com wrote: Experimenting with some UI ideas I wanted to change the color in a button view some time after it had been initially drawn. So it seemed like calling .setTextColor() should do it. But it does not cause the color of the button text to change. Have even tried calling .invalidate() to force a redraw, no luck. Does anyone know the procedure for changing the color of the text in a button after it has been initially drawn? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 1.6 error with NumericShaper.class?
IIRC awt is a separate library that you need to declare explicitly in your application manifest. http://www.google.com/search?hl=enq=android+uses-library+awt R/ On Thu, Sep 17, 2009 at 1:49 PM, Beth Mezias emez...@gmail.com wrote: Hiya, When I try to open my SDK 1.1 project with Donut, I get an error (pasted below). I did a search and cannot find the NumericShaper anywhere in my code. As a matter of fact, I cannot even find an import or call to the java/awt package. Can I get a clue about how I might solve it? Thanks and regards, Beth [2009-09-17 13:44:14 - Flipper]processing dalvik/system/Zygote.class... [2009-09-17 13:44:14 - Flipper]processing java/awt/font/NumericShaper.class... [2009-09-17 13:44:14 - Flipper] trouble processing java/awt/font/NumericShaper.class: [2009-09-17 13:44:14 - Flipper] Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. [2009-09-17 13:44:14 - Flipper]1 error; aborting [2009-09-17 13:44:14 - Flipper]Conversion to Dalvik format failed with error 1 [2009-09-17 13:44:14 - Flipper]Refreshing resource folders. [2009-09-17 13:44:14 - Flipper]Starting incremental Pre Compiler: Checking resource changes. [2009-09-17 13:44:14 - Flipper]Manifest min SDK version (2) is lower than project target API level (4) [2009-09-17 13:44:14 - Flipper]Nothing to pre compile! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ANDROID SDK 1.6 DOES NOT SUPPORT ARABIC LOCALE
I don't think there's any support for right-to-left in the system yet. R/ On Wed, Sep 16, 2009 at 6:12 PM, Ahmad Al-Ibrahim a.alibra...@gmail.com wrote: Disappointed, I was so happy to see Arabic listed in the docs. Any suggestion on how to get that done? or at least add Arabic fonts to be able to read Arabic across multiple apps? On Sep 17, 3:40 am, Xavier Ducrohet x...@android.com wrote: This looks to be a doc bug actually. The locale list in the SDK system image has not changed since 1.5 sorry about that. Xav On Wed, Sep 16, 2009 at 5:19 PM, almoumen almu...@gmail.com wrote: Hi everyone if you just have a look into the new locales that are added to the new SDK 1.6, you will notice that among these locales is Arabic http://developer.android.com/sdk/android-1.6.html but unfortunately, when I tried to run the emulator,I didn't find any locale supported Arabic. Could you please give more clarifications about this issue ?? -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: handling expensive operations in the UI thread - posting result from worker thread to UI thread
On Wed, Sep 16, 2009 at 6:15 PM, rukiman ruksh...@optushome.com.au wrote: OK I should re-ask my question so its a bit more clearer. in updateResultsInUI() it is updating the results obtained from the doSomethingExpensive() which was calculated in the worker thread. Now what if doSomethingExpensive() is run in a loop continuously and each time it is executed I need to update something in the UI based on the result of doSomethingExpensive()? How can I achieve this? View.post(Runnable) http://developer.android.com/reference/android/view/View.html#post(java.lang.Runnable) A better way is to create a Handler in your main thread and send it a message. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Programmatically Turn On/Off WIFI?
On Tue, Sep 15, 2009 at 8:36 PM, !oEL runzhou...@gmail.com wrote: Hi, Second question of the day, how do I programmatically turn on/off WIFI? There's an example at line 226 here: http://code.google.com/p/autosettings/source/browse/trunk/AutoSettings/src/com/alfray/timeriffic/utils/SettingsHelper.java#226 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Drawing Simple lines
What is canvas? What's your XML layout? R/ On Wed, Sep 16, 2009 at 7:57 AM, pro proka...@gmail.com wrote: Hi All, I've the following code I'm trying to run on emulator ( v 1.5 of OS), but it seems like I can't use the whole canvas!!! Here is the code fragment - Paint p = new Paint(); p.setColor(Color.GREEN); //p.setStyle(Paint.Style.STROKE); p.setStyle(Paint.Style.FILL_AND_STROKE); //base canvas color canvas.drawColor(Color.BLACK); int Y = canvas.getHeight(); int X = canvas.getWidth(); //change to width 1,2,... does not matter !!! p.setStrokeWidth(5); //x of start, y of start, x of stop, y of stop, paint object //does not work canvas.drawLine(5, Y , X-5, Y, p); //does not work canvas.drawLine(5, 9 * Y / 10, X-5, 9 * Y/10, p); //Works canvas.drawLine(5, 8 * Y / 10, X-5, 8 * Y/10, p); //works canvas.drawLine(5, 7 * Y / 10, X-5, 7 * Y/10, p); setClickable(true); setFocusable(true); Any thing I'm doing wrong??? -pro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADB over IP?
Indeed but I don't think it is in the latest SDK as far as I know. R/ On Tue, Sep 15, 2009 at 10:10 PM, er...@motorola.com er...@motorola.com wrote: This commit might be of use to you. http://android.git.kernel.org/?p=platform/system/core.git;a=commit;h=2f38b699713dc2587a771bd5d4c6a47329728f5e Don't be evil. -E On Sep 15, 6:43 pm, Raphael r...@android.com wrote: adb currently only works over USB. R/ On Tue, Sep 15, 2009 at 3:07 PM, Bao tedcan...@gmail.com wrote: Hello, Does the ADB support debug over IP? I set ADBHOST=192.168.16.2 in the eviroment variable in Windows XP, and use adb kill-server; adb devices. It didn't show any devices. However, it's working if I plug USB as ADB driver. Regards, Bao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Textview Autoscroll?
Are you not using Eclipse and ADT? If not, you should. Eclipse should automatically switch to the debugger view when you start an app in debug mode (right click your project and Debug As Android Application). From there use the WindowsViewBreakpoint and using the ! icon set a breakpoint on the java.lang.NullPointerException. Eclipse will then show you the exact line of code where the exception occurs. HTH R/ On Tue, Sep 15, 2009 at 8:29 PM, Johnnyr jreyn...@gmail.com wrote: Nevermind! I figured out what was causing my crash. I forgot to declare the scrollview: scrollview=(ScrollView)findViewById(R.id.scrollview); it would be nice if I knew how to use the debugger =( On Sep 15, 5:34 pm, Johnnyr jreyn...@gmail.com wrote: Thank you for the reply. Unfortunatley, that code seems to throw an error. scrollview.scrollTo(0, outputBox.getHeight()); scrollview is my scrollbox, outputBox is my textview. From the debugger, it looks like: Thread exiting due to uncaught exception java.lang.NullpointerException Any ideas? This is my xml for my layout: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ScrollView android:id=@+id/scrollview android:layout_width=wrap_content android:layout_height=200px TextView android:id=@+id/output android:layout_height=wrap_content android:layout_width=wrap_content android:textStyle=bold android:layout_marginLeft=10px android:text=This is a test Sentence. android:layout_marginBottom=0px android:layout_gravity=left / /ScrollView /RelativeLayout Thanks! On Sep 15, 4:55 pm, Raphael r...@android.com wrote: someTextView.setText(someText); scrollViewWrappingTheTextView.scrollTo(0, someTextView.getHeight()); R/ On Tue, Sep 15, 2009 at 4:35 PM, Johnnyr jreyn...@gmail.com wrote: Hi guys, I'm trying to get a text view, that is a child of a scrollview, to automatically scroll to the bottom when something new is appended to it. Right now I'm at a loss as to how to do this. 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] Re: How To Programmatically Reboot The Phone
On Tue, Sep 15, 2009 at 8:22 PM, !oEL runzhou...@gmail.com wrote: I see. Thank you Mark, I guess this shall be disposed from my feature basket, since I'm planning to write a public app. Out of curiosity, why would you want to write an app that reboots a phone? R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is there any way to get paticular vertion of android source code?
On Wed, Sep 16, 2009 at 10:35 PM, William Hua krypto...@gmail.com wrote: I've synced my android repository just after android sdk 1.6 announced, but found some problem to install my apps with native code (so built by NDK 1.5_r1) then. I tried to build NDK with the latest souce code, bu unfortunately, faile again :( . So is there any way to get paticular vertion of android source code? for example the android-1.5r3 tag. Would be great if some command like svn switch /foo/bar/1.5r3 is available. If you want to check out sources, repo init ... -b tag will do what you want. But please follow-up on the repo-discuss group rather than the developer group. If you want the SDK and/or NDK the previous archives are always available on the android.com web site. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADB over IP?
adb currently only works over USB. R/ On Tue, Sep 15, 2009 at 3:07 PM, Bao tedcan...@gmail.com wrote: Hello, Does the ADB support debug over IP? I set ADBHOST=192.168.16.2 in the eviroment variable in Windows XP, and use adb kill-server; adb devices. It didn't show any devices. However, it's working if I plug USB as ADB driver. Regards, Bao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Textview Autoscroll?
someTextView.setText(someText); scrollViewWrappingTheTextView.scrollTo(0, someTextView.getHeight()); R/ On Tue, Sep 15, 2009 at 4:35 PM, Johnnyr jreyn...@gmail.com wrote: Hi guys, I'm trying to get a text view, that is a child of a scrollview, to automatically scroll to the bottom when something new is appended to it. Right now I'm at a loss as to how to do this. 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] Re: Android 1.6 SDK is here!
Thanks for the feedback. Could you be more explicit on which API are not properly documented? If possible, please file it as a bug on http://b.android.com so that they can be properly documented in a future SDK. R/ On Tue, Sep 15, 2009 at 4:58 PM, Don Tran arro...@gmail.com wrote: The documentation and javadocs are really lacking in information regarding the new APIs. I am hoping the SDK got rushed out for developers to view and the information will be filled in later. Right now I have no idea how to use any of the new classes. On Sep 15, 3:35 pm, Jason D. Clinton m...@jasonclinton.com wrote: On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote: http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here... Thank you. Where is the ADP1 image? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Portuguese locale on SDK 1.5 r3 emulator
You can also use adb pull to retrieve the CustomLocale.apk from the 1.5 emulator and install it manually on your ADP1. Alternative, if you have the full sources just make CustomLocale and install. R/ On Wed, Aug 19, 2009 at 3:17 PM, Michael Bollmannmichael.bollm...@googlemail.com wrote: Thanks alot On 10 Aug., 21:09, Xavier Ducrohet x...@android.com wrote: If you want to test your application in a locale that is not built in the emulator, you can use the app Custom Locale to switch the emulator to any arbitrary locale. Xav On Mon, Aug 10, 2009 at 10:02 AM, Michael Bollmannmichael.bollm...@googlemail.com wrote: I just noticed that Portuguese locale is missing on the emulator while its available as option on the market. Is there any way to add Portuguese locale either to the emulator or to anADP1? (got a finished translation and can't test it at the moment) -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Maps application problem - tiles not loading = grey background only / Maps API key available
Another suggestion is to try to run the maps demo that comes with the sdk: sdk/add-ons/google_apis-3/samples/MapsDemo Also as explained in http://code.google.com/android/add-ons/google-apis/maps-overview.html you need to sign your APK. Disclaimer: I never actually ran the demo nor used the maps API myself, I just read the doc. R/ On Mon, Jun 29, 2009 at 2:33 PM, Mark Murphymmur...@commonsware.com wrote: Christian S. wrote: For some reason I cannot get my first maps application to work. I have gone though the full process of getting the MD5 fingerprint for the debug.keystore, registered for the key on the website, put it into the xml file. Even had changed my computer's locale to US English. I also signed the application with my private key and pushed it via ADB to the emulator. All attempts so far resulted only in the grey Google Maps background with the tiles not loading. JAVA_HOME environment variable points to my JDK file. Not sure what else I can do. Even upgraded from SDK 1.1 to 1.5. No improvement. I am really stuck here. Do you have the INTERNET permission in your manifest? If that doesn't help... Have you tried any sample code that is known to work? You can grab the code for my original Android book here: http://commonsware.com/Android/ (scroll down, click Source Code) In there, you'll find Maps/NooYawk, which is a sample MapView project. You'll need to paste in your API key over mine. If that doesn't work, then something may be amiss with your API key. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Maps application problem - tiles not loading = grey background only / Maps API key available
On Mon, Jun 29, 2009 at 4:43 PM, Mark Murphymmur...@commonsware.com wrote: I looked in the main SDK for a sample and didn't find one. I keep forgetting the Maps code is now in add-ons/ and that any samples would be there. I totally agree that it's not obvious. Logical but not obvious. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problems with shared library JAR
On Fri, Jun 26, 2009 at 11:32 AM, Maxma...@mackzweb.com wrote: I'm trying to use an external library packaged in one JAR file (openRDF Sesame 2.2.4 [1]). As suggested in this group, I first added the JAR to a new folder in my project, then added it to the Java build path via the project properties in Eclipse. Now I could already use the classes from the library in my source code without getting any errors. I also added the line uses-library android:name=org.openrdf / to the manifest file inside application. You don't need to do that. uses-library is used to indicate your app depends on an optional library that is built-in on the device, e.g. maps. In your case, simply add the Jar as a dependency to your Eclipse project and ADT will automatically embed it in the generated APK. R/ The problem is that as soon as I try to run the app, I get an installation error (INSTALL_FAILED_MISSING_SHARED_LIBRARY) on the console and I'm told (via logcat) that my package requires unavailable shared library org.openrdf. Where's my mistake? Thanks, Max [1] http://ovh.dl.sourceforge.net/sourceforge/sesame/openrdf-sesame-2.2.4-onejar.jar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: minSdkVersion and real devices
On Sat, Jun 20, 2009 at 11:12 PM, BlackLightblacklight1...@gmail.com wrote: Hello. I have a game that uses simple gui. I can lunch it on any emulator and on my device. I'm setting minSdkVersion in xml to 1. If I will publish my paid app on market, will devices with ver1.5 be able to download and lunch my app? Emulators work fine, game doesn't use any system features. Yes they will. But if you put version=1 then please be sure to use the SDK for 1.0. In other words: please put minSdkVersion to the value matching the *actual* SDK you are developing with: 1.1 is version 2 and 1.5 is version 3. You can create AVDs/emulators for these versions. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: minSdkVersion and real devices
On Sun, Jun 21, 2009 at 1:51 AM, BlackLightblacklight1...@gmail.com wrote: Thanks. I'm using 1.5_r2. It allows to select only between 1.1 and 1.5. Before 1.5_r2 I used 1.0_r1 (updated several weeks ago) and I have phone with os 1.0. Yes they will. But if you put version=1 then please be sure to use the SDK for 1.0. In other words: please put minSdkVersion to the value matching the *actual* SDK you are developing with: 1.1 is version 2 and 1.5 is version 3. You can create AVDs/emulators for these versions. It means that I must set version to 2 even I don't use any new features (just bc I upgraded sdk to 1.5_r2)? I'd like to allow to run my app on any phone (1.0, 1.1, 1.5) from market. Please, reply. I just meant that you should check for yourself that your app works on a device or emulator running with version 1 before advertising your app as such. There is no policy to enforce that, it's just common sense. You can use either your 1.0 device or the emulator from 1.0_r1 to do that. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Capture the Android's browser HTTP petitions
On Fri, Jun 19, 2009 at 7:57 AM, psaltamontesmcg2...@gmail.com wrote: Yes, I want to say request :), sorry , I need improve my English. I don't want my application modify the settings of the browser, the idea is that the user configure the proxy of the browser and install my application. This application is a service that listen the HTTP requests and send to the Internet. This might help: http://www.google.com/search?q=set+proxy+for+android+web+browser R/ I want capture the HTTP request and modify the headers because, in the header, I put a number to identify the client that connect to my webserver, doing this, the user don't have to put an user name and a password. I have written the code to do this, in PC works, but in Android I don't know how to get this behaviour. How can I do? On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote: I need capture the Android's browser HTTP petitions. I think you mean request, not petition. In PC to capture the HTTP petitions is easy, I change the browser configuration, I put localhost and a port () and it's works. But, in Android I don't know how to change the browser configuration. I would be rather surprised if they allowed applications to adjust the proxy server settings of the browser application. That would be a way for spyware to attack the user. For the emulator, you can set up a proxy server from outside the emulator environment itself: http://developer.android.com/guide/developing/tools/emulator.html#proxy -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 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: How to save the view to image file ?
On Mon, Jun 15, 2009 at 11:28 PM, Alankind...@gmail.com wrote: Hi all, When I design a game, I have a problem. How to save the View display on the screen to a image file such as png,jpg file Whether android API is support to this function? Your custom view onDraw receives a Canvas and paints on it. To capture to a file, you created a Canvas based on your Bitmap then draw to this Canvas. By architecturing your code correctly, you can probably reuse most of the same code. If you use OpenGL, there are methods to read the current buffer. They are pretty slow but if all you want is to create snapshots during the game that's usually fine. R/ If no API support to this save function, how to design my program ? Thanks ~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issues with Android SDK
On Wed, Jun 17, 2009 at 2:24 AM, Shasha.andr...@gmail.com wrote: Hi Folks, I am new to android. I am trying to install Android SDK(android-sdk- windows-1.5_r2) on the Eclipse (eclipse-jee-ganymede-SR2-win32) in Windows Vista. I have followed the steps mentioned in the http://developer.android.com/sdk/1.5_r2/index.html. Everything works fine, I am able to even run the HelloWorld program on the emulator. The issue is that I have to install the Android SDK (add site and install the development tools) every time I start the Eclipse. Its very time taking and I don't know if its a bug or some problem with Vista or my system as such. You should not have to reinstall the plugin every time you run Eclipse. Are you sure the plugin is not there anymore? You can check by looking at the Software Update or HelpAboutPlugins panels. If the plugin disapears once you quite Eclipse, there's something seriously wrong with your installation of Eclipse. Can you please help me with that?? Also, Is there some way that I can run an application (.apk) on the emulator using Eclipse?? I am also Yes. Once you create an android project in Eclipse, select Run As... Android Application. This will ask you to create an AVD and will run an emulator with your app. Leave the emulator around, you don't need to close it every time to want to run your app. R/ not able to just run the emulator from the tools directory in the android_SDK folder. Isn't it supposed to run without the Eclipse??? I will really be very thankful if you can help me out with it!!!... thanks Sha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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't get hello android printed
Hi, First, as a general rule, when something does not happen on a device or emulator, please open the Window Perspective DDMS Perspective and look in the logcat view: this is where the logs from the device or emulator show and most of the time they will give you the exact error that happened. Now in your case it seems that you commented out the original setContentView to add another view instead. Does it work with the original code? R/ On Sun, Jun 7, 2009 at 3:16 AM, Fahdfahdb...@gmail.com wrote: Hi All, I am following the hello world example and when I run it through eclipse, the emulater starts showing android... then it comes in to the system and asks me to press menu to unlock. When I do it, it justs unlocks but there no helloworld or application window, just the normal android desktop! Am I missing somthing?? Following is the code I am running (which is the copy of the example) package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(Hello, Android); setContentView(tv); //setContentView(R.layout.main); } } Why isnt the helloworld window coming?? Any help plss Fahd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps and StreetView missing in Android SDK 1.5?
Sorry, not idea on that one. May I suggest you write a bug at http://b.android.com with a snippet of code (e.g. a new skeleton project with minimal code) to reproduce it? Thanks in advance, R/ On Sat, May 30, 2009 at 4:01 PM, pawpaw17 georgefraz...@yahoo.com wrote: Yes, that's it, thanks! Works like a charm. The only other nutty thing I keep noticing with Android 1.5, that I noticed in 1.1, is the first call to geocoding always fails for me after I create the geocoder object. In the code below I always hit the exception. The second call always works though. Has anyone else noticed this? boolean networkfailure = false; try{ locations = gc.getFromLocationName(Zip,1); } catch (IOException e) { networkfailure = true; } if (networkfailure){ try{ locations = gc.getFromLocationName(Zip,1); } catch (IOException e){} On May 30, 5:34 pm, patrick patrick.boul...@gmail.com wrote: oops, was too slow :) On 31 mai, 00:33, patrick patrick.boul...@gmail.com wrote: in fact, when u create the avd, u have currently 3 target available: 1.1 1.5 1.5 + google maps apis so i guess u choosed the 1.5 target. On 30 mai, 22:50, pawpaw17 georgefraz...@yahoo.com wrote: Everyone, Thanks in advance for any thoughts on this. In v1.5 of the SDK, the Maps/Streetview app is not installed in the emulator. I'm relying on launching an implicit intent which maps my addresses for me. Is there a way to test this in the emulator, i.e, do I need to install something extra? I'm presuming this is on the actual G1 phone with v1.5. Does anyone know? I'm also getting 100% failures in calls to getFromLocationName(). Is this related? Thanks, Best, pawpaw17- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error on creating new XML from eclipse
This is a know issue if you are using the menu item. Use the New XML File Wizard icon located in the toolbar as a workaround (it looks like a yellow android icon with a green + on top of it). R/ 2009/6/1 Luis Alberto Pérez García lui...@gmail.com: Hi all, Just a few days working on Android, but... I don't see this to be normal (well, the Dalvik isn't but that's another subject... xD) when i try to create a new XML file (for a layout) from eclipse, using the android plugin, it shows up a window saying Problem Opening Wizard - The selected wizard could not be started, and the error comes to show: The selected wizard could not be started. Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. com.android.ide.eclipse.editors.wizards.NewXmlFileWizard Ok, I see the error is something missing (or failing) in the plugin... ¿any help? thanks, Luis. PD: I'm working with sdk 1.5r2 on eclipse 3.4.2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is Idea protected by copyright?
You should consult a lawyer. Also please realize that copyright law drastically differ between countries and you didn't even specify which one you are living in. R/ On Sat, May 30, 2009 at 11:14 PM, alucard20004 alucard20...@gmail.com wrote: If I publish a paid application with very good idea and concept. And realize later that someone already publish an app with this idea. What will happen? I understand that this may be difficult to answer. Perhaps I'm not posting this seeking for absolute answer, but for recommendations or a place where I can find more information and learn more about this kind of stuff. 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: Plugin 0.9 ADT with Eclipse (G4.3.2) on WIN XP SP3 problem
You do not need to download, you just need to use Help Software Update Available Software, add the update site URL, select the new version and finally click Install. And of course it's all explained with great details on http://d.android.com/sdk/1.5_r2/installing.html (scroll down to installing ADT) R/ On Thu, May 28, 2009 at 3:26 PM, losvald leden...@gmail.com wrote: I downloaded SDK 1.5 and tried to install ADT 0.9 but cannot find it in Eclipse. What is the procedure to install the ADT 0.9? I have just uninstalled old ADT 0.8 but I remember the time I was installind 0.8 that I had to download it first. Where from? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Tabhost and TabWidget on Android 1.5
Yes, this is a know issue. The error is just with the layout editor. You can edit the XML as text and test it on the emulator or an actual device. R/ On Thu, May 28, 2009 at 9:12 PM, RS Android rahuls...@gmail.com wrote: I have been trying to have a view layout using TabWidget. This is using Eclipse and Android 1.5. However, anytime I use TabWidget, I get a NullPointerException in Eclipse. This is even with the sample on http://developer.android.com/guide/tutorials/views/hello-tabwidget.html. I saw few threads that mention that TabWidget implementation is very flaky. Has anyone seen similar issue? Attached is the stack trace: java.lang.NullPointerException at android.widget.TabWidget.dispatchDraw(TabWidget.java:105) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.View.draw(View.java:5841) at android.widget.FrameLayout.draw(FrameLayout.java:352) at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:400) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.computeLayout (Unknown Source) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.recomputeLayout (Unknown Source) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.activated (Unknown Source) at com.android.ide.eclipse.editors.layout.LayoutEditor.pageChange (Unknown Source) at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected (MultiPageEditorPart.java:266) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:228) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java: 3242) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2017) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java: 320) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3482) at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:3024) at org.eclipse.swt.widgets.Control.actionProc(Control.java:122) at org.eclipse.swt.widgets.Display.actionProc(Display.java:362) at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method) at org.eclipse.swt.widgets.Widget.kEventControlTrack(Widget.java: 1106) at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java: 2097) at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:375) at org.eclipse.swt.widgets.Display.controlProc(Display.java:862) at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run (EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
[android-developers] Re: Missing MapPoint in 1.5r2?
Thanks Mark, I'll have a look. R/ On Sat, May 30, 2009 at 5:18 PM, Mark Murphy mmur...@commonsware.com wrote: Raphael wrote: Please file a bug at b.android.com and we'll have a look. A small code/apk snippet would be ideal too. Filed as: http://code.google.com/p/android/issues/detail?id=2806 I tested this code under 1.5_r1 and 1.5_r2: package com.commonsware.android; import android.app.Activity; import android.os.Bundle; import com.google.android.maps.GeoPoint; public class GeoPointBug extends Activity { �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GeoPoint status=new GeoPoint(0, 0); finish(); } } 1.5_r1 compiles fine. 1.5_r2 fails with: [javac] class file for com.google.map.MapPoint not found This sure feels like it's somehow a bug in my environments. I've tried it on two different PCs, one using a freshly-downloaded 1.5_r2, and they both give the error. Any advice would be greatly appreciated. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to set sd card parameter
On Mon, Jun 1, 2009 at 4:18 PM, intbt in...@tacberry.com wrote: In Windows you also need to set up image file of sd card on the pc before trying to use it in the Emulator. If you use the latest ADT 0.9.2 as Roman suggested, you can use the new Window AVD Manager that lets you add an SDCard to a new AVD. It creates the file for you in the right place, there's nothing else to do. R/ On Jun 1, 7:51 am, Roman roman.baumgaert...@t-mobile.com wrote: I checked my old Eclipse setup using ADT 0.8 which looks like yours. If this is the case for you please switch to 0.9 which you can download! Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 31, 12:54 pm, Roman roman.baumgaert...@t-mobile.com wrote: Which platform version are you using right now? In case of version 1.5 you should be able to select in the target tab the AVD which has a sdcard. If you don't have such an AVD you might want to create it manually. When you select run configuration, switch to tab target and select AVD Manager you can create an AVD with SD-Card. Use this AVD later when you use run configuration. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 31, 3:53 am, hanged_man majd...@gmail.com wrote: It seems like adding external links is not allowed. Never mind that, like i said before the field (Additional Emulator Command Line Options) is hidden and im unable to set sdcard argument for the emulator. Please help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
Please file a bug at b.android.com and we'll have a look. A small code/apk snippet would be ideal too. Thanks in advance. R/ On Sat, May 30, 2009 at 10:44 AM, Mark Murphy mmur...@commonsware.com wrote: I am attempting to build an application that uses the Google Maps Add-On. I get compile errors on this code: GeoPoint status=new GeoPoint((int)(lat*100.0), (int)(lon*100.0)); saying: [javac] StatusMap.java:31: cannot access com.google.map.MapPoint [javac] class file for com.google.map.MapPoint not found My guess is that MapPoint is some superclass of GeoPoint -- I'm not referring to MapPoint itself in my code anywhere, let alone where the compile error is. If I comment out these lines (and references to the now-missing status variable), everything else works fine, including displaying a map, so I know I'm targeting everything properly. While this project is one that I am migrating from earlier Android versions, I get the same error if I android create project -t 3 a fresh project and try using this same code. I could have sworn I compiled this cleanly on 1.5r1, though I may be mistaken. Anybody running into similar problems with 1.5r2? Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ant and eclipse builds don't play nice
That's kind of an unexpected workflow. The idea is that either you go the full way in Eclipse or you use Ant/DDMS. Trying to combine both is a recipe for confusion :-) What you can try: - use Ant to compile - use the ant install or reinstall target to push the apk - launch app manually - you can still debug by manually selecting the app in Eclipse DDMS perspective and applying the debug icon on it. - make sure you have automatic build disabled in Eclipse If you don't want to launch the app manually you can make an ant target by using the adb shell am start launch command. It goes something like this (from memory): $ adb shell am start -D com.blah.myapp/com.blah.myapp.MyMainActivity (run am without args to see the help) HTH R/ On Tue, May 26, 2009 at 11:02 PM, Craig supkic...@gmail.com wrote: On Wed, May 27, 2009 at 2:36 PM, Raphael r...@android.com wrote: On Tue, May 26, 2009 at 6:26 PM, Craig supkic...@gmail.com wrote: On May 26, 9:49 pm, Zero zeroo...@googlemail.com wrote: from my experience, eclipse never used the build.xml for it's internal builds - how did you do that ? The eclipse build doesn't use build.xml at all, but due to the fact that build.xml is in the eclipse project (because it is in the same directory as AndroidManifest.xml) eclipse tries to build it or at least parse it and check for errors. build.xml can't be parsed by eclipse (even though it is a valid file according to ant) and thus the android builder refuses to launch the project at all. This seems wrong to me. No it doesn't do that. Would you have the Ant view open by any chance? Don't build from the ant view if you build using Eclipse. Hey Raph, To be clear, I'm not trying to build using ant from within eclipse. I use ant to do customised builds from the command line. All every-day builds are done from eclipse using F11-Debug As-Android Application. I simply want the two different build methods to ignore each other. I have a clean install of ganymede EE 3.4.2, the latest DDMS, no ant views open, and a cleaned android project. If I rename build.xml to build.txt and refresh the project, the error goes away, and I can launch and debug the project. If I rename it back to build.xml and refresh the project, the errors aren't detected, and I can launch and debug If I open build.xml with the ant editor (because I want to edit it :), the error is detected, and I can no longer launch and debug, even if I close everything and refresh. If I open build.xml with the xml editor, the error is not detected...so I guess I just found my own work-around. Never open the ant editor. Still seems like a bug to me. cheers, Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why the Android docs are inconsistent?
Please file doc bugs at http://b.android.com -- the API probably evolved before 1.0 without the javadoc being updated. R/ On Wed, May 27, 2009 at 6:51 PM, havexz bali.param...@gmail.com wrote: I have looking for something and found these inconsistencies in the online documentation This is a snippet from FAQ section http://developer.android.com/guide/appendix/faq/commontasks.html#broadcastreceivers NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); nm.notifyWithText(R.id.alarm, Alarm!!!, NotificationManager.LENGTH_SHORT, null); Now when I try to find the 'notifyWithText' api, I could not find it. Another example is IntentReciever. I just want to know is this class exists? As I found code in this forum itself using IntentReciever, but I cant find this class in the doc. And why standard intents like action android:name=android.provider.Telephony.SMS_RECEIVED are not documented? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Extremely frustrating = TextView in ScrollView - Scroll to bottom?
I often use a TextView withing a ScrollView as a quick log in early prototype of apps, for debugging. Typically I just set the selection to the end of the text, which moves the caret and thus makes sure it's visible: mLogTextView.append(msg); mLogTextView.setSelected(true); Spannable text = (Spannable) mLogTextView.getText(); Selection.setSelection(text, text.length()); R/ On Wed, May 27, 2009 at 7:28 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hi guys, I can’t for the life of me work out how to get a text view to be displayed scrolled to the bottom. It appears that plenty of people have asked about this in newsgroups, but no solution offered. textView.setText(s); scrollView.fullScroll(ScrollView.FOCUS_UP); The above code is called, and whilst the text is updated correctly, the view is not scrolled. (I’ve tried ScrollView.FOCUS_DOWN) and that doesn’t work either Do I need to force the scrollView to measure itself before calling the scroll function? If so what would be the best way to go about doing this and then calling the scroll. I’ve also tried setting the text as spannable and setting the cursor position to the end. Cheers, Peter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 1.5, Unable to load XML wizard
On Mon, May 25, 2009 at 5:10 PM, androg roger.weinhei...@gmail.com wrote: I get this error with all three launch options, right-click folder in Package Explorer, toolbar button, and File-New-Android XML File. Nothing works for me. I am running Eclipse 3.4.2 and ADT 0.9.1 on Debian (Lenny). What is the version number of the final release? The current version is still 0.9.1. We have not yet released another official version with these fixes. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scala with Android 1.5
The new SDK 1.5 allows add-ons to be created: these create new system images that can add a custom library. On the Eclipse side, that library gets automatically added to the app classpath. On the Android side, apps then need to include a uses-library in their manifest and they automatically get access to that library at runtime. This could be something worth looking at for Scala. The downside: it requires manually adding the said library on the devices as system libraries and I'd assume that would require root. I might be wrong. I personally have no clue how to make an add-on, I guess there's a sample somewhere in the android source code. Speaking of which there's this in the platform: http://android.git.kernel.org/?p=platform/development.git;a=blob;f=samples/PlatformLibrary/README.txt;hb=HEAD That means you need the platform code to make the library. However once you make an SDK add-on you can develop apps using the regular SDK. R/ On Mon, May 25, 2009 at 11:30 AM, Jesper Nordenberg megagu...@gmail.com wrote: I had the same problem you describe. After trimming down the scala- library.jar file to only contain the core classes (about 1.8 MB) and adding it as an external jar everything worked fine. However, Eclipse build times are now quite long as the dex file is quite large and is regenerated for each change, so we're looking for a way to add the Scala jar as a library in the emulator and adding it to the application classpath. I don't know if this is possible and if it is, the documentation is really hard to find. If you (or anyone else) can share some hints on how to achieve this, I'd be grateful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problems importing existing project into eclipse
This is not complaining about the Project Properties Android. It is complaining about the *Java* compiler level. In the Project Properties Java Compiler JDK Compiler make sure you are using Java 1.5 or Java 1.6. R/ On Tue, May 26, 2009 at 7:15 AM, schwiz sch...@gmail.com wrote: I used fileimportgeneralexisting projects into workspace I am trying to run the widget example from the dev blog but when I import the project I get an error Description Resource Path Location Type Syntax error, annotations are only available if source level is 1.5 WordWidget.java SimpleWiktionary/src/com/example/android/ simplewiktionary line 44 Java Problem I select propertiesandroid and make sure the project build target is 1.5 but that doesnt fix anything I am also getting this error in my console [2009-05-26 09:02:27 - spore-android] Android requires .class compatibility set to 5.0. Please fix project properties. this is also happening with a widget I was working on and needed to re- import. I sure hope someone can help me!!! thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ant and eclipse builds don't play nice
On Tue, May 26, 2009 at 6:26 PM, Craig supkic...@gmail.com wrote: On May 26, 9:49 pm, Zero zeroo...@googlemail.com wrote: from my experience, eclipse never used the build.xml for it's internal builds - how did you do that ? The eclipse build doesn't use build.xml at all, but due to the fact that build.xml is in the eclipse project (because it is in the same directory as AndroidManifest.xml) eclipse tries to build it or at least parse it and check for errors. build.xml can't be parsed by eclipse (even though it is a valid file according to ant) and thus the android builder refuses to launch the project at all. This seems wrong to me. No it doesn't do that. Would you have the Ant view open by any chance? Don't build from the ant view if you build using Eclipse. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Whole lotta garbage collecting going on.... How do I find out what is being collected?
If you don't need thread synchronization, use StringBuilder instead of StringBuffer. R/ On Mon, May 25, 2009 at 3:47 PM, Robert Green rbgrn@gmail.com wrote: The score changes every frame. I like how it works because it's tons of tiny increments. I actually just did the thing I talked about with the reusable char[]. The only caveat is that I have to allocate a new one when the length of the string changes, but that only happens when the score has changed by a factor of 10 and I don't see scores going over 6 digits long. I suppose it's possible someone could play the game forever and score much higher but it's highly unlikely. This is about as efficient as I will ever care to make such a thing. If you want to _never_ allocate, you could make a char[][] where the first dimension is the length of the second dimension arrays. That would be char[1], char[2], char[3], char[4] and so on. That would make it so that if your string size were 5 chars, you would say char[] correctArray = myArrays[5]. I didn't both with that because a few allocations are ok, just not one every tick of the loop. This is ugly but if you need something like this, it does work: I have a class called Util and I put this in it: private final static int[] intSizeTable = { 9, 99, 999, , 9, 99, 999, , 9, Integer.MAX_VALUE }; private final static char[] DigitTens = { '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '3', '3', '3', '3', '3', '3', '3', '3', '3', '3', '4', '4', '4', '4', '4', '4', '4', '4', '4', '4', '5', '5', '5', '5', '5', '5', '5', '5', '5', '5', '6', '6', '6', '6', '6', '6', '6', '6', '6', '6', '7', '7', '7', '7', '7', '7', '7', '7', '7', '7', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '9', '9', '9', '9', '9', '9', '9', '9', '9', '9', }; private final static char[] DigitOnes = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', }; private final static char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' }; // Requires positive x private static int stringSize(int x) { for (int i = 0;; i++) { if (x = intSizeTable[i]) { return i + 1; } } } public static void getChars(int i, int index, char[] buf) { if (i == Integer.MIN_VALUE) { System.arraycopy(-2147483648.toCharArray(), 0, buf, 0, buf.length); } int q, r; int charPos = index; char sign = 0; if (i 0) { sign = '-'; i = -i; } // Generate two digits per iteration while (i = 65536) { q = i / 100; // really: r = i - (q * 100); r = i - ((q 6) + (q 5) + (q 2)); i = q; buf[--charPos] = DigitOnes[r]; buf[--charPos] = DigitTens[r]; } // Fall thru to fast mode for smaller numbers // assert(i = 65536, i); for (;;) { q = (i * 52429) (16 + 3); r = i - ((q 3) + (q 1)); // r = i-(q*10) ... buf[--charPos] = digits[r]; i = q; if (i == 0) break; } if (sign != 0) { buf[--charPos] = sign; } } Then in my game code it looks like this (for my FPS counter): int fps = this.fps; int fpsStringLength = Util.getSize(fps); if (fpsChars.length != fpsStringLength) { //
[android-developers] Re: Installing the USB driver for HTC Magic on Vista
2009/5/22 Cédric Berger cedric.berge...@gmail.com: 2009/5/21 Cédric Berger cedric.berge...@gmail.com took me a LOT of trials before it worked ! I finally have this rule and it is OK (did not have to edit user groups on my system): SYSFS{idVendor}==0bb4, SYSFS{idProduct}==0c02, MODE=0666, GROUP=plugdev Oh sorry, I forgot to mention that the syntax changes slightly with the udev version. You know, just to make this more interesting :-) this was in /etc/udev/rules.d/50-android.rules But it seems to also work like this : (method for Ubuntu 9.04 : http://www.frandroid.com/2371/ubuntu-904-et-android/ ) - in /etc/udev/rules.d/51-android.rules : SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4, MODE=”0666 Ubuntu 9.04 already has a rules/50-something file so you need to make sure that the android rule is 50. Otherwise whatever you define gets reset. We should update the doc to just state rule/51-android.rules which will work right now till the base configuration changes once again :-) Also take care if you copy/paste this rule : looks like double quotes () may be wrongly copied from html page, and then it did not work for me before I retyped them. Hmm thanks for the info. That's a new one. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 installing application onto HTC Magic
On Thu, May 21, 2009 at 6:20 AM, Android Users androidmai...@gmail.com wrote: Any help on this as this is stopping our work. Searched in all android forums, but no luck.. You need to ask your carrier to provide the maps binaries in their system images (or did you create your own system images?) The SDK only helps you develop application that run with whatever API a given device has. Maps is not part of the core Android platform, it is part of the Google Experience devices with combine the Android system with a set of Google-specific applications. The SDK will not magically make these apps appear on a given device. Only a carrier can decide that. So the bottom line is: does your device have Maps on them? As you said, your device does not have it, so do not expect anything to work that requires the maps API. HTH R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 solve G1/HTC Magic not recognized by ADB under Windows
2009/5/21 Cédric Berger cedric.berge...@gmail.com: I had asked HTC if they had drivers... their answer :-( : You recently wrote us about an issue that you have encountered with your htc To clarify your issue, you stated that: you would like to install usb driver in Google android SDK 1.5. – Unfortunately we do not do the developer support and we are unable to answer your question. If the above steps do not resolve your issue, we invite you to visit the support area on our Web site. Please go to: http://www.htc.com/www/support.aspx I'll translate: No, they are part of the Android SDK :-p R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 resolve Fail to find an AVD compatible with target 'Android 1.5' ?
What does android list avds gives you on the command line? If using Eclipse with ADT 0.9.1 you can use Windows AVD Manager to list your avds R/ On Tue, May 19, 2009 at 2:07 AM, rogerhood rogerh...@gmail.com wrote: hi, all: My Eclipse is equiped with Cupcake SDK and I created an AVD in / tools/ folder. I run my program, then the console appear Fail to find an AVD compatible with target 'Android 1.5' . How to resolve it? Thanks!! Roger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Installing the USB driver for HTC Magic on Vista
Try adding a GROUP= attribute to the rule like this: SUBSYSTEM==usb, ATTR{idVendor}==0bb4, MODE=0666, GROUP=plugdev and make sure your user is added to this group. This group exists on my corporate machine, dunno if yours have the same groups since mine is no longer a stock ubuntu. I've also heard of people indicating they can't access that group when they are connected remotely via ssh. R/ 2009/5/20 Cédric Berger cedric.berge...@gmail.com: 2009/5/20 Cédric Berger cedric.berge...@gmail.com Make sure you have the udev rule: http://developer.android.com/guide/developing/device.html#setting-up I have added it, but still no luck (ubuntu 64bits) Ok, adb can list my phone only if executed with sudo. Should the udev rule allow to avoid the need to have root access ? Do I have to reboot after editing this udev rule ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need Major help on this PLEASE
All the resource names must be valid Java identifiers: they basically end up as constant names in R.drawable and such. You can't name a variable 008. Try img008or _008 instead. R/ On Wed, May 20, 2009 at 11:24 AM, androiddev123 androiddev123ph...@googlemail.com wrote: Hi there, Keep getting this same error message in main.xml. ERROR Error: No resource found that matches the given name (at 'background' with value '@drawable/008'). The image is within the drawable file and therefore I don't understand what's wrong Any advice? Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Redirecting to market search URL doesn't work
The correct place to ask Market questions is http://www.google.com/support/forum/p/Android+Market R/ On Tue, May 19, 2009 at 1:20 PM, orangechicken therealdave.my...@gmail.com wrote: To pretty up the URL we have on our site a URL /get/g1. It redirects to our market.android.com/search URL, eg http://market.android.com/search?q=pname:ourappname. However, going to that link in the G1 browser results in a 404 instead of opening the Market to our app. Questions: 1. Is this a known issue? 2. Does the browser preprocess links on the page but not intercept them in a redirect? Thank you, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting the manifest.xml of applications from the market?
APKs are simply zip files. If you have an APK, you can read its manifest. R/ On Wed, May 20, 2009 at 1:49 AM, brian.schim...@googlemail.com brian.schim...@googlemail.com wrote: Hi there, is there some way to retrieve the manifest.xml of an application from the market, without installing the application? I think the official Market Application somehow get this file (or at least parts of it) to show needed permissions, etc. before installing. I'd be interested in seeing the IntentFilters defined by applications and their activities and processing this information in my application. thanks, Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: already set uses-sdk but market won't accept
On Wed, May 20, 2009 at 1:37 AM, brian.schimmel brian.schim...@googlemail.com wrote: I had similar issues, read all that stuff about positioning it correctly in the XML, and did not work either. Then I upgraded to the newest SDK 1.5_r1 and everything worked. The market bug about the position of the uses-sdk node has been fixed for a couple of weeks now. That trick is not relevant anymore. R/ On 7 Mai, 06:05, anuraguni...@yahoo.com anuraguni...@yahoo.com wrote: ok i will try putting right under manifest but that is non-sense, why should order of nodes matter in manifest and official doc doesn't say anything abt it? Any one from android-dev listening?? On May 7, 2:36 am, Mariano Kamp mariano.k...@gmail.com wrote: You need to put it in the right place. More info here:http://lmgtfy.com/?q=minSdkVersion On Wed, May 6, 2009 at 2:31 PM, anuraguni...@yahoo.com anuraguni...@yahoo.com wrote: i have already set minSdkVersion in mymanifest xml. here is the appt dump E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x2 A: android:versionName(0x0101021c)=1.1.0 (Raw: 1.1.0) A: package=com.askagent.webcritic (Raw: com.askagent.webcritic) E: application (line=4) A: android:label(0x01010001)=...@0x7f040001 A: android:icon(0x01010002)=...@0x7f020001 E: activity (line=5) A: android:label(0x01010001)=...@0x7f040001 A: android:name(0x01010003)=.WebCritic (Raw: .WebCritic) E: intent-filter (line=7) E: action (line=8) A: android:name(0x01010003) =android.intent.action.MAIN (Raw: android.intent.action.MAIN) E: category (line=9) A: android:name(0x01010003) =android.intent.category.LAUNCHER (Raw: android.intent.category.LAUNCHER) E: uses-permission (line=14) A: android:name(0x01010003)=android.permission.INTERNET (Raw: android.permission.INTERNET) E: uses-sdk (line=15) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x1 so whymarketsays Marketrequires the minSdkVersion to be set in AndroidManifest.xml. The server could not process your apk. Try 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] Re: Setup eclipse project for android source
On Tue, May 19, 2009 at 11:46 PM, Daniel Dreiberg daniel.dreiber...@gmail.com wrote: Hi, I am following the following article to setup eclipse project for androi source http://source.android.com/using-eclipse But what should I set my eclipse output folder for my project to be? If I just use the .classpath file as it is in the development/ide directory, eclipse tries to compile the whole project everytime I change 1 line in 1 Just disable the automatic build using Project Automatic Build then use the makefiles to build on a command line. R/ file. I am not sure why this is happening? Thank you for any tip. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to solve G1/HTC Magic not recognized by ADB under Windows
If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic *before* you plug it in Windows the very first time. If you read this after the fact, googling why adb doesn't recognize my device under Windows, here are the steps to fix it: This concerns both the G1 and HTC Magic and all flavors of Windows. 1- Remove existing drivers: 1a- Plug your phone 1b- Open the Device Manager 1c- Remove any driver for [ADB Interface HTC Composite ADB Interface] and [Disk Drives HTC Android Phone USB Device] if you see them 1d- Unplug phone 2- Edit the registry 2a- Disclaimer: be careful what you do in regedit. If you're not sure, don't use it :-) 2b- Open the Registry Editor (Start search/run regedit) 2c- You _may_ need to be administrator to do that 2d- Search for vid_0bb4pid_0c02 in keys or values. It makes take a while. If you find in a value, delete the whole key folder. 2e- Some keys might be locked: right-click them and add everyone: full control to the permissions. Then delete the key folder. 2f- Repeat the search till no more instances are found. 2g- Close regedit. 3- Before your plug in your phone: 3a- Make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic 3b- Plug the phone in. Windows should now ask you for a driver 3c- Do NOT selected to search the Windows Update. Instead select I will choose a driver or the equivalent. 3d- Make sure to give the *full* path to the x86 or x86_64 driver, e.g: SDK/usb_driver/x86/ or SDK/usb_driver/x86_64/ If you just select SDK/usb_driver, Windows might take the wrong architecture and complain the driver can't be installed. Thanks for those who reported the issue and helped me solve it. Relevant threads: http://groups.google.com/group/android-beginners/browse_thread/thread/8f99c245c78af3ab/54f9bf343ada8cfd http://groups.google.com/group/android-developers/browse_thread/thread/ab6e89c4b51cd905/36d3f4a8dcc0e144 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maintaining two Eclipse installs with two Android SDKs
With Eclipse 3.3, the plugins are installed in the Eclipse directory. With Eclipse 3.4 and P2 there's a common pool of plugin and specific instances per Eclipse directory. The plugins preferences are however associated with the workspace. In your case you need to have 2 different plugins so you should have the following: - One install of Eclipse 3.4 with the ADT 0.8 plugin - One workspace with the SDK 1.1 pref for that Eclipse install - Another install of Eclipse 3.4 with the ADT 0.9 plugin - Another workspace with the SDK 1.5 pref for the other Eclipse install R/ On Tue, May 19, 2009 at 6:24 PM, nEx.Software justin.shapc...@gmail.com wrote: I've always found that the Workspace holds reference to the Android SDK location so if you are using a different Workspace you should even be able to use just the one install of Eclipse. I am working on Windows but would image that the same would apply to Mac... On May 19, 9:17 am, Keith Wiley kbwi...@gmail.com wrote: I need to keep the old Android 1.1_r1 SDK around because I have an app that won't build with the 1.1 SDK included with the 1.5 SDK (Actually, it builds, but the newer Dalvik converter won't convert it, error 2, no other feedback as to the problem in Eclipse's console). So I have two completely separate Eclipse installations. However, they seem to share at least *some* preferences (this is on OS X btw), namely, the Android SDK location preference. Is this going to work? I can switch the SDK location preference back and forth as I use the two different versions of Eclipse if I have to (a little annoying I suppose), but are there larger issues I need to worry about? Are there any other really serious problems, perhaps as yet unanticipated, with maintaining two different Eclipse installs using two different Android SDKs? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Installing the USB driver for HTC Magic on Vista
2009/5/19 Cédric Berger cedric.berge...@gmail.com: I tried with a windows XP sp3 32bit where I never installed android USB driver before. When first plugged in the phone, it automatically installed mass storage driver, it told about it but did not ask anything. Does this help? http://groups.google.com/group/android-developers/browse_thread/thread/48e92dcc0a8a9a23/bbff8436bfd23ce0 On my other PC under ubuntu, what do I have to do ? It does not detect android device through adb either (can mount as an usb drive only)... (on this PC I used to connect to my Freerunner with Android through adb and it worked, but this was through tcp/ip) Make sure you have the udev rule: http://developer.android.com/guide/developing/device.html#setting-up R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 record a video of the screen?
On Sun, May 17, 2009 at 9:17 PM, Sheepz eladk...@gmail.com wrote: I know you can use the ddms view in eclipse to take a snapshot of the screen, but can you somehow make a video like that? I don't think there's such a tool. If you want to make a video of your own app, use the emulator and some screen grabber software. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is there an easy way to make EditText look like TextView but still behave like EditText?
Try this: android:style=@android:style/Widget.TextView R/ On Sun, May 17, 2009 at 3:31 PM, Nikola Radosavljevic nikolaradosavlje...@gmail.com wrote: Note: I had troubles posting to android-beginners group, so I came here hoping this will work. Hello there, I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this: EditText android:id=@+id/lipsum android:text=Lorem ipsum android:style=@android:style/Widget_TextView / ..but I get an error within xml editor: Error: No resource found that matches the given name (at 'style' with value '@android:style/ Widget_TextView'). It is strange because @android:style/ Widget_TextView definitively exists - I double checked it in code via android.R.style.Widget_TextView. Another strange thing is that I don't get android:style offered in the xml editor while typing? There is android:id, android:text and everything else.. but not android:style?! Note: I consider the hard way (making EditText look like TextView) to be: extending EditText and overriding it's onDraw method. Nikolar PS: Check out http://developer.android.com/guide/topics/ui/themes.html#styles. Why are id and style written without android: namespace? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Installing the USB driver for HTC Magic on Vista
Hi guys, We're trying to reproduce the issue. I have a few questions for the few of you which still have issues: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. - Did you *ever* install an android USB driver before? SDK 1.0/1.1 had one and it has been updated in 1.5. - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? - Did Windows ever prompt you about installing a driver for an unknown device? Sorry if some of the questions are generic, I'm trying to get broad enough before drilling in specifics. R/ On Mon, May 18, 2009 at 3:59 AM, Bicycle Shorts captain...@gmail.com wrote: The problem is not with Android, it is with Vista. What I have found is that Vista will not let you override USB drivers with what you want. This is what I did: - Connected phone - drivers found automatically - Found phone in device manager (under disks) - Tried to manually search for new drivers - located the Android USB driver - Vista says Drivers are up to date - Uninstalled driver and reconnected phone - Wrong driver installed automatically again - Turned off automatic driver installation in Windows preferences and reconnected phone - Wrong driver installed automatically AGAIN - Went into registry and disabled automatic driver installation (found out how on the web) - Wrong driver installed automatically AGAIN! From what I can see there is no way to tell Vista to go away and let me install the drivers I want. I'm going to use Ubuntu to develop for the phone I think. On May 16, 7:59 pm, matica b...@matica.com wrote: I'm in the same boat here, I can get the phone mounted as a drive but not as a device to test my apps on. I've tried all sorts to install the usb driver that came with the sdk perhaps it's G1 only. If anyone manages to get an htc magic listed under 'adb devices' plz let me know. I'mVista64 bit and was tying using android-sdk- windows-1.5_r1.usb_driver/amd64 and yes I've put a nice green tick next to USB Debugging in my settings on the phone under development, and I've tried mounting and not mounting. Cheers folks. Alex Aylesbury. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Market countries - how are they determined ?
The correct place to ask Market questions is http://www.google.com/support/forum/p/Android+Market R/ On Sun, May 17, 2009 at 4:27 AM, kiu sch...@googlemail.com wrote: In the android market the countries where your app should be published can be selected. How is the country determined ? Where the device was bought ? Which country SIM is inserted ? Which GSM network it is currently connected to ? Which country was specified in the google account ? Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 when debugging android application with eclipse
Are you talking about the DDMS perspective or the standalone DDMS? If you use eclipse, do not use the standalone DDMS program, use the DDMS perspective from within Eclipse. If you do that you do not need to manually select the program in the DDMS process list, the Eclipse plugin can automatically stop at breakpoints that you set in Eclipse. Just make sure you start your session using one of the Run Debug option (if you select Run Run, it won't stop on breakpoints.) R/ On Thu, May 14, 2009 at 10:15 PM, Nio luodali...@gmail.com wrote: Hi there, I am trying to debug android source code with ecliplse. And I can see that eclipse has connect to emulator via ddms. And I can see the log coming out from eclipse, but when I select an process in DDMS, and trying to debug the process, process can't stop on the breakpoint I have set. I think there might be some thing incorrect somewhere. Can anybody give some advice? Thanks. Nio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Installing the USB driver for HTC Magic on Vista
Once again: the ability to mount the SD card as a drive as nothing to do with debugging over ADB or requesting the ADB driver. The only thing that matters for ADB is whether you enabled Home Settings Applications Development USB debugging. Did you? R/ On Fri, May 15, 2009 at 5:26 AM, cberger cedric.berge...@gmail.com wrote: On May 14, 5:49 pm, Raphael r...@android.com wrote: - If you want to debug with adb, ant or Eclipse, you need to use the USB driver that comes with your SDK. You need to enable debugging on the device first in the settings. Seehttp://d.android.com/guide/developing/device.html#setting-up Does this work ? Mounting sdcard works ok for me, but I cannot install usb driver for adb And instructions on android developer site only talk about G1, not the magic. The driver infos may have to be updated with the HTC Magic device id ? Anyway, just like initial poster, windows (XP) does not prompt me about a new device. It installed a generic drive (active even when not mounted). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 creating a resource in eclipse
Oops, looks like the menud is not declared correctly. I filed http://b.android.com/2687 for it. In the mean time, you can achieve the same by using the New Android XML File icon in the toolbar. R/ On Fri, May 15, 2009 at 10:29 PM, Makeable m...@makeable.co.uk wrote: I am trying to create a resource in eclipse by right clicking the project - Android Tools - New Resource File. It then comes up with the error The chosen operation is not currently available. As such, I am having to create them manually. Is this a feature that is not yet implemented, or is it a bug in my installation? Kind Regards, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help: View Not Shown After TableLayout
On Sat, May 16, 2009 at 8:59 PM, Romain Guy romain...@google.com wrote: Your TableLayout has height=fill_parent, it's therefore as tall as its parent, so there's no more room left on screen to show the TextView. and to fix that add an android:layout_wheight=0 to the table layout and a android:layout_wheight=1 to the text view. R/ On Sat, May 16, 2009 at 2:58 PM, efan e...@efansoftware.com wrote: I need show some text description after a TableLayout but it is not shown. Layout xml file like this (the complete code is here: http://code.google.com/p/zz-doctor/source/browse/trunk/ZZ/res/layout/rx_recipe_detail.xml): LinearLayout ... TableLayout ... /TableLayout TextView android:id=@+id/rxFormulaDesc / /LinearLayout It works fine when the rxFormulaDesc View is before the TableLayout. But requirements want the TableLayout shown first. It just does not shown up when the rxFormulaDesc View is put after the TableLayout. No error message in either screen or log. Same Java code. The TableLayout itself shows up fine - no matter hard-coded content or dynamic content, and any view before it also shows fine. I tried other type of View after the TableLayout, same result. Thanks for your attention! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView + SimpleAdaptor + ImageView = very slow
On Fri, May 15, 2009 at 5:09 PM, OTB erwan.allia...@gmail.com wrote: Hi, I have developed a ListActivity where each row of the list contain a drawable (downloaded from an url, cached locally and in memory). So, I use a custom SimpleAdaptor to fill the list. My problem is that the list is very slow. It seems like the component try to reuses a small number of row to print the list You can find a good article on listview recycle at http://androidguys.com/?p=635. R/ (Sometimes a picture contain a previous pictures before the real one) I would like to know how to speed-up my application. Is it possible to increase the number of rows used internally by the list to draw its content ? Do you have other advice ? Thanks, Erwan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help: View Not Shown After TableLayout
On Sat, May 16, 2009 at 9:25 PM, Raphael r...@android.com wrote: On Sat, May 16, 2009 at 8:59 PM, Romain Guy romain...@google.com wrote: Your TableLayout has height=fill_parent, it's therefore as tall as its parent, so there's no more room left on screen to show the TextView. and to fix that add an android:layout_wheight=0 to the table layout and a android:layout_wheight=1 to the text view. Typo: I meant android:layout_weight=0 and 1. R/ R/ On Sat, May 16, 2009 at 2:58 PM, efan e...@efansoftware.com wrote: I need show some text description after a TableLayout but it is not shown. Layout xml file like this (the complete code is here: http://code.google.com/p/zz-doctor/source/browse/trunk/ZZ/res/layout/rx_recipe_detail.xml): LinearLayout ... TableLayout ... /TableLayout TextView android:id=@+id/rxFormulaDesc / /LinearLayout It works fine when the rxFormulaDesc View is before the TableLayout. But requirements want the TableLayout shown first. It just does not shown up when the rxFormulaDesc View is put after the TableLayout. No error message in either screen or log. Same Java code. The TableLayout itself shows up fine - no matter hard-coded content or dynamic content, and any view before it also shows fine. I tried other type of View after the TableLayout, same result. Thanks for your attention! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---