[android-developers] Re: How to get Available Device RAM

2009-01-21 Thread android_soft
Hi Diana, Couple of things: 1. Display available RAM - 2. Allocate static memory based on certain percentage of available RAM and let the user do some tests for some sort of monitoring APP. private static byte[][] allocateMem; allocateMem = new byte[m][m]; // m = 1024 for 1MB of available RA

[android-developers] Re: Help required: ListView

2009-01-21 Thread Romain Guy
You need to tell ListView that the list items are focusable. Use ListView.setItemsCanFocus(true). On Wed, Jan 21, 2009 at 11:17 PM, Don Rules wrote: > Hi Folks, > I have a list view, in which each of the list item contain a TextView and a > button. > when i click the button, the list item is del

[android-developers] Help required: ListView

2009-01-21 Thread Don Rules
Hi Folks, I have a list view, in which each of the list item contain a TextView and a button. when i click the button, the list item is deleted. Anyways i have implemented this feature. I have a problem in focusing the button.. I dont want the listitem to get selected. rather i need the button to

[android-developers] Re: How to handle ini file in android?

2009-01-21 Thread Freepine
Hi, maybe you can try java.util.Properties.load(InputStream in) http://code.google.com/intl/zh-CN/android/reference/java/util/Properties.html#load(java.io.InputStream) On Thu, Jan 22, 2009 at 2:14 PM, Paranoia wrote: > > i can n

[android-developers] How to handle ini file in android?

2009-01-21 Thread Paranoia
i can not find any utility to parse the ini file in android. any one can help me? --~--~-~--~~~---~--~~ 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@goog

[android-developers] want urgent solution for this

2009-01-21 Thread jalandar
I want clip image into small-small square, the ready-made image(e.g. from gallery) I did lot R/D for this, there is no method or class, I found to clip image into square or rect. Will anybody suggest the solution for this, Its an uregent. Thank you --~--~-~--~~~---~--

[android-developers] GetWritableDatabase generates a nullPointerException

2009-01-21 Thread Immy
Hi, I'm using a class, say TEMP which extends activity to access a already created database. This activity doesn't have anything to do with UI. I am using TEMP only to insert and update records in a database. >From this class, i.e TEMP, i try to access the database helper of the database class.

[android-developers] Touchmode and OptionsMenu issue

2009-01-21 Thread gymshoe
Scenario: You start your program and you are not in Touchmode. You open the options menu by clicking on the "menu" hard-key (so you are still not in Touchmode). Now, instead of using the Dpad to select a specific option, you or the option you wish to select. Now you are in TouchMode. However,

[android-developers] Market Process

2009-01-21 Thread AndroidKing
Is Google going to provide any information to the developers about the people who buy their apps (ex: email, phone ID, etc) This will be nice since the apps can use such information to prevent piracy ex: a user buys an app from the market. Google sends the developer their device ID App dev

[android-developers] Android USSD documentation

