[android-developers] Re: BroadCastReceiver with PhoneStateListener

2008-10-01 Thread legerb
Yep, I've seen the logging entry. I called the emulator through DDMS on eclipse. And here is my xml: http://schemas.android.com/apk/res/android"; package="android.StartServicesAtStartUp" android:versionCode="1" android:versionName="1.0.0">

[android-developers] Re: changing path r.java

2008-10-01 Thread Alan Birtles
Im not trying to get it in a different package, I want it in the same package but in a different source folder hackbod wrote: > Don't do this. The R class is created for you by the build system, > and just there for you to get constants out of. If you need those > constants from another java p

[android-developers] Re: SoundRecordingDemo in v1.0

2008-10-01 Thread De San Nicolas Jean Philippe
hello, you can record with the emulator. if, for example, you're running the SoundRecordDemo, it records from the emulator. it works for me. 2008/10/2 april <[EMAIL PROTECTED]> > > my question is how you record it using emulator? Could you give me the > instructions? > > Thanks! > > April > > On

[android-developers] Activity Lifecycle

2008-10-01 Thread elvisw
Hi everyone, Normally, when onDestroy() been called, the process is still there and waiting the system to kill it. Is it possible to kill the process in onDestroy() when every time it is called?? Is there API to exit the process by the activity itself?? Best Regards, Elvis. --~--~--

[android-developers] Re: save image in Database

2008-10-01 Thread Andrew Stadler
Are you sure that you really want to do this? It might make more sense to save each image as a file. If necessary, you could use a database to store image metadata (depending on the needs of your application). On Tue, Sep 30, 2008 at 7:02 AM, Nemat <[EMAIL PROTECTED]> wrote: > > Hi Frnds.

[android-developers] Re: Receiving SMS Messages in 1.0?

2008-10-01 Thread Justin (Google Employee)
Cristina, Set the second parameter to null. The scAddress relates to the address of the server on the cellular network that will handle the message, it is not the address of the sender. Cheers, Justin Android Team @ Google On Sep 24, 5:55 am, Cristina <[EMAIL PROTECTED]> wrote: > I have just do

[android-developers] Re: changing path r.java

2008-10-01 Thread hackbod
Don't do this. The R class is created for you by the build system, and just there for you to get constants out of. If you need those constants from another java package, just important the R class into that java file. On Oct 1, 4:03 pm, "Chris Chiappone" <[EMAIL PROTECTED]> wrote: > I was tryin

[android-developers] Re: question about Service.stopSelf()

2008-10-01 Thread hackbod
First, you should never ever leave services running indefinitely. They take resources (primarily memory) from things running in the foreground. So yes, use stopSelf() when your service is done running if that is appropriate. Exactly what you will do depends on what your service is four, there ar

[android-developers] Re: Working with Images

2008-10-01 Thread Jake Maui
I've had problems with images over 250K. Has anyone else has this problem? On Tue, Sep 30, 2008 at 2:57 PM, xMemphisx <[EMAIL PROTECTED]> wrote: > > Hello, > > What i'm currently trying to do, is load a large image... lets say the > dimensions are 1500x1500... but then i want to create other im

[android-developers] Re: Important Announcement: Handango Android Catalog

2008-10-01 Thread Eric
Thanks Peli. I have been looking this information for a while. Eric Portable Electronics Ltd www.hdmp4.com On Oct 1, 4:59 am, Peli <[EMAIL PROTECTED]> wrote: > This question has been answered > here:http://groups.google.com/group/android-discuss/browse_frm/thread/4b3e... > > Peliwww.openintents

