[android-developers] About how to modify the frameworks/base/Android.mk

2009-06-09 Thread vincent Kor
Hi, All: I modified the codes in Frameworks/base directory, but the codes depend on another my own library named A, so How should I modify the mk file to meet this so that I can compile the code successfully? Thanks a lot for your help in advance!! Vincent

[android-developers] Re: TDD on Android (or should I say Dalvik)

2009-06-09 Thread Brett Chabot
Responses inline On Sat, Jun 6, 2009 at 6:11 AM, RedMac Gredm...@gmail.com wrote: JUnit -- android.jar has its own junit.jar and my assumption is you're supposed to use it, not the latest version from junit.org There's a collection of helper test classes in android.test package as well. For

[android-developers] Re: Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-06-09 Thread ebin jose
Hi Manoj, I was trying to playback youtube videos (streaming playback) on android. Good to know that you already have it playing. I had few queries regarding youtube playback. Please see if you can help. Thanks in advance. Do you playback the rtsp, (3gp container) content or the flash content

[android-developers] Re: Camera Preview 90 degree rotated

2009-06-09 Thread Bishwa
Forcing the activity to run in landscape is not what I want. I want the camera to run on portrait mode and landscape mode depending upon orientation sensor. Is it the only way left out? On Jun 8, 9:19 pm, Mark Murphy mmur...@commonsware.com wrote: Bishwanath Singh wrote: I am really bugged up

[android-developers] Re: Android SDK Content Loader gets stuck....

2009-06-09 Thread az9702
You may want to try turning off Projects - Build Automatically This workaround works in my IDE every time. On Jun 8, 10:02 am, Jakob Sachse jako...@gmail.com wrote: I am having the same trouble, is there any workaround that tourned out to be working? On 14 Mai, 22:14, az9...@gmail.com

[android-developers] sdcard mount detection

2009-06-09 Thread jonathan
is there a way to be notified from my application of sdcard mount? any services etc? 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] Prob using efficient list adapter

2009-06-09 Thread Guru
I have a list view with images and some text items. The images are actually URLs and are locally cached if the url is already displayed once.The problem is the listview seems to change the image itself while rendering.I am very sure that the caching mechanism of the url works fine. Is there

[android-developers] Re: GLSurfaceView remove problem

2009-06-09 Thread jusun...@gmail.com
I reply a question myself.. It is impossible to remove a GLSurfaceView addviewed in LinearLayout. the answer reside in GLSurfaceView reference. a below document is captured in GLSurfaceView reference. Activity Life-cycle A GLSurfaceView must be notified when the activity is paused and resumed.

[android-developers] Re: Prob using efficient list adapter

2009-06-09 Thread Romain Guy
You're not using the tag correctly. You have to set the tag when convertView == null and get the tag when convertView != null. On Mon, Jun 8, 2009 at 11:15 PM, Guru gurudut...@gmail.com wrote: I have a list view with images and some text items. The images are actually URLs and are locally

[android-developers] Re: How to change default google.com page in android browser

2009-06-09 Thread Alex Jurgensen
Hi, All, Do you think that there can be a simple patch inplimented that will check for a file on the memory card. If none exists, it will use the official Google page, or else the page listed in another file on disk? Regards, Alex, On 6-Jun-09, at 5:29 AM, Urs Grob wrote: When you're

[android-developers] Re: unable to launch Emulator.

2009-06-09 Thread David Turner
Well, you need to create an AVD, look at the content of -help-disk-images and -help-avd and you'll understand what that means. Or you could even read the documentation on developer.android.com about this: http://developer.android.com/guide/developing/tools/avd.html On Mon, Jun 8, 2009 at 1:13

[android-developers] Looking for Android Developers

2009-06-09 Thread Nithin
Hi, Developers who are looking for android jobs in India can send their profile to cont...@androidindians.com We will get back to you immediately. Thanks Nithin www.androidindians.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Looking for Android Developers