2009-01-21 Thread sabdart
Hi all, I read in the Android 1.0 release features (http://source.android.com/ release-features) that it supports Unstructured Supplementary Service Data (USSD) In the current sdk is it possible to access USSD from my code and if it is where can I find the documentation? Many Thanks Ray --~--~-

[android-developers] CONTENT_URI to ACTION_PICK for Email

2009-01-21 Thread Miguel Paraz
On Jan 16, 9:12 pm, Miguel Paraz wrote: > Hi, > To pick phone number contacts, I can startActivity forACTION_PICKfor > data content://contacts/people, I can use the MIME type > vnd.android.cursor.dir/phone. > > What MIME type is used for email addresses? Specifically: If I use the Intent ACTION_

[android-developers] Re: list of package names on the phone

2009-01-21 Thread Jean-Baptiste Queru
It's part of the output of adb bugreport. There's probably a way to get to that information without the rest of the bugreport output. JBQ On Wed, Jan 21, 2009 at 8:45 PM, Jin wrote: > > Is there any way to get the name of all the packages(e.g., > com.android.calendar) on the phone via ADB shel

[android-developers] list of package names on the phone

2009-01-21 Thread Jin
Is there any way to get the name of all the packages(e.g., com.android.calendar) on the phone via ADB shell? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: Replace the current view by an other view

2009-01-21 Thread for android
Oh ok..I think I understand it now.. On Thu, Jan 22, 2009 at 9:23 AM, Romain Guy wrote: > > The point of runOnUiThread() *is* to run code on the UI thread. > Therefore it must NOT be used for long running operations. Usually > runOnUiThread() is invoked from another thread. > > On Wed, Jan 21, 2

[android-developers] Re: Replace the current view by an other view

2009-01-21 Thread Romain Guy
The point of runOnUiThread() *is* to run code on the UI thread. Therefore it must NOT be used for long running operations. Usually runOnUiThread() is invoked from another thread. On Wed, Jan 21, 2009 at 7:50 PM, for android wrote: > any help on this ?? > > On Wed, Jan 21, 2009 at 8:13 PM, for an

[android-developers] Re: Replace the current view by an other view

2009-01-21 Thread for android
any help on this ?? On Wed, Jan 21, 2009 at 8:13 PM, for android wrote: > i have one question around the runOnUiThread...Basically when i used this > method in the onCreate/onStart of the Activity,i found that it works quite > differently than i expect.. > > For example in the onCreate/onStart..

[android-developers] Change intent-filter category from within the app?

2009-01-21 Thread A T
Is it possible to change the category of an application's intent filter from within that application? What I want to do is change my app from being the default app for a certain intent if a certain condition is met from within my app which causes it to go out of focus and pause. Then, when it resum

[android-developers] android.app.ListActivity Documentation has Mistakes

2009-01-21 Thread James
The documentation for ListActivity at http://code.google.com/android/reference/android/app/ListActivity.html has quite a few mistakes in the layout xml. The id attributes are goofed in more than one way and the padding attribute values do not contain the unit of measure. Hopefully having at leas

[android-developers] Re: Changing package names fubars the map overlays?

2009-01-21 Thread Dianne Hackborn
On Wed, Jan 21, 2009 at 4:44 AM, Mark Murphy wrote: > In Android, in effect, a stack trace contains two separate traces, and > you want the second one. The second one is flagged as "Caused by: " and > the exception: This is actually just standard Java behavior, printing the the various nested ex

[android-developers] Re: Can WAKE_LOCK be acquired in a Service?

2009-01-21 Thread Dianne Hackborn
It can be used by all code in any processes with your uid. Where are you calling it from in the service? Note that this function is intended to check the permission of someone calling -in- to you and only on yourself if you are not in that state; generally just checking if you have a permission y

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-21 Thread Fred Grott(shareme)
Found it :) I hope how about webkit-focus-ring-color Does that sound correct Mark? I mean there would have to be say an admin.css with webkit in Android setting this to orange correct? Thus, the question is can we override it? On Jan 21, 7:33 pm, Mark Murphy wrote: > When viewing Web pag

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-21 Thread Fred Grott(shareme)
Does that rectangle change with LightTouch enabled? I was kind of hoping that there would be a setting to turn it off or modify it.. On Jan 21, 7:33 pm, Mark Murphy wrote: > When viewing Web pages either in the built-in Web browser or in a > WebView canvas, focusable items get the orange high

[android-developers] Can WAKE_LOCK be acquired in a Service?