[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-01 Thread Brad Gies
Charlie, Yes, I think we are saying ALMOST the same thing. But, I don't think & is the Escaped Ampersand. I think it's just the Ampersand, and that's why it's causing the problem. As I say, I'm not a Unicode expert, but I think the proper sequence for an escaped ampersand would be : & & I think

[android-developers] Re: Is it possible to embed links into a textview?

2008-10-01 Thread april
yes, When you create the textview in XML. You need to set a flag: android:autoLink="all". You can use just like html page. On Oct 1, 2:56 pm, David <[EMAIL PROTECTED]> wrote: > This is a similar problem to my other one. I want the links to be > database rows, not to other pages. > > Also I

[android-developers] Re: changing path r.java

2008-10-01 Thread Chris Chiappone
I was trying to think of a way to solve this also. Basically if you extend R.java somewhere else then just reference your new subR.java class and it would work. But you would still need to have the super class in the the main packaged declared in the manifest. ~chris On Wed, Oct 1, 2008 at 3:3

[android-developers] Re: How to load html file from sdcard to WebVeiw

2008-10-01 Thread Chris Chiappone
Yeah that should be relatively simple. List the contents of the SDCard and find your file. Then create a WebView and use the loadData() method to load the data as a string. ~chris On Wed, Oct 1, 2008 at 3:08 PM, Billsen <[EMAIL PROTECTED]> wrote: > > Hi, > > Is it possible to load html file in

[android-developers] Re: ADT plugin in SDK 0.9

2008-10-01 Thread Lekkala,Jyothsna
HI, I have installed the new android SDK now and eclipse 3.4 classic - Ganymede instead of eclipse 3.4 java ee. Now its working fine. I understand that I did not install modelling framerwork plugin for the eclipse and thats why the android layout editor showed the error. sorry I could not reply

[android-developers] question about Service.stopSelf()

2008-10-01 Thread j
Is the method Service.stopSelf() purely for saving resources (by cleaning up memory/cpu used by the service) when all work is done? If I don't call stopSelf(), my understanding is that my Service will simply stick around even though it has completed all the work. Is that correct? Another questi

[android-developers] Re: Getting GPS Strength ?

2008-10-01 Thread Nikkelitous
The best thing I can see is getAccuracy() in android.location.Location. It unfortunately doesn't return how many GPS satellites it's seeing but is a more abstract result gathered from all details of the connections. This, I assume would include the number of satellites their strength and other d

[android-developers] Re: sms messaging questions

2008-10-01 Thread Joey Yandle
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Please don't double post. It's obnoxious, especially on a high volume list like this one. Mailing lists often don't send your message for an indeterminate period of time, so just because you don't see it immediately doesn't mean that it was lost. >

[android-developers] Is it possible to embed links into a textview?

2008-10-01 Thread David
This is a similar problem to my other one. I want the links to be database rows, not to other pages. Also I know how to do italics and bold in textviews, how do I do things like larger text? Can a textview do that? --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: How to use findViewById(int id) out of onCreate() ?

2008-10-01 Thread Joey Yandle
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > > I'd like to use the findViewById(int id) method outside of the > onCreate(bundle) to act on some buttons. How can I do that? > What's stopping you from calling it outside of onCreate() in the same way you call it inside onCreate()? -BEGIN

[android-developers] Map pin, balloon and drag

2008-10-01 Thread MaTy
Hi, I need to create a MapView with the similar functionality of Android "Maps" application First, I need to know how to draw the similar "pin" and balloon info showed when you "search for pizza" with the arrows to iterate between the list of results, the text into the balloons and the color chang

[android-developers] Android Emulator and the Tilt Sensors

2008-10-01 Thread Randolpho
I've been searching, but I can't find any mention of them: is there any way to emulate the tilt sensors in the Android Emulator? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: unable to open AndroidManifest.xml

2008-10-01 Thread blake
I have the same problem. If I install the editor plugins, everything works fine until I restart eclipse. After that I can no longer open any of the resource files. I am running Ganymede with 1.5. I suspect the versions of the R $...class files, but I've checked them and they are all v1.5 class

[android-developers] sms messaging questions

2008-10-01 Thread Paul Fisch
I'm just installing the sdk now but I have a few questions before I go any further. Is it possible to change the functionality of the built-in text messaging application. Not just to replace it, but to actually see the code that it uses and alter it with an app. Thanks --~--~-~--~

[android-developers] Load HTML from Database and pass to WebView

2008-10-01 Thread David
OK. I need to pass html from a database to a webview. This wouldn't be difficult (wv.loadData(html, "text/html", "utf-8); ) but I need it to be able to parse links (like content://com.android.wiki/wiki/Some_Page) and load the appropriate page (Some_Page) from the appropriate page table (wiki). Ho

[android-developers] Geocoder. getFromLocationName - no results [forwardGeocode(): no feature in GLocation]

2008-10-01 Thread Rafael Fernandes
Hey guys, I'm trying to run this Geocoder map query here but no success at all... it always returns null... if I go to Emulator's Map app and search the same thing I got the desired results... I also noticed that I receive this message right after the method gets executed.. 10-01 09:35:51.095: ER

[android-developers] sms messaging questions

2008-10-01 Thread Paul Fisch
I'm just installing the sdk now but I have a few questions before I go any further. Is it possible to change the functionality of the built-in text messaging application. Not just to replace it, but to actually see the code that it uses and alter it with an app. Thanks --~--~-~--~

[android-developers] Re: when will android support/have Speech Recognition System??

2008-10-01 Thread Rabin
Before you want a speech recognition system, improve your english. The mobile's not gonna understand your English anyway. And stop putting heap of question marks after each question. As far as I know multiple question marks are put only when you are confused about something and not when you're ask

[android-developers] Re: Connect to an online SQL database

2008-10-01 Thread Mast3rpyr0
hmm that kinda sucks, maybe a PHP script run from the phoen on the webserver to get the appropriate data. but how could i do that behind the scenes? On Oct 1, 5:40 pm, Billsen <[EMAIL PROTECTED]> wrote: > I think you may try to access database in your phone directly. If that > is the case, it is

[android-developers] Re: Connect to an online SQL database

2008-10-01 Thread Billsen
I think you may try to access database in your phone directly. If that is the case, it is hard to do since there are no database drivers for Oracle, MySql, MS SQL server in android. If you really want to push data from your phone to database, you can develop application in your web server to acces

[android-developers] Re: changing path r.java

2008-10-01 Thread Xavier Ducrohet
The R.java class is always created in the package declared in manifest. The only option you have is changing the package. Xav On Tue, Sep 30, 2008 at 8:42 AM, alan <[EMAIL PROTECTED]> wrote: > > Is it possible to change the path of r.java? My application has shared > source folders with a J2ME

[android-developers] Re: Porting iPhone application to Google Phone using Android

2008-10-01 Thread adamjernst
They're completely different platforms. It's basically impossible to do any direct port. Adam On Oct 1, 3:57 pm, Yaseen <[EMAIL PROTECTED]> wrote: > Has anyone tried porting any iPhone application to Google Phone and If > yes, what are the technical aspects to take into consideration for > this

[android-developers] How to load html file from sdcard to WebVeiw

2008-10-01 Thread Billsen
Hi, Is it possible to load html file into WebView? If yes, how? Thanks, Senhsan --~--~-~--~~~---~--~~ 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] How to use findViewById(int id) out of onCreate() ?