2009-06-09 Thread Saurav Mukherjee
i am very much interested. only thing i want to know before i send u my profile, is whether it is an online job? On Tue, Jun 9, 2009 at 12:29 PM, Nithin nithin.war...@gmail.com wrote: Hi, Developers who are looking for android jobs in India can send their profile to

[android-developers] how to read radio stream for web

2009-06-09 Thread yancaida...@gmail.com
I am trying to develop a radio read internet stream from radio station web. You know we can play music from internet like this private MediaPlayer mMediaPlayer; Uri uri = Uri.parse(http://www.jjyyjy.com/wj/he.mp3;); mMediaPlayer = MediaPlayer.create(this, uri); mMediaPlayer.start();

[android-developers] How to go back to my apllication's home screen

2009-06-09 Thread Bullo#88
My application is composed by several activities, I would like to give the user the option to go back to the home screen of my application by pressing a button on the screen. At the same time I can't call the finish() function on activities beetween the home screen and the currently visible

[android-developers] Obtaining Frequency from Mic on Android

2009-06-09 Thread Tez
Hi, I wish to obtain the frequency of an input signal from the mic. Can anyone send me some pointers on how this may be accomplished. Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-06-09 Thread ubikdroid
Tell me more! I'm not sure what you mean by very simple more efficient time using this. I'm trying to create a widget that gets the number of unread items from the Google Reader API. The auth token from android doesn't seem to be valid for this. I'm having to resort to asking the user to input

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-06-09 Thread Sujay Krishna Suresh
as i already said u need to explore the getcredentials method... in the params of that method u need to specfy wat u need n for which service... if this is done then u can get the sid with ease... On Tue, Jun 9, 2009 at 1:40 PM, ubikdroid markst3v...@googlemail.comwrote: Tell me more! I'm not

[android-developers] SQL Query

2009-06-09 Thread M.Manjunatha
Hi Folks, I have been given a requirement. Say you have five contacts in your phone book. Person1, Person2, Person3, Person4, Person5. You have received messages from the contacts.. Now that, I have to sort in the following manner. Initally, i have to sort in such a way that, I display one

[android-developers] Re: Changing one TextView with onSensorChanged without Redrawing the Entire Layout

2009-06-09 Thread skink
On 8 Cze, 23:17, TrojanSnake12 boppn...@gmail.com wrote: I tried changing to fill_parent, and this did not help. so, try to set breakpoint in your code where you call setText(s) and step into till you reach checkForRelayout() and check why it calls requestLayout()

[android-developers] Re: VerifyError with Maps Add-ons

2009-06-09 Thread broc
Hi, As Zach Hobbs wrote on month ago, a solution is to launch either the widget or the configure activity (and all sub-activities containing the MapActivity) in an another process than the application by specifying in the AndroidManifest.xml file the option android:process as following: For

[android-developers] Re: OpenGL garbage collection (with direct ByteBuffers)

2009-06-09 Thread Genc
Hi Guys, This issue is what I'm suffering a lot. A simple basic question: Is that change 9029 shipped with Android SDK 1.5? Should I install SDK 1.5 to benefit changes? On May 20, 11:51 pm, fadden fad...@android.com wrote: On May 20, 3:32 pm, Urs Grob grob@gmail.com wrote: I think

[android-developers] QualcommCameraHardware messages

2009-06-09 Thread loril...@gmail.com
Hi All, I am getting a force close message with following QualcommCameraHardware log messages when using takePicture method on G1 camera: ERROR/MemoryHeapBase: mmap(fd=18, size=8388608) failed (Invalid argument) ERROR/QualcommCameraHardware: pmem pool /dev/pmem_camera error: could not create

[android-developers] Re: configChanges and onConfigurationChanged()

2009-06-09 Thread Chronos
hmmm... no relevant input ? not even some comments ? On 28 Mai, 10:20, Chronos g358279012044...@gmail.com wrote: Hello there ;) I am still confused about configuration changes. I considered this a bug in earlier API versions and didn't care much about it. But since this behaviour is still

[android-developers] How to use remapCoordinateSystem of SensorManager

