[android-developers] Ways to notify activities of download completion.

2010-08-11 Thread Samuh
My application has an IntentService which runs periodically to download data from a remote server. The download task is run inside an AsyncTask which has reference to Application context only. The data downloaded is for entire application and is displayed across four different activities. When the

Re: [android-developers] Re: OpenSource REST Client for Android

2010-08-11 Thread sunil kumar
Dear all, I'm having problem with CTS (Android - Comptibility test suite) execution on ARM emulator (Android version used is froyo) , it is generating "Uninstall TIMEOUT error Unknown reason" error, could anybody pls help me is it expected behaviour or any workaround is there to stop the Un

[android-developers] Changing button text color in various states (down, disabled etc)

2010-08-11 Thread Nik Bhattacharya
I would like to vary the text color of a custom button that I am making depending on which state it is in (enabled, disabled, state pressed). I know how to use an XML file to describe the different drawables that I need for the different states like so: In the drawables folder I create this

[android-developers] Re: Bind the pushpin on image

2010-08-11 Thread Beena
hi Is there any one who can guide? On Aug 6, 11:04 am, Beena wrote: > Hi all, > I have an image of 600x600. Which is scrollable horizontally and > vertically. > And then I have to add the pushpin at particular point. > I can plot the pushpin on it, but as I scroll horizontally then the > images a

[android-developers] How to split Picture captured from webview into multiple images?

2010-08-11 Thread Naveen
Hi! I have a webview and I capture the view like this Picture picture = m_browser.capturePicture(); Bitmap b = Bitmap.createBitmap( picture.getWidth(), picture.getHeight(), Bitmap.Config.ARGB_); Canvas c = new Canvas( b ); p

[android-developers] User selectable text in WebView

2010-08-11 Thread Ryan Tan
Hi, I am using a WebView to display some text. I want to allow the users to be able to select a word (or even a character) and take some action on it (for example, look up the dictionary). So far, I have only found the following code that can enable text selection in a WebView: KeyEvent shiftPres

[android-developers] Re: Autocomplete with suggestions in Custom Dialog

2010-08-11 Thread titleist
Thanks, my quickfind now works. I will correct names in my appplication, it will even look better :) Regards, Tadej On 11 avg., 19:27, viktor wrote: > This code: ArrayAdapter adapter = new > ArrayAdapter(this, R.layout.list_item, COUNTRIES); > > Be carefully, if you use autocomplete in Dialog,

[android-developers] Query regarding Intent.get & Extras.

2010-08-11 Thread sukumar bhashyam
hi, Please help me in clarifying below query #1. Any Data( Bundle) passed into Intent.putExtras is going to create a new copy of Bundle instance or its going to have reference to the Bundle passed?. #2 Same query with get, Any call made to Intent.getExtras is going to new Instance of Bundle

[android-developers] how to update the created list.

2010-08-11 Thread Hiko
Hi, I do not know how to update the created list with Activity class. Do you know the method related(inherited) to Activity class as well as reload() method of WebView class? Best Regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

Re: [android-developers] Re: A simple question - I hope

2010-08-11 Thread Frank Weiss
I meant in windows xp device manager On Aug 11, 2010 9:51 PM, "Jonathan" wrote: I can get the amount free from MemoryInfo - but I want to know the percentage free - so, for example, if running on the Droid I want to know that there is 256MB installed, so that if MemoryInfo reports 128MB free, it

[android-developers] Re: Making HorizontalScrollView scroll programatically

2010-08-11 Thread Amit
Hi viktor, I am not using the gallery view because I am using the horizontal scroll view as a tab control in which every Bitmap I have added acts like an individual tab? SO in horizontal scroll view is it possible? On Aug 11, 9:39 pm, viktor wrote: > Why do you not use Gallery, it has all your

[android-developers] CST: TC Failure due to unknown host

2010-08-11 Thread deven
Dear all, I am running the CTS on the Arm based phone. When I tried to run the Network related test cases i.e. android.core.tests.luni.net--> org.apache.harmony.luni.tests.java.net.HttpURLConnectionTest-- test_Permission I am getting the following Error:: java.net.UnknownHostExcepti