2008-10-01 Thread erkenbrandroid
Hello, I'd like to use the findViewById(int id) method outside of the onCreate(bundle) to act on some buttons. How can I do that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] What are "CATEGORY_CONTAINER" menus and how do they get added to the menu?

2008-10-01 Thread [EMAIL PROTECTED]
>From the following article http://code.google.com/android/kb/commontasks.html#addmenuitems I see how ALTERNATIVE and SELECTED_ALTERNATIVE menu items could be added to the activity using intents and mime types. Wondering if someone can throw light on what "container" menus are and how they get

[android-developers] Connect to an online SQL database

2008-10-01 Thread Mast3rpyr0
is this possible? i need to send data from my phone to a sql server on my website instead of in an onboard SQLlite DB. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] How to have multiple Android projects in one Eclipse Project?

2008-10-01 Thread DulcetTone
I have a tree of folders containing the source for a working Android activity I hope to split into a Service and two Activities. How do I accomplish this? Can I simply add an AndroidManifest.xml to each of 3 separate Java packages? Thanks in advance. tone --~--~-~--~~

[android-developers] Re: Maximum size of database

2008-10-01 Thread Yaseen
Nice Thread and it certainly cleared my ignorance related to setting up the database. On Oct 1, 5:57 am, Ludwig <[EMAIL PROTECTED]> wrote: > The call to setMaximumSize(size) restricts the DB to that size, it is not a > function to preallocate or reserve that space. If you get to the maximum > siz

