[android-developers] Re: App name/icon problems on Hero after reboot
For what its worth, I cannot reproduce this on a non-Sprint Hero. I have had mine for a couple of months now, a European version, and has been out in Asia for a while with no reported similar errors. I am a close follower of the XDA Developers board, and it has not been seen there either. Perhaps it is now coming to light as more people are getting the Sprint version? I have never seen this issue on my own app, but never used raw strings for the name. I installed the Coin Toss app, tried it, put a shortcut on the home screen, rebooted, and it was fine. I will be happy to try any other apps to see if this is still the case, but as I live in Hong Kong, I cannot try paid for apps, as it is not supported. My Hero is stock European, running Android 1.5, build 2.73.405.5 146733 CL#61267 release-keys Software version: 1.0.0.A6288 Kernel: 2.6.27-8dd6deee htc-ker...@and18-2) Hope this helps! On Oct 31, 3:52 am, Justin Giles jtgi...@gmail.com wrote: From a user standpoint, I ran across this thread on the Hero phandroids.comforum: http://androidforums.com/sprint-htc-hero/12549-handcent-shortcut-icon... Basically you wipe the phone sd card, reinitialize the phone, then IMMEDIATELY turn off HTC Sense UI in favor of the standard Android UI. The user that gave these instructions seems to not have any problems after they do this. Just a FYI and further evidence that HTC has some issues they may or may not be ignoring. On Fri, Oct 30, 2009 at 10:14 AM, Greg Donald gdon...@gmail.com wrote: On Fri, Oct 30, 2009 at 9:41 AM, Justin Giles jtgi...@gmail.com wrote: I'm not entirely sure the raw string vs resource string is the full issue here though. It might be part of the problem, but not the whole explanation. As Greg mentioned earlier, he never had his app name set as a raw string and he is experiencing the problem. On one of my applications I'm developing, I'm experiencing it as well with the app name always having been a resource. It's sounding more and more like HTC having done something funky with the package management. Especially since Dianne has been saying that stock Android doesn't have this problem. And all of my inquiries to HTC Sprint have resulted in nothing. I'm considering returning the phone, I still have a few days before my 30 day return option has past. I mean, who really knows when this might be fixed? What other options are there at this point? -- Greg Donald http://destiney.com/- 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: Android SDK not working on Windows 7
I used to run Eclipse 3.4 / Java 1.6 / Android SDK 1.0,1.1,1.5,1.6 on Vista 64 but recently did a clean install of Windows 7. Now I'm running Eclipse 3.4 / Java 32 and 64 1.6 / Android SDK 1.5-2.0 on Windows 7 Professional x64 without any problems. Windows 7 seems to handle everything exactly the same way vista did. It is a derivative of Vista, after all. Edo, I'd say your problem is more with your specific environment or configuration than it is with Windows 7. Consider wiping all of your java installation stuff and environment variables and reinstalling java to get it clean. I didn't set any special environment variables for anything anywhere. In fact, all I did was dump eclipse on, drop the SDK into c: \Android_SDK and install ADT. Everything worked first try - but it was a totally clean installation. On Oct 30, 3:41 pm, Edo Noordhuizen edo.noordhui...@gmail.com wrote: I've ran the line and found the user.home property is set to C:\Users\PARA ... there is no user named PARA on my system. I've quickly searched through the registry, and all I can think of right now is that PARA are the first 4 letters of the computer manufacturer??.. I'll be doing some more searching later tonight.. Thanks a lot for your help! With kind regards, Edo Noordhuizen On Fri, Oct 30, 2009 at 9:20 PM, jotobjects jotobje...@gmail.com wrote: That's weird if Windows 7 does this in a new way. You need to know where the Java system property user.home is because that is the default location for your AVD images. This one line program will list the properties - public static void main(String[] args) { System.getProperties().list(System.out); } On Oct 29, 3:30 pm, Edo Noordhuizen edo.noordhui...@gmail.com wrote: I have ran all apps as administrator, this didn't solve my problem.. My guess is the problem has something to do with the user.home property, but I'm not sure.. Thanks, Edo On Thu, Oct 29, 2009 at 10:56 PM, Wayne Wenthin wa...@fuligin.com wrote: Run it with elevated permissions? It needs to write to the drive so you may need to run any install as administrator. Same with any command prompts. On Thu, Oct 29, 2009 at 12:21 PM, Edo Noordhuizen edo.noordhui...@gmail.com wrote: Hi, I have a problem getting the Android SDK to work on my new Windows 7 computer. The ADT plugin in Eclipse will not open, when I run SDK setup.exe I do get a window, but settings wont get saved, and the app disappears when I click 'New' in the virtual devices pane.. When I run android.bat from a command prompt I get the following error: ---snip--- Error: Unable to read AVDs Error: Unable to get the home directory. Make sure the user.home property is set up Error: Unable to get the home directory. Make sure the user.home property is set up com.android.prefs.AndroidLocation$AndroidLocationException: Unable to get the home directory. Make sure the user.home property is set up ---snip--- I have a dutch install of windows 7 where the users directory is named differently, and already tried to change the HOMEPATH, APPDATA, LOCALAPPDATA, and USERPROFILE paths in the registry to the dutch version of the directory..which didn´t work either.. Does anybody have any suggestions? Or a solution perhaps? Thanks, Edo Eclipse version: GALILEO (Eclipse IDE for Java Developers Build id: 20090920-1017) Android SDK version: Android sdk r3 windows (I tried previous sdk versions.. same problem) Windows 7 Home Premium .. -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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] what about the Android 3d module file type .gles
GlobalTime use this file type ,but i have found nothing about it in the Android documents .and also no discussions on the internet . so , how can we export a gles file type from others like 3DMax... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can two different activities that extend the same superclass have the same view ids?
I have a superclass called Game. I have two subclasses of this class Game1 and Game2 . Inside the superclass Game there is a Skip button. This button is in both Game1 and Game2 as they both use this button. Inside Game I have initialized it using mSkipButton = (Button)findViewById(R.id.skip_button); Both Game1 and Game2 have a View with an Id of @+id/skip_button For some reason the Skip button works in Game1 but not Game2. Can two different Activities share the same ID? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 will dev phone be able to run Eclair?
As has been noted in the blogpost you linked you can repartition your phone. This has been done a multitude of times with the cooked roms like cyanogen's one. The main issue is that you dont want to do something so potentionally dangerous for an android phone over the air. If you brick while flashing this time you will be really screwed! So if its true they wont get it too fit (which has to be seen untill the source is released) you will probably only get to use it unofficially. On Oct 30, 3:43 pm, Tamas Jozsa tjo...@gmail.com wrote: Hi All, I have read and double checked that there is theoretically no chance to have Eclair on G1 productive phone. Take a look at this site:http://androidandme.com/2009/10/news/g1-owners-could-miss-out-on-andr... I was wondering if there is actually a method to repartiotion the system partition so that Eclair would fit on G1 dev phone. What do you think? Thanks, Regards, Tamas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NEEDED: Apps to feature on Sprint Microsite
I also got a flurry of offers more or less like this, most come directly through email, but i've come to ignore them... Personally what would get me to pay more attention to such things would be that the sender is someaddr...@aknowncompany.com (e.g. someaddr...@sprint.com). Imho this detail would make a huge difference. On Oct 30, 7:25 pm, niko20 nikolatesl...@yahoo.com wrote: Ok guys, an update. Quentin sent me an email about and hour ago with the info I needed, so I would like to thank him for contacting me finally :) I was started to lose hope again -niko20 On Oct 30, 12:07 pm, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: Quentin Perry, FYI - Looks like the sara_jagiel...@gspsf.com email address is misspelled in the body of the message. See on the CC of the original message. Kumar _/|\_www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... On Fri, Oct 30, 2009 at 10:50 AM, niko20 nikolatesl...@yahoo.com wrote: Well great for you then.. But see my posts above. I had an email BOUNCED BACK. An email that was posted as we were supposed to be able to use. Once again it's disorganized (or seems so), so it starts to wither my faith. I think these companies need to understand, that as developers, we have actually had quite a few offers for promotions. But I've yet to see any succeed. If they really want us to take them seriously, they will be quick to respond and have their act together. -niko20 On Oct 30, 10:28 am, Moto medicalsou...@gmail.com wrote: Guys this is true... I got contacted by them via email not through this forum... So its legit... -Jona On Oct 30, 11:04 am, niko20 nikolatesl...@yahoo.com wrote: See I think this is starting to prove my point. I sent an email to Quentin. Didn't hear anything back for over 3 days. So I tried to forward it to Sara's email. It got bounced back (unknown account). So once again as I said before, this is how it usually goes down, lots of talk, but little action. And what action there is is disorganized. That's why I've become jaded to these offers. -niko On Oct 30, 9:50 am, niko20 nikolatesl...@yahoo.com wrote: Well I still havent' heard anything back from him myself. Maybe my posting was way to negative lol. -niko On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote: niko, fyi, we emailed Quentin the same day his post appeared and he actually called us the next day... On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote: Hmm well I did send an email to Quentin last night asking about more details, but I haven't heard anything back yet -niko On Oct 28, 1:34 pm, JP joachim.pfeif...@gmail.com wrote: That was my impression too. It also links to the thin Android Market web, but that's a different topic... On second thought - that might be what's been referenced to as phase 1. Thatmicrositestuff is nice to look at though. I've seen this first time at Porsche USA on their Panamera campaign. (Just to find my next conveyance bought from all the proceeds I make by releasing mobile apps (;-). Could be running out of the same agency, actually. It seems ineffective in presenting specific content though, it's like pulling stuff out of a hat. On Oct 28, 12:15 am, Lance Nanek lna...@gmail.com wrote: Sprint'sweb site following your post and do not find any evidence there's even a phase 1 Maybe they are going to enhance that flying cloud of Android app screenshots shortly into the flash movie on the site the OP linked:http://now.sprint.com/android/ It seems like useless eye candy at the moment. I can't find any way to rotate the cloud manually, zoom in, zoom out, pick a value for the Whether you want to: control, there are lots of duplicates, the screenshots aren't clearly labeled with what app they are, and clicking on a screenshot does nothing. Still, all that could be fixed, I suppose. Maybe devs should make sure the name of their app features prominently on any screenshot they submit just in case. On Oct 28, 1:46 am, JP joachim.pfeif...@gmail.com wrote: Well let's see Just a few months ago I go sign up to Clearwire's Silicon Valley WiMax dev program. I'm up in SF so I suppose that wasn't close enough or whatever, I've never heard back so I couldn't say. Would have been nice to put that Nokia N810 WiMax Edition on their network and toy around with some of the stuff I built for that. Then there's Moto's Accelerator program
[android-developers] Re: Can two different activities that extend the same superclass have the same view ids?
my mistake forgot to run super on the methods in the second game when overriding. On Oct 31, 2:15 pm, jax jackma...@gmail.com wrote: I have a superclass called Game. I have two subclasses of this class Game1 and Game2 . Inside the superclass Game there is a Skip button. This button is in both Game1 and Game2 as they both use this button. Inside Game I have initialized it using mSkipButton = (Button)findViewById(R.id.skip_button); Both Game1 and Game2 have a View with an Id of @+id/skip_button For some reason the Skip button works in Game1 but not Game2. Can two different Activities share the same ID? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] IMPORTANT - display.getOrientation() does not work on all devices
Hi, I have had several complaints from people with G1 and MyTouch/G2 devices who say my application does not work correctly. The problem stems from the following code which gets the orientation of the phone: // Get Screen Orientation Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); I manually rotate the interface if the phone is in portrait (screenOrientation = 0) or landscape (screenOrientation = 1). On my HTC Hero the code works fine and the correct orientation is determined, however on G1 and MyTouch devices it apparently never returns the correct orientation. As I do not have either of those phones to test this problem I am guessing they may return the opposite values to the HTC Hero? Can anyone possibly explain this problem or let me know how to determine the screen orientation on ALL devices? Many 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: usb device absent from adb after Ubuntu Karmic upgrade
On Oct 31, 2:22 am, kostmo kos...@gmail.com wrote: Hello Ubuntu users, Just finished upgrading from Jaunty to Karmic, and my ADP1 doesn't show up in ./adb devices anymore. I have tried the solution proposed here (http://groups.google.com/group/android-developers/msg/ 7f3990c5d5367dbb) but it doesn't work for me. Phone is also missing from the lsusb list, although I find that I can actually mount the sdcard. Any luck out there? Try this: lsusb to make sure the device is shown, note the bus and device numbers. ls -l /dev/bus/usb/* The file /dev/bus/usb/bus number/device number should be world- writable. Is it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to return Typeface from Cursor
James Wang wrote: Thanks. So developers can return any user-defined-object by Cursor, am I right? No. Cursor only supports a handful of basic types. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Including extra sqlite databases?
Mark Wyszomierski wrote: I have some external sqlite files I'd like to include with my app. It looks like I can add them to the /assets folder, then read them from there? Is the /assets folder the appropriate location for them? assets/ is a fine spot for packaging them, but I don't think you can read them from there. I suspect you will need to copy them out of the APK into a regular file somewhere, then use that copy. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Avoid Force Close Message Box
Honest wrote: My application used to execute in background by service. But sometimes when it goes in exception it is giving Exception with the Force Close Message Box. I want to avoid that Message box. Is there any way to avoid it ? Figure out what the exception is (look at adb logcat, DDMS, or the DDMS perspective in Eclipse to find the Java stack trace). Then, don't cause that exception. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can two different activities that extend the same superclass have the same view ids?
jax wrote: I have a superclass called Game. I have two subclasses of this class Game1 and Game2 . Inside the superclass Game there is a Skip button. This button is in both Game1 and Game2 as they both use this button. Inside Game I have initialized it using mSkipButton = (Button)findViewById(R.id.skip_button); Both Game1 and Game2 have a View with an Id of @+id/skip_button For some reason the Skip button works in Game1 but not Game2. Can two different Activities share the same ID? Yes, if they are in the same application. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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] xsd to java simpleType
Hey, I am developing an Android application with TripIt integration but I don't know how to make a java class of this: xs:simpleType name=AirportCode xs:restriction base=xs:string xs:pattern value=[A-Z][A-Z][A-Z]/ /xs:restriction /xs:simpleType And AirportCode is a type that is used in AirObject (for example) xs:complexType name=AirSegment xs:all xs:element maxOccurs=1 minOccurs=0 name=Status type=FlightStatus/ xs:element maxOccurs=1 minOccurs=0 name=StartDateTime type=DateTime/ xs:element maxOccurs=1 minOccurs=0 name=EndDateTime type=DateTime/ xs:element maxOccurs=1 minOccurs=0 name=start_airport_code type=AirportCode/ so it has to be private AirportCode start_airport_code.. But what do I have to write in the AirportCode.java file? Thank you for your help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] IMPORTANT - display.getOrientation() does not work on all devices
mscwd01 wrote: Hi, I have had several complaints from people with G1 and MyTouch/G2 devices who say my application does not work correctly. The problem stems from the following code which gets the orientation of the phone: // Get Screen Orientation Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); I manually rotate the interface if the phone is in portrait (screenOrientation = 0) or landscape (screenOrientation = 1). On my HTC Hero the code works fine and the correct orientation is determined, however on G1 and MyTouch devices it apparently never returns the correct orientation. As I do not have either of those phones to test this problem I am guessing they may return the opposite values to the HTC Hero? Can anyone possibly explain this problem or let me know how to determine the screen orientation on ALL devices? You can try getConfiguration().orientation, which will be one of a series of constants on the Configuration class. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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: IMPORTANT - display.getOrientation() does not work on all devices
Hi Mark, I added this to the activity tag in the manifest: android:screenOrientation=sensor Would that make any difference? If I get it still doesn't work emails, i'll try your code. Thanks On Oct 31, 11:54 am, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: Hi, I have had several complaints from people with G1 and MyTouch/G2 devices who say my application does not work correctly. The problem stems from the following code which gets the orientation of the phone: // Get Screen Orientation Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); I manually rotate the interface if the phone is in portrait (screenOrientation = 0) or landscape (screenOrientation = 1). On my HTC Hero the code works fine and the correct orientation is determined, however on G1 and MyTouch devices it apparently never returns the correct orientation. As I do not have either of those phones to test this problem I am guessing they may return the opposite values to the HTC Hero? Can anyone possibly explain this problem or let me know how to determine the screen orientation on ALL devices? You can try getConfiguration().orientation, which will be one of a series of constants on the Configuration class. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices
mscwd01 wrote: I added this to the activity tag in the manifest: android:screenOrientation=sensor Would that make any difference? That changes the trigger. For devices with a keyboard (e.g., G1), by default, an orientation change is triggered by sliding the keyboard, not the accelerometer. android:screenOrientation=sensor forces it to be the sensor (a.k.a., accelerometer) like the Magic, Hero, and other keyboard-less devices. Since you are experiencing your problem with both the G1 (with keyboard) and the Magic (sans keyboard), I doubt this will help, but I could easily be wrong. -- 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] Disturbance in playing sound file in Android.
Hi, I want to play sound data which would be streamed from the site. Actually the data would be embeded in zip file which would be .q3z which is our own format for embedding 3d data with sound. Now everything is working fine. I am able to parse the sound data from that file and write it to file. When I am playing that file, the file gets played but the sound quality is not good. Whereas the same thing if I am implementing in Java then the sound gets played absolutely fine. Can anyone suggest how to stream the sound file without disturbance or any kind of distortion. In java player there are some kind of operations done on the sound data such as PCM encoding. I have uploaded the file on http://www.saltriver.com/download/qed.wav Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does android have a numeric keypad?
Does android have a virtual numeric keypad view? kind of like the phone dialer including the . and the Done signs? I know you can make an EditText numeric, but I just want a virtual keyboard that will display one 0-9 buttons. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Does android have a numeric keypad?
android:inputType=phone On Oct 31, 3:28 pm, bennyb taw...@gmail.com wrote: Does android have a virtual numeric keypad view? kind of like the phone dialer including the . and the Done signs? I know you can make an EditText numeric, but I just want a virtual keyboard that will display one 0-9 buttons. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] app widget sizes for WVGA and FWVGA
what are the 4x1 app widget sizes for WVGA and FWVGA in both portrait and landscape? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sometimes the running emulator is not found from within Eclipse?!
I opened a bug reporthttp://code.google.com/p/android/issues/detail?id=4454 . 2009/10/30 Mariano Kamp mariano.k...@gmail.com The issue still happens with Android 2.0 and ADT 0.94. 2009/10/13 Diego Torres Milano dtmil...@gmail.com +1 (Linux) On Oct 12, 2:55 am, idoun idou...@gmail.com wrote: I have also same problem after upgrading the plugin to 0.9.3 On Oct 10, 10:31 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hi, when launching my app from within Eclipse, sometimes the running emulator is found and displayed in the launch dialog, sometimes it isn't?! Killing adb, the emulator and Eclipse usually helps ... until it happens again. Any idea why this is? I see this behavior since the launch of Android. I am running on Mac OS X. And it happened on Leopard as well as Snow Leopard. Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=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: Including extra sqlite databases?
Hi Mark, Yeah I think I need to write it to a local file, SQLiteDatabase has constructors which only read from a file path, or File instance. I'm wondering though if I can stick it in res/raw and read it straight from there. Some examples like: http://www.anddev.org/working_with_files-t115.html I've added the sqlite file to my raw folder, it appears in my .R file, however eclipse intellisense cannot resolve it when I type R.raw.mydatabase - odd - Thanks On Oct 31, 7:42 am, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: I have some external sqlite files I'd like to include with my app. It looks like I can add them to the /assets folder, then read them from there? Is the /assets folder the appropriate location for them? assets/ is a fine spot for packaging them, but I don't think you can read them from there. I suspect you will need to copy them out of the APK into a regular file somewhere, then use that copy. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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: Problem installing Android 2.0 on Mac (Snow Leopard)
I had a similar problem. The fix was to start from scratch using the 2.0 base download then use it to download the required API levels. Al. -- * Looking for Android Apps? - Try http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. On Oct 30, 11:30 am, Kevin kefen...@googlemail.com wrote: Hi all, I was trying to install Android 2.0 on Mac which running snow leopard. When I run android, it give me error message. I forgot the exact message, but it roughly says I cannot run a 32 bit code on a 64 bit virtual machine or something similar. Does anyone else have the same problem? How can I solve it? Regards, Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 2.0 Source code
why isn't the source code for 2.0 on the public repository.. developing for Android without looking at the source code is impossible due to poor APIs and or documentations please make this public ASAP, or most applications will break with 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
Re: [android-developers] Re: usb device absent from adb after Ubuntu Karmic upgrade
OK, I got it to work after reinstalling Karmic from scratch instead of doing an upgrade from Jaunty. Then, when I ran lsusb, at least the device was listed: Bus 001 Device 006: ID 0bb4:0c02 High Tech Computer Corp. With ls -l /dev/bus/usb/*, I did find that the device was not world-writable: /dev/bus/usb/001: total 0 crw-rw-r-- 1 root root 189, 0 2009-10-31 00:59 001 crw-rw-r-- 1 root root 189, 5 2009-10-31 12:25 006 Then I created /etc/udev/rules.d/51-android.rules with the line: SUBSYSTEM==usb,ATTRS(idVendor)==0bb4,SYMLINK+=android_adb,MODE=0666 Then: chmod a+x /etc/udev/rules.d/51-android.rules sudo service udev restart Unplug device and plug back in: ./adb devices List of devices attached HT845GZ51436device So I'm guessing it was just an upgrade gone awry... Thanks, Karl On Sat, Oct 31, 2009 at 6:01 AM, Tim tdh...@gmail.com wrote: On Oct 31, 2:22 am, kostmo kos...@gmail.com wrote: Hello Ubuntu users, Just finished upgrading from Jaunty to Karmic, and my ADP1 doesn't show up in ./adb devices anymore. I have tried the solution proposed here (http://groups.google.com/group/android-developers/msg/ 7f3990c5d5367dbb) but it doesn't work for me. Phone is also missing from the lsusb list, although I find that I can actually mount the sdcard. Any luck out there? Try this: lsusb to make sure the device is shown, note the bus and device numbers. ls -l /dev/bus/usb/* The file /dev/bus/usb/bus number/device number should be world- writable. Is 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Code or be coded. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Including extra sqlite databases?
Add it o assets/ and write it to the filesystem when the application loads for the first time or when you do the first database access (you can do that easily using a class that extends SQLiteOpenHelper to create the database if it doesn't exist yet). Use context.getDatabasePath(DB_NAME) to get the location where you can create the file of your database. 2009/10/31 Mark Wyszomierski mar...@gmail.com: Hi Mark, Yeah I think I need to write it to a local file, SQLiteDatabase has constructors which only read from a file path, or File instance. I'm wondering though if I can stick it in res/raw and read it straight from there. Some examples like: http://www.anddev.org/working_with_files-t115.html I've added the sqlite file to my raw folder, it appears in my .R file, however eclipse intellisense cannot resolve it when I type R.raw.mydatabase - odd - Thanks On Oct 31, 7:42 am, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: I have some external sqlite files I'd like to include with my app. It looks like I can add them to the /assets folder, then read them from there? Is the /assets folder the appropriate location for them? assets/ is a fine spot for packaging them, but I don't think you can read them from there. I suspect you will need to copy them out of the APK into a regular file somewhere, then use that copy. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] app widget sizes for WVGA and FWVGA
Multiply by 1.5. On Sat, Oct 31, 2009 at 8:23 AM, sdphil phil.pellouch...@gmail.com wrote: what are the 4x1 app widget sizes for WVGA and FWVGA in both portrait and landscape? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices
Okay this is getting really rather annoying now. I have used both of the following methods of getting the screen orientation and both do not work properly on different devices. Method 1: Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); Method 2: int screenOrientation = getResources().getConfiguration().orientation; Both methods work fine on the HTC Hero; however, they both fail on the G1 and G2 devices (according to the users of my app). How can we be expected to make high quality applications if the API is not supported on all devices??? I would be very greatful if someone could offer a solution to this, its just not acceptable. On Oct 31, 12:08 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: I added this to the activity tag in the manifest: android:screenOrientation=sensor Would that make any difference? That changes the trigger. For devices with a keyboard (e.g., G1), by default, an orientation change is triggered by sliding the keyboard, not the accelerometer. android:screenOrientation=sensor forces it to be the sensor (a.k.a., accelerometer) like the Magic, Hero, and other keyboard-less devices. Since you are experiencing your problem with both the G1 (with keyboard) and the Magic (sans keyboard), I doubt this will help, but I could easily be wrong. -- 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: IMPORTANT - display.getOrientation() does not work on all devices
Dianne, I have used the configuration to try and determine orientation (see Method 2); however, this still fails on G1 and G2 devices. It works on the HTC magic though. If you could offer some other solution i'd be very appreciative indeed ;) On Oct 31, 6:00 pm, Dianne Hackborn hack...@android.com wrote: I'll make this a little stronger -- the Display object is LOW LEVEL access to the display. Trying to use this in an application is almost guaranteed to not do what you want. The current orientation should be retrieved from Configuration. The width and height should be retrieved from the view hierarchy. I believe that Display.getOrientation actually returns the physical rotation applied to the display... I also notice that the documentation says nothing about what it actually returns, so how can you use it correctly? :) (The Display object clearly needs a lot more documentation... but this is a pretty low priority because, again, it really shouldn't be used by applications.) On Sat, Oct 31, 2009 at 5:08 AM, Mark Murphy mmur...@commonsware.comwrote: mscwd01 wrote: I added this to the activity tag in the manifest: android:screenOrientation=sensor Would that make any difference? That changes the trigger. For devices with a keyboard (e.g., G1), by default, an orientation change is triggered by sliding the keyboard, not the accelerometer. android:screenOrientation=sensor forces it to be the sensor (a.k.a., accelerometer) like the Magic, Hero, and other keyboard-less devices. Since you are experiencing your problem with both the G1 (with keyboard) and the Magic (sans keyboard), I doubt this will help, but I could easily be wrong. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices
Sorry I meant works on the HTC Hero NOT magic ;) On Oct 31, 6:11 pm, mscwd01 mscw...@gmail.com wrote: Dianne, I have used the configuration to try and determine orientation (see Method 2); however, this still fails on G1 and G2 devices. It works on the HTC magic though. If you could offer some other solution i'd be very appreciative indeed ;) On Oct 31, 6:00 pm, Dianne Hackborn hack...@android.com wrote: I'll make this a little stronger -- the Display object is LOW LEVEL access to the display. Trying to use this in an application is almost guaranteed to not do what you want. The current orientation should be retrieved from Configuration. The width and height should be retrieved from the view hierarchy. I believe that Display.getOrientation actually returns the physical rotation applied to the display... I also notice that the documentation says nothing about what it actually returns, so how can you use it correctly? :) (The Display object clearly needs a lot more documentation... but this is a pretty low priority because, again, it really shouldn't be used by applications.) On Sat, Oct 31, 2009 at 5:08 AM, Mark Murphy mmur...@commonsware.comwrote: mscwd01 wrote: I added this to the activity tag in the manifest: android:screenOrientation=sensor Would that make any difference? That changes the trigger. For devices with a keyboard (e.g., G1), by default, an orientation change is triggered by sliding the keyboard, not the accelerometer. android:screenOrientation=sensor forces it to be the sensor (a.k.a., accelerometer) like the Magic, Hero, and other keyboard-less devices. Since you are experiencing your problem with both the G1 (with keyboard) and the Magic (sans keyboard), I doubt this will help, but I could easily be wrong. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices
mscwd01 wrote: Okay this is getting really rather annoying now. I have used both of the following methods of getting the screen orientation and both do not work properly on different devices. Method 1: Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); Method 2: int screenOrientation = getResources().getConfiguration().orientation; Both methods work fine on the HTC Hero; however, they both fail on the G1 and G2 devices (according to the users of my app). How can we be expected to make high quality applications if the API is not supported on all devices??? I would be very greatful if someone could offer a solution to this, its just not acceptable. I just tested this on a G1, and getResources().getConfiguration().orientation is 2 in landscape and 1 in portrait, just like it should be. I also tested it on an HTC Magic, and it works just fine. Heck, it even works on an ARCHOS 5 Android tablet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: IMPORTANT - display.getOrientation() does not work on all devices
mscwd01 wrote: Okay this is getting really rather annoying now. I have used both of the following methods of getting the screen orientation and both do not work properly on different devices. Method 1: Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); Method 2: int screenOrientation = getResources().getConfiguration().orientation; Both methods work fine on the HTC Hero; however, they both fail on the G1 and G2 devices (according to the users of my app). How can we be expected to make high quality applications if the API is not supported on all devices??? I would be very greatful if someone could offer a solution to this, its just not acceptable. I just tested this on a G1, and getResources().getConfiguration().orientation is 2 in landscape and 1 in portrait, just like it should be. I also tested it on an HTC Magic, and it works just fine. Heck, it even works on an ARCHOS 5 Android tablet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: IMPORTANT - display.getOrientation() does not work on all devices
Well then this is extremely confusing! Firstly, thanks Mark for taking the time to test it. The only other thing which could be wrong is how the coordinate system is represented in each device. I draw to the screen once I have remapped the coordinate system i.e.: if(screenOrientation == 1) { // Portrait SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_MINUS_Z, SensorManager.AXIS_X, outR); } else { // All other send to Landscape SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_X, SensorManager.AXIS_Z, outR); } However, this shouldn't be an issue should it? On Oct 31, 6:19 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: Okay this is getting really rather annoying now. I have used both of the following methods of getting the screen orientation and both do not work properly on different devices. Method 1: Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); Method 2: int screenOrientation = getResources().getConfiguration().orientation; Both methods work fine on the HTC Hero; however, they both fail on the G1 and G2 devices (according to the users of my app). How can we be expected to make high quality applications if the API is not supported on all devices??? I would be very greatful if someone could offer a solution to this, its just not acceptable. I just tested this on a G1, and getResources().getConfiguration().orientation is 2 in landscape and 1 in portrait, just like it should be. I also tested it on an HTC Magic, and it works just fine. Heck, it even works on an ARCHOS 5 Android tablet. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mystery Null Pointer Error - Seeking Opinions
*, An error that appeared in my Flurry logs but seemed impossible to reproduce otherwise just occured! That's the good news. The bad news is that the LogCat info is not telling me enough. I would appreciate a second set of eyes taking a look and offering wisdom. The lead up is that I was playing with my app, and put it away for a while. I did a lot of other things with my phone since, like making phone calls, etc ... I hooked up my phone to the computer to make another attempt to find the mystery bug, and decided to see if anything weird appeared in the logs from earlier. I then brought my app to the foreground using the Home/Hold technique and whamo! the bug appeared before my eyes in LogCat. I got a Force Close message. When the app died, it did not get resurrected. What is particularly odd is the onPrepareOptionsMenu being called (at all). So here is what LogCat coughed up: This is not my app but may provide a clue ... --- 10-31 14:12:02.047: INFO/WindowManager(74): onOrientationChanged, rotation changed to 0 10-31 14:12:02.117: WARN/InputManagerService(74): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@43422388 7369 is my app: - 10-31 14:12:02.127: DEBUG/dalvikvm(7369): Trying to load lib /system/lib/libsoundpool.so 0x0 10-31 14:12:02.677: DEBUG/dalvikvm(7369): Added shared lib /system/lib/libsoundpool.so 0x0 10-31 14:12:03.277: DEBUG/FlurryAgent(7369): Starting new session 10-31 14:12:03.657: DEBUG/AndroidRuntime(7369): Shutting down VM 10-31 14:12:03.657: WARN/dalvikvm(7369): threadid=3: thread exiting with uncaught exception (group=0x4001da28) 10-31 14:12:03.657: DEBUG/FlurryAgent(7369): Ending session 10-31 14:12:03.667: ERROR/AndroidRuntime(7369): Uncaught handler: thread main exiting due to uncaught exception 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): java.lang.NullPointerException 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.bubblebeats.free.Peeps.onPrepareOptionsMenu(Peeps.java:377) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.app.Activity.onPreparePanel(Activity.java:2065) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:429) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.openPanel(PhoneWindow.java:517) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.openPanelsAfterRestore(PhoneWindow.java:1590) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.access$1500(PhoneWindow.java:86) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow$DecorView.onAttachedToWindow(PhoneWindow.java:2043) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.View.dispatchAttachedToWindow(View.java:5567) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1032) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.ViewRoot.performTraversals(ViewRoot.java:676) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.ViewRoot.handleMessage(ViewRoot.java:1613) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.os.Handler.dispatchMessage(Handler.java:99) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.os.Looper.loop(Looper.java:123) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.app.ActivityThread.main(ActivityThread.java:4203) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at java.lang.reflect.Method.invokeNative(Native Method) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at java.lang.reflect.Method.invoke(Method.java:521) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at dalvik.system.NativeStart.main(Native Method) 10-31 14:12:04.517: DEBUG/dalvikvm(7369): GC freed 1736 objects / 111624 bytes in 248ms Thanks for the feedback in advance. Jason Van Anden http://www.BubbleBeats.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] Mystery Null Pointer Error - Seeking Opinions
Jason Van Anden wrote: 10-31 14:12:03.667: ERROR/AndroidRuntime(7369): Uncaught handler: thread main exiting due to uncaught exception 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): java.lang.NullPointerException 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.bubblebeats.free.Peeps.onPrepareOptionsMenu(Peeps.java:377) So...what's on line 377 of Peeps.java? Personally, I'm hoping for a sugar-coated marshmallow confection, mostly because Peeps are made by a local firm... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Including extra sqlite databases?
Thanks Ian, I also found this writeup on the subject as you're describing it: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ On Oct 31, 1:49 pm, Ian Guedes Maia iangm...@gmail.com wrote: Add it o assets/ and write it to the filesystem when the application loads for the first time or when you do the first database access (you can do that easily using a class that extends SQLiteOpenHelper to create the database if it doesn't exist yet). Use context.getDatabasePath(DB_NAME) to get the location where you can create the file of your database. 2009/10/31 Mark Wyszomierski mar...@gmail.com: Hi Mark, Yeah I think I need to write it to a local file, SQLiteDatabase has constructors which only read from a file path, or File instance. I'm wondering though if I can stick it in res/raw and read it straight from there. Some examples like: http://www.anddev.org/working_with_files-t115.html I've added the sqlite file to my raw folder, it appears in my .R file, however eclipse intellisense cannot resolve it when I type R.raw.mydatabase - odd - Thanks On Oct 31, 7:42 am, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: I have some external sqlite files I'd like to include with my app. It looks like I can add them to the /assets folder, then read them from there? Is the /assets folder the appropriate location for them? assets/ is a fine spot for packaging them, but I don't think you can read them from there. I suspect you will need to copy them out of the APK into a regular file somewhere, then use that copy. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app widget sizes for WVGA and FWVGA
That makes sense for portrait (480 / 320 = 1.5) but for fwvga in landscape, 854 / 480 = 1.78. On Oct 31, 10:55 am, Dianne Hackborn hack...@android.com wrote: Multiply by 1.5. On Sat, Oct 31, 2009 at 8:23 AM, sdphil phil.pellouch...@gmail.com wrote: what are the 4x1 app widget sizes for WVGA and FWVGA in both portrait and landscape? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AppWidgetProvider
Yea our provider is fully public. Our widgets worked perfectly fine, well we worked around the current widget bugs, until 2.0. The 1.6 release we have no problems on actual phones or the emulator with the 2.0 emulator is where we see the problems, hopefully it's just a bug in the emulator. But it would be nice to know either way. On Oct 30, 10:40 pm, adamphillips12 adamphillip...@gmail.com wrote: There are bugs with widgets and there are incorrectly or undocumented features. Part of your problem is probably this:http://groups.google.com/group/android-developers/browse_thread/threa... The other part might be a problem with you receiving intents, try making your provider fully public in the manifest (unless it already is) and see if anything gets through or check you've probably declared it for the widget intents. If you delete all the widgets you've placed and call the method to get the widget ids for your package, if it is not empty, you have the above bug I linked, test it out. On Oct 31, 2:00 am, ben benbros...@gmail.com wrote: It seems like the convenience functions (onUpdate, onEnabled, etc.) aren't being called in the emulator on Android 2.0. Is this a bug, or are these functions just being eliminated? It would have been nice to see this documented somewhere. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] second dialog in activity is not showing
Hi android guys and girls! I have a really strange problem. I have an activity which displays a map and a marker with the users current location on that maps. Right now my code is something like this: (in onCreate of the activity) 1) display a progress dialog with the text detecting your location, please wait... 2) request location updates. (activity implements LocationListener) locationManager.requestLocationUpdates(provider, (long)Constants.MIN_TIME, (float)Constants.MIN_DISTANCE, this); 3) right after the line above i have following: timer.schedule(new GetLastLocation(this), 5000); which means: wait 5 sec and then call GetLastLocation().run() GetLastLocation looks like this: class GetLastLocation extends TimerTask { private SetupActivity parent; public GetLastLocation(SetupActivity act) { parent = act; } public void run() { removeDialog(DIALOG_GET_POSITION); parent.showMessage(); } } So if 5 seconds pass by, i dismiss(remove) the dialog i displayed in 1) 4) now i want to show an AlertDialog with the message could not find your location, taking the last known parent.showMessage() looks like this: public void showMessage() { Log.e(###, showMessage 1/2); showDialog(DIALOG_GET_POSITION); Log.e(###, showMessage 2/2); } and here the first log message showMessage 1/2 is printed to the log, but not the second one showMessage 2/2. And there is no exception and nothing that tells me what is wrong... Could someone please help me? Maybe there is a better way to get he location and if no location is delivered show a message! Thankful for every hint, Anton -- DI(FH) Anton Pirker -- cross platform mobile software burggasse 123/53 a-1070 wien tel: +43 699 1234 0 456 skype: antonpirker http://anton-pirker.at -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Double quotes in resources?
I'm probably missing something obvious, but for some reason I don't manage to put a string with double quotes in a resources file. strings.xml: resources string name=message_empty_folderFolder quot;%squot; is empty./string /resources LIstFolderActivity.java: String format = getResources().getString (R.string.message_empty_folder); System.out.println(format); Log output: Folder %s is empty. What's eating up the double quotes? Thanks in advance, Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Double quotes in resources?
I'm probably missing something obvious, but for some reason I don't manage to put a string with double quotes in a resources file. strings.xml: resources string name=message_empty_folderFolder quot;%squot; is empty./string /resources LIstFolderActivity.java: String format = getResources().getString (R.string.message_empty_folder); System.out.println(format); Log output: Folder %s is empty. What's eating up the double quotes? Try using \ and see if that works. -- 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: second dialog in activity is not showing
The UI is not thread safe and calling related methods from a background thread like that run by java.util.Timer can cause trouble. There's a good blog post on ways to schedule work on the UI thread or communicate back to it here: http://android-developers.blogspot.com/2009/05/painless-threading.html There's also an example of communicating back to the UI thread called Example ProgressDialog with a second thread on this page: http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html On Oct 31, 4:42 pm, Anton Pirker an...@ignaz.at wrote: Hi android guys and girls! I have a really strange problem. I have an activity which displays a map and a marker with the users current location on that maps. Right now my code is something like this: (in onCreate of the activity) 1) display a progress dialog with the text detecting your location, please wait... 2) request location updates. (activity implements LocationListener) locationManager.requestLocationUpdates(provider, (long)Constants.MIN_TIME, (float)Constants.MIN_DISTANCE, this); 3) right after the line above i have following: timer.schedule(new GetLastLocation(this), 5000); which means: wait 5 sec and then call GetLastLocation().run() GetLastLocation looks like this: class GetLastLocation extends TimerTask { private SetupActivity parent; public GetLastLocation(SetupActivity act) { parent = act; } public void run() { removeDialog(DIALOG_GET_POSITION); parent.showMessage(); } } So if 5 seconds pass by, i dismiss(remove) the dialog i displayed in 1) 4) now i want to show an AlertDialog with the message could not find your location, taking the last known parent.showMessage() looks like this: public void showMessage() { Log.e(###, showMessage 1/2); showDialog(DIALOG_GET_POSITION); Log.e(###, showMessage 2/2); } and here the first log message showMessage 1/2 is printed to the log, but not the second one showMessage 2/2. And there is no exception and nothing that tells me what is wrong... Could someone please help me? Maybe there is a better way to get he location and if no location is delivered show a message! Thankful for every hint, Anton -- DI(FH) Anton Pirker -- cross platform mobile software burggasse 123/53 a-1070 wien tel: +43 699 1234 0 456 skype: antonpirker http://anton-pirker.at -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Double quotes in resources?
On Oct 31, 11:28 pm, Mark Murphy mmur...@commonsware.com wrote: I'm probably missing something obvious, but for some reason I don't manage to put a string with double quotes in a resources file. strings.xml: resources string name=message_empty_folderFolder quot;%squot; is empty./string /resources LIstFolderActivity.java: String format = getResources().getString (R.string.message_empty_folder); System.out.println(format); Log output: Folder %s is empty. What's eating up the double quotes? Try using \ and see if that works. Works, many thanks! Is this a bug or a feature? I don't see the purpose.. Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Back key after Search doesn't return to list in 2.0 as it did in all earlier versions
Hi all, I experience something slightly confusing in the 2.0 emulators (tried several variants): One of my apps is somewhat similar to Market in structure in that it is a ListActivity that keeps creating new Intent(this, xxx.class); of itself with various .putExtra(); that presents data in appropriate ways. In the Manifest there is also an intent-filter for action.SEARCH that triggers onSearchRequested() and then onCreate() checks for Intent.ACTION_SEARCH - pretty straight forward IMHO and it has also worked exactly as intended up to and including 1.6 (where the new search stuff seemed to integrate as expected). However, in 2.0 I don't get back to the previous ListActivity when I have used the search key to show something and then press the Back key. The back key takes yet another step back. Is this related to some other Back key issues I've seen mentioned here, an intended new behaviour that I must handle differently in 2.0 or some kind of bug that needs reporting. I don't have any kind if special key listening going on at all. Best / Jonas PS. Lack of account handling and hardware to test Bluetooth on really makes the emulation testing a pain - I'd love a Moto Droid over here. Any suggestions as to how I can get my hands on one soon would be much appreciated... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Double quotes in resources?
Is this a bug or a feature? I don't see the purpose.. I think it's documented somewhere. I remember it from my one book, and I doubt I just made it up. ;-) So, I vote feature. -- 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] Selling Applikation not on Android Market
Hello, it is possible to publish your own Android Application on a own Web Server? thx 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: Double quotes in resources?
On Oct 31, 11:40 pm, Mark Murphy mmur...@commonsware.com wrote: Is this a bug or a feature? I don't see the purpose.. I think it's documented somewhere. I remember it from my one book, and I doubt I just made it up. ;-) So, I vote feature. Found it on http://developer.android.com/guide/topics/resources/available-resources.html: quoteIf you use an apostrophe or a quote in your string, you must either escape it or enclose the whole string in the other kind of enclosing quotes/quote Does not give a reason though. Thanks again, Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Selling Applikation not on Android Market
it is possible to publish your own Android Application on a own Web Server? Absolutely! All you need to do is set up the MIME type, so your APK is served as: application/vnd.android.package-archive -- 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: Selling Applikation not on Android Market
Thx, and how then the Application is installed on the device, via web browser? On 31 Okt., 23:53, Mark Murphy mmur...@commonsware.com wrote: it is possible to publish your own Android Application on a own Web Server? Absolutely! All you need to do is set up the MIME type, so your APK is served as: application/vnd.android.package-archive -- 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
Re: [android-developers] Re: Selling Applikation not on Android Market
and how then the Application is installed on the device, via web browser? Step #1: User views a Web page Step #2: User clicks a link on that Web page that links to that application Step #3: Browser downloads the application and prompts user to install it -- 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
Re: [android-developers] Re: app widget sizes for WVGA and FWVGA
It's not the number of pixels, it's the density. On Sat, Oct 31, 2009 at 12:10 PM, sdphil phil.pellouch...@gmail.com wrote: That makes sense for portrait (480 / 320 = 1.5) but for fwvga in landscape, 854 / 480 = 1.78. On Oct 31, 10:55 am, Dianne Hackborn hack...@android.com wrote: Multiply by 1.5. On Sat, Oct 31, 2009 at 8:23 AM, sdphil phil.pellouch...@gmail.com wrote: what are the 4x1 app widget sizes for WVGA and FWVGA in both portrait and landscape? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Selling Applikation not on Android Market
Ahhh, the Web View fires then an Intent to the Android Market Applikation, i'm right, aren't I? THX :) On 1 Nov., 00:08, Mark Murphy mmur...@commonsware.com wrote: and how then the Application is installed on the device, via web browser? Step #1: User views a Web page Step #2: User clicks a link on that Web page that links to that application Step #3: Browser downloads the application and prompts user to install it -- 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
Re: [android-developers] Re: Selling Applikation not on Android Market
No, market is not involved at all. The platform has a built-in viewer for this MIME type that allows the user to directly install the app. On Sat, Oct 31, 2009 at 4:16 PM, Mr.No f.hi...@arcor.de wrote: Ahhh, the Web View fires then an Intent to the Android Market Applikation, i'm right, aren't I? THX :) On 1 Nov., 00:08, Mark Murphy mmur...@commonsware.com wrote: and how then the Application is installed on the device, via web browser? Step #1: User views a Web page Step #2: User clicks a link on that Web page that links to that application Step #3: Browser downloads the application and prompts user to install it -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Debug question
After much screwing around with configuration settings I finally got Eclipse to recognize and attach to a tethered MyTouch for debugging. The problem now is that before running the debugger I have to manually push the build to the device in order for the debugger to launch it. If I do not first manually install the file on the device it does not get uploaded and I see the following errors in the android console window: [2009-10-31 16:54:05 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:06 - MyApp]New package not yet registered with the system. Waiting 3 seconds before next attempt. [2009-10-31 16:54:09 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:11 - MyApp]New package not yet registered with the system. Waiting 3 seconds before next attempt. [2009-10-31 16:54:14 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:15 - MyApp]ActivityManager: Starting: Intent { cmp=com.me.android/.MyApp} [2009-10-31 16:54:15 - MyApp]ActivityManager: Error type 3 [2009-10-31 16:54:15 - MyApp]ActivityManager: Error: Activity class {com.me.android/com.me.android.MyApp} does not exist. If the file exists then the debugger attaches and breakpoints work but the old image is the one that is always connected to as automatic uploads still do not happen upon rebuild/redeploy. I have tried turning USB storage on and off but that does not work either. Am I missing an address setting or checkbox somewhere? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Debug question
One additional data point. The line: [2009-10-31 17:13:10 - MyApp]Application already deployed. No need to reinstall. appears at the beginning of a launch. The application is *not* seen under Manage Applications on the device nor does it appear anywhere as a background [hidden] task. mh wrote: After much screwing around with configuration settings I finally got Eclipse to recognize and attach to a tethered MyTouch for debugging. The problem now is that before running the debugger I have to manually push the build to the device in order for the debugger to launch it. If I do not first manually install the file on the device it does not get uploaded and I see the following errors in the android console window: [2009-10-31 16:54:05 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:06 - MyApp]New package not yet registered with the system. Waiting 3 seconds before next attempt. [2009-10-31 16:54:09 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:11 - MyApp]New package not yet registered with the system. Waiting 3 seconds before next attempt. [2009-10-31 16:54:14 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:15 - MyApp]ActivityManager: Starting: Intent { cmp=com.me.android/.MyApp} [2009-10-31 16:54:15 - MyApp]ActivityManager: Error type 3 [2009-10-31 16:54:15 - MyApp]ActivityManager: Error: Activity class {com.me.android/com.me.android.MyApp} does not exist. If the file exists then the debugger attaches and breakpoints work but the old image is the one that is always connected to as automatic uploads still do not happen upon rebuild/redeploy. I have tried turning USB storage on and off but that does not work either. Am I missing an address setting or checkbox somewhere? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] http client connect timeout
I try to set timeout for apache http client like this HttpConnectionParams.setConnectionTimeout( params, TIMEOUT ); But it does not work Is there a way to set connect timeout for http client on Android? 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: IMPORTANT - display.getOrientation() does not work on all devices
Wait- YOu are remapping the coords after rotation? Well then that's where the problem has to be, since clearly Mark has shown that the getOrientation() works correctly -niko On Oct 31, 1:25 pm, mscwd01 mscw...@gmail.com wrote: Well then this is extremely confusing! Firstly, thanks Mark for taking the time to test it. The only other thing which could be wrong is how the coordinate system is represented in each device. I draw to the screen once I have remapped the coordinate system i.e.: if(screenOrientation == 1) { // Portrait SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_MINUS_Z, SensorManager.AXIS_X, outR);} else { // All other send to Landscape SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_X, SensorManager.AXIS_Z, outR); } However, this shouldn't be an issue should it? On Oct 31, 6:19 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: Okay this is getting really rather annoying now. I have used both of the following methods of getting the screen orientation and both do not work properly on different devices. Method 1: Display display = ((WindowManager) getSystemService (WINDOW_SERVICE)).getDefaultDisplay(); int screenOrientation = display.getOrientation(); Method 2: int screenOrientation = getResources().getConfiguration().orientation; Both methods work fine on the HTC Hero; however, they both fail on the G1 and G2 devices (according to the users of my app). How can we be expected to make high quality applications if the API is not supported on all devices??? I would be very greatful if someone could offer a solution to this, its just not acceptable. I just tested this on a G1, and getResources().getConfiguration().orientation is 2 in landscape and 1 in portrait, just like it should be. I also tested it on an HTC Magic, and it works just fine. Heck, it even works on an ARCHOS 5 Android tablet. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Debug question
When I experienced this problem, the solution for me to was to do a project clean and rebuild the entire project. Then the app would load properly from the Eclipse debug launch. Roland On Oct 31, 7:10 pm, mh haye...@gmail.com wrote: After much screwing around with configuration settings I finally got Eclipse to recognize and attach to a tethered MyTouch for debugging. The problem now is that before running the debugger I have to manually push the build to the device in order for the debugger to launch it. If I do not first manually install the file on the device it does not get uploaded and I see the following errors in the android console window: [2009-10-31 16:54:05 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:06 - MyApp]New package not yet registered with the system. Waiting 3 seconds before next attempt. [2009-10-31 16:54:09 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:11 - MyApp]New package not yet registered with the system. Waiting 3 seconds before next attempt. [2009-10-31 16:54:14 - MyApp]Starting activity com.me.android.MyApp on device [2009-10-31 16:54:15 - MyApp]ActivityManager: Starting: Intent { cmp=com.me.android/.MyApp} [2009-10-31 16:54:15 - MyApp]ActivityManager: Error type 3 [2009-10-31 16:54:15 - MyApp]ActivityManager: Error: Activity class {com.me.android/com.me.android.MyApp} does not exist. If the file exists then the debugger attaches and breakpoints work but the old image is the one that is always connected to as automatic uploads still do not happen upon rebuild/redeploy. I have tried turning USB storage on and off but that does not work either. Am I missing an address setting or checkbox somewhere? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.0 Bluetooth Code Samples
It's awesome thanks CLC On Thu, Oct 29, 2009 at 9:11 AM, CLC clchen+...@google.comclchen%2b...@google.com wrote: Hi jb, Here is some sample code that uses Bluetooth: http://code.google.com/p/apps-for-android/source/browse/trunk/BTClickLinkCompete This is the demo that was shown in the Eclair 2.0 video. You run the app on two (or more) Android 2.0 devices, and you can then flick the Android robot between the screens of the devices as if it were all just one big screen. -Charles On Oct 27, 5:25 pm, jb jburket...@gmail.com wrote: Does anyone have any working code with the added Bluetooth support? Also, were you able to get Bluetooth working in the AVD? 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.comandroid-developers%2bunsubscr...@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: My appwidget broken Donut when keyboard slide out/in
Hi String, I use static var, i will test it. Hi Jeff, Here is my layout file content. it seems will cause confliction with others: Thanks for your kindly help. ?xml version=1.0 encoding=UTF-8? LinearLayout android:id=@+id/LinearLayout01 android:layout_width=72dp android:layout_height=72dp android:background=@drawable/bg android:orientation=vertical android:paddingTop=3dp xmlns:android=http://schemas.android.com/apk/res/android; TextView android:text=TextView01 android:layout_width=wrap_content android:textStyle=bold android:layout_height=14sp android:id=@+id/TVWeeks android:textSize=12sp android:paddingLeft=8dp android:textColor=#00 /TextView ImageView android:id=@+id/ImageView01 android:layout_width=65sp android:src=@drawable/line android:paddingLeft=5dp android:layout_height=2sp /ImageView TextView android:text=TextView01 android:paddingLeft=8dp android:textSize=12sp android:layout_width=wrap_content android:textColor=#00 android:layout_height=14sp android:id=@+id/TVHeight /TextView TextView android:text=TextView01 android:textSize=12sp android:paddingLeft=8dp android:layout_width=wrap_content android:textColor=#00 android:layout_height=16sp android:id=@+id/TVWeight /TextView ImageView android:id=@+id/ImageView02 android:layout_width=65sp android:src=@drawable/line android:paddingLeft=5dp android:layout_height=2sp /ImageView TextView android:text=TextView01 android:textColor=#00 android:textSize=12sp android:paddingLeft=8dp android:layout_width=wrap_content android:layout_height=16sp android:id=@+id/TVMomWeiAdded /TextView /LinearLayout On Oct 31, 4:13 am, Jeff Sharkey jshar...@android.com wrote: There can be issues if the android:id's in your layouts conflict with other widgets. This was fixed in Eclair by having Launcher create separate SparseArray jails for each widget to store their state into. It's change 09ddc08b... to be specific. Could you post your layout file, or describe how you're allocating ids? j On Thu, Oct 29, 2009 at 12:25 AM, String sterling.ud...@googlemail.com wrote: On Oct 29, 6:51 am, Eong eong.c...@gmail.com wrote: Yeap. My users reported this to me today. The OTA release has the same bug. They should push a fixed update right now. FWIW, I'm not convinced it's a bug in Donut. I'm not seeing the same issue in my widgets, and I do plenty in onUpdate. If you genuinely think it's a platform bug, produce a minimal test case and write it up, please. I'm assuming you're aware that keyboard open/close on an HTC Dream destroys and recreates the widget instance, so if (for example) you're referencing any static vars in your code, those will no longer exist. I'm also assuming that you're sending a complete set of views to the RemoteViews object every time, or you probably would have had trouble before now. But you might check those things. :^) String -- Jeff Sharkey jshar...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AppWidgetProvider
Ah right, yes I believe there is an emulator only bug in 2.0 with widgets. I've experienced your problem before, launching a new emulator usually fixes it. Haven't really been able to track down the cause of it but I don't think it will be a problem with devices. I'm not sure if it has any effect but lately I've been running a lot of different emulators at once, which could cause problems, sometimes I have emulators launch with crippled performance and small things like that. On Nov 1, 7:17 am, ben benbros...@gmail.com wrote: Yea our provider is fully public. Our widgets worked perfectly fine, well we worked around the current widget bugs, until 2.0. The 1.6 release we have no problems on actual phones or the emulator with the 2.0 emulator is where we see the problems, hopefully it's just a bug in the emulator. But it would be nice to know either way. On Oct 30, 10:40 pm, adamphillips12 adamphillip...@gmail.com wrote: There are bugs with widgets and there are incorrectly or undocumented features. Part of your problem is probably this:http://groups.google.com/group/android-developers/browse_thread/threa... The other part might be a problem with you receiving intents, try making your provider fully public in the manifest (unless it already is) and see if anything gets through or check you've probably declared it for the widget intents. If you delete all the widgets you've placed and call the method to get the widget ids for your package, if it is not empty, you have the above bug I linked, test it out. On Oct 31, 2:00 am, ben benbros...@gmail.com wrote: It seems like the convenience functions (onUpdate, onEnabled, etc.) aren't being called in the emulator on Android 2.0. Is this a bug, or are these functions just being eliminated? It would have been nice to see this documented somewhere. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Locale and TTS problem
I have set my emulator to use US English. When I run Locale.getDefault() There is no country code! The language code is set to en_us When I set a varaible audioLocale using audioLocale= Locale.US The country code is US The language code is en When I run mTts.isLanguageAvailable(audioLocale) == TextToSpeech.LANG_AVAILABLE I get -2 == 0 Why is mTts reporting that the US language is not 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: what about the Android 3d module file type .gles
its a graphical layout engine script file, hence the name On Oct 31, 2:08 am, LemonDev lem...@gmail.com wrote: GlobalTime use this file type ,but i have found nothing about it in the Android documents .and also no discussions on the internet . so , how can we export a gles file type from others like 3DMax... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sleep mode
Anyone? If it can't be done in any other way, is there by any chance any way to emulate that the 'end call' button has been pressed? (I've tried with dispatchKeyEvent() to my own activity, but that didn't do anything.) Thanks, Anders Feder 2009/10/24 Anders Feder anders.feder...@gmail.com Hello, Is it possible to programmaticly send the device into sleep mode (i.e. like when pressing the [end call] button once so screen the turns off and locks)? Thanks in advance, Anders Feder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en