[android-developers] Re: Voice 2 text help

2009-09-10 Thread Lance Nanek
On Sep 8, 10:15 am, Abhi abhishek.r.sha...@gmail.com wrote: I want to know if I can extract the text result on the list view and use it as a String further on? The part of code I am refering to is below where mList is defined as ListView: ArrayListString matches =

[android-developers] Re: Android App Promotions

2009-09-10 Thread Lance Nanek
From what I hear you could try offering your app on multiple stores, e.g. Google Market, SlideME, and AndAppStore. Another option is making it free, if it is currently a pay app, and generating revenue from AdMob instead. I don't have experience with either method yet, so can't say how well they

[android-developers] Re: Checking the user's country

2009-09-11 Thread Lance Nanek
Wow, I thought the getDisplayCountry() and getCountry() methods on the Locale instance returned by java.util.Locale.getDefault() might be helpful, but on my G1 they return the empty String when the phone's Settings-Locale text-Select locale setting is set to Spanish. Returns the US when set to

[android-developers] Re: hi, i need help with a simple counter and timer app for use while refereeing fencing

2009-09-12 Thread Lance Nanek
Neat idea. I fenced back in school, actually, and wouldn't mind helping. I'll send you an email. On Sep 11, 1:33 am, jonthebear king_john...@hotmail.com wrote: ive installed the sdk and have no idea what to do, so could you either give me step by stpp instructions or better yet make the

[android-developers] Re: KXML and Android

2009-09-12 Thread Lance Nanek
I see a generic XML Pull Parser in the public APIs. Is that good enough? For example, copying the XML Pull Parser example out of this reference page, putting it into an Activity subclass, and tweaking the exception handling and output method seems to work fine for me:

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-13 Thread Lance Nanek
I wrote Green Driving Gauge. It provides feedback for how fuel efficient your driving is in order to help you improve. Saving gas not only saves money for you personally, it creates less pollution, and uses less of the planet's resources. In GPS mode it tracks acceleration rate, breaking

[android-developers] Re: connect to Google maps API or app to trace routes ...