[android-developers] Porting iPhone application to Google Phone using Android

2008-10-01 Thread Yaseen
Has anyone tried porting any iPhone application to Google Phone and If yes, what are the technical aspects to take into consideration for this effort.Any reference /url/tutorial for the same highly appreciated. Thanks, Yaseen --~--~-~--~~~---~--~~ You received this

[android-developers] is the order value of Menu.CATEGORY_SECONDARY a property of the menu item or the group?

2008-10-01 Thread [EMAIL PROTECTED]
For example menu.add(0 //Group ,1 // item id ,Menu.CATEGORY_SECONDARY //Order ,"item1");// menu item name

[android-developers] Re: SoundRecordingDemo in v1.0

2008-10-01 Thread De San Nicolas Jean Philippe
yes you can. the format is .amr and you can read it with the mediaplayer. -:) 2008/10/1 april <[EMAIL PROTECTED]> > > How do you test the code without real phone? Can you record from > emulator? what is the format of sound? > > Thank! > > On Oct 1, 9:25 am, Guillaume Perrot <[EMAIL PROTECTED]> w

[android-developers] Re: SoundRecordingDemo in v1.0

2008-10-01 Thread april
How do you test the code without real phone? Can you record from emulator? what is the format of sound? Thank! On Oct 1, 9:25 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > Eventually I used a "hidden" default intent to capture a sound and > retrieve the audio file: new > Intent(MediaStore.Au

[android-developers] Re: ImageButton caching images when using Uri

2008-10-01 Thread Joe Erickson
Found the link to the bug tracker. So, nevermind. It was on the front page. :) On Oct 1, 12:16 pm, Joe Erickson <[EMAIL PROTECTED]> wrote: > No one else has seen anything like this?  Is there a way to enter this > as a bug against the Android codebase?  I haven't actually seen the > open source

[android-developers] Re: Intercept incoming call

2008-10-01 Thread hackbod
On Sep 27, 1:27 pm, Eric B <[EMAIL PROTECTED]> wrote: > One of the best apps I've every bought for my Treo 600/650 is an app > that lets you assign specific ring tones (really mp3 files) to > specific contacts or groups of contacts.  I especially like the > ability to turn off the ringer and vibra

[android-developers] Re: Intercept incoming call

2008-10-01 Thread hackbod
Sorry, intercepting incoming calls is not supported in 1.0. On Oct 1, 9:20 am, Trey Ethridge <[EMAIL PROTECTED]> wrote: > I'd like to expand the logic of when to send a call directly to > voicemail.  I believe that there would need to be a hook somewhere to > "intercept the incoming call" and de

[android-developers] Re: when will android support/have Speech Recognition System??

2008-10-01 Thread hackbod
No speech recognition in 1.0. On Oct 1, 7:02 am, Wesley <[EMAIL PROTECTED]> wrote: > Are u mean android not going to support speech recognition??? > But I saw a folder call speech inside android.jar wo??? > Others is working on??? > Means I should ask... > Anyone is working on this system??? > Ca

[android-developers] Re: SoundRecordingDemo in v1.0

2008-10-01 Thread Guillaume Perrot
Eventually I used a "hidden" default intent to capture a sound and retrieve the audio file: new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); On 1 oct, 15:12, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > I found SoundRecordingDemo in the mailing list files. > I tried this because I try to

[android-developers] Re: Intercept incoming call

2008-10-01 Thread Trey Ethridge
I'd like to expand the logic of when to send a call directly to voicemail. I believe that there would need to be a hook somewhere to "intercept the incoming call" and determine whether or not to accept it. An example use case would be to prevent "drunk dialing". There could be a setting in Andr

[android-developers] Re: ImageButton caching images when using Uri