[android-developers] Re: A simple question - I hope

2010-08-11 Thread Jonathan
I can get the amount free from MemoryInfo - but I want to know the percentage free - so, for example, if running on the Droid I want to know that there is 256MB installed, so that if MemoryInfo reports 128MB free, it's 50%, while on an EVO with 512MB, 128MB free is 25%. If you take a look at the A

[android-developers] Re: Reboot bug?

2010-08-11 Thread songs
Thanks for letting me know. My reading of the documentation with the public method and no note about the fact that the reboot permission can only be granted to special apps lead me to believe that this was generally available. Might want to update the docs so others don't get confused. On Aug 1

[android-developers] Re: Sending email by Intent... not simply composing a message

2010-08-11 Thread Sarwar Erfan
On Aug 12, 2:13 am, DulcetTone wrote: > You're right... I misstated that.  I can send SMS messages using the > SDK, but cannot send email. > I find that incongruous, despite the fact that the email app in the > open source contains some nicely crafted code to do just that. Why do you find it in

Re: [android-developers] Why doesn't fillparent work for a child view group inside ScrollView?

2010-08-11 Thread Romain Guy
fill_parent means "always be as big as your parent," which makes no sense in a ScrollView. What you want is android:fillViewport="true" on the tag. On Wed, Aug 11, 2010 at 8:52 PM, Moto wrote: > I want the view group to extend with the ScrollView if the content of > the group is smaller than the

[android-developers] Why doesn't fillparent work for a child view group inside ScrollView?

2010-08-11 Thread Moto
I want the view group to extend with the ScrollView if the content of the group is smaller than the display area of the ScrollView. How can I have the ScrollView child extend to fill the parent if it's smaller than the parent? Thanks, -Moto -- You receive

[android-developers] "Excessive JNI global references" seen on 1.5 but not 2.1; my bug or Android 1.5's?

2010-08-11 Thread eehouse
There's a bug in my network code so that when the server's not available the Android client tries over and over to connect. On 1.5 (emulator) this results, within a minute, in an "Excessive JNI global references" error where the leaked object is a small (20 byte) boolean array. The same code on e