2009-06-09 Thread Augustin.CL
Dear all, I want to transform the coordinate in Camera style. But I really can't understand how to use remapCoordinateSystem. Is there any example to help me understand how to use? Best regards, Augustin Lu. --~--~-~--~~~---~--~~ You received this

[android-developers] Activity is unable to start service in same package

2009-06-09 Thread nick.titatingmembr...@googlemail.com
Hi, I have a service class my.app.MyService that I'm attempting to launch from my.app.MyActivity as follows: Intent svc = new Intent( this, MyService.class ); The manifest contains the entries: uses-permission android:name=android.permission.ACCESS_BACKGROUND_SERVICE / service android:name

[android-developers] How to connect content provider in ProviderTestCase2 class?

2009-06-09 Thread aby
Hi, I try to build a class which extends ProviderTestCase2 to test my content provider. But I don't know how to connect my content provider and also don't find any document about this case. In CalendarProviderTest, they create a Mock Provider and use mResolver = getMockContentResolver();

[android-developers] Handling an Intent without an Activity UI

2009-06-09 Thread mafro
Hey list, I've searched for a few hours for a solution to this, so hopefully this isn't a repost :s I'm setting a shortcut on the Home screen which raises an Intent to my application - the problem is that I don't want to show my app, just run a little code and display a Toast notification.

[android-developers] sharedpreferences widget

2009-06-09 Thread RS
I have a few questions on the default home screen's widget support: 1) if there are multiple instances of the same widget how to differentiate each (so that the content could be different) eg. world clock: same clock widget for different countries on diffferent screen. 2) is there any

[android-developers] Re: Android .apks running in a Browser

2009-06-09 Thread guruk
Hi, just like to keep that Post again so hopefully someone from Android Team will make a Statement to that Issue! Are there any Plans to realize an option to play .apks in a browser? Greets chris --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-06-09 Thread ubikdroid
Woot! I got it working. I tried before with the service set to reader but I got a SecurityException thrown even though I had the permission in the manifest. However, if you leave the service null in the getCredentials call and add the permission

[android-developers] Re: How to get current time?

2009-06-09 Thread Mark Murphy
Jeff Sharkey wrote: So just a heads up that Android uses NITZ events provided by a carrier to properly set the system date and time. Android also falls-back to network NTP automatically when no cellular network is available. http://en.wikipedia.org/wiki/NITZ The time provided by

[android-developers] Re: sdcard mount detection

2009-06-09 Thread Mark Murphy
jonathan wrote: is there a way to be notified from my application of sdcard mount? any services etc? There are a series of broadcast Intents for media card actions (e.g., ACTION_MEDIA_MOUNTED). Look for them in the Intent documentation:

[android-developers] please help me:

2009-06-09 Thread manoj
Hi friends, I tried to play youtube url from ADP 1.5 device's browser. It doesn't play. Shows warning as the video you have requested is not available. But when played in pc i got a video playing in my pc. The url is http://www.youtube.com/watch?v=yiALvl1rILE Can any one please suggest me

[android-developers] Gravity of ImageView inside TableLayout

2009-06-09 Thread Reno
I have a class which extends from TableLayout: public class EntryCallLog extends TableLayout { I defined two columns and I have two TableRows. Therefore there are two Views inside a Row. The first should be gravity left the second should be gravity right. So I can not use

[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-06-09 Thread Todd Sjolander
I'm using a G1 with the old non-Android (read: Wifi only) data plan. The only downside that I've seen is the loss of connectivity outside of your Wifi networks. But if you're developing from inside a wireless network, it makes no difference. You can still buy apps on the market, and use all

[android-developers] Re: please help me:

2009-06-09 Thread Mark Murphy
manoj wrote: Hi, I written a small app also to play youtube video as shown below startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(youtubeUrl))); I got an alert saying sorry, this video cannot be played. can any one please help me. Thanks, Manoj. On Jun 9, 5:11 pm, manoj

[android-developers] Re: please help me:

