[android-developers] Re: Samsung Moment (SPH-M900) - Application crashing

2009-11-21 Thread Pieter
My understanding is that almost all calls are made on the main dispatch thread, including the onCreate call. The only exceptions are calls from specialized threads like the OpenGL drawing thread. This means calls are always sequential, and in particular onCreate and onProgressChanged will be

[android-developers] How to run the email app background

2009-11-21 Thread manoj
Hi all, I have some requirement as given below: I have to write an email app that should send a mail to the particular mail id. I have written a code like this: Intent i = new Intent(Intent.ACTION_SEND); i.putExtras(Intent.EXTRA_MAIL,abc.gmail.com); i.putExtras(Intent.EXTRA_SUBJECT,subject);

Re: [android-developers] How to run the email app background

2009-11-21 Thread Rachel Blackman
On Nov 21, 2009, at 12:12 AM, manoj wrote: It is working fine, I mean sending the mail to the reciever. But it is launching another Email app (android default app I guess). But I dont want it to be launched, I want directly send the mail to reciepent. Then you will need to write ESMTP

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-21 Thread ko5tik
Extracting just a single tile out of JPEG file is a really big PITA There are about 27 different variants of JPEG (though not all really matter and are widely used) Usually you've got 8x8 tiles in row-order, and because of entropy encoding you can not navigate just to random tile - you'll

[android-developers] button.setheight not working ?

2009-11-21 Thread Jags
Hi all, Can anybody please confirm, that button.setHeight and button.setWidth is not changing the height and width of buttons at the run time ? I am using android 1.5 regards Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Nithin
Hi, I am using android 1.6. In that , its working fine, but setHeight() and setWidth() are pretty straight forward, nothing complex in that. You are creating button in code right ?. Thanks On Nov 21, 3:00 pm, Jags jag...@gmail.com wrote: Hi all, Can anybody please confirm, that

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Jags
thanks for replying, i was wondering that too, i wrote a plain code, there it works. is my linearlayout restricting it ? i have my layout defined as below LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=wrap_content

[android-developers] Re: Saving service killing without startForeground

2009-11-21 Thread Ash
Thanks for responding!! Well!! I am working with emulator currently and the behaviour is same. I have confirmed from the logs that the service is not crashing. All I could observe from the logs that System is killing the service(and hence the process) as its not a system service. your service is

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Jags
I guess as my linearlayout's width is wrap_content, it will expand when my button expands. width might not expand, because of the weight = 1 factor On Nov 21, 4:38 pm, Jags jag...@gmail.com wrote: thanks for replying, i was wondering that too, i wrote a plain code, there it works. is my

[android-developers] Re: How to fetch Mobile Number

2009-11-21 Thread Nithin
Hi Nishant, Just try getLine1Number() in the TelephonyManager. It may help Thanks Nithin On Nov 21, 11:57 am, Nishant nish...@saltriver.com wrote: Hi, Is it possible to fetch Owner Mobile number. I have got the operator name but not able to fetch the Mobile Number. Which intent will be

Re: [android-developers] Re: Saving service killing without startForeground

2009-11-21 Thread Mark Murphy
Ash wrote: your service is not using a background thread Well my service is a multi-threaded application but not sure what you mean here. Your service presumably implements some combination of onCreate(), onStart(), onBind(), and onDestroy(). It might also implement some other callbacks,

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Jags
ok ! setting the buttons' height and width to wrap-content, worked !, but it screwed something else in the application. Is there a possibility that i have 5 linearlayouts in main.xml, and i start displaying with 3 linearlayouts and ad one by one after some time ? what woyld that code be ?

[android-developers] possible to remove a linearlayout ?

2009-11-21 Thread Jags
i have put 6 linearlayouts in the main.xml file vertically arranged in the main linearlayout. initially i want 1, 2, 3 and 6 ll to be displayed, then after sometime, 1, 2, 3, 4, 6 and then after some time 1, 2, 3, 4, 5, 6 is it possible ? regards Jagat -- You received this message because you

Re: [android-developers] possible to remove a linearlayout ?