2009-01-21 Thread dreamerBoy
I have included a uses-permission to WAKE_LOCK statement in the Android manifest file. if(checkCallingOrSelfPermission(permission.WAKE_LOCK) == PackageManager.PERMISSION_GRANTED) { Log.i("tag", "WAKE_LOCK permission granted"); } else { Log.i("tag",

[android-developers] Re: Changing package names fubars the map overlays?

2009-01-21 Thread Faber Fedor
On Wed, Jan 21, 2009 at 7:44 AM, Mark Murphy wrote: > > In Android, in effect, a stack trace contains two separate traces, and > you want the second one. The second one is flagged as "Caused by: " and > the exception: I was seeing them as one stack and I thought the top of the stack had "rolled

[android-developers] Re: how to pause n resume the activity???

2009-01-21 Thread Wesley
hi Andrew, thanks for the reply... so far I still study the SDK... because it can start more than one activities at a times... but the when I want to resume the previous activities, where current activities I want it to pause... I have no idea how... can u guide me more on this kind scenario???

[android-developers] Re: How to deploy large DB with my APK

2009-01-21 Thread Svend Erix
Thanks for the clear answer - yes the restriction mentioned is important to me :-) On Jan 22, 1:52 am, Mark Murphy wrote: > Svend Erix wrote: > > My application may consist og 100Kb code and 800 Kb Database content. > > If I include a datafile with the 800Kb data and import it into an > > SQLit

[android-developers] Re: How to set multiple set different actions to one menu item

2009-01-21 Thread Dianne Hackborn
Look at the log to see why you crashed. On Wed, Jan 21, 2009 at 11:20 AM, Scynasty wrote: > > I am having trouble setting one menu item/button to run different > actions based on other actions currently running(ie having the button > toggle actions). what I am trying to do is have a menu item to

[android-developers] WebKit/WebView and Focus Highlighting

2009-01-21 Thread Mark Murphy
When viewing Web pages either in the built-in Web browser or in a WebView canvas, focusable items get the orange highlight ring as you navigate the page with the D-pad/trackball. A design team I am working with wishes to create some Web content, specifically for Android, where they handle their o

[android-developers] Re: two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-21 Thread Dianne Hackborn
On Wed, Jan 21, 2009 at 5:01 PM, polo777 wrote: > 1 - What would be the life cycle of this class singleton if the user > sends the application (and so the activity that was displayed) in the > background and the activity is destroyed for instance? > 2 - How to make sure this singleton will stay a

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-21 Thread Jean-Baptiste Queru
This would be a good question to the repo-discuss mailing list, or android-platform, so that android-developers can stay focused on helping people who are developing applications with the SDK. Do you have git installed? JBQ On Mon, Jan 19, 2009 at 1:58 PM, PerCentage wrote: > > I am trying to

[android-developers] Re: two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-21 Thread polo777
Yes, I didn't think about that! That could definitely help me! But in this case: 1 - What would be the life cycle of this class singleton if the user sends the application (and so the activity that was displayed) in the background and the activity is destroyed for instance? 2 - How to make sure t

[android-developers] Re: How to deploy large DB with my APK

2009-01-21 Thread Mark Murphy
Svend Erix wrote: > My application may consist og 100Kb code and 800 Kb Database content. > If I include a datafile with the 800Kb data and import it into an > SQLite database under the initial run of the applcation, I cannot > delete the data file afterwards and my application will take up 800 Kb

[android-developers] How to deploy large DB with my APK

2009-01-21 Thread Svend Erix
My application may consist og 100Kb code and 800 Kb Database content. If I include a datafile with the 800Kb data and import it into an SQLite database under the initial run of the applcation, I cannot delete the data file afterwards and my application will take up 800 Kb unnecessarily. Is there a

[android-developers] How to set multiple set different actions to one menu item

2009-01-21 Thread Scynasty
I am having trouble setting one menu item/button to run different actions based on other actions currently running(ie having the button toggle actions). what I am trying to do is have a menu item to toggle wifi on and off but when I try to run if/else statements on the menuitem click it force clos

[android-developers] _count "column"

2009-01-21 Thread J . Pablo Fernández
Hello, What should I do to get my content provider to return the _count column with the count of records? Thanks. -- J. Pablo Fernández (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: HttpURLConnection Timeout does not work

2009-01-21 Thread Streets Of Boston
Note that the http-header "Connection: close" is merely a hint. Well-behaved servers indeed do close the connection after all is set and done, but they may as well choose to keep the connection open. On Jan 21, 1:28 am, sjia wrote: > Hi, > > I intend to stop a http connection once it times out.

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-21 Thread the_dude
I've got the same problem. I'll let you know when I found a solution. /the_dude On 19 Jan, 22:58, PerCentage wrote: > I am trying to download the android source onto a new ubuntu 8.10 > installation on a x86 machine. All the steps worked fine until I tried > toinittherepoclient. I get the follo

[android-developers] Testing using ProviderTestCase and other classes in android.test

2009-01-21 Thread J . Pablo Fernández
Hello, According to http://code.google.com/android/kb/troubleshooting.html#addjunit you have to remove the Android library from your tests to run them, but if you remove the Android library then you can't access classes such as android.test.ProviderTestCase; so how do you write or run a ProviderT

[android-developers] Re: Testing using ProviderTestCase and other classes in android.test

2009-01-21 Thread J . Pablo Fernández
Answering my own question and raising more, it seems any test using android.test can't be run by JUnit on Eclipse, they are to be run on the device or emulator according to the instructions on http://code.google.com/android/reference/android/test/InstrumentationTestRunner.html My cycle seems to h

[android-developers] Re: How to retrive device log

2009-01-21 Thread Brian Abbott
I often use adb logcat or, the effective equivalent via DDMS *however*, only intermittently does it update on a continuous basis. I have yet to determine the mechanism responsible for enabling continuous updates and thereby providing a nice print-stream as a development or, rather learning and exp

[android-developers] Re: two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-21 Thread Dianne Hackborn
I would recommend having a singleton that all of the clients go through, which takes care of keeping the database open as long as there are clients of it. On Wed, Jan 21, 2009 at 2:45 PM, polo777 wrote: > > Hi everyone, > > I have two threads: > - the main one in charge of the UI > - a second on

[android-developers] spurious WAKE_LOCK SecurityException?

2009-01-21 Thread dreamerBoy
I am very confused because I am getting a permission problem when I have clearly included: in the manifest. 01-21 15:43:44.318: ERROR/AndroidRuntime(806): java.lang.SecurityException: Neither user 10019 nor current process has android.permission.WAKE_LOCK. Has anyone else encountered

[android-developers] Re: Screen Orientation change performance Question

2009-01-21 Thread Romain Guy
Hi, You can forward them to the next activity using Activity.onRetainNonConfigurationInstance(). You can also keep static references to the drawables if you remove their callbacks in onDestroy(). You can look at Home's source code for an example of the latter or at the source code of Photostream

[android-developers] Screen Orientation change performance Question

2009-01-21 Thread j
>From reading Romain Guy's blog post, I understand keep static reference to a Drawable can create huge memory leaks. So what is the recommended solution if I don't want to reload my big Drawable image every time screen orientation changes? Currently my app takes >3 seconds to complete each orien

[android-developers] Re: Radio button items's text not visible in Dialog

2009-01-21 Thread Mark Nuetzmann
So in the mean time is there anything we can do (other than setting our theme to Dark) to get this to work? Is there a way to set the theme of the AlertDialog Builder? On Jan 21, 5:28 pm, Mark Nuetzmann wrote: > We found a bug in Android > > Our theme for the Application was set to androi

[android-developers] Re: Radio button items's text not visible in Dialog

2009-01-21 Thread Mark Nuetzmann
We found a bug in Android Our theme for the Application was set to android:theme="@android:style/ Theme.Light" . Setting the theme back to dark and our text now displays... Dear Google Developers, Please fix this if you have not already. thank you. On Jan 21, 10:55 am, Mark Nuetzmann wr

[android-developers] Re: two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-21 Thread polo777
Another problem related to this one. When the secondary thread post back to the main thread, the main thread fetches data from the DB and update the view. Here also I got an error. It is perfectly normal since the application has been killed. How to handle that? Thanks a lot in advance. On Jan

[android-developers] Re: Theme on a preferences screen

2009-01-21 Thread Alexey
That completely removed style from the preferenceCategory .. Why ??? #5E829E 50px bold 12.0sp

[android-developers] two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-21 Thread polo777
Hi everyone, I have two threads: - the main one in charge of the UI - a second one that takes care of network calls, parsing responses and database updates. The main threads open the database, retrieves information into a Cursor that is used to feed a listView. My problem is the following: When

[android-developers] Re: SurfaceView overriding onDraw

2009-01-21 Thread Dianne Hackborn
That is completely the point of SurfaceView. You don't draw to it in onDraw, you draw into the Surface it makes for you. On Wed, Jan 21, 2009 at 1:31 PM, ivan wrote: > > I'm attempting to extend SurfaceView and override it's "onDraw" > method. > > But, the onDraw method is never called ? >

[android-developers] Re: Theme on a preferences screen

2009-01-21 Thread Alexey
This gave me a background for the whole list i wanted. Now i wonder how to set background fro the PreferenceCategory @style/Widget.ListView vertical

[android-developers] Re: save image file in sqlite db

2009-01-21 Thread jtaylor
Use the ContentResolver().openOutputStream(), etc. in the example here. http://code.google.com/android/devel/data/contentproviders.html SQLite supports binary data. However, I think you may have trouble with direct access to binary data with the Android Cursors. - Juan T. On Jan 20, 12:19 am,

[android-developers] Theme on a preferences screen

2009-01-21 Thread Alexey
Hi all , in a preferences screen in my application which is build by extending the PreferenceActivity i need to change background on the window itself and on the PreferenceCategory. How i can do it via Themes/Styles ? Which attributes i need to define ? thanks Alex --~--~-~--~~-

[android-developers] SurfaceView overriding onDraw

2009-01-21 Thread ivan
I'm attempting to extend SurfaceView and override it's "onDraw" method. But, the onDraw method is never called ? @override protected void onDraw(Canvas canvas) { } What's the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] openGL colors

2009-01-21 Thread Patrick
I'm writing some 3D rendering code, having started from the API demos to get the SurfaceHolder and openGL initialization/refresh logic. The actual rendering after that is not a problem. However, it seems that openGL does not create a surface properly. You can see the problem in the API demo. Both

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Dianne Hackborn
On Wed, Jan 21, 2009 at 12:22 PM, Jean-Baptiste Queru wrote: > It's not that easy, because aapt assumes that the android package name > is also the source code package name. At the very least you need a > custom post-processing step to move the generated R file into the > proper source code packag

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Jean-Baptiste Queru
It's not that easy, because aapt assumes that the android package name is also the source code package name. At the very least you need a custom post-processing step to move the generated R file into the proper source code package, and none of the standard Android build tools support that. On top

[android-developers] Re: Play wav files in Media player

2009-01-21 Thread Dave Sparks
I suspect that your problem is in some details that you haven't given us yet. How many media players are you creating at the same time? On Jan 20, 10:47 pm, ena wrote: > On Jan 21, 8:23 am, Dave Sparks wrote:> What is the > format of the data in the WAVE file? > > i play audio file of wav for

[android-developers] Re: Camera Focus Facility

2009-01-21 Thread Dave Sparks
Roughly: Camera mCamera = Camera.open(); // this sequence should occur after onResume and surfaceCreated mCamera.setPreviewDisplay(mSurfaceHolder); // saved from surfaceCreated call mCamera.startPreview(); // to start focus - usally called from your onClickListener mCamera.autoFocus(afCallback)

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Romain Guy
> I don't understand why taking the AOSP launcher, for example, and modifying > it is "simply not correct" but writing one from scratch is..? You can, Dianne just said that you need to change its package name to avoid conflicting with the system apps. That's all. That's what K9 does with Email. S

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Disconnect
I don't understand why taking the AOSP launcher, for example, and modifying it is "simply not correct" but writing one from scratch is..? I thought part of the point of the AOSP was that you could use those apps as bases for your own development. (I can go digging for more website/marketing/etc qu

[android-developers] Re: Make a photo with Android Emulator

2009-01-21 Thread Dave Sparks
You need to call startPreview() before takePicture. You also need to supply a PictureCallback function to receive the encoded JPEG. By passing null, you are telling the camera service you don't want the final JPEG image. On Jan 21, 2:50 am, ANDREA P wrote: > I want to use the camera to make a ph

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Romain Guy
Replacing a core application is achieved using intent filters. This is how you can replace Home with your own application or replace Browser with your own web browser, et. On Wed, Jan 21, 2009 at 11:58 AM, Disconnect wrote: > I thought one of the core tenants of Android was that developers could

[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-21 Thread Dave Sparks
Right now, the answer is no. Most cameras require that you go to preview mode before you can take a picture so that the image processor can grab some frames for auto-focus, white balance, etc. I'll see if we can get a change into Cupcake that allows you to start preview without a surface. That sh

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Disconnect
I thought one of the core tenants of Android was that developers could write, and end users could install, apps that replaced the default apps. (Such as k9 and k9sms.) Is this not, in fact, true? (And please don't try to claim that sms/mms isn't a core feature of a mobile phone OS. And both of tho

[android-developers] Re: Anyone willing to share...

2009-01-21 Thread Dianne Hackborn
To be safe, you could set a flag to say it has been dismissed that you check when creating the next activity. Generally we call onCreate() immediately after onDestroy() when switching orientations, but this is a good point that there may be another message dispatch between them in some cases so to

[android-developers] Re: Manage the home screen

2009-01-21 Thread Jaz
Thanks for your help Romain - jaz On Jan 21, 1:57 pm, Romain Guy wrote: > No :) > > > > > > On Wed, Jan 21, 2009 at 10:56 AM, Jaz wrote: > > > Thanks Romain  - > > Is there any capability by which I could arrange these in custom > > layouts over the default home screen ? > > > Thanks > > jaz >

[android-developers] Re: RunningTaskInfo.thumbnail is always null and onCreateThumbnail never called

2009-01-21 Thread Dianne Hackborn
This is not currently supported. We weren't using it anywhere in the UI on the G1, so we turned it off to avoid wasting time/space. On Wed, Jan 21, 2009 at 6:46 AM, drasticp wrote: > > I'd like to get some thumbnail images of the running applications. The > combination of RunningTaskInfo.thumbn

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Dianne Hackborn
Yes in this case probably what is desired is changing the package name, though that wasn't explicitly requested. But in Android that is how you install an alternative version of an app -- by installing a -different- app with the same public capabilities (handling the same intents etc) as the built

[android-developers] Re: How to retrive device log

2009-01-21 Thread Mark Nuetzmann
thank you. On Dec 21 2008, 5:50 pm, Bill Napier wrote: > http://code.google.com/android/reference/adb.html#forwardports > > You can use adb to do some amount of port forwarding, but I'm not sure > if it works in the direction you're looking for. > > You can also use 'adb logcat' to retrieve the

[android-developers] memory profiling needed

2009-01-21 Thread Peter Jeffe
Are there any tools out there yet to help us profile memory usage? Has anyone come up with a program to convert the Android memory dumps to standard hprof format? Would someone from Google let us know if and when we can expect help from you on this? -- Peter --~--~-~--~~~

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-21 Thread Mariano Kamp
What OS/Java are you running? I am running OSX 10.5.6 and Java: java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode) On Tue, Jan 20, 2009 at 10:54 PM, fnirt wrote: > > I am having this issue, as

[android-developers] Re: Manage the home screen

2009-01-21 Thread Romain Guy
No :) On Wed, Jan 21, 2009 at 10:56 AM, Jaz wrote: > > Thanks Romain - > Is there any capability by which I could arrange these in custom > layouts over the default home screen ? > > Thanks > jaz > > On Jan 21, 11:19 am, Romain Guy wrote: >> You need the permission >> com.android.launcher.perm

[android-developers] Re: Manage the home screen

2009-01-21 Thread Jaz
Thanks Romain - Is there any capability by which I could arrange these in custom layouts over the default home screen ? Thanks jaz On Jan 21, 11:19 am, Romain Guy wrote: > You need the permission > com.android.launcher.permission.INSTALL_SHORTCUT then follows what > Browser does > here:http:/

[android-developers] Re: AlertDialog lose on change rotation

2009-01-21 Thread fala70
Yes now work. I am calling the Dialog using Show Method, instead is necessary call create() method into OnCreateDialog override method. On 18 Gen, 19:02, Romain Guy wrote: > Hi, > > Please look at showDialog(int), dismissDialog(int), removeDialog(int), > onPrepareDialog() and onCreateDialog() in

[android-developers] Re: Emit a signal

2009-01-21 Thread Gavin Aiken
Hey, Cool, I misunderstood, I think this is what you're looking for; http://code.google.com/android/reference/android/view/MotionEvent.html Let me know if that helps! On Wed, Jan 21, 2009 at 8:50 AM, Nico wrote: > > Actually, I have a onClickedListener on a button. > I need to simulate a click

[android-developers] Re: Problem with simpleCursorAdapter, ListView backed by a managed cursor

2009-01-21 Thread Nmix
On Jan 21, 7:45 am, Mark Murphy wrote: > Nmix wrote: > > In a TabActivity I have a tab with a ListView.  I manage the > > visibility of a View for when the list is empty, done after filling > > the list, whenever I know the backing data changes. > > > When the list is empty (empty View is visible

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Disconnect
..android-platform covers building apps with the sdk? Thats new. I think he's looking for info on changing package names so that he can replace the default apps. (I don't have that info handy, sorry..) On Wed, Jan 21, 2009 at 12:14 PM, Andrew Stadler wrote: > > Wrong list. Please see android-

[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-21 Thread Pascal Merle
Please also try to address my last question "Can this be done from within a service (no activity)?". Since a service does not have a UI I don't see how I can start a preview from there. I want to take the picture from the service running in the background. --~--~-~--~~~

[android-developers] Re: size of Bitmap

2009-01-21 Thread Mike Reed
The config (size, format, etc.) of a bitmap is immutable. It can only be specified when the bitmap is first created. On Wed, Jan 21, 2009 at 11:05 AM, elo wrote: > > HI > I would like to set the size of a Bitmap, there are no setWidth() or > setHeight() so I don't know how to do this > > Thank y

[android-developers] Re: how to pause n resume the activity???

2009-01-21 Thread Andrew Stadler
Wesley- There are lots of ways to pause and resume activities. Why don't you repost with a more comprehensive description of what you're trying to do (what user experience you are trying to create), and we can go from there. --Andy On Mon, Jan 19, 2009 at 11:46 PM, Wesley Sagittarius wrote:

[android-developers] Re: Not able to add account on email client of emulator(sdk r2)

2009-01-21 Thread Andrew Stadler
Jalandar- If you're having trouble operating one of the built-in applications, I think android-discuss would probably be a better board for asking about & discussing it. See http://source.android.com/discuss for more information. Good luck, Andy On Tue, Jan 20, 2009 at 4:16 AM, jalandar wrot

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-21 Thread Andrew Stadler
Wrong list. Please see android-platform, which covers topics such as this. http://source.android.com/discuss for more information. On Tue, Jan 20, 2009 at 12:24 AM, Gerald wrote: > > Hi, > I want to customize some built-in applications on android, for example > Launcher or Contacts, etc. > I'

[android-developers] Re: PM Issues

2009-01-21 Thread Andrew Stadler
Wrong list. Please see android-porting, which covers topics such as this. http://source.android.com/discuss for more information. On Wed, Jan 21, 2009 at 12:45 AM, Mallesh wrote: > > Hi All, > > I am working on android kernel on > OMAP 2430 board. > After initial display ,successfully trans

[android-developers] detect calling status in a test application

2009-01-21 Thread Jin
Hi, I am trying to create two applications (calling and receiving) to do stress test of calling between two phones. The idea is to let calling app to make lots of calls on one phone and let receiving app to receive and answer those calls. We have the following questions - 1) How does the receivi

[android-developers] Radio button items's text not visible in Dialog

2009-01-21 Thread Mark Nuetzmann
There was a similar post to this but used an activity and I am using a dialog. This is real simple code and it works int he APIDemo (which is where I pulled the code from to begin with). The dialog display just fine with the correct number of radio buttons, but the text for the buttons does not

[android-developers] Re: An activity, a service and receivers - an architectural question

2009-01-21 Thread Mark Murphy
Kuba Lipiński wrote: > Hello, > > I'm not sure if I correctly understand the application life cycle and > would like to consult the architecture of my application with the > group. > > My application is intended to perform some time consuming (about 30 > seconds) operation from time to time. The

[android-developers] Re: access rows in ListActivity

2009-01-21 Thread A T
Do it in the bindView method and redraw the list view when the heavy task is done. To make sure you're disabling and enabling the correct row, just make sure the data that is bound through the adapter has a unique id associated with it (or some other way of identifying any particular row uniquely)

[android-developers] Re: access rows in ListActivity

2009-01-21 Thread Mark Murphy
FENIX wrote: > Hello guys! I really need your help here.. > > I want to include one button inside each row in a ListActivity. When > pressing one of these buttons it will be disabled and will perform a > heavy task in the background (in a different thread to avoid screen > blocking). After the ac

[android-developers] Re: G1 activation problem

2009-01-21 Thread Murali
Hi Guys, Got my G1 unlocked developer phone. Here is what I did to get it to work with AT&T network 1. Deleted all the existing APNs 2. Added a new APN: wap.cingular ( just one entry ) Give it a try and it should work. Good luck ! On Jan 12, 11:24 am, subclubharri wrote: > Hey, that link is

[android-developers] Re: How to create .apk file from the resurces that are given fro Android market

2009-01-21 Thread Šikus
Can I see source code from .apk? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, sen

[android-developers] access rows in ListActivity

2009-01-21 Thread FENIX
Hello guys! I really need your help here.. I want to include one button inside each row in a ListActivity. When pressing one of these buttons it will be disabled and will perform a heavy task in the background (in a different thread to avoid screen blocking). After the action is completed the but

[android-developers] RunningTaskInfo.thumbnail is always null and onCreateThumbnail never called

2009-01-21 Thread drasticp
I'd like to get some thumbnail images of the running applications. The combination of RunningTaskInfo.thumbnail and Activity.onCreateThumbnail seems like just the thing but I don't see it working. I've overridden onCreateThumbnail in my main Activity. According to the documentation, this method is

[android-developers] Help with AnimationDrawable

2009-01-21 Thread Brendan
I've tried everything I can think of and can't get this AnimationDrawable (from code, not XML) to work. Please let me know what I doing wrong. First, we have the regular simple app: public class Example extends Activity { /** Called when the activity is first created. */ @Override publ

[android-developers] Export to SIM feature

2009-01-21 Thread Greg
Ok I wrote an application based off the SIM import tool located on the latest source for Android, its crude but it "should" work, i need help polishing it off and I would hope that it would make it into the main tree in time for release. THIS IS CODE EMBEDDED IN THE SOURCE NOT THE SDK. I was wo

[android-developers] An activity, a service and receivers - an architectural question

2009-01-21 Thread Kuba Lipiński
Hello, I'm not sure if I correctly understand the application life cycle and would like to consult the architecture of my application with the group. My application is intended to perform some time consuming (about 30 seconds) operation from time to time. The operation can be either invoked by t

[android-developers] How to check a activity have exit?

2009-01-21 Thread PianoPan
Hi, Does anyone know how to check if a activity have exit, I know the activity's package name, I use the 'ps' to check the process list. but android did not free the process after activity quit. Pan --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Anyone willing to share...

2009-01-21 Thread sp
Great, exactly what I was looking for! However, at first blush, I see a potential race condition if the thread finishes and sends its message after onDestroy() but before onCreate() -- then the managed dialog will never be dismissed. Am I wrong? Spiros On Dec 16 2008, 12:21 pm, "Dianne Hackbor

[android-developers] Re: Andreas Constantinou on Mobile OS's and App Stores

2009-01-21 Thread Wise Old Duck
OK I'm tipping my hand as a newbie here, but when I read this transcript I thought it implied that vendors aren't making geolocation features available to developers. Am I reading this right? Is this true for Android? What about the iPhone? It seems really hard to believe...but I just started

[android-developers] Exception: WakeLock finalized while still held

2009-01-21 Thread Adam K
Hi all, I'm seeing the following error intermittently when testing my app: 01-20 23:56:52.794: DEBUG/dalvikvm(25525): GC freed 1616 objects / 94232 bytes in 87ms 01-20 23:56:52.874: ERROR/AndroidRuntime(25525): java.lang.Exception: WakeLock finalized while still held: App Name 01-20 23:56:52.874:

  1   2   >