2009-06-09 Thread manoj
Hi Murphy, I used youtube application on device. It didn't work. for some urls youtube application is working. see my second mail, I written the code like you mentioned activating the youtube app. But it didn't work. can you please try on your device with the link which I provide in first mail.

[android-developers] Re: How to go back to my apllication's home screen

2009-06-09 Thread Bullo#88
Any suggestions please? On 9 Jun., 09:24, Bullo#88 bulonce...@gmail.com wrote: My application is composed by several activities, I would like to give the user the option to go back to the home screen of my application by pressing a button on the screen. At the same time I can't call the

[android-developers] Icons on Context Menu

2009-06-09 Thread Sujay Krishna Suresh
Hi all, I want to add icons to the menuitems in my context menu. i tried it as MenuItem item = menu.add(text); item.setIcon(image); where image is a Drawable. but it doesnt work... can anyone temme y how to display icons for Context menu items?? -- Regards, Sujay Dave Barry

[android-developers] Re: How to go back to my apllication's home screen

2009-06-09 Thread Bullo#88
I found the solution: the FLAG_ACTIVITY_CLEAR_TOP flag has to be added to the intent E.g. Intent intent = new Intent(this, your home screen class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); On 9

[android-developers] How to fake a touch event

2009-06-09 Thread Bhargavi
Hi, I want to open the virtual keypad without touching a text view . Can someone help me how to open a soft keyboard and associate it with a textview already displayed on the screen? Regards, Bhargavi --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: please help me:

2009-06-09 Thread manoj
Hi, I think some of you guys already might have experienced this kind of behaviour. and also some might solve this. can any one please help me. Thanks, Manoj. On Jun 9, 5:32 pm, manoj manojkumar.m...@gmail.com wrote: Hi Murphy, I used youtube application on device. It didn't work. for

[android-developers] GMail content provider

2009-06-09 Thread Mika
Hi, My question is quite simple, how to read the data from the GMail content provider. I can get the notify of changes in the GMail database by registering a ContentObserver for content://gmail-ls uri. Then I've been trying to read the following tables content://gmail-ls/messages and

[android-developers] Re: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-09 Thread Streets Of Boston
Romain, There has been a bug in 1.0 and 1.1. that the onPrepareDialog is not properly called after a configuration change happened. Has this been fixed? http://groups.google.com/group/android-developers/browse_frm/thread/a32351c7ecfb24e9/b9970b4dd3700220 On Jun 8, 11:28 pm, Romain Guy

[android-developers] Application QuickLaunch

2009-06-09 Thread Vignesh
Hi, Can someone help me on the way to assign shortcuts to an application? I am aware of doing this on the phone via menus (Settings-Application settings-QuickLaunch), but couldn't find a way to do this programatically. Any help will be appreciated. Thank you, Vignesh

[android-developers] How to play youtube urls in android?

2009-06-09 Thread Dilli
hi, I have written a small example which plays youtube videos. the code is: startActivity(youtubeIntent = new Intent(Intent.ACTION_VIEW,Uri.parse (youtubeUrl))); but I got the alert as sorry, this video is not available. Any help? how to play youtube videos in android device by programming?

[android-developers] Re: SW (2D API) vs. HW (openGL) rendering

2009-06-09 Thread Noonien Soong
Is OpenGl rendering faster than the normal Java Canvas drawing? I'm working on a lil 2d game and am considering trying to use OpenGL if its faster.. I won't use any 3d functionality except the depth buffer maybe. So if all I do is draw bitmaps, animated sprites and such things without any

[android-developers] Re: In-place upgrade of app, outside of Market

2009-06-09 Thread Streets Of Boston
As far as i know, upgrading just happens when you click a link (e-mail attachment) that is a valid and signed APK file. As long as your new APK has the same signature as your current APK, all should go automatically and smoothly. What i have not 'tested', is the case that you downloaded the app

[android-developers] Re: SW (2D API) vs. HW (openGL) rendering