2008-10-01 Thread Joe Erickson
No one else has seen anything like this? Is there a way to enter this as a bug against the Android codebase? I haven't actually seen the open source part of this yet (I'd actually try and fix it if it was out there already). On Sep 29, 11:09 am, Joe Erickson <[EMAIL PROTECTED]> wrote: > I'm s

[android-developers] Starting an instrumentation with an intent

2008-10-01 Thread Carl H.
Hello all, I am trying to test my activities. I have been using ActivityInstrumentationTestCase however, I can not see any way to start the activity with an intent. From what I understand the activity is started in the setup() via super.launchActivity(pkg, activityCls, extras). Is there any way to

[android-developers] Working with Images

2008-10-01 Thread xMemphisx
Hello, What i'm currently trying to do, is load a large image... lets say the dimensions are 1500x1500... but then i want to create other images FROM that loaded image, but in smaller portions... so for instance... i want to use just the pixels from [250,0] to [500,250] to make a new image (on th

[android-developers] How & When we use "KeyguardLock" or "KeyguardManager"

2008-10-01 Thread barrie
Please help me about this. I am trying to lock and unlock the keyboard but doesn't work for me. Is there anyone have experience about this class or any other useful solution. Please kindly help me out. Thanks Barrie --~--~-~--~~~---~--~~ You received this messa

[android-developers] Re: Activities Refactoring

2008-10-01 Thread skink
On 1 Paź, 15:26, Zach Hobbs <[EMAIL PROTECTED]> wrote: > You may want to consider using an ActivityGroup or TabActivity.  That way your > Activities have separate logic, but can still be animated in/out. > ActivityGroup seems to be ok but... it's docs are worse than poor: 'A screen that contain

[android-developers] Keyboard confusion

2008-10-01 Thread Rmac
Since there is no on-screen virtual keyboard built into Android, I am confused about how to plan for text entry. Let's assume there is a screen with a EditText field requiring user input. On the iPhone it works simply by a virtual keyboard popping up when the field has focus. How should an Andr

[android-developers] Re: Activities Refactoring

2008-10-01 Thread Zach Hobbs
You may want to consider using an ActivityGroup or TabActivity. That way your Activities have separate logic, but can still be animated in/out. -- Zach Hobbs HelloAndroid.com Android OS news, tutorials, downloads On Wednesday 01 October 2008 9:18:35 am skink wrote: > hi, > > some time ag

[android-developers] Re: I want to know a button's width before it is drawn on the screen! possible?

2008-10-01 Thread Romain Guy
onWindowFocusedChange works but its pure chance. As I said, you should use the ViewTreeObserver, that's what it's meant for. On Wed, Oct 1, 2008 at 2:32 AM, erkenbrandroid <[EMAIL PROTECTED]> wrote: > > Did it! Thanks Romain! :) > > For other people having the same trouble, the trick is to use th

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

2008-10-01 Thread Romain Guy
First of all, JNI is not used in our apps. Only in the framework. Then, we are working on a native SDK that will provide official and correct support for JNI. Just be patient :) On Wed, Oct 1, 2008 at 2:53 AM, MrSnowflake <[EMAIL PROTECTED]> wrote: > > I believe JNI is not supported for developer

[android-developers] Re: SAXParser reports different name on SDK 0.9 from SDK 1.0

2008-10-01 Thread Chris Cicc
Hey Brad and Charlie, I thought I'd submit my source code for everyone's reference. At this point I'm very confident this is a bug. If it isn't I clearly don't know nearly as much about XML and text encoding as I think I do :-) The XML doc being passed in looks something like this: {

[android-developers] Re: KeyListener doesn't see enter key?

2008-10-01 Thread Wesley
Hi, I have some problem to get the enter key oso... the scenario is... It seem like have a problem to get the enter key, after invoke touchEvent... Unless before I press others enter key once.. Only I can get the enter key... I dunno what is actually happen... But I saw wake lock thing if I can'

[android-developers] Getting Value from Spinner

2008-10-01 Thread Lonzo1968
How do I get the displayed value from a Spinner that is bound to a Cursor. I created and Populated a Spinner using the following, Now I can't figure out how to get the selected Item from the list.. Spinner s1 = (Spinner) findViewById(R.id.client_id); String[] cMap = new St