[android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-11 Thread john brown
Frank, I do not see that on this machine and I do not think it is on my main machine. just to make sure I understand what you are saying: > On my machine This is the desktop computer? > in Device Manager In Eclipse? Android SDK and AVD Manager? > Android Composite ADB Interface under Virtual D

Re: [android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-11 Thread Frank Weiss
On my machine, in Device Manager, there's Android Composite ADB Interface. -- 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, send email t

Re: [android-developers] apps2sd widgets

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 7:35 PM, Khurrum Mehmood wrote: > application is fine problems comes with the widget packed with in, once usb > is mounted the widget gets uninstalled, unmounting the media does not enable > the widget > I assume you did not read this: http://developer.android.com/guide/ap

[android-developers] Re: can AIDL really support the Map? (the data type)

2010-08-11 Thread QasewKim
Dear Dianne Hackborn, Thank you always. I love your quick & simple answers. :) By the way, I have two more questions. 1. Bundle seems the good way. But is it possible to pass the pair of the data? Because Map support the iteration, so I can get the data pair in the right order, but I am not sure

Re: [android-developers] Re: Droid Froyo manual update

2010-08-11 Thread Adal
Take a look into http://forum.cyanogenmod.com/forum/13-motorola-droid/ maybe it's a better place to ask. I suppose it could be done, but I don't know exactly how (as I don't know the method you used to update your Droid and also I don't have o

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread john brown
I had a post on this subject recently. The solution suggested fixed my problem. I was getting the exact same error message. I do not know for sure if our problems are the same but I would sure try the solution they gave me. Search for > " on sdcard, File.canRead() = true, File.canWrite() = false "

[android-developers] Re: Could not find ***.apk!

2010-08-11 Thread SImplyG2010
Try going into the code and just hitting the space bar. The apk file has not been built. On Aug 11, 6:51 pm, Andrdev wrote: > hello guys, >                 upgraded to android 2.2 on win xp with eclipse IDE. > created a test project when i try to run it, getting this error - > [2010-08-11 15:41:4

[android-developers] Adsense link to market

2010-08-11 Thread SImplyG2010
Hey Guys, I have a Google Adsense Ad running and wanted the link on the mobile campaign to go straight to market using the normal search style url. This however does not work as the ad's keep getting rejected due to the link going nowhere. Has anyone solved this issue? -- You received this messa

[android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-11 Thread john brown
Frank, Yes. (I cannot check right now. That computer is at the office.) But that sounds exactly like what I see on the droid. The debugging connected notification requires no action. The other one, USB connected, requires that I click it and then press button to "mount" it on my computer. Things

Re: [android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
yes ,I run Activity in the front but I hava run service run in the background.Now I want use Toast.makeText this method show message on the Activity. In Service I don't know get Activity context so Toast.makeText method don't show message to screen. 2010/8/11 Bob Kerns > My guess? I'd guess that

[android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread Mathias Lin
Thanks for the info. But as I understand it, the settings are read only: "Secure system settings, containing system preferences that applications can read but are not allowed to write. These are for preferences that the user must explicitly modify through the system UI or specialized APIs for thos

Re: [android-developers] Service start intent problem

2010-08-11 Thread Alex Xin
Hi, Frank I can give it a try. Above code snapshot works perfect and on my Android 1.6 based phone, but random FC on Nexus One. Alex On Thu, Aug 12, 2010 at 9:26 AM, Frank Weiss wrote: > Does it FC when you use getIntent() instead of the parameter to onStart? > > -- > You received this messag

Re: [android-developers] Re: A simple question - I hope

2010-08-11 Thread Frank Weiss
The question isn't so simple, eh? The "total ram available to the device" appears to be a fairly objective hardware question. For the Motorola/Verizon Droid it's 256MB. But the OP seems to be looking for some other answer. Perhaps restate it a different way? -- You received this message because

Re: [android-developers] Service start intent problem

2010-08-11 Thread Frank Weiss
Does it FC when you use getIntent() instead of the parameter to onStart? -- 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, send email to

[android-developers] Service start intent problem

2010-08-11 Thread Alex Xin
Hi, I've found a problem that may random FCs on some certain phones, Here's the code snapshot: Intent i = new Intent(); i.setClasss(this, MyService.class); i.putExtra("tag", "test"); startService(i); public void onStart(Intent intent, int startId ){ String str = intent.getExtras().getString("ta

Re: [android-developers] connected Motorola Droid not recognized by adb

2010-08-11 Thread Frank Weiss
I run Windows XP, have a Droid, and use Eclipse. When I plug the USB cable into the Droid, there are two notification icons: the forked USB icond and the exclamation mark in a triangle. When I open the notifications list, there's "USB debugging connected" and "USB connected". Are you seeing these

Re: [android-developers] apps2sd widgets

2010-08-11 Thread Romain Guy
App widgets are not supported for apps on SD card. On Wed, Aug 11, 2010 at 5:35 PM, Khurrum Mehmood wrote: > i am having problems for making my app gp tp apps2sd, > > application is fine problems comes with the widget packed with in, > once usb is mounted the widget gets uninstalled, unmounting t

[android-developers] apps2sd widgets

2010-08-11 Thread Khurrum Mehmood
i am having problems for making my app gp tp apps2sd, application is fine problems comes with the widget packed with in, once usb is mounted the widget gets uninstalled, unmounting the media does not enable the widget, can any body heklp -- You received this message because you are subscribed to

[android-developers] Re: Droid Froyo manual update

2010-08-11 Thread Abhi
@Adal, that's exactly wat is happening with me when I factory reset it. On Aug 11, 7:29 pm, Adal wrote: > AFAIK factory reset goes to a clean install of your current version. > > > > On Thu, Aug 12, 2010 at 12:09 AM, TreKing wrote: > > On Wed, Aug 11, 2010 at 5:04 PM, Abhi wrote: > > >> It rese

Re: [android-developers] Re: Droid Froyo manual update

2010-08-11 Thread Adal
AFAIK factory reset goes to a clean install of your current version. On Thu, Aug 12, 2010 at 12:09 AM, TreKing wrote: > On Wed, Aug 11, 2010 at 5:04 PM, Abhi wrote: > >> It resets with Froyo and deletes all my data. > > > Seriously? AFAIK, a factory reset should get you back to exactly how you

[android-developers] connected Motorola Droid not recognized by adb

2010-08-11 Thread john brown
Hello, I am trying to connect a Verizon Motorola Droid (Android 2.1) to my computer and Run my application on the device. I have followed the instructions on developer.android.com about how to "install the USB driver" and "set up the device for development". Specifically, I installed the Usb driv

[android-developers] how to send data to server while recording

2010-08-11 Thread cindy
Hi , In my application, I need to record some file. I want to send audio data to server while recording. Do you know how to do that? After user stop saying, I need to detect the end of speaking. Is there any algorithm to do that? I want my application similar as google voice search, Thank you

Re: [android-developers] Re: A simple question - I hope

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 6:44 PM, Indicator Veritatis wrote: > What is 'nebulous' about it? By free memory, he most likely means "the > amount of memory not yet allocated to any process, available (to user, > not system processes) on the heap". Android caches processes that are not being used, to

[android-developers] Could not find ***.apk!

2010-08-11 Thread Andrdev
hello guys, upgraded to android 2.2 on win xp with eclipse IDE. created a test project when i try to run it, getting this error - [2010-08-11 15:41:42 - test] -- [2010-08-11 15:41:42 - test] Android Launch! [2010-08-11 15:41:42 - test] adb is running norm

[android-developers] Longer description using versionname in Manifest?

2010-08-11 Thread pcm2a
If you look up "Aquarium Donation Live Wallpaper" on the market you will see a normal description but at the bottom where it normally would say Version: #.# he has a whole extra sentence there. I assume he has placed all of this in the version name attribule in the manifest file. Does anyone know

[android-developers] Re: A simple question - I hope

2010-08-11 Thread Indicator Veritatis
What is 'nebulous' about it? By free memory, he most likely means "the amount of memory not yet allocated to any process, available (to user, not system processes) on the heap". Now true, the whole purpose of a garbage collector is that it can change that value on the fly by freeing up memory as i

Re: [android-developers] Re: ANDROID_ID - when is it set?

2010-08-11 Thread Paul Johnston
On a 1.6 device before you setup the google account there is no ANDROID_ID but there is a device id. On 10 Aug 2010 21:53, "Wayne Wenthin" wrote: There is an android id on the emulator now. It was added in the 2.1 update I think. I know it broke my code because I relied on NULL. On Tue, Aug

Re: [android-developers] Re: Droid Froyo manual update

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 5:04 PM, Abhi wrote: > It resets with Froyo and deletes all my data. Seriously? AFAIK, a factory reset should get you back to exactly how you originally got your phone for the very first time. If that doesn't work, you've got serious problems. No idea what else to tell y

[android-developers] Re: Droid Froyo manual update

2010-08-11 Thread Abhi
It resets with Froyo and deletes all my data. On Aug 11, 5:55 pm, TreKing wrote: > On Wed, Aug 11, 2010 at 4:33 PM, Abhi wrote: > > Is there any way I can switch back to the old firmware update of 2.1? > > Factory reset your phone? > >

Re: [android-developers] Droid Froyo manual update

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 4:33 PM, Abhi wrote: > Is there any way I can switch back to the old firmware update of 2.1? > Factory reset your phone? - TreKing

[android-developers] Re: Converting XML into Java in Android

2010-08-11 Thread Neilz
I like the look of this. I've already got it up and running with the basics. Good advice guys, many 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@googlegroups.com To unsubsc

[android-developers] Re: Launching barcode reading from browser

2010-08-11 Thread brucko
Take a look at the zxing web page. http://code.google.com/p/zxing/wiki/ScanningFromWebPages Essentially any web developer can do this - but you are probably relying on the BarcodeScanner app already beibg installed on the phone. (haven't really tried it out myself) Best Regards, Geoff On Aug 1

[android-developers] Re: LVL buy now button.

2010-08-11 Thread Streets Of Boston
I forgot the exact spec for the URL, but if the phone has Android Market installed and the URI starts with the "market://" scheme, then the Android Market will handle it, not the browser. On Aug 11, 5:00 pm, sblantipodi wrote: > Hi all, > is it normal that this code open the browser and returns

Re: [android-developers] LVL buy now button.

2010-08-11 Thread YuviDroid
The Emulator doesn't have the Android Market app...so it should make sense the 404 error. On Wed, Aug 11, 2010 at 11:00 PM, sblantipodi wrote: > Hi all, > is it normal that this code open the browser and returns a 404 error > in the emulator? > > Intent marketIntent = new Intent(Intent.ACTION_VIE

Re: [android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread YuviDroid
Is it possible that writing to the root of the sdcard causes problems? I've read somewhere (cannot remember where though...:S) that you cannot (or shouldn't) write to the root...maybe you can try creating a subfolder and store your image there, just to see if it has something to do with it. Sorry

[android-developers] Droid Froyo manual update

2010-08-11 Thread Abhi
Hi guys, I may be posting this question in the wrong forum. But maybe some of you are facing the same problems as me and might be able to help. I did the manual Froyo update on my Moto Droid couple of days ago after following instructions on a reliable forum. However, I have been having problems l

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread Joseph Earl
> 256MB or 512MB is still pretty typical, I think. The actual amount of space available to the user may be less than this. Devices may have significantly less than 256MB (e.g. 128MB). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: Sharable Custom UI components

2010-08-11 Thread Joseph Earl
> 1. I want to hide my custom component code from its users so that > they > just need to include it in their antivity rest its upto me. You can create a custom View. Then the developer can just include the needed class(es) (or library) and create instances of your view either from within Java or

[android-developers] best way to debug ANR...

2010-08-11 Thread sdphil
hi. what is the best way to debug ANR. ideally, it would be nice to know what call / thread / file and line number it is stalled at when the ANR occurs, but every time I look at /anr/traces.txt, I can't seem to find anything that points to something I can start tracking down. tia. -- You recei

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread Robert Nekic
256MB or 512MB is still pretty typical, I think. If you go into Manage Applications you can sort by size; you'll probably be hard- pressed to find an app using more than, oh, 10MB of space. So even a few 2 or 3 megapixel images could quickly make your app one of the larger apps on the phone.

[android-developers] Question: are Math.getExponent and Math.scalb supported on Android?

2010-08-11 Thread Danke Xie
Hi, As an experiment, I am trying to port a virtual machine written in Java to Android platform. However, it heavily uses some special floating point functions, like getting the exponent, or multiplying a floating point by a power of 2. These are done with new Java Math functions scalb and getExpo

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread Joseph Earl
It could possibly be an issue with a corrupted file or SD card. If possible ask the user to re-format their card or use a different one (this will also ensure they definitely have enough free space). Try creating a simple application that just saves an image, verifies the file exists, and then loa

[android-developers] LVL buy now button.

2010-08-11 Thread sblantipodi
Hi all, is it normal that this code open the browser and returns a 404 error in the emulator? Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( "http://market.android.com/details? id=" + getPackageName())); startActivity(marketI

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread JRich
Well, camera images can be small, but if the user doesn't bump down the megapixel setting, they may not be. How small is 'small'? I'm trying to find out now if he untethered his USB connection. How much internal memory do most devices have? On Aug 11, 4:50 pm, Robert Nekic wrote: > Are you sur

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread Robert Nekic
Are you sure the guy isn't leaving his Eris tethered to his PC and the SD card mounted? :) Well, you could simply write the images to the app's folder in the device memory; context.getFilesDir(). You'll be dealing with much less space on most devices but if you are only writing an image or two an

Re: [android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread Kostya Vasilyev
... but that is a Secure setting and, as such, can only be manipulated by applications signed with a special key (that the platform knows about). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 12.08.2010 0:26 пользователь "QR" написал: usb debugging is another name for the Android Debug Br

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread JRich
I'm not exactly sure... I'm debugging this through a user who is emailing me since I don't have an Eris to test on. I'm sending him my APK every time I make a change and crossing my fingers. Yes, it is driving me crazy because it shouldn't be device specific unless there was something different a

[android-developers] Re: Record audio problem on the LG Ally

2010-08-11 Thread skooter500
I solved it I am pleased to report and my app now works on all Android phones Nexus One's LG's, HTC etc: At last I can answer a question on this forum instead of just posting them :-) The solution it seems is to request chunks of data from the record device of size minBufferSize which you get usin

[android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread QR
usb debugging is another name for the Android Debug Bridge (ADB). The item you're looking for is here: http://developer.android.com/reference/android/provider/Settings.Secure.html#ADB_ENABLED On Aug 11, 5:39 am, Mathias Lin wrote: > Is it possible to enable usb debugging (under > settings/applica

Re: [android-developers] Testing C2DM service on Android 2.2 emulator

2010-08-11 Thread Mark Murphy
Make sure you have set up a Google account in the emulator (Settings > Accounts). On Wed, Aug 11, 2010 at 4:00 PM, Sean Liao wrote: > I am having the same problem ... any solution or any pointer? > > On Tue, Jul 6, 2010 at 9:59 AM, guligo wrote: >> >> Hi guys, >> >> I am playing around with C2DM

[android-developers] Re: Converting XML into Java in Android

2010-08-11 Thread Robert Nekic
This page is a little old but as far as I know it still applies. It covers your main options with some thought on when you might want to use one or the other. http://www.ibm.com/developerworks/opensource/library/x-android/index.html On Aug 11, 3:58 pm, Chris Stewart wrote: > I'm not sure how

[android-developers] Re: Sending email by Intent... not simply composing a message

2010-08-11 Thread DulcetTone
You're right... I misstated that. I can send SMS messages using the SDK, but cannot send email. I find that incongruous, despite the fact that the email app in the open source contains some nicely crafted code to do just that. Is every app that is to send mail to reinvent a very intricate, heavy

Re: [android-developers] Testing C2DM service on Android 2.2 emulator

2010-08-11 Thread Sean Liao
I am having the same problem ... any solution or any pointer? On Tue, Jul 6, 2010 at 9:59 AM, guligo wrote: > Hi guys, > > I am playing around with C2DM service. What I am concerned about is > that I cannot test my device-side application from Android 2.2 > emulator. The application was built mo

Re: [android-developers] Re: Converting XML into Java in Android

2010-08-11 Thread Chris Stewart
I'm not sure how much different they are from what you'll see on a platform such as .NET. I use XmlPull on the more intensive tasks and DOM if it's a very small file. I find using it, especially in DOM flavor, very similar to what you get with something like C#. Regards, Chris Stewart Fantasy

[android-developers] Re: Converting XML into Java in Android

2010-08-11 Thread Robert Nekic
I've always thought Java's options for this are cumbersome but what can you do. They are generally fairly speedy unless you are dealing with huge XML documents. I usually go with an XmlPullParser because I think it's slightly less annoying to code than the SAXParser. Or, if it is generally small

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
I had that already and won't work anyway, here is the code: ThenNnowMode.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mCamera.stopPreview(); mCamera.release(); Intent TNNIntent = new Inten

Re: [android-developers] Converting XML into Java in Android

2010-08-11 Thread Chris Stewart
Look into XmlPull for Android. I use it and have enjoyed the performance and ease of use. Regards, Chris Stewart Fantasy Football- Android app for fantasy football fanatics and MFL owners Social Updater

[android-developers] Converting XML into Java in Android

2010-08-11 Thread Neilz
Hi. In my new project I retrieve an XML file from a server. I want to convert this into Java objects. Now, clearly searching on this brings up a lot of solutions and topics, but some of them don't seem to be fully Android compatible. Also, some are over complex, with automatic class creation from

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread Robert Nekic
That kind of stuff can drive you crazy. Is the Eris still on 1.6? Have you tried creating a File object from that path and checking .exists()? Or perhaps BitmapFactory.decodeFileDescriptor? On Aug 11, 2:28 pm, JRich wrote: > This file is getting written to the SD card... it's when I try to > a

[android-developers] Re: DDMS Allocations tracker not picking up activity when using a real phone

2010-08-11 Thread Patrick
On Aug 3, 8:12 pm, Mark Murphy wrote: > -- Most of theSysinfotab (I only get "Memory" to work) CPU load under the Sysinfo tab is something I used quite a bit with an N1 running Android 2.1, but after updating to 2.2 it no longer shows the CPU usage pie chart... This is with the stand-alone DDMS

Re: [android-developers] Sending email by Intent... not simply composing a message

2010-08-11 Thread { Devdroid }
On 11 August 2010 20:37, DulcetTone wrote: > I can't see that there is a means of sending an email programmatically > by Intent, as an analog to sending an SMS.  ACTION_SENDTO simply > allows you to pre-fill-out a composition of a new email (subject, > body, addressees, etc), but not cause it to b

Re: [android-developers] Sending email by Intent... not simply composing a message

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 2:37 PM, DulcetTone wrote: > I can't see that there is a means of sending an email programmatically > by Intent, as an analog to sending an SMS.  ACTION_SENDTO simply > allows you to pre-fill-out a composition of a new email (subject, > body, addressees, etc), but not cause

[android-developers] Sending email by Intent... not simply composing a message

2010-08-11 Thread DulcetTone
I can't see that there is a means of sending an email programmatically by Intent, as an analog to sending an SMS. ACTION_SENDTO simply allows you to pre-fill-out a composition of a new email (subject, body, addressees, etc), but not cause it to be sent. Is this correct? tone -- You received th

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread JRich
This file is getting written to the SD card... it's when I try to access it I get: java.io.FileNotFoundException: /sdcard/22a107ddc81e.jpg that is the valid filename (using the MEID of the phone). Again, this code works fine on all other devices. An uninstall and reinstall of the app didn't

[android-developers] Re: POJO junit test in an Android project

2010-08-11 Thread Doug
I've set up Android test projects for my POJOs (or any code that doesn't depend on Android) and run them within Eclipse with no trouble (if that's what you're asking). You have to be tricky about the run configuration you use the launch the tests, though. -- You received this message because you

[android-developers] How to set OutputStream in the MediaRecorder ?

2010-08-11 Thread PopJ Bloodknife
I tried to create an application to streaming video while recording on the Internet. But I can only save a file , can't streaming. I think I have to set a new output stream. How to set OutputStream in the MediaRecorder ? I will hope your suggestion. Thank you. -- You received this message be

[android-developers] Re: Autocomplete with suggestions in Custom Dialog

2010-08-11 Thread viktor
This code: ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list_item, COUNTRIES); Be carefully, if you use autocomplete in Dialog, you should passing Context as 1st arg of constructor, ArrayAdapter(Context, R.layout.list_item, COUNTRIES)() Please read Java Code Style, How did you compile y

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Dianne Hackborn
*In fact Running Services shows dependencies between apps -- the gray boxes are the app processes that need to be running due to the services. Admittedly the UI is cruddy; this should be improved in Gingerbread.* * * *Going the other way (showing the services used by an app) is not very interestin

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread TreKing
Let's replace this: On Wed, Aug 11, 2010 at 11:41 AM, TreKing wrote: > On Wed, Aug 11, 2010 at 11:35 AM, Indicator Veritatis > wrote: > >> Why are you advising the use of a deprecated API that is now a NOP??? > > > She's not - she just left out the parameters to clarify. > > There are two versi

[android-developers] Re: Do we need to call System.gc() ?

2010-08-11 Thread Indicator Veritatis
Indeed: there seems to be a consensus among certain very experienced Java users, including Scott Myers ("Effective Java") and Bruce Eckel ("Thinking in Java"). That consensus is that there are three conspicuous mistakes in the design of Java: thread groups, classpath and finalizers. Of course, it

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Kostya Vasilyev
When you try to stop a service in the 2.0's new "running services" screen, Android displays a message that includes the name of the application that owns the service. At this point, the user can confirm or back out. http://3.bp.blogspot.com/_8qPyDn7SSew/S3SXdcpPwqI/AK4/lLyzjcSOYZ8/s320

[android-developers] Re: Location from cell site or from Triangulation

2010-08-11 Thread Mathias Lin
Hi, you can find sample code here: http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-an/3145655#3145655 Cheers, Mathias On Aug 11, 1:00 pm, Ajmer singh wrote: > Hi Coryat > > Thanks for your reply.However can you please let me

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Kostya Vasilyev
setForeground() is depreciated startForeground(int id, Notification notification) is the replacement, new as of 2.0 http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html -- Kostya 11.08.2010 20:35, Indicator Veritatis пишет: Why are you advising the use of a

[android-developers] Re: about handle the home key

2010-08-11 Thread Mathias Lin
I do the same on a Samsung Galaxy S with 2.1update1 and 2.2 without a problem. The approach you described is correct. My intent filter looks similar: When you press the home button first, you should get

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 12:35 PM, Indicator Veritatis wrote: > Why are you advising the use of a deprecated API that is now a NOP??? She advised the use of startForeground(). setForeground() is now a no-op. These are not the same. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://g

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 11:35 AM, Indicator Veritatis wrote: > Why are you advising the use of a deprecated API that is now a NOP??? She's not - she just left out the parameters to clarify. There are two versions of startForeground, the old one with one boolean parameter and a new one with an i

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Indicator Veritatis
And while we are dreaming, I want a display of an annotated dependency tree of services and applications, so that I the user can tell which service is needed/used by which application. And I want the annotations to take me to the application's website for a fuller explanation of how and why it uses

[android-developers] Re: Launch App in device start-up

2010-08-11 Thread Muthu Kumar K.
Thanks On Aug 11, 5:24 pm, Mark Murphy wrote: > On Wed, Aug 11, 2010 at 3:21 AM, Muthu Kumar K. wrote: > > > I am trying to launch my application instead of android home screen. > > Can you tell me what i have to do for this? > > Step #1: Write your own home screen. There is a sample home sc

Re: [android-developers] Re: How to remove an activity from the navigation stack (without finishing)

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 11:07 AM, Matt Quigley wrote: > Think about this: the onPause() would be called on the activity when you > leave it, but not onDestroy(). When you return, the onResume() is called, > but not onCreate(). > OK ... I don't see what this has to do with anything ... > > I was

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Mark Murphy
You are getting "Method called after release()" triggered by a call to stopPreview() from your surfaceDestroyed(). Call stopPreview() before release()-ing the Camera. On Wed, Aug 11, 2010 at 12:24 PM, Pedro Teixeira wrote: > I've tried stop the cam preview and release it before calling the intent

[android-developers] Re: Launch App in device start-up

2010-08-11 Thread Muthu Kumar K.
Thanks On Aug 11, 5:24 pm, Mark Murphy wrote: > On Wed, Aug 11, 2010 at 3:21 AM, Muthu Kumar K. wrote: > > > I am trying to launch my application instead of android home screen. > > Can you tell me what i have to do for this? > > Step #1: Write your own home screen. There is a sample home sc

[android-developers] Re: Making HorizontalScrollView scroll programatically

2010-08-11 Thread viktor
Why do you not use Gallery, it has all your requirements. On 11 Сер, 14:47, Amit wrote: > Hi All, > > I have a horizontal scroll view containing multiple Bitmaps of > variable length. My question is how can i make a particular bitmap > selected which in not visible on the current screen and let t

  1   2   >