2009-06-09 Thread Streets Of Boston
Take a look at the Goolge IO sessions for gaming: http://code.google.com/events/io/sessions.html http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html On Jun 9, 10:38 am, Noonien Soong nooniensoong2...@gmail.com wrote: Is OpenGl rendering faster than the normal Java Canvas

[android-developers] Re: How to play youtube urls in android?

2009-06-09 Thread Marco Nelissen
Videos sent to mobile devices use a different format than what's used for the desktop, so chances are you ran in to a video that hasn't been transcoded for the phone yet. On Tue, Jun 9, 2009 at 7:24 AM, Dilli dilliraomca...@gmail.com wrote: hi, I have written a small example which plays

[android-developers] Rotating the device / emulator?

2009-06-09 Thread Mark Wyszomierski
Hi, I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). Is there a way to test rotating the device in the emulator? I just want to see what happens, I don't have a device to test this. Will the

[android-developers] Re: Rotating the device / emulator?

2009-06-09 Thread Mark Murphy
I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). By default, the current activity is destroyed and recreated on an orientation change. Is there a way to test rotating the device in the

[android-developers] How to launch internal activity from PreferenceScreen

2009-06-09 Thread Tushar
Hi, Using PreferenceScreen in xml format we can launch activity by specifying Intent as shown in sample application intent android:action=android.intent.action.VIEW android:data=http://www.android.com; / This will launch Browser activity which is registered to handle http

[android-developers] Re: Rotating the device / emulator?

2009-06-09 Thread Mark
Thank you. On Jun 9, 11:08 am, Mark Murphy mmur...@commonsware.com wrote: I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). By default, the current activity is destroyed and recreated on an

[android-developers] Handling widget interface events

2009-06-09 Thread Teo
Hi, i'm having a difficult time understanding the right way to do this. To put it simply, i want to generate a reaction within my own widget (e.g. i press a button so a TextView changes) - i don't want to launch a separate activity. Here's some code from my onReceive function (from the widget):

[android-developers] Re: How to get current time?

2009-06-09 Thread Mike Lanin
Thanks! I'll just use currentTimeMillis(). On 9 июн, 16:01, Mark Murphy mmur...@commonsware.com wrote: Jeff Sharkey wrote: So just a heads up that Android uses NITZ events provided by a carrier to properly set the system date and time.  Android also falls-back to network NTP automatically

[android-developers] Cant catch onItemClick when use checkBox in ListView

2009-06-09 Thread Mike Lanin
Hi, guys! I want to use ListView each Item of wich has checkBox. I want checkBox check and uncheck when I click it and some processes runing when I click on item, but not on the checkBox. I'm trying to use this layout as item: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/

[android-developers] Re: Handling widget interface events

2009-06-09 Thread Mark Murphy
i'm having a difficult time understanding the right way to do this. To put it simply, i want to generate a reaction within my own widget (e.g. i press a button so a TextView changes) - i don't want to launch a separate activity. Here's some code from my onReceive function (from the widget):

[android-developers] Re: Cant catch onItemClick when use checkBox in ListView

2009-06-09 Thread Marco Nelissen
Search this group, this was discussed here very recently. On Tue, Jun 9, 2009 at 8:50 AM, Mike Lanin mike.la...@gmail.com wrote: Hi, guys! I want to use ListView each Item of wich has checkBox. I want checkBox check and uncheck when I click it and some processes runing when I click on item,

[android-developers] Unlocking screen after wake lock

2009-06-09 Thread mobilek...@googlemail.com
Hi, My app requires alerts at certain events, which are very likely to happen while the screen is off. It captures those event perfectly, however, I'm struggling to hide the T-Mobile screen lock after I've acquired wake lock from the PowerManager. I've tried broadcasting

[android-developers] Re: How do I limit the scope of a map using the maps api

2009-06-09 Thread Daniel
I realize this hasn't been up here hardly a full day, but I see that it's already buried beneath several pages. If somebody has a similar issue or an answer it's unlikely this post will be spotted as it is, so this is a bump. On Jun 8, 4:50 pm, Daniel doubleagen...@gmail.com wrote: Let's say

[android-developers] background image for item on ListView