[android-developers] Re: Download image from server

2008-10-01 Thread Mark Hansen
I followed this short tutorial a while back for downloading an image via http, maybe it can point you in the right direction... http://www.anddev.org/gallery_with_remote_images-t769.html On Oct 1, 6:51 am, Nemat <[EMAIL PROTECTED]> wrote: > Hi, > > I have to download an image from server.But I

[android-developers] Re: when will android support/have Speech Recognition System??

2008-10-01 Thread Wesley
Are u mean android not going to support speech recognition??? But I saw a folder call speech inside android.jar wo??? Others is working on??? Means I should ask... Anyone is working on this system??? Can anyone share out??? Or open sources??? but if android have this system... I believe it will b

[android-developers] Re: Working with Images

2008-10-01 Thread Mike Reed
True. If you have the large image already decoded, calling canvas.drawBitmap(bitmap, srcRect, dstRect, paint); allows you to draw just a section of it (specified by srcRect). The above call does all the clipping etc. for you (and more efficiently than if you did the clipping yourself).

[android-developers] Re: KeyListener doesn't see enter key?

2008-10-01 Thread MrSnowflake
I haven't met your problem myself, but a possible sollution is extending EditText and handle the ENTER/RETURN in the onKeyDown/Up On 30 sep, 15:46, Christine <[EMAIL PROTECTED]> wrote: > I have a KeyListener on an EditText. The only key I want to catch is > the enter key, but that seems to be the

[android-developers] Activities Refactoring

2008-10-01 Thread skink
hi, some time ago i made design error asigning each view to separate Activity. now i want to use ViewAnimator that will contain three views. that way i'll add one Activity but remove three ones. the question is: should i move their code to new Activity or is there a way to use some 'fake' Activit

[android-developers] SoundRecordingDemo in v1.0

2008-10-01 Thread Guillaume Perrot
I found SoundRecordingDemo in the mailing list files. I tried this because I try to record a sound in one of my activities... First I had to add the RECORD_AUDIO permission in order not to have an error message. Regarding the code, the media scanner should be launched after recording, but I had to

[android-developers] Re: WebView loadData limitations

2008-10-01 Thread Mark Murphy
schmielson wrote: > As it turns out, the android:layout_height="wrap_content" used along > with android:layout_weight="1" of the WebView was preventing the > WebView from properly receiving events! After changing the WebView's > layout_height attribute to "0px" instead of "wrap_content", > should

[android-developers] Re: SAXParser reports different name on SDK 0.9 from SDK 1.0

2008-10-01 Thread Charlie Collins
I think you guys are both saying the same thing, maybe? Unless I misunderstand, Chris says he is using & which is the ESCAPED ampersand, and Brad is saying to make sure you use the entities to escape special chars. I think we all agree you should use valid XML, or it will cause issues - but the r

[android-developers] Re: Call the default mediaplayer program in Android OS

