[android-developers] onDestroy/AlarmManager interaction on install?

2008-11-07 Thread songs
Hi, I just tracked down a really hairy issue that made a lot of my users think my app did nothing and made me really confused because I couldn't recreate it on my phone. In my onDestroy, an AlarmManager sets up a repeating alarm if a given preference is set to true (defaults to true). When the

[android-developers] Re: Android Database connectivity program

2008-11-07 Thread Ram Nataraaj Jayaraman
Hello guys, Thanks On Wed, Nov 5, 2008 at 9:51 PM, Anders Rundgren [EMAIL PROTECTED]wrote: Hello Ram, You could try to import the MSFT JDBC driver. It is probably very big. But I would not. The best is to create a web-service that talks to SQL server and returns the stuff you

[android-developers] Re: Thread Question

2008-11-07 Thread Guillaume Perrot
onCreate: show the progress dialog in the main thread. spawn your thread when the thread completes, call dismiss() on the progress dialog from the Thread using an Handler: Handler mHandler = new Handler(); in the main thread mHandler.post(new Runnable() { @Override public void run() {

[android-developers] Re: Android on device GPS locate not working - code included

2008-11-07 Thread Guillaume Perrot
Our application also use GPS and it works as well as the maps application, and we tested it on the G1. Did you call requestUpdates on the LocationManager ? 2008/11/7 Amir [EMAIL PROTECTED] OK Android enthusiasts...here's where the GPS story has led us. We figured out after hard-coding a

[android-developers] Re: adb shell permissions on real G1 device

2008-11-07 Thread Bradley Kite
Thanks for the info hackbod. I feel my G1 is perhaps not as open as I was led to believe when purchasing. Has any one managed to put their own image (built from source) onto the G1 yet? Regards -- Brad. On 06/11/2008, hackbod [EMAIL PROTECTED] wrote: Unfortunately there is no way to get to

[android-developers] chatterbean

2008-11-07 Thread alberto
Hello! I´m trying to use chatterbean or program D, with android. I just want to be able to send a text message to the chatterbean and get response from it. Thank you for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Improved support for camera on Android emulator.

2008-11-07 Thread blindfold
Yes, I already noticed from the newly released source that the camera preview image on the G1 cannot be resized, unlike the camera preview image on the emulator. That explains why my app shows a garbled preview on the G1. Plenty of other camera issues still be tracked down. On Nov 6, 8:04 pm,

[android-developers] OpenGL

2008-11-07 Thread petunio
Hi people! I am having problems drawing things with opengl... I have two functions, one that sets up all the environment (initOGL), and other that actually draws something using that environment (onDraw) in order to make it easy to understand, at the moment I am just trying to paint the screen

[android-developers] Re: Updating From HTTP

2008-11-07 Thread alan
runt he http request in a thread then send a message back to the ui to update it On Nov 7, 1:51 pm, Bobbie [EMAIL PROTECTED] wrote: Hey all, thanks for all your help so far!  I have the following function running on a timer every 20 seconds or so.  However, every time it runs, my user

[android-developers] Re: Updating From HTTP

2008-11-07 Thread David Given
Bobbie wrote: Hey all, thanks for all your help so far! I have the following function running on a timer every 20 seconds or so. However, every time it runs, my user interface for this program (an EditText box and a submit Button) freezes until the HttpPost is finished. Is there a way for

[android-developers] Re: Updating From HTTP

2008-11-07 Thread zl25drexel
see my post at http://bend-ing.blogspot.com/2008/11/properly-handle-progress-dialog-in.html On Nov 7, 9:30 am, David Given [EMAIL PROTECTED] wrote: Bobbie wrote: Hey all, thanks for all your help so far!  I have the following function running on a timer every 20 seconds or so.  However,

[android-developers] Re: How can I set selection highlight in a ListActivity

2008-11-07 Thread zl25drexel
you can, but it's much more work you need to implement a custom listadapter, then when you inflat the view, keep a local reference to them, then implement an onclicklistener on the item selection to perform any custom highlighting. the following code show how to implement that custom listadapter

[android-developers] Going back to Activity Stack on App Restart

2008-11-07 Thread GHack
I'm working with the Notepadv3 tutorial. The way it works now, if the user hits the home button from the edit screen, then relaunches the app via the icon from the home screen (or app drawer), the app starts up at the very begining (i.e. Main Activity) instead of loading the last used activity,

[android-developers] newb question about layout xml and view class

2008-11-07 Thread Brian
just changing subject to be more accurate On Nov 7, 9:37 am, Brian [EMAIL PROTECTED] wrote: late reply, but wanted to say thanks, this fixed it. On to my next problem: I'm trying to write my own View class to handle various events, using LunarLander as an example. Here's my simple layout

[android-developers] Re: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-07 Thread Jona
Dave thanks so much for your reply! I really appreciate it! I'm trying to understand why it wouldn't work... I handled my connection properly to one of the radios on ShoutCast and stored around 1MB of data to be later tested if the correct information was sent... It was successful on playing

[android-developers] Re: Use Bundle to Pass Bitmap

2008-11-07 Thread Jake Maui
Josh, I tried that before ...it copies the bitmap by value into the bundle so it brings the app to it's knees and completely fails for larger bitmaps. -jm On Fri, Nov 7, 2008 at 9:14 AM, joshbeck [EMAIL PROTECTED] wrote: --Solved-- The answer seems to be. 'No.' It's inefficient, and

[android-developers] Re: adb shell permissions on real G1 device

2008-11-07 Thread Michael
It seems that too many people have believed the media hype, or were under the incorrect impression that T-Mobile's G1 would be completely open and free. *Android* (made by Google and the community) is open source and free for use, but the T-Mobile G1 is somewhat locked down, which is what

[android-developers] Re: Updating From HTTP

2008-11-07 Thread Bobbie
@ zl25drexel Here is my code, I tried your tutorial, it doesn't work...? I'm guessing I have something wrong. Where should I call this? Which function do I call? Sorry, I'm a beginner at this. // Need handler for callbacks to the UI thread final Handler mHandler = new Handler();

[android-developers] copy / paste programatically

2008-11-07 Thread androide22
Is there any way of copying and/or pasting programatically (instead of the long click method)? --~--~-~--~~~---~--~~ 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: Updating From HTTP

2008-11-07 Thread zl25drexel
post your error messages On Nov 7, 11:16 am, Bobbie [EMAIL PROTECTED] wrote: @ zl25drexel Here is my code, I tried your tutorial, it doesn't work...?  I'm guessing I have something wrong.  Where should I call this?  Which function do I call?  Sorry, I'm a beginner at this.         // Need

[android-developers] Re: Android 1.0 Porting problem

2008-11-07 Thread Mark Murphy
You will have better luck with porting questions if you ask them on an appropriate list, such as one of the Open source mailing lists found on: http://source.android.com/discuss This list is for application development, not porting. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: Request for developers HTC G1 (T-Mobile) review

2008-11-07 Thread JP
I can't necessarily fill you in on the categories, but here's my take (including the occasional reference to other devel platform I've worked with) The good - I found Dalvik is completely adhering to original Java SE. Pretty sensational in my view. - SDK capabilities far surpass anyhting else

[android-developers] Correct usage of getNetworkInfo(int networkType)

2008-11-07 Thread Breno
Hey all, reading google documentation about NetworkInfo class, i found the method public NetworkInfo getNetworkInfo(int networkType) ; This will be very usefull for me, to get info about the network. but there is no documentation about this method. I'm trying to get the network info,

[android-developers] Download counts frozen

2008-11-07 Thread dbradby
Hi, Is anyone else seeing their download counts frozen for their apps in the Market place? I am 100% certain I have downloads occurring due to updated behaviour on our servers. But our downloads counts have been stuck for the past 4 days now. Regards, Daniel

[android-developers] Re: adb shell permissions on real G1 device

2008-11-07 Thread Bradley Kite
Indeed. I appreciate your feedback. A search elsewhere has helped me debug my issues further. Regards -- Brad. On 07/11/2008, Michael [EMAIL PROTECTED] wrote: It seems that too many people have believed the media hype, or were under the incorrect impression that T-Mobile's G1 would be

[android-developers] create multi page form

2008-11-07 Thread marchinram
Hello, I have to create a multi page form (with a field on each page and a next and previous button on each one) for work, and I'm not sure about the best way to implement this (should I use multiple activites or do it all in one and dynamically change textviews, etc.), I'm pretty lost on this

[android-developers] Re: The method onOptionsItemSelected(MenuItem) of type AndroidViews must override or implement a supertype method

2008-11-07 Thread Rashad Ladson
add the following import: import android.view.MenuItem; you should also change the parameter on your switch to item.getItemId() On Oct 27, 6:14 pm, disappearedng [EMAIL PROTECTED] wrote: Hi everyone, I am encountering the following error from eclipse: The method

[android-developers] Icons - Recommended size, format, etc?

2008-11-07 Thread g1bb
Hello, Is there a recommended size or format for an application's icon? I've been using .PNG at 190x141 px, but I can never seem to get them as 'cool' looking as the other applications I've seen. Thanks in advance. --~--~-~--~~~---~--~~ You received this message

[android-developers] Call an application from another application in android

2008-11-07 Thread Cattivik
Can I call an application from another application in android? --~--~-~--~~~---~--~~ 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

[android-developers] Re: Customizing builtin applications

2008-11-07 Thread Richard Levasseur
On Nov 5, 4:19 am, Karra [EMAIL PROTECTED] wrote: Tried without luck at android-beginners... Is there any documentation on the built-in applications and how they can be extended? I have a couple of ideas for features that I would love to have as part the default address book application,

[android-developers] Saving a file to a system directory?

2008-11-07 Thread mm
Hey folks, I'm trying to save a file to a system folder. I know the default directory for saving files to the device is in your local data folder, as so: String dir = getFilesDir().toString(); // dir is /data/data/app/files I'm wondering if it's possible to save files to another directory,

[android-developers] DOWNLOADING MUSIC FROM WINDOWS VISTA MEDIA P;AYER FOR G1 PHONE

2008-11-07 Thread [EMAIL PROTECTED]
I WAS UNABLE TO DOWNLOAD MUSIC FROM MY WINOWS MEDIA PLAYER USING WINDOWS. FIRST, I WAS ALWAYS ASKED FOR DRIVERS, WHICH THERE ARE'NT ANY! THREE HOURS W/T-MOBILE SUPPORT DID NOT HELP EITHER, SO I JUST PLAYED WITH THE PHONE BY MYSELF. HERE IS HOW TO DO IT! FIRST PLUG PHONE INTO THE COMPUTER AND WHEN

[android-developers] Re: What is google's official position on JNI ?

2008-11-07 Thread pasquale.anatriello
I would like to know this too. We are willing to port our project in android too but we have all our HUGE library written in C. Is there a hope to have a native support soon enough? Is it official that this support will be relased? We managed to run some code on the Emulator but as it is now it's

[android-developers] How shall I need design my application when the device be rotated?

2008-11-07 Thread [EMAIL PROTECTED]
Hi , I mean, If the device be rotated, android shall auto-adjust my application to fit screen, but how can I get the notification in my program?? especially It's a base web-browser's application, and whether can I cancel this auto-adjustment ?

[android-developers] Re: Capabilities of Location API

2008-11-07 Thread ahmdalitaha
i have the same problem as yours and i was hoping if you did find a way around to get the Towers IDs around your location to share that information On Oct 20, 2:28 pm, NickDG [EMAIL PROTECTED] wrote: On Oct 16, 10:29 am, NickDG [EMAIL PROTECTED] wrote: We're investigating the possibility

[android-developers] Re: android market publish button does not work

2008-11-07 Thread sori
Yes, it worked with Mac Safari. Thanks! On Nov 6, 6:53 pm, samlu [EMAIL PROTECTED] wrote: I had the same problem on IE. Please use Google's web browser or Firefox. It should be ok. Sam On Nov 7, 10:03 am, sori [EMAIL PROTECTED] wrote: I finally got my application ready for

[android-developers] Re: Intercept Call

2008-11-07 Thread Bruno Z. Pereira
Any idea why ?? Or can I change the Android, so at this way I do not need to develop a program ? Thanks - Original Message - From: CJ [EMAIL PROTECTED] To: Android Developers android-developers@googlegroups.com Sent: Thursday, November 06, 2008 9:28 PM Subject: [android-developers]

[android-developers] Need help in Android - WSDL web service.

2008-11-07 Thread Avinash Patil
Hi I have done following steps and need further help. 1. Created new WSDL for web service. - Need to pass a parameter and get response back. 2. Added WSDL file in Android project. 3. Right clicked on WSDL file in project and Clicked for Generate Client - Thiss has generated auto all the

[android-developers] How to use oprofile on android?

2008-11-07 Thread alei
I find there is a profiling tool called oprofile ported on newest android edition. but I don't know how to use it. I can't find the --init option in its usage help. When I type opcontrol start, it shows couldn't set start profiling, is the oprofile driver installed? It is really different

[android-developers] Re: OpenGL

2008-11-07 Thread petunio
Hi mate yes, I did implement the surfaceHolder.callback thing. I am actually getting the message when the surface is created, but even though I keep getting the blank screen and yes, I based my example on the GLSurfaceView... thanks anyway On Nov 7, 6:09 pm, DSmith [EMAIL PROTECTED] wrote:

[android-developers] Re: Icons - Recommended size, format, etc?

2008-11-07 Thread hackbod
But please make it 48x48. Otherwise it's just wasting time and space, and if a lot of apps start doing larger sizes it will have a noticeable impact. The app icon size is 48x48. On Nov 7, 9:44 am, Romain Guy [EMAIL PROTECTED] wrote: Hi, Home currently displays icons at 48x48, so your

[android-developers] Re: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-07 Thread Dave
The reason you can't play the file is the media player doesn't support raw AAC files. You could wrap them in a M4A format and that should work, but you won't be able to get a seamless playback stream. I know there are use cases we can't adequately support and I will be pushing hard to fill in

[android-developers] Re: Intercept Call

2008-11-07 Thread hackbod
http://code.google.com/android/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL On Nov 6, 5:57 am, BrunoZP.com [EMAIL PROTECTED] wrote: Hi, How can I intercept a user call, change it number and dial again ? Any example code ?? For example: The user dial 32546048 and press

[android-developers] Re: Intercept Call

2008-11-07 Thread j
It is possible. Voxofon app on the G1 does that. On Nov 7, 11:24 am, hackbod [EMAIL PROTECTED] wrote: http://code.google.com/android/reference/android/content/Intent.html#... On Nov 6, 5:57 am, BrunoZP.com [EMAIL PROTECTED] wrote: Hi, How can I intercept a user call, change it number

[android-developers] Re: adb shell permissions on real G1 device

2008-11-07 Thread Live Crunch
This OpenMoko looks cool tho! Love Nix distro. On Nov 7, 1:45 pm, Fish Kungfu [EMAIL PROTECTED] wrote: You may want to look at the OpenMoko FreeRunner handset:http://openmoko.com/ ~~Fish~~ On Fri, Nov 7, 2008 at 2:11 PM, brs [EMAIL PROTECTED] wrote: On Nov 7, 11:02 am, Michael [EMAIL

[android-developers] Camera preview on G1 only works in landscape ?

2008-11-07 Thread Jason Proctor
this problem appears to be unit dependent. on my G1, the camera orientation is always wrong. on the G1 belonging to a colleage, it's correct. this would suggest that if i set rotation, it would fix some phones and break others. are the G1 hardware camera parameters documented anywhere apart

[android-developers] Re: Does /proc/meminfo show the correct memory info?

2008-11-07 Thread Brendon Drew
So how do I get the total amount of RAM on the system? On Fri, Nov 7, 2008 at 2:19 PM, hackbod [EMAIL PROTECTED] wrote: This is the amount of RAM available to the kernel and higher-level system as regular memory. The rest is used for various other things like the radio image, frame buffers

[android-developers] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor
is there a simple call to programmatically tell the difference? i was hoping that the System properties would have something, but they come back generic. tx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: modal dialogs

2008-11-07 Thread Michael
Eh, blocking on user input is rarely the way to do things. Your activity has to be able to respond to other events - such as being killed or put to sleep when the phone rings. A mobile phone is an event driven environment - so Google built Android that way. If I read your post right, I'd be

[android-developers] modal dialogs

2008-11-07 Thread Jason Proctor
sigh. please read the message fully? thanks. it wasn't about blocking as a UI concept. Eh, blocking on user input is rarely the way to do things. Your activity has to be able to respond to other events - such as being killed or put to sleep when the phone rings. A mobile phone is an event

[android-developers] Head-scratcher: NullPointerException from startActivity(ACTION_CALL)

2008-11-07 Thread dreamerBoy
Hi, I'm attempting to initiate an outgoing call from inside a Service. In onStart(), I create an ACTION_CALL Intent, then attempt to start an Activity myIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + phoneNumber)); initiateCall.startActivityForResult(myIntent,

[android-developers] Re: modal dialogs

2008-11-07 Thread Michael
Fine. Yes, the only way to get a response from a button is via the onClick() handler. So yes, you use that to start up a thread and put up a progress dialog, then close it when the thread has done its long transaction. Or not have the progress dialog - then the rest of the UI is still active

[android-developers] modal dialogs

2008-11-07 Thread Jason Proctor
thanks for the response. ok so that's the accepted way to do it. great. Fine. Yes, the only way to get a response from a button is via the onClick() handler. So yes, you use that to start up a thread and put up a progress dialog, then close it when the thread has done its long transaction.

[android-developers] Re: telling the difference between G1 and emulator

2008-11-07 Thread Eric
but they come back generic. Yes, that's exactly how you tell. The real phone isn't generic. But why do you need to tell? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Does /proc/meminfo show the correct memory info?

2008-11-07 Thread Eric
So how do I get the total amount of RAM on the system? From the published specifications for the phone. What's the point of knowing how much memory *isn't* available for use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Adding an external Jar error

2008-11-07 Thread [EMAIL PROTECTED]
Hey guys, I'm adding an external jar to my project through eclipse. However, I am encountering an error: java.lang.IllegalArgumentException: already added: Lcom/package/class; [2008-11-07 14:34:59 - HelloAndroid]at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java: 123)

[android-developers] Re: Adding an external Jar error

2008-11-07 Thread [EMAIL PROTECTED]
Hey guys, alittle more info, I do not have the jar loaded twice or have multiples of the same classes. I am using the HelloAndroid sample to try to load a jar so the only classes I have is the HelloAndroid and the R class. Even after i unload the jar and re-load it, I still get the error.

[android-developers] Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread DulcetTone
I have a custom Parcelable which I have gotten working internally in the project in which it is compiled. That project is then exported as a JAR in Eclipse, and this JAR is in turn referenced by another project which wants to pass the custom Parcelable as a parameter in AIDL calls. However,

[android-developers] Re: Does /proc/meminfo show the correct memory info?

2008-11-07 Thread Brendon Drew
Well, it's not available to the user directly, but it is used by the system as a whole. I'm simply curious how to determine total physical RAM. On Fri, Nov 7, 2008 at 6:04 PM, Eric [EMAIL PROTECTED] wrote: So how do I get the total amount of RAM on the system? From the published

[android-developers] Re: telling the difference between G1 and emulator

2008-11-07 Thread blindfold
Ugly, but the default getPreviewSize() is different for G1 versus emulator... On Nov 8, 12:08 am, Jason Proctor [EMAIL PROTECTED] wrote: i need to tell because both cameras report their preview format as number 16, and one of them is lying. what is the way to tell?

[android-developers] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor
barf. there has to be a nicer way. didn't someone way back discover that the unique ID of the hardware is null for the emulator? my memory is hazy... Ugly, but the default getPreviewSize() is different for G1 versus emulator... On Nov 8, 12:08 am, Jason Proctor [EMAIL PROTECTED] wrote: i

[android-developers] Does AlarmManager wake up to do scheduled work when phone is asleep?

2008-11-07 Thread j
According to API doc for AlarmManager.set : Alarm intents are delivered with a data extra of type int called Intent.EXTRA_ALARM_COUNT that indicates how many past alarm events have been accumulated into this intent broadcast. Recurring alarms that have gone undelivered because the phone was

[android-developers] Re: Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread hackbod
You'll need to make the source .aidl files available for them to import. On Nov 7, 3:21 pm, DulcetTone [EMAIL PROTECTED] wrote: I have a custom Parcelable which I have gotten working internally in the project in which it is compiled. That project is then exported as a JAR in Eclipse, and

[android-developers] Re: Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread DulcetTone
Hi, hackbod. Can you be more explicit in this? tone On Nov 7, 11:53 pm, hackbod [EMAIL PROTECTED] wrote: You'll need to make the source .aidl files available for them to import. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Arabic support

2008-11-07 Thread Dark pp
Arabic will change your phone style, right to left. On 11月8日, 上午6时49分, meetmas.com [EMAIL PROTECTED] wrote: Please help me i have 2 probleams 1. i don't know how can i connect my mobile to pc 2.can anyone help me please to install arabic language on my Android G1 (( t-mobile)) i realy

[android-developers] Bugs in android ListIterator class

2008-11-07 Thread Dark pp
Hi, I found there are two bugs in ListIterator, which are the next() and nextIndex() functions. The two functions can't give the right result. But the prev() function is OK. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Android SDK 0.7

2008-11-07 Thread Suhas Kaundinya
Hello, Can anyone of you provide me with the 0.7 version of Android SDK Eclipse plugin ? Best, Suhas --~--~-~--~~~---~--~~ 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] polite request for better error messages

2008-11-07 Thread Jason Proctor
hey, give me a break - for once i'm celebrating a *great* error message :-) Just to amplify a bit on Dianne's point, Android is a heterogeneous system that includes subsystems that were originally open source, third party proprietary IP (much of which is now open source), Google propietrary

[android-developers] trying to test applications

2008-11-07 Thread [EMAIL PROTECTED]
Hi, I have got some time to kill and would be happy to help some one to test in G1 emulator. Thanks and Regards, Madhuri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread hackbod
Well, you need to have the source .aidl file in the sources of the app that is using it, just like you have it in the library. These don't work like Java files where you can link to the generated jar or whatever without the source; the source is needed for everyone that is compiling against it.