2009-06-09 Thread daniel.benedykt
Hi I have a listview, and inside I have items. Each item is a LinearLayout with many items inside. (texts , images, etc) So the LinearLayout has a background image so its looks very nice. Also I set another image with list.setSelector() so the selection is highlighted, and I set

[android-developers] Gallery in Preference Screen

2009-06-09 Thread Yash Patel
Hi, I want to have gallery widget in preference screen. I have created custom preference with Gallery. I am able to display images but there is couple of problem with it. 1. I want to scale the image which is selected in gallery. i used setOnItemselected listener and it does scale the image but

[android-developers] Re: Handling widget interface events

2009-06-09 Thread Teo
Thanks for the example, it cleared some things up. But i'm still trying to find the right PendingIntent to attach, with no success, nothing happens. I made a service after the same model, and my line now looks like this: rv.setOnClickPendingIntent(R.id.widgetLeft, PendingIntent

[android-developers] Unstable DTMF sending from G1

2009-06-09 Thread Daniel
I currently have a Nokia 6680 (quite old now) and I store various DTMF dialing sequences with some of my phone numbers in the phone book. e.g. dial the number, send a pin, send #, wait 0.5 seconds, send another number I have tried two Android apps for doing the same thing, they are: - Calling

[android-developers] How to tell when application exits?

2009-06-09 Thread Max Salley
I have an app that has some network connections that are causing issues when the app closes/reopens. I would like to close the connections when the app exits, and reinstantiate them when it opens again. onCreate/onDestroy don't work for this purpose because they get called for the foreground

[android-developers] Re: Handling widget interface events

2009-06-09 Thread Mark Murphy
Thanks for the example, it cleared some things up. But i'm still trying to find the right PendingIntent to attach, with no success, nothing happens. I made a service after the same model, and my line now looks like this: rv.setOnClickPendingIntent(R.id.widgetLeft, PendingIntent

[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Mark Murphy
I have an app that has some network connections that are causing issues when the app closes/reopens. I would like to close the connections when the app exits, and reinstantiate them when it opens again. onCreate/onDestroy don't work for this purpose because they get called for the

[android-developers] Re: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-09 Thread pawpaw17
Guys, That's what I'm seeing. onPrepareDialog is not called, only onCreateDialog. This is v 1.5. 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] Re: Handling widget interface events

2009-06-09 Thread Teo
Hmm same behavior, for some reason it seems that the service doesn't even start... On Tue, Jun 9, 2009 at 8:01 PM, Mark Murphy mmur...@commonsware.com wrote: Thanks for the example, it cleared some things up. But i'm still trying to find the right PendingIntent to attach, with no success,

[android-developers] A Layout question

2009-06-09 Thread kevin
I have a possible simple layout questions. My activity content view contains a title bar, a webview and a status bar. I put these three views into a linearlayout and each has height as WRAP_CONTENT. The problem is, when first displays, webview doesn't take much space because the page is not

[android-developers] Create ProgressBar programmatically

2009-06-09 Thread kevin
My application need to create a small progressBar programmatically. ProgressBar doesn't have method to set the style (I want a small progressBar). The constructor can take a AttributeSet, however it is a interface and require me implements a set of functions. Is there a way to set the progressBar

