[android-developers] Re: World Of Bombs (Action Game) ADC 2 Entry

2009-10-31 Thread croco
Hi mike177, Thank you for the feedback. Croco On Oct 30, 3:07 pm, mike177 wrote: > Croco, fun app!  Keep confident...  I trust this app will be among the > 20 finalist in the action game category.  It is a great game to play > when I need to wait for something and I need a time killer.  Congrat

Re: [android-developers] Need an invitation to google Wave?

2009-10-31 Thread FFEH
Hello, Please invite me, thanks~~ FFEH On Sun, Nov 1, 2009 at 2:20 PM, Auguste Lunang wrote: > Hi, > i have some google wave. invits to share. tell me if u want .. > thx > > -- > You received this message because you are subscribed to the Google > Groups "Android Develope

[android-developers] Need an invitation to google Wave?

2009-10-31 Thread Auguste Lunang
Hi, i have some google wave. invits to share. tell me if u want .. thx -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to an

[android-developers] Self-restarting service

2009-10-31 Thread Anders Feder
Hello, I am developing a slightly "mission critical" Android application, and want a Service component of it to be essentially "immortal" or at least "self-restarting" in the event of a crash (of the service). What would be the best way to accomplish this? I use API level 3 (Android 1.5). Thanks

[android-developers] Re: Sleep mode

2009-10-31 Thread Anders Feder
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 > Hello, > > Is it possible to

[android-developers] Re: what about the Android 3d module file type ".gles"

2009-10-31 Thread Fred Grott(Android Expert)
its a graphical layout engine script file, hence the name On Oct 31, 2:08 am, LemonDev 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

[android-developers] Locale and TTS problem

2009-10-31 Thread jax
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(audio

[android-developers] Re: AppWidgetProvider

2009-10-31 Thread adamphillips12
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 b

[android-developers] Re: My appwidget broken Donut when keyboard slide out/in

2009-10-31 Thread NewPa
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. http://schemas.android.com/apk/res/android";>

Re: [android-developers] Re: Android 2.0 Bluetooth Code Samples

2009-10-31 Thread ding eric
It's awesome thanks CLC On Thu, Oct 29, 2009 at 9:11 AM, CLC > 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 > ap

[android-developers] Re: Debug question

2009-10-31 Thread Roland
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 wrote: > After much screwing around with configuration settings I finally got > Eclipse

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread niko20
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 wrote: > Well then this is extremely confusing! > > Firstly, thanks Mark for taking the t

[android-developers] http client connect timeout

2009-10-31 Thread Andrei
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 "Andro

[android-developers] Re: Debug question

2009-10-31 Thread mh
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:

[android-developers] Debug question

2009-10-31 Thread mh
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 ma

Re: [android-developers] Re: Selling Applikation not on Android Market

2009-10-31 Thread Dianne Hackborn
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 wrote: > Ahhh, the "Web View" fires then an Intent to the Android Market > Applikation, i'm right, aren't I? > > THX

[android-developers] Re: Selling Applikation not on Android Market

2009-10-31 Thread Mr.No
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" 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

Re: [android-developers] Re: app widget sizes for WVGA and FWVGA

2009-10-31 Thread Dianne Hackborn
It's not the number of pixels, it's the density. On Sat, Oct 31, 2009 at 12:10 PM, sdphil 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 wrote: > > Multiply by 1.5. > > > > On Sat, Oct 31, 2009 at

Re: [android-developers] Re: Selling Applikation not on Android Market

2009-10-31 Thread Mark Murphy
> 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

[android-developers] Re: Selling Applikation not on Android Market

2009-10-31 Thread Mr.No
Thx, and how then the Application is installed on the device, via web browser? On 31 Okt., 23:53, "Mark Murphy" 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: > > ap

Re: [android-developers] Selling Applikation not on Android Market

2009-10-31 Thread Mark Murphy
> 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://com

[android-developers] Re: Double quotes in resources?

2009-10-31 Thread Markus
On Oct 31, 11:40 pm, "Mark Murphy" 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/resource

[android-developers] Selling Applikation not on Android Market

2009-10-31 Thread Mr.No
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

Re: [android-developers] Re: Double quotes in resources?

2009-10-31 Thread Mark Murphy
> 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.htm

[android-developers] Back key after Search doesn't return to list in 2.0 as it did in all earlier versions

2009-10-31 Thread Jonas Petersson
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 app

[android-developers] Re: Double quotes in resources?

2009-10-31 Thread Markus
On Oct 31, 11:28 pm, "Mark Murphy" 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: > >     > >       Folder "%s" is > > empty. > >     > > > LIstFolderActivity.java: > >    String f

[android-developers] Re: second dialog in activity is not showing

2009-10-31 Thread Lance Nanek
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.htm

Re: [android-developers] Double quotes in resources?

2009-10-31 Thread Mark Murphy
> 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: > > Folder "%s" is > empty. > > > LIstFolderActivity.java: >String format = getResources().getString > (R.string.message_empty_f

[android-developers] Double quotes in resources?

2009-10-31 Thread Markus
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: Folder "%s" is empty. LIstFolderActivity.java: String format = getResources().getString (R.string.message_empty_folder); System.out.p

[android-developers] second dialog in activity is not showing

2009-10-31 Thread Anton Pirker
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 locat

[android-developers] Re: AppWidgetProvider

2009-10-31 Thread ben
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

[android-developers] Re: app widget sizes for WVGA and FWVGA

2009-10-31 Thread sdphil
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 wrote: > Multiply by 1.5. > > On Sat, Oct 31, 2009 at 8:23 AM, sdphil wrote: > > what are the 4x1 app widget sizes for WVGA and FWVGA in both portrait > > and landsc

[android-developers] Re: Including extra sqlite databases?

2009-10-31 Thread Mark Wyszomierski
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 wrote: > Add it o assets/ and write it to the filesystem when the application > loads for

Re: [android-developers] Mystery Null Pointer Error - Seeking Opinions

2009-10-31 Thread Mark Murphy
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

[android-developers] Mystery Null Pointer Error - Seeking Opinions

2009-10-31 Thread Jason Van Anden
*, 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 playi

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
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) { //

Re: [android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread Mark Murphy
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)).getDefaul

Re: [android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread Mark Murphy
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)).getDefaul

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
Sorry I meant "works on the HTC Hero" NOT magic ;) On Oct 31, 6:11 pm, mscwd01 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 so

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
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 wrote: > I'll ma

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
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 screenOrientati