2008-10-01 Thread Baonq86
I can built my own mediaplayer but I want call the default mediaplayer program in Android OS. Can anyone help me ? On Oct 1, 4:58 pm, MrSnowflake <[EMAIL PROTECTED]> wrote: > I recon your could fire an Intent with VIEW and set the mime type to > your video file. > > On 1 okt, 11:03, Baonq86 <[EMA

[android-developers] Re: Barcodes

2008-10-01 Thread MrSnowflake
I do not have any experience with other barcode reading libraries, but I suppose the zxing is one of the most robust and open source libraries around. With a lot of supported platforms. On 30 sep, 16:41, Peli <[EMAIL PROTECTED]> wrote: > > zxing is a barcode (amongst others) reader. > > Actually

[android-developers] ServiceState

2008-10-01 Thread e
hi all, can anyone tel me how to use ServiceState??? --~--~-~--~~~---~--~~ 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

[android-developers] Re: How to use my custom library apk file in other applications.

2008-10-01 Thread Guillaume Perrot
There is maybe some workarounds though: * You can provide intents which will be caught by some BroadcastReceiver which will set the result that you can retrieve if you used Activity.sendOrderedBroadcast, though I never tested this function. * You can provide a service with an aidl interface file y

[android-developers] Issue with plotting my location on Maps

2008-10-01 Thread Sidhartha
Hi Android Champs!!! I am currently facing an issue with my android application. The application when executed displays a static map of north and south america. I have created a menu option for displaying my current location. When someone clicks on the menu "My Location" it executes a method to d

[android-developers] Re: Mock Location Providers in 1.0

2008-10-01 Thread Sidhartha
Hi Cristina, I could not get the code you have used working for my case. Could you also share the manifest file? Cheers, Sidhartha On Sep 26, 12:25 pm, Cristina <[EMAIL PROTECTED]> wrote: > Just one thing I forgot...KML still does not work for me, but GPX and > Manual work OK...and by now that

[android-developers] Re: how to disable the "back " key for the phone

2008-10-01 Thread Guillaume Perrot
If you want to finish an activity when pressing HOME, you can achieve this with the manifest flag: finishOnTaskLaunch = true (you should also look at allowTaskReparenting if you use task affinities). On Oct 1, 12:01 pm, MrSnowflake <[EMAIL PROTECTED]> wrote: > On 1 okt, 04:06, hackbod <[EMAIL PRO

[android-developers] Re: Bitmap on sdcard & decodestream

2008-10-01 Thread Guillaume Perrot
No comment :p On Sep 30, 6:48 pm, Matteo Crippa <[EMAIL PROTECTED]> wrote: > Thanks Romain, you are right! > I totally forgot to init it... and it was driving me crazy :( > > On 30 Set, 18:24, "Romain Guy" <[EMAIL PROTECTED]> wrote: > > > The fix is simple, initialize you array photos. In the bug

[android-developers] Re: Maximum size of database

2008-10-01 Thread Ludwig
The call to setMaximumSize(size) restricts the DB to that size, it is not a function to preallocate or reserve that space. If you get to the maximum size you will get an error that the DB is full.In the course of normal action you do not need to set the maximum size, it will just grow with the data

[android-developers] Download image from server

2008-10-01 Thread Nemat
Hi, I have to download an image from server.But I got an error "D/skia ( 197): xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x%02x" I have to perform two continues Http connection.First is used to get server response and second to get image from the server.First task is performe

[android-developers] Re: Maximum size of database

2008-10-01 Thread Shraddha
Thanks. Additionally, what if the size of my database grows beyond the memory specified? Will it automatically increase to accommodate increased space requirement ? On Oct 1, 11:50 am, hackbod <[EMAIL PROTECTED]> wrote: > There is no limit on the size of the database, except for available > stor

[android-developers] Re: when will android support/have Speech Recognition System??

2008-10-01 Thread MrSnowflake
I believe someone was working on such a library, but I've read it a couple months ago, so I'm not sure how it was called. On 30 sep, 03:51, Wesley Sagittarius <[EMAIL PROTECTED]> wrote: > hi, > > when will android support/have Speech Recognition System?? > anyone have any ideas??? > > Wesley. --~

[android-developers] Re: how to disable the "back " key for the phone

2008-10-01 Thread MrSnowflake
On 1 okt, 04:06, hackbod <[EMAIL PROTECTED]> wrote: > But keep in mind that the user can still get out of your application > with the HOME key, and there is absolutely no way for you to prevent > that. That seems to be true, but there is const: KeyEvent.KEYCODE_HOME. I have tried anything with t

[android-developers] Re: Call the default mediaplayer program in Android OS

2008-10-01 Thread MrSnowflake
I recon your could fire an Intent with VIEW and set the mime type to your video file. On 1 okt, 11:03, Baonq86 <[EMAIL PROTECTED]> wrote: > Does anyone know to built an application to call the default > mediaplayer program in Android OS ? --~--~-~--~~~---~--~~ You

[android-developers] Re: Application for turning off mobile ?

2008-10-01 Thread MrSnowflake
What is your aim? I've written a simple service and config tool which switches your device to silent when you put it upside down in your pants: http://code.google.com/p/snowservices/wiki/GravityRinger To silence your device use: [code] AudioManager audioMgr = (AudioManager)getSystemService(Contex

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

2008-10-01 Thread MrSnowflake
I believe JNI is not supported for developers, because 1: It would require developers to build libs for every different android platform out and 2: While Google (probably) uses JNI, they can just change the JNI interface and fix their code, but say if you JNI able program works on SDK 1.0r1 and th

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

2008-10-01 Thread Tauno T
Oh, sorry, I misunderstood you there :) On Oct 1, 12:37 pm, Volker Gropp <[EMAIL PROTECTED]> wrote: > Hi, > > you may call it unfair of course. But please keep in mind, they did > not tell us that they use it in their apps. But they use it in their > API to delegate calls to native libs. > > Rega

[android-developers] Re: I need help in http connection???

2008-10-01 Thread Charlie Collins
Pretty standard there too - see the java.net package: http://code.google.com/android/reference/java/net/package-summary.html. One thing to keep in mind is, if you are trying to connect to your localhost for testing, say another process running locally - you have to keep in mind that the emulator

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

2008-10-01 Thread Volker Gropp
Hi, you may call it unfair of course. But please keep in mind, they did not tell us that they use it in their apps. But they use it in their API to delegate calls to native libs. Regards Volker On Oct 1, 11:18 am, Tauno T <[EMAIL PROTECTED]> wrote: > Isn't it a little .. how do I say it.. unfai

[android-developers] Re: I want to know a button's width before it is drawn on the screen! possible?

2008-10-01 Thread erkenbrandroid
Did it! Thanks Romain! :) For other people having the same trouble, the trick is to use the onWindowFocusChanged(boolean hasWindowFocus) class like in this example : public void onWindowFocusChanged(boolean hasWindowFocus) { int maxButton; // I save the biggest button width in this variable Bu

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

2008-10-01 Thread Tauno T
Isn't it a little .. how do I say it.. unfair to tell us that JNI is not supported at all and then use it in their own apps to make them better and give them more features than are available to the rest of the developers? On Oct 1, 11:49 am, Volker Gropp <[EMAIL PROTECTED]> wrote: > Hi Ranjeet, >

[android-developers] Re: Alignment issue related to ListView

2008-10-01 Thread Sudha
thnaks but no change ! --~--~-~--~~~---~--~~ 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] Call the default mediaplayer program in Android OS

2008-10-01 Thread Baonq86
Does anyone know to built an application to call the default mediaplayer program in Android OS ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-

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

2008-10-01 Thread Volker Gropp
Hi Ranjeet, although I'm not the Android Dev Team i can tell you what ive been told last weeks about this topic: JNI is currently not supported in SDK 1.0. The reason is not quite clear, some say cause it may not work at all, or may break in the (near) future. Plus your app wont be portable and n

[android-developers] Application for turning off mobile ?

2008-10-01 Thread Baonq86
Does anyone help me to built the application to turn off the Android mobile or switch to silent mode in mobile? I don't see it in the library android.os ! Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

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

2008-10-01 Thread Ranjeet
Dear Android Dev Team, My apologies if I am asking a question that's already been answered. Unfortunately I haven't been able to find any documentation within Android's reference that officially states Google's position on usage of JNI/SharedObjects (written in C++ and compiled via a cross compil

[android-developers] Re: Maximum size of database

2008-10-01 Thread Yaseen
As far as my knowledge goes , the max size that can be set or used for creating a database is 256mb. On Oct 1, 1:06 am, Shraddha <[EMAIL PROTECTED]> wrote: > I am considering two options of creating database and interested in > knowing the maximum size that can be given to a database. > 1. I see

[android-developers] Re: Dynamic insert code into an existing .apk

2008-10-01 Thread Shraddha
The code would be in the dex file in the apk. If we can get a way to extract the classes out of dex or decompile the .dex in an apk, we would probably be able to modify the code inserted there. I dont have information on decompiling or extracting classes out of dex. On Oct 1, 9:29 am, wiki <[EMA