2009-11-21 Thread Mark Murphy
Jags wrote: i have put 6 linearlayouts in the main.xml file vertically arranged in the main linearlayout. initially i want 1, 2, 3 and 6 ll to be displayed, then after sometime, 1, 2, 3, 4, 6 and then after some time 1, 2, 3, 4, 5, 6 is it possible ? Set the visibility of the ones you do

[android-developers] Re: methods not working (force closing), is there something wrong?

2009-11-21 Thread Breezy
Hmmm, I used that but I can't decipher what it's saying 11-21 06:04:48.388: WARN/dalvikvm(776): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 11-21 06:04:48.396: ERROR/AndroidRuntime(776): Uncaught handler: thread main exiting due to uncaught exception 11-21

[android-developers] restore factory settings

2009-11-21 Thread Nemat
Hi friends I have to restore factory settings of phone programmatically..Is that possible?if yes,How can we do tht? Thanks in Advance Nemat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: methods not working (force closing), is there something wrong?

2009-11-21 Thread Mark Murphy
Breezy wrote: Hmmm, I used that but I can't decipher what it's saying snip 11-21 06:04:48.487: ERROR/AndroidRuntime(776): Caused by: java.lang.NullPointerException 11-21 06:04:48.487: ERROR/AndroidRuntime(776): at com.example.comparibook.CompariBook.onCreate(CompariBook.java:65)

[android-developers] Re: possible to remove a linearlayout ?

2009-11-21 Thread Jags
I was doing that but i was doing INVISIBLE and VISIBLE, so invisible layout was still occupying layout space. So I used GONE and VISIBLE. this worked. I am a moron :) it should have struck to my mind anyways, hope it helps somebody else thanks and regards Jagat On Nov 21, 6:07 pm, Mark Murphy

[android-developers] Got exception when using MediaRecorder.AudioSource.VOICE_CALL

2009-11-21 Thread manoj
Hi All, I am trying to write a recorder app (android 1.6). I have used the following code: recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

[android-developers] Custom Dialog example may be incorrect

2009-11-21 Thread Kevin S.
I spent quite a long time trying to get my first custom dialog box to work, following the example in the Android Dev Guide. Specifically: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog --- Context mContext = getApplicationContext(); Dialog dialog = new

[android-developers] Random phone restarts, anyone else experience this?

2009-11-21 Thread Mark Wyszomierski
Hi, Not sure if anyone else is experiencing this. My G1 will randomly restart itself up to two times a day. Found this in DDMS as the possible cause. I'm wondering if my app has anything to do with it, but I doubt it since my app is usually closed or will have been idle for hours when this

[android-developers] Re: Reusing intents with notification/pending intents

2009-11-21 Thread jsdf
Does anyone have suggestions on this? I appreciate the help! On Nov 19, 5:38 pm, jsdf jasons...@gmail.com wrote: Hi all, A quick question (for those who know the answer, anyway): In my app, user starts a service and shows a notification from activity A. The notification creates a

[android-developers] Re: How to fetch Mobile Number

2009-11-21 Thread Nishant
Hi, I have tried it in emulator. It should return 5554 But it gives me another number. Thanks Regards, Nishant Shah -- 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

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread skink
On Nov 21, 12:28 pm, Jags jag...@gmail.com wrote: linearlayout.setvisibility=invisible is not the solution because ll is invisible but it is aquiring screen space. i want that screen space free, so that the buttons are arranged perfectly so use GONE instead ov INVISIBLE -- You received

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Jerry Brady
Sukumar, I see the exact same behavior in my code. It's confusing. Everything seems to be setup properly, but the system never invokes by implementation of AbstractAccountAuthenticator. My assumption was that by defining the proper service and intent in the manifest, the account settings

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Jerry Brady
Dan, I didn't see this call in your current Google code project. Is your use of AddAccountExplicitly() in there? Cheers, Jerry On Nov 20, 7:53 am, Dan Dumont ddum...@gmail.com wrote: Yes.   But I make the AddAccountExplicitly call in my Authenticator.    You use the AccountManager to create