[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Max Salley
On Jun 9, 1:02 pm, Mark Murphy mmur...@commonsware.com wrote: I have an app that has some network connections that are causing issues when the app closes/reopens.  I would like to close the connections when the app exits, and reinstantiate them when it opens again.  onCreate/onDestroy

[android-developers] Re: A Layout question

2009-06-09 Thread Max Salley
You could use layout_weight. Give the elements that don't change size a weight of 0 and the one that does a weight of 1. The two 0-weight views will be their correct height and the 1-weight view will expand to fill the rest of the space On Jun 9, 1:21 pm, kevin kevin_x...@yahoo.com wrote: I

[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Streets Of Boston
you could still use onCreate/onDestroy. Just override the onRetainNonConfigurationInstance method. This method will be called before onDestroy. If this method is called, remember this fact by setting a boolean to true. Then in the onDestroy, if this boolean is true, a configuration change will

[android-developers] Re: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-09 Thread Streets Of Boston
Ugh.. this is still the case :( In my app, i program around it. I have some code that determines if onPrepareDialog should have been called and, if not, that calls onPrepareDialog explicitly. On Jun 9, 1:04 pm, pawpaw17 georgefraz...@yahoo.com wrote: Guys, That's what I'm seeing.

[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Max Salley
Thanks, I'll give that a shot On Jun 9, 1:45 pm, Streets Of Boston flyingdutc...@gmail.com wrote: you could still use onCreate/onDestroy. Just override the onRetainNonConfigurationInstance method. This method will be called before onDestroy. If this method is called, remember this fact by

[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Mark Murphy
Yes, but when the app closes I want to close the connections (which requires sending data - not just releasing the objects) regardless of what's holding them. How can I tell when the app exits? I think you are attributing too much power to the notion of apps exiting. Example #1: somebody is

[android-developers] Sounds + Accelerometer = Weird accelerometer values: BUG?

2009-06-09 Thread TjerkW
I am developing a game. In which the user controls movement using the accelerometer. Sounds effects can also be enabled. However when laying the phone flat down and playing the game without the accelerometer gives nice 0,0,0 values. However when play WITH SOUNDS on, i get a buch of weird

[android-developers] How to collect unhandled exception message in the app?

2009-06-09 Thread android app
Unhandled exception will force close the app. How to collect these exception in the app? It is better if the user has a choice send these messages back to the developer to improve the app. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to assign/get the ip address of an emulator ?

2009-06-09 Thread sandy.andr...@gmail.com
I am running a server application on emulator. I want to connect to the server through a client application running on other system. How to get the IP of the emulator and what should be the http-proxy ip of the emulator. Any help is appreciable.

[android-developers] Re: How to collect unhandled exception message in the app?

2009-06-09 Thread Mark Murphy
Unhandled exception will force close the app. How to collect these exception in the app? Use Thread.setDefaultUncaughtExceptionHandler() to register some code that will get control on unhandled exceptions. At that point, though, it is up to you to figure out what you want to do with the data

[android-developers] Re: How to collect unhandled exception message in the app?

2009-06-09 Thread android app
So this function will provide the code a chance to handle the exception (e.g., POST it to a Web service) before the user click Force Close and kill the app? On Jun 9, 2:41 pm, Mark Murphy mmur...@commonsware.com wrote: Unhandled exception will force close the app. How to collect these

[android-developers] Re: In-place upgrade of app, outside of Market

2009-06-09 Thread Michael Elsdörfer
Or the other way around: Downloaded it first from an 3rd party source and then trying to buy it from the Android Market... this is a more likely scenario. I'm not sure if the user needs to uninstall first. No, Market seems to only care about package names. The app may appear as not

[android-developers] Re: How to collect unhandled exception message in the app?

2009-06-09 Thread skink
On 9 Cze, 16:49, android app xiaog...@gmail.com wrote: So this function will provide the code a chance to handle the exception (e.g., POST it to a Web service) before the user click Force Close and kill the app? user wont see any dialog as you handled your exception.

[android-developers] Re: Sounds + Accelerometer = Weird accelerometer values: BUG?

2009-06-09 Thread TjerkW
I am trying to solve this problem myself... I created a class that damps the values over a window of previous sensor values. However with a damping wndow of 6 frames i still have the weird values. Here some logcat output of the damped values: The phone was just laying on my table.. not

[android-developers] Re: How to collect unhandled exception message in the app?

2009-06-09 Thread android app
Thanks a lot. On Jun 9, 3:02 pm, skink psk...@gmail.com wrote: On 9 Cze, 16:49, android app xiaog...@gmail.com wrote: So this function will provide the code a chance to handle the exception (e.g., POST it to a Web service) before the user click Force Close and kill the app? user wont

[android-developers] Re: Sounds + Accelerometer = Weird accelerometer values: BUG?

2009-06-09 Thread TjerkW
Here is my damper. HOWEVER: IT DOES NOT SOLVE THIS PROBLEM. I am going to set the damping windows size to 3 or 4, however i will disable sound because gameplay is practically impossible with sounds on. So Google Developers: What is causing this problem, and how is it solved.??? Here my

[android-developers] Re: OpenGL garbage collection (with direct ByteBuffers)

2009-06-09 Thread hav...@gmail.com
I am having the same issue. I went and updated to 1.5_r2 , but I still seem to have the GC issue. This is a critical hit to the game I'm coding, because it's reaction based. a GC hit, will basically cause game over for the player :( I have no idea how I would even begin to apply this patch to

[android-developers] Developer devices available in other regions?

2009-06-09 Thread Colin Charles
Hi! There is definitely interest in getting Android developer devices here in Malaysia, but shipping to this country is apparently not available. About 400km south though, from the capital of Malaysia, I can reach Singapore, and shipping there, is apparently not a problem. When do you reckon

[android-developers] How to Add New Building in Android Google Map

2009-06-09 Thread Ani
Hi, I wanted add a new building in android Google map. Does any one know how to Edit Android Google map and add new building.(i don't want to use push pin). Please help any one to solve this. Thank you , Anish --~--~-~--~~~---~--~~ You received this

[android-developers] fullscreen doesn't hide Status Bar in Android SDK 1.5 R2

2009-06-09 Thread Shyam
I used the following theme to set fullscreen mode in Android 1.1, but the same code doesn't hide the Status Bar in 1.5. The Activity goes fullscreen, but the Status Bar always stays on top of it. The theme used: style name=Theme.ViewItem parent=android:style/ Theme.NoTitleBar.Fullscreen

[android-developers] Non OTA upgrades

2009-06-09 Thread Sudhir
How would people using phones like the Samsung I7500 without a standard carrier like T-Mobile (say Airtel in India) get the next Android upgrades? Don't think OTA is an option there... If there isn't a manual upgrade option, that entire market is severely crippled. Sudhir

[android-developers] Calibration with the environment may improve the readings ?!

2009-06-09 Thread flegare
Hi there android super humans, Reading the sensor API (http://developer.android.com/reference/android/ hardware/SensorManager.html) The section about ACCURACY speak about calibration: calibration with the environment is needed How do it calibrate?! Is this software calibration? Phone specific

[android-developers] Android on OMAP

2009-06-09 Thread GML
Hi All, I would like to port Android on OMAP. We have our own decoder and player developed fro omap (linux ).. We used TI's DVSDK codec engine framework to develop our decoder. Can we modify the player in android or develop our own player so that it will use our codec. Can some one tell me..

[android-developers] Re: OpenGL garbage collection (with direct ByteBuffers)

2009-06-09 Thread hav...@gmail.com
I'm also suffering from this. Seem to suffer from it, even though I've updated to 1.5_r2 . Anyone know a work around? I need this fixed to complete the game I'm porting. :) On Jun 9, 11:05 am, Genc gmt...@gmail.com wrote: Hi Guys, This issue is what I'm suffering a lot. A simple basic

[android-developers] USB HID Emulation

2009-06-09 Thread hbs
Hi, I was wondering if there was a way to emulate a USB HID (Human Interface Device) with an android phone like the Magic. This could allow for example the use of the Magic as a barcode scanner. Mathias. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Reminder

2009-06-09 Thread Agung Priyono
Dear Mr, Please follow up. Thank you -- Best regards, Agung Priyono Private User Home Page : http://www.friendster.com/agungpriyono E-mail : gunjay_...@yahoo.com Home Private : http://Campoes.multiply.com --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Maps with custom tiles

2009-06-09 Thread Kiran Mudiam
AFAIK, The Android MapView only supports satellite and map view tiles. I did come across a thread on this forum earlier some one asking for custom tiles, and also noted that a feature request was going to put in. Not sure if that ever happened ?!! But I came across this project on google code

  1   2   >