Re: [android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread Dianne Hackborn
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 hie

Re: [android-developers] app widget sizes for WVGA and FWVGA

2009-10-31 Thread Dianne Hackborn
Multiply by 1.5. On Sat, Oct 31, 2009 at 8:23 AM, sdphil 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

Re: [android-developers] Re: Including extra sqlite databases?

2009-10-31 Thread Ian Guedes Maia
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

Re: [android-developers] Re: usb device absent from adb after Ubuntu Karmic upgrade

2009-10-31 Thread Karl Ostmo
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

[android-developers] Android 2.0 Source code

2009-10-31 Thread AndroidKing
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 subscri

[android-developers] Re: Problem installing Android 2.0 on Mac (Snow Leopard)

2009-10-31 Thread Al Sutton
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 674190

[android-developers] Re: Including extra sqlite databases?

2009-10-31 Thread Mark Wyszomierski
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.htm

Re: [android-developers] Re: Sometimes the running emulator is not found from within Eclipse?!

2009-10-31 Thread Mariano Kamp
I opened a bug report . 2009/10/30 Mariano Kamp > The issue still happens with Android 2.0 and ADT 0.94. > > 2009/10/13 Diego Torres Milano > > >> +1 (Linux) >> >> On Oct 12, 2:55 am, idoun wrote: >> > I have also same problem after upgra

[android-developers] app widget sizes for WVGA and FWVGA

2009-10-31 Thread sdphil
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, se

[android-developers] Re: Does android have a numeric keypad?

2009-10-31 Thread moneytoo
android:inputType="phone" On Oct 31, 3:28 pm, bennyb 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" butt

[android-developers] Does android have a numeric keypad?

2009-10-31 Thread bennyb
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 G

[android-developers] Disturbance in playing sound file in Android.

2009-10-31 Thread javame_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. W

Re: [android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread Mark Murphy
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 acceleromet

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
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 wrote: > mscwd01 wrote: > > Hi, > > > I have had several complaint

Re: [android-developers] IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread Mark Murphy
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 = ((WindowMan

[android-developers] xsd to java simpleType

2009-10-31 Thread Wouter
Hey, I am developing an Android application with TripIt integration but I don't know how to make a java class of this: And AirportCode is a type that is used in AirObject (for example) so it has to be private AirportCode start_airport_code.. But

Re: [android-developers] Can two different activities that extend the same superclass have the same view ids?

2009-10-31 Thread Mark Murphy
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 = (But

Re: [android-developers] Avoid "Force Close Message Box"

2009-10-31 Thread Mark Murphy
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, DDM

Re: [android-developers] Including extra sqlite databases?

2009-10-31 Thread Mark Murphy
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

Re: [android-developers] Re: How to return Typeface from Cursor

2009-10-31 Thread Mark Murphy
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

[android-developers] Re: usb device absent from adb after Ubuntu Karmic upgrade

2009-10-31 Thread Tim
On Oct 31, 2:22 am, kostmo 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 w

[android-developers] IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
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_SE

[android-developers] Re: Can two different activities that extend the same superclass have the same view ids?

2009-10-31 Thread jax
my mistake forgot to run super on the methods in the second game when overriding. On Oct 31, 2:15 pm, 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

[android-developers] Re: NEEDED: Apps to feature on Sprint Microsite

2009-10-31 Thread Teo
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 m

[android-developers] Re: How will dev phone be able to run Eclair?

2009-10-31 Thread Wiebbe
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 flash

[android-developers] Can two different activities that extend the same superclass have the same view ids?

2009-10-31 Thread jax
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_

[android-developers] what about the Android 3d module file type ".gles"

2009-10-31 Thread LemonDev
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

[android-developers] Re: Android SDK not working on Windows 7

2009-10-31 Thread Robert Green
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