[android-developers] getPressure and getSize in MotionEvent always return the same value?

2009-11-21 Thread davemac
This is for a touchscreen application. If I press a finger down and drag it around, I would expect that getPressure and getSize would give me a different value as I change how hard I press while dragging. However, both of these methods always return the initial value from the first MotionEvent

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Jerry Brady
Dan, Now I see what you are doing in your code and found the reference to AddAccountExplicitly(). I want to skip returning an intent to fire the an AccountAuthenticatorActivity and instead to return KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE directly from my AbstractAccountAuthenticator's addAccount

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-21 Thread Streets Of Boston
Like some others suggested pre-process the large file, break it up in smaller chunks, each chunk being a proper JPEG Then put all the chunks in a RandomAccessFile or a database. Be sure to be able to find the chunks by a row and column index. Then put this RandomAccessFile or database on your

[android-developers] Re: methods not working (force closing), is there something wrong?

2009-11-21 Thread Breezy
Okay, I see. So what would be a solution to an error like that? I'm a PHP programmer in which I can write some sloppy code... I'm sort of lost on that. On Nov 21, 6:24 am, Mark Murphy mmur...@commonsware.com wrote: Breezy wrote: Hmmm, I used that but I can't decipher what it's saying

[android-developers] My app runs fine on ADP1, but crashes the Motorola Droid?

2009-11-21 Thread blindfold
Today I received user feedback from a Droid user that my app The vOICe for Android (one can find it on the Market by searching for seeingwithsound) causes the Motorola Droid to shut down (really?) within half a minute. I tested my app on ADP1 (Android 1.6), where I've just had it running for over

[android-developers] Re: Reusing intents with notification/pending intents