2009-09-17 Thread Lance Nanek
launch the Google maps app embedded in the system, with the route. If you just have a source and destination, you can get the Maps app to show its own route between them with something like this: Uri uri = Uri.parse(http://maps.google.com/maps?

[android-developers] Re: OpenGL 2D Game Framework

2009-09-18 Thread Lance Nanek
Wow, thank you. This saves me a lot of work. I've been writing a game with a friend and it is at the point where it has to be changed from using Canvas to OpenGL. Just started looking at your framework now - those example classes to see how it is used are very helpful. It will be interesting to

[android-developers] Re: Extending a view class

2009-09-24 Thread Lance Nanek
The view element name in your XML needs to be entirely lower case, not capitalized. Should be view, not View. Capitalized gives you an android.view.View instance, not your subclass. On an unrelated note, I'm actually surprised what you posted isn't crashing on the lack of android:layout_width

[android-developers] Re: Weird behavior of java.util.Preferences

2009-09-25 Thread Lance Nanek
I've never tried java.util.Preferences on Android, but android.content.SharedPreferences has been working great. The official example uses Boolean, but it supports Long as well: http://developer.android.com/intl/fr/guide/topics/data/data-storage.html#pref On Sep 25, 6:10 am, leden

[android-developers] Re: How to make an activity destory when user presses 'Back button?

2009-09-27 Thread Lance Nanek
If you are asking for testing purposes, there's a setting in the Dev Tools app on the emulator called Immediately destroy activities that might help: http://developer.android.com/intl/fr/guide/developing/debug-tasks.html That said, it seems to happen immediately on my 1.5 phone and emulator even

[android-developers] Re: Extending a view class

2009-09-27 Thread Lance Nanek
it into View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView android:layout_width=wrap_content android:layout_height=wrap_content/ Makes the app run but no view on screen :-( Jasper On Sep 24, 10:21 pm, Lance Nanek lna...@gmail.com wrote: Theviewelement

[android-developers] Re: How to sign up for ADC judge?

2009-09-28 Thread Lance Nanek
Search for it in the Market app or use the QR code from the blog post about it: http://android-developers.blogspot.com/2009/09/adc-2-judging-has-begun.html On Sep 28, 2:22 am, parchira tech pachira.t...@gmail.com wrote: where can I download the ADC judge application? Thanks! April

[android-developers] Re: Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

2009-09-28 Thread Lance Nanek
Is this problem the same as described here? http://code.google.com/p/android/issues/detail?id=2423 Might be worth posting that it is still present in 1.6 if so, all the comments look re 1.5. On Sep 28, 6:19 am, Carl Whalley carl.whal...@googlemail.com wrote: Cheers. I think you're right, but

[android-developers] Re: Question regarding GPS

2009-10-03 Thread Lance Nanek
When you first go above the start threshold then set a member variable to the time. When you go above the end threshold then subtract that from the current time to get the time elapsed. On Oct 3, 11:43 am, Sonic nitroussi...@googlemail.com wrote: Hi All, I'm wondering how I would go about the

[android-developers] Re: Question regarding GPS

2009-10-03 Thread Lance Nanek
. On Oct 3, 6:08 pm, Lance Nanek lna...@gmail.com wrote: When you first go above the start threshold then set a member variable to the time. When you go above the end threshold then subtract that from the current time to get the time elapsed. On Oct 3, 11:43 am, Sonic nitroussi

[android-developers] Re: Query about speech recognition

2009-10-04 Thread Lance Nanek
The docs mention a required extra that must be added to that intent called RecognizerIntent.EXTRA_LANGUAGE_MODEL: http://developer.android.com/intl/fr/reference/android/speech/RecognizerIntent.html#ACTION_RECOGNIZE_SPEECH So one thing to check is to make sure you are calling putExtra on the

[android-developers] Re: Ringer setup

2009-10-04 Thread Lance Nanek
On Oct 4, 4:17 pm, Bala california.b...@gmail.com wrote: Kids, while they are at school, wish to have the phone in silent mode. All other time, would like to have the ringer on. There's a nice free app for that called Locale. It supports controlling settings like that for time as well as

[android-developers] Re: Midi Controller App?

2009-10-04 Thread Lance Nanek
Neat idea! Looks tough to get working for now, however. Android doesn't support USB Host capabilities, so you can't just plug a USB to MIDI device into the phone and connect to MIDI stuff. I guess the program could send commands to a separate computer via wireless, and that separate computer

[android-developers] Re: How does Android compute yaw,pitch,roll???

2009-10-05 Thread Lance Nanek
SensorManager's getRotationMatrix() and getOrientation() methods are interesting to look at. You can see their implementation here:

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread Lance Nanek
The android.os.SystemClock class has some time methods that might be of interest. Actually String's reply might have meant that class too. On Oct 7, 6:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed

[android-developers] Re: ADC2 First Round Complete?

2009-10-07 Thread Lance Nanek
I recall an email sent during the first challenge where winners of the first round were being given a private SDK and chance to update. It was frustrating because I'd spent a long time working around bugs in the GTalk classes and would have loved to have an updated SDK to work with, even if I

[android-developers] Re: Anim folder not showing in eclipse

2009-10-07 Thread Lance Nanek
Did you create the folder using a tool other than Eclipse? If so then you need to right-click on the project in Eclipse and choose the refresh option before Eclipse will show the folder and update the R class. On Oct 7, 5:52 pm, fordy fcotteri...@gmail.com wrote: Hello, I created the folder

[android-developers] Re: environment set-up confusing, instructions unclear

2009-10-07 Thread Lance Nanek
What problems did you run into re the build path? I just recently published something on the market and can only recall even seeing the build path on an Android project once. A partner wanted to use Subversion instead of Git for source control, so I had to open the build path dialog in Eclipse

[android-developers] Re: Should I update game physics/mechanics in onDrawFrame() ?

2009-10-09 Thread Lance Nanek
There's a neat blog post about using an extra thread to get around some hardware blocking here: http://replicaisland.blogspot.com/2009/10/rendering-with-two-threads.html On Oct 9, 1:42 am, hzakimoto hzakim...@gmail.com wrote: Hi. Please excuse me for being new. I'll try my best to explain. I

[android-developers] Re: How to use a buildin drawable resource?

2009-10-10 Thread Lance Nanek
@android:drawable/ic_input_add On Oct 10, 6:50 am, Victor Lin borns...@gmail.com wrote: I need to use some buildin drawable I found inhttp://developer.android.com/reference/android/R.drawable.html I set drawable @drawable/ic_input_add to a button in my layout xml file. The add icon appears

[android-developers] Re: How to register for multiple sensors

2009-10-10 Thread Lance Nanek
Why not just call the new method multiple times, once for each sensor you want to listen to, keeping the other arguments the same? On Oct 10, 7:42 am, DD daviddiaofri...@gmail.com wrote: Hi, A simple question: How do I register for multiple sensors? I just switched from

[android-developers] Re: OpenGL on 1.6

2009-10-11 Thread Lance Nanek
Seems OK on mine, ~59fps for Use VBO Extension with 10 sprites screenshot: http://imgur.com/N1kNt.png I'm using a T-Mobile G1 running the official OTA 1.6 firmware. I did wipe it recently, so that might be a difference. Not much installed that could be running in the background. Have you tried

[android-developers] Re: environment set-up confusing, instructions unclear

2009-10-11 Thread Lance Nanek
will compile. On Oct 8, 1:14 am, Lance Nanek lna...@gmail.com wrote: What problems did you run into re the build path? I just recently published something on the market and can only recall even seeing the build path on an Android project once. A partner wanted to use Subversion instead of Git

[android-developers] Re: How to caculator the time?

2009-10-12 Thread Lance Nanek
http://developer.android.com/reference/android/os/SystemClock.html On Oct 12, 2:20 am, Sansiro wangjiangfeng0...@gmail.com wrote: long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000; but if I change the

[android-developers] Re: A new way to link to apps from the web twitter - drdmkt.com

2009-10-15 Thread Lance Nanek
Neat idea! What does it do for Android devices that don't have Google's Market app? That information probably isn't in the user agent header... On Oct 15, 2:28 pm, G ghack...@gmail.com wrote: So last week I wanted to send a friend of mine a link to an app. I quickly realized that while I could

[android-developers] Re: Logging in Android

2009-10-17 Thread Lance Nanek
Logging isn't compiled out automatically in my experience. I can add verbose and debug level logging statements like these: Log.v(LOG_TAG, Verbose test.); Log.d(LOG_TAG, Debug test.); and the output of both show up in adb logcat even if I have debugging off in the application's manifest and am

[android-developers] Re: Multiple Screen Support, 1.5 and 1.6

2009-10-19 Thread Lance Nanek
Wouldn't an update written using the 1.6 SDK still be available to users on 1.5 as long as you set the android:minSdkVersion attribute on the uses-sdk element in the manifest to 3? I know this works fine on the emulator with a 1.5 image, at least, since that is one of the tests I ran after

[android-developers] Re: Multiple Screen Support, 1.5 and 1.6

2009-10-19 Thread Lance Nanek
directory name) and the project won't compile. If I set the Project Built Target to Android 1.6, it builds just fine, but then I can't run the app in the 1.5 emulator. On Oct 19, 2:11 pm, Lance Nanek lna...@gmail.com wrote: Wouldn't an update written using the 1.6 SDK still be available

[android-developers] Re: Multiple Screen Support, 1.5 and 1.6

2009-10-20 Thread Lance Nanek
Built Target to Android 1.6, it builds just fine, but then I can't run the app in the 1.5 emulator. On Oct 19, 2:11 pm, Lance Nanek lna...@gmail.com wrote: Wouldn't an update written using the 1.6 SDK still be available to users on 1.5 as long as you set the android:minSdkVersion attribute

[android-developers] Re: Memory leak or feature

2009-10-20 Thread Lance Nanek
If you just need the activity cleaned up immediately for testing purposes then there is an app on the emulator called Dev Tools that might help. Run the app, choose the Development Settings option, then check the Immediately destroy activities option. On Oct 20, 4:23 pm, jotobjects

[android-developers] Re: Emulator is stalled when requestLocationUpdates API is used.

2009-10-21 Thread Lance Nanek
I ran into something like that back on Android 1.5. There's a lot about it here: http://code.google.com/p/android/issues/detail?id=2545 Haven't seen it happen on 1.6, though, if you are using that. On Oct 21, 10:43 am, fukanchik fukanc...@gmail.com wrote: Hi! When i use

[android-developers] Re: MapActivity cannot be resolved to a type

2009-10-21 Thread Lance Nanek
Make sure it is imported in your class: import com.google.android.maps.MapActivity; Another thing to check is that the manifest has this line: uses-library android:name=com.google.android.maps / Although I think that second thing is a force close error, not an Eclipse error. On Oct 21, 3:39 

[android-developers] Re: Need Help : getheight()/width() API returning wrong screensize on device.

2009-10-21 Thread Lance Nanek
Have you tried the android:targetSdkVersion attribute on the uses-sdk tag in AndroidManifest.xml? I was able to get the default display returned by the window service to switch from reporting 480x533 to 480x800 in a quick test just now by changing from this: uses-sdk android:minSdkVersion=3 /

[android-developers] Re: Need help with a keylistener

2009-10-21 Thread Lance Nanek
There are some focus related methods on the View class: requestFocus, setFocusable, setFocusableInTouchMode. In this case arg0 is the button that was clicked, though. It seems odd to listen for key presses when a button is focused. Are you sure you don't want to listen for key presses on some

[android-developers] Re: Open Map App from URL

2009-10-21 Thread Lance Nanek
I just tested following some links from the Browser on my T-Mobile G1. A maps URL link opened up a Complete action using dialog that offered to use either the Browser or Google Maps: a href=http://maps.google.com/maps? saddr=42.35892,-71.05781daddr=40.756054,-73.986951Test link/a A geo URI link

[android-developers] Re: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth

2009-10-23 Thread Lance Nanek
The docs do mention: If minTime is greater than 0, the LocationManager could potentially rest for minTime milliseconds between location updates to conserve power.

[android-developers] Re: Field Test mode on a Android mobile phone.

2009-10-23 Thread Lance Nanek
On my T-Mobile G1 you can see that information by downloading the Any Cut app, then using it to make a new shortcut to the activity called Testing. Inside the Testing activity there is an option called Phone Information which includes things like signal strength and location (LAC and CID). So

[android-developers] Re: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth

2009-10-24 Thread Lance Nanek
should be used to control the location provider? It certainly isn't in line with 1.5 behavior, or with anything I've seen on any device. I suppose I can't be sold on this being a feature, not a bug. On Oct 22, 11:40 pm, Lance Nanek lna...@gmail.com wrote:  Is this behavior hurting an app you

[android-developers] Re: Gracefully destroying Dialog box

2009-10-24 Thread Lance Nanek
You can close a dialog using its dismiss() method : http://developer.android.com/intl/fr/reference/android/app/Dialog.html#dismiss%28%29 You might want to consider having the activity manage restoring your dialog for you as well:

[android-developers] Re: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth

2009-10-24 Thread Lance Nanek
app's location provider, no? On Oct 24, 2:00 am, Lance Nanek lna...@gmail.com wrote: multiple listeners for a location provider with different minTime intervals - which value should be used Looks like the current implementation uses the shortest value for that situation:http

[android-developers] Re: Any word on a dev phone for motorola droid?

2009-10-25 Thread Lance Nanek
And what about dev tools, code upgrade from gen1, etc.? It sure would be nice if we could create Android 2.0 AVDs to test against in the emulator at least. I just took a quick look at the Motorola dev site. It had some impressive options for testing on their other phones: a loaner program, a

[android-developers] Re: How to prevent orientation change on keyboard flip until thread execution completes

2009-10-25 Thread Lance Nanek
There is a way to wait for another thread to finish: http://developer.android.com/intl/fr/reference/java/lang/Thread.html#join%28%29 If that thread took a while, however, the system might decide your app isn't responding. Passing the recreated activity a reference to the thread using this

[android-developers] Re: server error when trying to buy my own app

2009-10-25 Thread Lance Nanek
I published my first app recently and ran into the same problem when I tried purchasing it to test the process. Looks like it isn't allowed: Please note that it is against Google Checkout's policies to purchase your own application. You will receive an error message when you try to purchase your

[android-developers] Re: Need Help : Profiler/task manager in Android

2009-10-26 Thread Lance Nanek
I've used the top command inside adb shell to see what percent of the CPU time an app was using before. There's a more advanced tool called traceview you might want to look into as well: http://developer.android.com/intl/fr/guide/developing/tools/traceview.html I haven't needed to use that one

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

2009-10-28 Thread Lance Nanek
Sprint's web 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

[android-developers] Re: Can anybody share an unofficial download link of android SDK 2.0 eclair?

2009-10-28 Thread Lance Nanek
Do the direct downloads work for you? They are on a different subdomain: http://dl.google.com/android/android-sdk_r3-windows.zip http://dl.google.com/android/android-sdk_r3-mac.zip http://dl.google.com/android/android-sdk_r3-linux.tgz http://dl.google.com/android/ADT-0.9.4.zip I'd mirror them

[android-developers] Re: server error when trying to buy my own app

2009-10-28 Thread Lance Nanek
appreciated. On Sun, Oct 25, 2009 at 5:20 PM, Lance Nanek lna...@gmail.com wrote: I published my first app recently and ran into the same problem when I tried purchasing it to test the process. Looks like it isn't allowed: Please note that it is against Google Checkout's policies to purchase

[android-developers] Re: 3D Developers - Motorola Droid OpenGL ES Specs are in

2009-10-28 Thread Lance Nanek
Wow, interesting stuff. Thanks! The resolution you mention on your site sounds odd, though: Native 3D full screen size: 569x320 The Motorola site claims a different resolution: 3.7; WVGA (480 x 854 pixels); 16:9 widescreen

[android-developers] Re: Supporting Smaller Screen Sizes supports-screens

2009-10-30 Thread Lance Nanek
The build target can be set separately from the android:minSdkVersion attribute. Increasing the build target would allow you to use the supports-screens element in your manifest without that error. It can be set in Eclipse by right clicking on the project - choosing Properties - choosing Android

[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:

[android-developers] Re: Supporting both 1.5 and 1.6

2009-11-02 Thread Lance Nanek
There is an issue re the AVDs not showing up in the target list filed here: http://code.google.com/p/android/issues/detail?id=4303 I've been using the adb -e install command with an exported APK against an already running Android 1.5 emulator for the time being. You can start that from Eclipse by

[android-developers] Re: Problem running a compiled/packaged-with-v1.6 application on v1.5

2009-11-03 Thread Lance Nanek
Hmm, I have an app that similarly uses a PreferenceActivity and build target 1.6, but it runs fine on the 1.5 emulator. I wonder what we are doing different. Is your activity just the basic form like this? public class Preferences extends PreferenceActivity { @Override protected

[android-developers] Re: animated splash example ?

2009-11-03 Thread Lance Nanek
The first activity in Balance The Beer plays an intro video. Code here: http://code.google.com/p/skylight1/source/browse/trunk/SkylightGame/src/net/nycjava/skylight1/WelcomeActivity.java Not sure if that counts as a splash screen, though, since you can just pick a difficulty immediately. I guess

[android-developers] Re: Trouble Rendering Bitmaps Correctly in OpenGL

2009-11-04 Thread Lance Nanek
I don't need the invite, but I did run into something similar on an OpenGL project I'm working on. One of my textures faded out to transparent on one side. A row of pixels that were partially transparent there were getting rendered darker than they should. Fortunately for me I only ever draw that

[android-developers] Re: adc 2 Second Round

2009-11-04 Thread Lance Nanek
whatever they decide about 1.6/2.0 updates in middle of contest - you will soon see lawsuits The terms do mention higher versions of Android in the judging sections: http://code.google.com/android/adc/adc2_terms.html 8. FIRST ROUND JUDGING ... Any user of an Android-power handset running

[android-developers] Re: Chess Walk

2009-11-06 Thread Lance Nanek
Current comments visible from a US T-Mobile G1: http://i.imgur.com/FqAkP.png On Nov 5, 6:16 pm, fhucho fhu...@gmail.com wrote: My game Chess Walk (http://androidchess.appspot.com) was in top 50% bud didn't make it... BTW can someone please tell me what are the comments in Market, I don't have

[android-developers] Re: AsyncTask and ProgressDialog

2009-11-07 Thread Lance Nanek
private final class Task extends AsyncTaskVoid, Void, Void { ... dismissDialog(DIALOG_TASKING); A non-static inner class like this has a reference to the instance of the class that created it. So that dismissDialog call probably goes to the previous instance of your activity in this case. Not the

[android-developers] Re: downgrade donut to cupcake?

2009-11-08 Thread Lance Nanek
Right click on the project in Eclipse, select Properties, Select Android in the area on the left of the dialog that comes up, then check the built target you want. On Nov 8, 3:55 pm, Bob bshumsk...@yahoo.com wrote: Hi, Does anyone know how to change a build from donut back down to cupcake? I

[android-developers] Re: how to implement orbital menu in android

2009-11-08 Thread Lance Nanek
You mean like a circle of options around a center point? The ColorPickerDialog is sort of like that: http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/example/android/apis/graphics/ColorPickerDialog.html Although I guess it is a continuous gradient of options rather than

[android-developers] Re: Dev Tools Documentation?

2009-11-09 Thread Lance Nanek
Some of the options in it are described here: http://developer.android.com/intl/fr/guide/developing/debug-tasks.html#additionaldebugging On Nov 9, 5:57 pm, polyclefsoftware dja...@gmail.com wrote: Is there any documentation on the Dev Tools app that is incorporated into the AVDs? -- You

[android-developers] Re: AsyncTask and ProgressDialog

2009-11-10 Thread Lance Nanek
 pm, Lance Nanek lna...@gmail.com wrote: private final class Task extends AsyncTaskVoid, Void, Void { ... dismissDialog(DIALOG_TASKING); A non-static inner class like this has a reference to the instance of the class that created

[android-developers] Re: Problem while drawing texture on object

2009-11-11 Thread Lance Nanek
http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.html On Nov 11, 9:43 am, Nishant nish...@saltriver.com wrote: Hi, I am new in Android. I have drawn a object in android using Bitmap. I am using openGL ES. Can anyone tell me

[android-developers] Re: get device manufacturer or USB device id...

2009-11-11 Thread Lance Nanek
I see a manufacturer here at least: http://developer.android.com/intl/fr/reference/android/os/Build.html On Nov 11, 9:30 am, sdphil phil.pellouch...@gmail.com wrote: thanks, but i meant programmatically - from the phone. On Nov 10, 11:44 pm, ko5tik kpriblo...@yahoo.com wrote: If you connect

[android-developers] Re: Application design - using threads

2009-11-12 Thread Lance Nanek
There's a good blog post on this issue re games here: http://replicaisland.blogspot.com/2009/10/rendering-with-two-threads.html I started doing game updates in a separate thread, instead of on the render thread, in an OpenGL game I've been writing recently as well. It did result in some

[android-developers] Re: Problem with communicating Thread with progressBar

2009-11-14 Thread Lance Nanek
Is this what you are trying to do? final Handler mHandler = new Handler() { public void handleMessage(Message msg) { Log.i(TAG, Received message. Checking if location still null.); if(location!=null){ Log.i(TAG, Location not null.

[android-developers] Re: Code compiled with SDK 2.0 does not install (and therefore run) on 1.5 emulator

2009-11-15 Thread Lance Nanek
I just bumped up the build target on one of my apps to Android 2.0, exported a signed APK, and it installed and ran OK from the Browser app on the Android 1.5 emulator. So I guess the problem doesn't always occur. I wonder what we are doing different. What are you using for the uses-sdk element

[android-developers] Re: Viewing logs on native android

2009-11-17 Thread Lance Nanek
I've used the Logcat.apk here to view logcat on an actual device before: http://code.google.com/p/android-random/downloads/list This one sends emails: http://code.google.com/p/android-log-collector/ On Nov 16, 11:12 pm, swapnil kamble swap.kam...@gmail.com wrote: Hi Alok,             Thanks

[android-developers] Re: Pass Data Between Activities: HashMap of WeakReferences to Objects

2009-11-17 Thread Lance Nanek
The description makes it sound like you wouldn't pass the map at all. You just pass the key. The key is then used to retrieve the object from the map. So the map would have to be somewhere both activities could access. Like an application subclass or a static. On Nov 16, 9:21 pm, droid_does

[android-developers] Re: XMPP Services

2009-11-18 Thread Lance Nanek
It's been removed in the latest versions of the SDK and the issue to put it back declined: http://code.google.com/p/android/issues/detail?id=201 It was really great while it was in. I wrote a multiplayer game using it for the first Android Developer Challenge. A player could choose to challenge a

[android-developers] Re: android1.6 source code

2009-11-18 Thread Lance Nanek
http://android.git.kernel.org/ On Nov 17, 11:26 pm, shri shrireddy...@gmail.com wrote: can anyone please do share the android1.6(donut) kernel source code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Map Application works in 1.5 but not working in 2.0

2009-11-18 Thread Lance Nanek
Is the Maps application on the device you are trying to run this on? On Nov 16, 6:48 am, RANJAN BANIK ranjanfeelthema...@gmail.com wrote: Hi All, I have a code which works beautifully in the Android 1.5 platform. Now I have upgrade the platform to the Android 2.0 , but it is not working .

[android-developers] Re: Text on top of a ImageView

2009-11-18 Thread Lance Nanek
TextView supports a background drawable: TextView android:id=@+id/top_bar android:background=@drawable/header android:layout_width=fill_parent android:layout_height=fill_parent android:text=foo bar / A FrameLayout with an ImageView and TextView

[android-developers] Re: Map application and KMZ files....

2009-11-20 Thread Lance Nanek
I played around with opening Google Maps My Maps this way a while back. You can usually get the KML for a My Map by changing the output parameter in the URL to kml. There were two situations where Google Maps managed to open the KML without giving the contains errors error message. One was when

[android-developers] Re: android.R.drawable.ic_menu_home - can not use

2009-11-20 Thread Lance Nanek
The UI guidelines really need to be updated: http://developer.android.com/intl/zh-CN/guide/practices/ui_guidelines/index.html The Standard menu icons section in the Icon Design document makes no mention of the fact that using the icons the way it shows is not recommended. That document also says

[android-developers] Re: lock_layer timed out (is the CPU pegged?)

2009-11-22 Thread Lance Nanek
I see that message often when displaying a Toast or GestureOverlayView on top of a GLSurfaceView. In my case GestureOverlayView is being shown on top of the GLSurfaceView using a FrameLayout, though. Wrapping like the developer blog recommends doesn't seem to work with GLSurfaceView. Avoiding

[android-developers] Re: custom dialog crashing

2009-11-23 Thread Lance Nanek
http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog There was a thread recently about how that part of the documentation was wrong, actually. At the minimum you're going to have to replace this line: builder = new AlertDialog.Builder(mContext); With this: builder = new

[android-developers] Re: Why app still runs during a long-press on the power key (or end call key)?

2009-11-24 Thread Lance Nanek
I recently ran into the same problem while writing a game except that I noticed it for long pressing the home key. For that it looks like onPause doesn't get called, but onWindowFocusChanged with an argument of false does. If the user presses back from the dialog then you get onWindowFocusChanged

[android-developers] Re: PNG optimization on packaging process

2009-11-24 Thread Lance Nanek
Except that phone displays do not display more than 16 bits of colors. The displays are natively 565. Are you sure that applies to the Samsung Galaxy, the phone that the first post in this thread mentioned things are looking bad on? The first spec sheet I could find for it says 16M Color AMOLED

[android-developers] Re: What is the use of task switcher ?

2009-11-27 Thread Lance Nanek
I've heard it called the recent activities window as well. That naming makes more sense to me than task switcher because it shows recent activities even if they have been force stopped and runs them fine when selected. On Nov 27, 8:34 am, pink 444 pnk...@gmail.com wrote: Hi all,         Why is

[android-developers] Re: KeyEvent and GLSurfaceView

2009-11-27 Thread Lance Nanek
Are you sure that the view you are expecting to receive key events has focus? On Nov 27, 6:30 pm, Mike internet...@hotmail.com wrote: Hi, as soon as there's a GLSurfaceView in use, no other views receive any KeyEvents. MotionEvents however, are still working as expected. Is there a way to

[android-developers] Re: Launch a directions on Google Maps Apps

2009-11-28 Thread Lance Nanek
There's a geo URI you can use with an ACTION_VIEW intent to show a location in the Google Maps app: http://developer.android.com/intl/zh-CN/guide/appendix/g-app-intents.html The user can then get directions to the location by using the menu in the Google Maps app and choosing to select a

[android-developers] Re: app for blocking apps

2009-11-29 Thread Lance Nanek
I can think of some legitimate reasons. What if the user is a parent, for example, and wants to let a very little kid use the phone. They might like to be able to setup an application white list. Without a parental code entered the phone would only run a pre- approved set of apps that the parent

[android-developers] Re: determine if app has been launced

2009-11-29 Thread Lance Nanek
How about just using a preference? Something like this: SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences (getBaseContext()); boolean firstTime = prefs.getBoolean(firstTime, true); if ( firstTime ) { SharedPreferences.Editor editor = prefs.edit();

[android-developers] Re: toast

2009-12-01 Thread Lance Nanek
Maybe you could just use a single Toast, but update the message with setText. A call to show each time would be needed as well to show it again if it has disappeared or to extend the time if it is still up and just getting its message changed. On Dec 1, 10:28 am, Greg Donald gdon...@gmail.com

[android-developers] Re: Definition of SensorEvent rotation angles

2010-01-16 Thread Lance Nanek
Do you have a phone? Just log the values and look at them as you move the phone. There are also several apps on the market that will show you the raw sensor data. On Jan 16, 3:16 pm, Peter Eastman peter.east...@gmail.com wrote: I'm trying to figure out exactly how to interpret the rotation

[android-developers] Re: how to make two apks install at the same place

2010-01-17 Thread Lance Nanek
The one time I needed shareUserId for something this bug scared me out of using it: http://code.google.com/p/android/issues/detail?id=2773 Android 1.5 is still 31% of the market, unfortunately: http://developer.android.com/resources/dashboard/platform-versions.html On Jan 17, 8:27 am,

[android-developers] Re: Layout issues for multiple screen sizes and API versions

2010-01-19 Thread Lance Nanek
You might be running into the Android 2.0.0 bug where it only matches the -v6 specifier: http://groups.google.com/group/android-developers/msg/315ce9b9dde1161a On Jan 19, 8:13 am, snowy_tracks marclidd...@gmail.com wrote: I am currently trying to make my app compliant with all screen sizes /

[android-developers] Re: Audio Output Analysis

2010-01-19 Thread Lance Nanek
I've seen the Tricorder app showing wave forms before: http://code.google.com/p/moonblink/wiki/Tricorder On Jan 17, 4:50 pm, Dan Bjorge brosm...@gmail.com wrote: I was playing around with some of the live wallpapers and thought it'd be neat to try to make something like the frequency/waveform

[android-developers] Re: cocos2d for Android updated: Please help test on real phone.

2010-01-20 Thread Lance Nanek
I tested out the debug build from the site on my G1 phone running the OTA Android 1.6 firmware: http://cocos2d-android.googlecode.com/files/Cocos2D-debug.apk AtlasSpriteTest, AtlasTest, ClickAndMoveTest, CocosNodeTest, MenuTest, MotionStreakTest, SceneTest, SpritesTest showed white squares where

[android-developers] Re: Android 2.1 bug: uses res/layout-v3 instead of res/layout

2010-01-21 Thread Lance Nanek
The documentation states that version qualifiers are for that version and higher, not just that version: http://developer.android.com/guide/practices/screens_support.html#qualifiers Resources that are for use only on a specific API Level or higher. For example, if your application is designed

[android-developers] Re: OpenGL ES

2010-01-22 Thread Lance Nanek
They aren't Android specific, but the Sun and Khronos sites have documentation on that method: http://java.sun.com/javame/reference/apis/jsr239/javax/microedition/khronos/opengles/GL10.html#glDrawElements%28int,%20int,%20int,%20java.nio.Buffer%29

[android-developers] Re: OpenGL ES

2010-01-22 Thread Lance Nanek
Donald gdon...@gmail.com wrote: On Fri, Jan 22, 2010 at 1:25 PM, Lance Nanek lna...@gmail.com wrote: http://khronos.org/opengles/documentation/opengles1_0/html/glDrawElem... Ok, so the Kronos API docs have the fourth parameter glDrawElements() as a void pointer, and then the Android SDK has

Re: Fwd: [android-developers] androidmarket search

2010-01-25 Thread Lance Nanek
http://developer.android.com/intl/de/guide/publishing/publishing.html#marketintent On Jan 25, 6:23 pm, David Toledo dtole...@gmail.com wrote: Hi I need is redirect to androidmarket and find some my application. I found one android application similar. thanks David -- Forwarded

[android-developers] Re: android milestone text size small

2010-01-27 Thread Lance Nanek
Isn't there some sort of density calculation bug that results in small text sizes on the Droid? Maybe you're running into the same thing on the Milestone? On Jan 27, 6:40 am, extrapedestrian extra.pedestr...@gmail.com wrote: I defined it in pt. It should be bound to size of inch. On Jan 27,

  1   2   3   4   5   >