2009-11-21 Thread jotobjects
Can you show us the code you used to create the PendingIntent? On Nov 21, 7:04 am, jsdf jasons...@gmail.com wrote: Does anyone have suggestions on this? I appreciate the help! On Nov 19, 5:38 pm, jsdf jasons...@gmail.com wrote: Hi all, A quick question (for those who know the answer,

Re: [android-developers] Re: Saving service killing without startForeground

2009-11-21 Thread Dianne Hackborn
2009/11/20 Cédric Berger cedric.berge...@gmail.com But if your service process is killed due to low memory, won't the system try to restart it later ? (though of course if there are still too many services running there is still a problem) Yes if the service was started with startService(),

Re: [android-developers] Windows manager in Android frame work

2009-11-21 Thread Dianne Hackborn
Hi please post questions about the platform implementation in android-porting, thanks. On Fri, Nov 20, 2009 at 10:16 PM, android-newbie k...@itsaver.com wrote: I have read and learned that Windows manager creates surfaces for the application on Android, but not able to understand how this

[android-developers] Re: Geo Fix Still Not Working in 1.6

2009-11-21 Thread android_dev
Hi, i am also facing the same problem with android 1.6, i am sending coordinate through telnet but LastKnownLocation is returning null, m using android 1.6 eclipse window vista, am i doing anything wrong in Java code, can please send me java code. is it require any changes in menifest except

[android-developers] Re: Geo Fix Still Not Working in 1.6

2009-11-21 Thread jotobjects
Null is a valid return value from this method. The documentation says If the provider is currently disabled, null is returned. Possibly there other situations when there is no known last location.

[android-developers] Re: Geo Fix Still Not Working in 1.6

2009-11-21 Thread android_dev
Thanks, its working now, i was making mistake in Java side. its working through telnet and DDMS both in windows. thanks a lot On Nov 22, 1:25 am, jotobjects jotobje...@gmail.com wrote: Null is a valid return value from this method.  The documentation says If the provider is currently disabled,

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 27 Messages in 11 Topics

2009-11-21 Thread Marc Holder
android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url:

[android-developers] dumpsys arguments

2009-11-21 Thread jotobjects
Does anyone know where the various arguments to shell dumpsys are listed? Four variations I have found are: dumpsys dumpsys activity dumpsys activity service dumpsys activity.services The last two are similar but not identical. I suppose there are other valid arguments -- You received this

Re: [android-developers] Re: namespace in styles.xml

2009-11-21 Thread Bahadır Yağan
Thanks for the responses. So basically name=my_attr and name=com.example.android:my_attr works. But not the xmlns approach used in widget styling. And thank you Edward for bringing this up. I almost forgot I had this issue standing. On Mon, Nov 16, 2009 at 7:57 PM, Dianne Hackborn

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread NitroDesk
Any of you folks tried this on a Droid? Simply installing the project that contains an Authenticator in the manfest and the other related items seems to cause the Add Account option in the account list on te droid to simply reoot the phone with an exception. Anyone else seen this or find a way to

[android-developers] screen compatibility not quite right

2009-11-21 Thread rukiman
Ok I have put this in my manifest supports-screens android:anyDensity=false android:largeScreens=false android:normalScreens=true android:smallScreens=false android:resizeable=false/supports- screens first of all what is the resizeable attribute? It does not seem to be documented. This is

Re: [android-developers] screen compatibility not quite right

2009-11-21 Thread Mark Murphy
rukiman wrote: This is working almost 90% for my game except when testing in WVGA screen resolution, all my images are scaled incorrectly, it is longer vertically than horizontally. I was expecting the screen compatibility to maintain aspect ratios as that of HVGA. No. DROID has been

[android-developers] Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Wyszomierski
Hi, I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my app. It has one feature I don't want though - it restarts the target intent, instead of just resuming it. Example history stack, with activity D making the call to B with that flag: A B C D new stack A B but 'B'

Re: [android-developers] Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Murphy
Mark Wyszomierski wrote: Hi, I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my app. It has one feature I don't want though - it restarts the target intent, instead of just resuming it. Example history stack, with activity D making the call to B with that flag: A B C

[android-developers] Re: Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Wyszomierski
Hi Mark, Here's the call: intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); same behavior though, 'B' gets its onCreate() method called. I added an override for onNewIntent() just to see if it would be called, but it isn't either, I must be missing something

[android-developers] Re: screen compatibility not quite right

2009-11-21 Thread rukiman
I thought I'd create my own specialized LinearLayout so that I can calculate the aspect ratio and center vertically. My game is only designed to be played in portrait mode. However this code doesn't seem to work. Spot what I am doing wrong? import android.content.Context; import

[android-developers] Re: screen compatibility not quite right

2009-11-21 Thread rukiman
I just put harcoded fake values for time being, instead of centering. I was expecting everything embedded with the linearlayout which is my main layout to be shrunk by the top and bottom margins I specified. On Nov 22, 1:25 pm, rukiman ruksh...@optushome.com.au wrote: I thought I'd create my own

[android-developers] Re: Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Wyszomierski
Ok this does work if you add the following to your activity definition in the manifest file: android:launchMode=singleTop Thanks On Nov 21, 8:15 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi Mark, Here's the call:    intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |

[android-developers] Crashed Service not restarting

2009-11-21 Thread shahzad ahmad
Hi, I'm just investing how crashed services are restarted. I've developed a simple service and use a taskkiller from market place to kill the application. Following are the logs after application is killed Uninstalling the process test.sys Force removing process ProcessRecord{432d6ad0

[android-developers] storing imageview reference in database, need help retrieving

2009-11-21 Thread JasonMP
Hi, I'm having trouble retrieving image references from my database and then setting them to an ImageView. When I pass R.drawable.icon into my database its compiled and stored as an Integer. how would I then pull this Integer out and use ImageView.setImageDrawable(); ??? -- You received this

[android-developers] Re: storing imageview reference in database, need help retrieving

2009-11-21 Thread JasonMP
Nevermind, got it. On Nov 21, 9:56 pm, JasonMP hyperje...@gmail.com wrote: Hi, I'm having trouble retrieving image references from my database and then setting them to an ImageView.  When I pass R.drawable.icon into my database its compiled and stored as an Integer.  how would I then pull

[android-developers] Re: Crashed Service not restarting

2009-11-21 Thread shahzad ahmad
I've put some debug prints in onCreate method but they are also not printed which means service is never restarted. Any help ? On Sun, Nov 22, 2009 at 1:53 PM, shahzad ahmad shahzad.s.ah...@gmail.comwrote: Hi, I'm just investing how crashed services are restarted. I've developed a simple

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Dan Dumont
Your authenticator is launched when the Service returns the binder for your authenticator class. Look at what the service in the project is doing. On Sat, Nov 21, 2009 at 7:07 PM, NitroDesk gsuku...@gmail.com wrote: Any of you folks tried this on a Droid? Simply installing the project that

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Dan Dumont
I get that exception in the emulator ( doesn't reboot though ) I thought it was due to missing pieces of the emulator... does logcat output anything? On Sat, Nov 21, 2009 at 7:07 PM, NitroDesk gsuku...@gmail.com wrote: Any of you folks tried this on a Droid? Simply installing the project

[android-developers] Re: storing imageview reference in database, need help retrieving

2009-11-21 Thread JasonMP
Its ImageView.setImageResource(); On Nov 21, 10:01 pm, JasonMP hyperje...@gmail.com wrote: Nevermind, got it. On Nov 21, 9:56 pm, JasonMP hyperje...@gmail.com wrote: Hi, I'm having trouble retrieving image references from my database and then setting them to an ImageView.  When I

[android-developers] Re: Crashed Service not restarting

2009-11-21 Thread shahzad ahmad
just wanted to tell that the service is started with alarmmanager using setrepeating method. is this the reason for service not restarting ? On Sun, Nov 22, 2009 at 2:03 PM, shahzad ahmad shahzad.s.ah...@gmail.comwrote: I've put some debug prints in onCreate method but they are also not printed

[android-developers] Re: Crashed Service not restarting

2009-11-21 Thread shahzad ahmad
just tested it with startService but still service is not restarting even though system is displaying scheduling restart of crahsed service On Sun, Nov 22, 2009 at 2:25 PM, shahzad ahmad shahzad.s.ah...@gmail.comwrote: just wanted to tell that the service is started with alarmmanager using

Re: [android-developers] Re: Android in China - What is going on?

2009-11-21 Thread Evan JIANG
I was at Shenzhen last week. It is strange that the google sync doesn't work in Shenzhen, but it works perfectly in Beijing. I hadn't modified any settings. And in Beijing, both CNC network and CMCC APN work fine. Best regards, On Sat, Nov 21, 2009 at 9:26 AM, shimsim shim@gmail.com wrote:

[android-developers] Re: Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Matt Kanninen
I had never seen so much use required of OR until I started doing Android application development. On Nov 21, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: Hi, I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my app. It has one feature I

[android-developers] Re: Random phone restarts, anyone else experience this?

2009-11-21 Thread Matt Kanninen
My Droid restarts about once a day. This discussion probably belongs another board, perhaps Android discuss, or as a bug report. On Nov 21, 6:38 am, Mark Wyszomierski mar...@gmail.com wrote: Hi, Not sure if anyone else is experiencing this. My G1 will randomly restart itself up to two times

[android-developers] Bitmap memory errorsn, static strings becoming null, MediaRecorder.release hangs

2009-11-21 Thread Matt Kanninen
If my app runs for more then half an hour on the G1 it will fail on inflating views from xml, giving an error about insufficient memory creating a bitmap. Another issue, which may be a side effect is that global static strings that are assigned at startup become null. I have worked around that

[android-developers] Bug in GLSurfaceView.RENDERMODE_WHEN_DIRTY (and work-around)

2009-11-21 Thread tomei.ninge...@gmail.com
My OpenGL app animates only every now and then, so I decided to use RENDERMODE_WHEN_DIRTY to save some battery life. However, I found that when I go to Home Screen and return to my app, I often get a black screen, and I see this in logcat: E/SurfaceComposerClient( 6055): using an invalid surface

[android-developers] Android 2.0 bluetooth

2009-11-21 Thread george
Hi i want to pair with a device using android 2.0 how can i do that there is no method does this .. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to