[android-developers] Problem in running the android sky widget

2009-07-14 Thread n179911
Hi, I have download the android sky project and able to get it to compile it under eclipse. http://code.google.com/p/android-sky/ But when i try to add a 'Forecast' Widget on emulator, it pops up a 'Configure forecast widget', then I click 'Manual search' , I entered '60005' as my zip code.

[android-developers] multiple-process in single application.

2009-07-14 Thread magicpig
HI, I need two activities run in different processes in the same application. Now I have made it work by specifying the different process name in android:process. But I met a problem, from http://developer.android.com/guide/topics/manifest/application-element.html#nm, we have

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Dianne Hackborn
Sorry, you can't do that. There are really very few reasons to have a custom Application anyway. I would generally suggest staying away from it, and just using statics for your globals. On Mon, Jul 13, 2009 at 11:17 PM, magicpig zsumagic...@gmail.com wrote: HI, I need two activities

[android-developers] Re: How to write async socket with Android?

2009-07-14 Thread James
Hi Victor Lin: I don't know why could your problem happen,As One socket have both inputstream and outputstreams,They are responsible for read and write; And as far as i call tell,Socket is not android-specified,Hope this helps! Bgs! James On Jul 14, 12:57 pm, Victor Lin borns...@gmail.com

[android-developers] Re: Limit content provider access

2009-07-14 Thread Dianne Hackborn
By far the easiest way is to do this based on app certificates -- just use android:readPermission and android:writePermission in the manifest, and declare the permission you are using there with permission to be android:protectionLevel=signature. Then only apps signed with the same certificate as

[android-developers] Re: How to write async socket with Android?

2009-07-14 Thread Victor Lin
Well, but will the read of InputStream blocked when there is no incoming data? I mean... for example: I run the sock in specific thread, because those methods' call will blocked. The code might like this: /// This is the socket thread for checking data while not stop: data = read(); // if

[android-developers] GPRS Data rate

2009-07-14 Thread kalyan simhan
hi all.. is there any way to get the gprs data transfer rate.. are there any APIs available??.. im using android 1.1 sdk... any code snippet would be of great help.. thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] unable to get xml from Soap Web services .....

2009-07-14 Thread android.vinny
HI I am consuming SOAP web service in android. like this //CALL the web service method SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);

[android-developers] Re: When Parsing the Soap response problem...

2009-07-14 Thread android.vinny
HI Thanks For Ur Reply But it is not a JSON Response Is there any possiblilities og getting JSON response in Soap Web Services I am consumng NUSoap Web Services On Jul 12, 3:18 am, Christine christine.kar...@gmail.com wrote: I am not familiar with KSOAP, but if that's the json

[android-developers] Exception when loading url with HttpURLConnection

2009-07-14 Thread Alex
String urlString = http://bks7.books.google.com/books? id=EBY4MAAJprintsec=frontcoverimg=1zoom=5sig=ACfU3U2NGdob1xFo6l1Y07qriP1eOHArDwsource=gbs_gdata; URL url = new URL(urlString); Bitmap bm = BitmapFactory.decodeStream(url.openStream()); Then, an exception pops up. *** 07-14 16:01:34.218:

[android-developers] Re: Google route directions no turn by turn Legal License

2009-07-14 Thread Lex
I am only familiar with the general Maps/Earth API Terms of Use, which can be found here: http://code.google.com/apis/maps/terms.html See if you can find anything there about your issue. On Jul 13, 2:40 pm, -lm - kimb...@gmail.com wrote: Dear Android community, i've a license/legal question

[android-developers] Re: Connect android emulator to internet

2009-07-14 Thread Lex
See Number 3: http://developer.android.com/guide/tutorials/views/hello-mapview.html On Jul 13, 1:28 pm, renjith mp renjith...@gmail.com wrote: Hi All, Please let me know how to connect to internet from android emulator. Here  the details of my development environment

[android-developers] BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
For some reason, the BATTERY_CHANGED event has stopped being broadcast by the phone. I have my application setup properly: 1. I have a broadcast receiver setup with the filter of android.intent.action.BATTERY_CHANGED in the manifest. 2. I have permission of android.permission.DEVICE_POWER also

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
Oh, and I do have permission android.permission.BATTERY_STATS included in the manifest as well. So. what's wrong? Any ideas? Thanks in advance, Richard Schilling Root Wireless On Jul 14, 1:54 am, Richard Schilling richard.rootwirel...@gmail.com wrote: For some reason, the

[android-developers] LayerDrawable for SeekBar

2009-07-14 Thread Alfred
I want to custom the SeekBar.If I used a LayerDrawable that created from XML as the progressDrawable of SeekBar,it worked well.But, when I create LayerDrawable in program,it didn't work.Any one can help me? Thanks. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to force a line break in xml layout when using list adapter?

2009-07-14 Thread Christian S.
Ok - no worries anymore. I got that sorted out. Should use layout_below instead of layout_toRightOf. Thanks to the anddev team! On Jul 13, 7:25 pm, Christian S. schrott...@gmx.de wrote: I am struggling with applying a forcedlinebreakin the xml layout when using a simple list adapter. The data

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-14 Thread sasq
Have you turned on debugging from the phones settings? (Applications - Development - USB debugging) On Jul 11, 9:54 pm, da yang daboil...@googlemail.com wrote: Hi i got this new mobilephone this week in Germany, wanted to debug my program on the device. but it doesn't work, c:\ adb devices

[android-developers] Re: Google route directions no turn by turn Legal License

2009-07-14 Thread -lm -
Thanks Lex as far as i know here's the implications of the SDK license: 8.1 Google Data APIs 8.1.1 If you use any API to retrieve data from Google, you acknowledge that the data may be protected by intellectual property rights which are owned by Google or those parties that provide the data

[android-developers] Re: httpclient multipart form upload

2009-07-14 Thread jottos
So, figured this out, and you were not too far from the answer. Our router was hanging up the requests that were going outbound and then back into our internal staging server. No idea why, but once we understood that and pointed the app at an external server, or used cellular connections

[android-developers] Re: Multipart file post fails

2009-07-14 Thread jottos
Solved Our router was hanging up the requests from the phone that were going outbound and then back into our internal staging server. No idea why, but once I understood that and pointed the app at an external server, or used cellular connections everything works Everyone please feel free to use

[android-developers] Re: httpclient multipart form upload

2009-07-14 Thread John Smith
2009/7/14 jottos jot...@gmail.com So, figured this out, and you were not too far from the answer. Our router was hanging up the requests that were going outbound and then back into our internal staging server. No idea why, but once we understood that and pointed the app at an external

[android-developers] force repaint after setVisibility

2009-07-14 Thread condor
Hello I have a view containing a ListView and a keybord By default the Keyboard is on visibility status = to GONE. At one moment I want to show the keyboard to modify a value selected in the list. So I set keybord visible, and a set the selected element in top of the shown list.

[android-developers] SurfaceViews handling, Thread, and general game design

2009-07-14 Thread ayanir
Hello, I'm a new Android developer. I would like to make a simple game using the SurfaceView (Canvas drawing). the game has a a custom Object name Box. Box can draw itself and need to get an event when it is clicked. when it does, there is an animation sequence coming out of the box like a

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-14 Thread hanged_man
you can use the default image viewer using intents (you dont have to implement your own), i don't remember exactly how it is done but ill send you the code in a few hours. On Jul 14, 8:37 am, Desu Vinod Kumar vinny.s...@gmail.com wrote: Hi One More thing I need to Specify I need to

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-14 Thread Desu Vinod Kumar
Hi Thanks for giving response .. if u send the code it will be very helpful for me On Tue, Jul 14, 2009 at 5:09 PM, hanged_man majd...@gmail.com wrote: you can use the default image viewer using intents (you dont have to implement your own), i don't remember exactly how it is done but

[android-developers] Re: Problem in running the android sky widget

2009-07-14 Thread bhoj
same here even I am facing the same problem On Jul 14, 11:07 am, n179911 n179...@gmail.com wrote: Hi, I have download the android sky project and able to get it to compile it under eclipse. http://code.google.com/p/android-sky/ But when i try to add a 'Forecast' Widget on emulator, it

[android-developers] Re: Connect android emulator to internet

2009-07-14 Thread Desu Vinod Kumar
HI U need to connect the internet in application uses-permission android:name=android.permission.INTERNET / add these permission in android manifest file or u want to use internet in emulator browser. http://www.anddev.org/viewtopic.php?p=10379 go through these steps On Mon, Jul 13, 2009

[android-developers] Re: oauth_callback is not calling the activity

2009-07-14 Thread dar
At first glance, it looks like the host parameter does not match your oauth_callback. On Jul 13, 7:16 pm, bo bost...@gmail.com wrote: I have a Twitter app and I need user of my Android application to authorize its use. I'm at the point where I can call Twitter app page in the browser from my

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-14 Thread pperotti
Hi Romain, I am actually using in List3 adapter.notifyDatasetChanged(). This do not freeze the app but do not allow the user to scroll perfectly as in List1. For some reason (the amount of operations probably in the AsyncTask) the ListView is not entirely independent from the data set affecting

[android-developers] Re: Associate app to open email attachments

2009-07-14 Thread Mirko Nasato
On Jul 10, 7:13 pm, Alexey Krasnoriadtsev ale...@agilefusion.com wrote: You are correct that you should use contentResolver.openInputStream (uri), to get the data from gmailattachments. Thanks Alexey, will try that for integrating with the GMail app. Default Email app, is very dumb and is

[android-developers] Disabling Screen Break with subsequent Preference Screens through XML.

2009-07-14 Thread Ravi
Hi, I need to display another PreferenceScreen through xml which occupies the full screen. Calling addPrefrencesFromResource(id) with different id results in Screen Break handled by Preference Framework. setPreferenceScreen(mPS) could be called again it works fine but it is through

[android-developers] Re: how to obtain a virgin map ?

2009-07-14 Thread Eden
yes thx i found it but this code needs an internet connection so if it's impossible to connect there no map view or no ? anyway it seems to be the best way to obtain a virgin map... i' m waiting for others advices. N.B : what is the proportion of android smartphones having a full time internet

[android-developers] Re: how to obtain a virgin map ?

2009-07-14 Thread John Smith
2009/7/14 Eden clement.mart...@gmail.com yes thx i found it but this code needs an internet connection so if it's impossible to connect there no map view or no ? anyway it seems to be the best way to obtain a virgin map... i' m waiting for others advices. Nope, it can cache files to sdcard

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-14 Thread Streets Of Boston
First: You directly modify the activity's attribute 'items' (that serves as your data in your list-adapter) in your background thread, without any proper synchronization with the main GUI-thread. This is bad news. It may work for a while, but it's bound to fail at some point. Second (and i

[android-developers] Re: How to write async socket with Android?

2009-07-14 Thread Walter
You usually need different threads to read and write, prevent blocking the UI thread. On Jul 14, 12:49 am, Victor Lin borns...@gmail.com wrote: Well, but will the read of InputStream blocked when there is no incoming data? I mean... for example: I run the sock in specific thread, because

[android-developers] Re: how to obtain a virgin map ?

2009-07-14 Thread Eden
thanx John !! i need to examine your solution, but if i use getResources ().openRawResource(R.raw.tile), i could retrieve my own tile or i'm mistaken ? On Jul 14, 4:07 pm, John Smith deltafoxtrot...@gmail.com wrote: 2009/7/14 Eden clement.mart...@gmail.com yes thx i found it but this code

[android-developers] OpenGL ES, How to rotate a cube?(3D Rotation)

2009-07-14 Thread quill
In the api demo, there is an example for how to rotate a cube, but it can only rotate about X axis or Y axis, without Z-Axis Rotation. So how to perform 3D Rotation? Any advice is appreciated. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: how to obtain a virgin map ?

2009-07-14 Thread John Smith
2009/7/15 Eden clement.mart...@gmail.com thanx John !! i need to examine your solution, but if i use getResources ().openRawResource(R.raw.tile), i could retrieve my own tile or i'm mistaken ? No idea, I've never needed to only use it offline.

[android-developers] help with Text size

2009-07-14 Thread Sujay Krishna Suresh
Hi all, I have a user preference to get the text size in my application. It works fine when it is used with textView.setTextSize(textsize); but when i use it with paint.setTextSize(textsize) then canvas.drawtext(), the size becomes t large... Plz help me with this... is

[android-developers] Re: OpenGL ES, How to rotate a cube?(3D Rotation)

2009-07-14 Thread Streets Of Boston
Take a careful look at the API Demo code. And then take a look at the OpenGL ES documentation (http:// www.khronos.org/opengles/) Having the code that shows you how to rotate around the X or Y axis, it should not be hard to figure out how to rotate along the Z axis On Jul 14, 11:23 am, quill

[android-developers] Re: Limit content provider access

2009-07-14 Thread AndroidKing
Thanks for the reply That doesn't really help I want to limit the access based on the package name. The package name will have different signature from my App. I added android:readPermission and android:writePermission to the content provider but what is the use, any package can add these two

[android-developers] Home screen widgets and menu?

2009-07-14 Thread Kaj Bjurman
Hi, I'd like to know what the prefered way is when it comes to associating a menu with a home screen widget? I guess that it can't have an option menu, since it isn't an activity, and that it can't have a context menu since press-and-hold is used to move a home screen widget. What to do? Click

[android-developers] Re: Limit content provider access

2009-07-14 Thread Dianne Hackborn
You can limit who can get the permissions based on certificate, to control who can get the permission, using android:protectionLevel=signature. The package name is not secure at all -- anyone can write an app with a particular package name, you have no idea what app it actually is based on that.

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-14 Thread legerb
Hey, I just got this device too. Trying to figure out how to debug on device too. According this http://groups.google.com/group/android-beginners/browse_thread/thread/167b279683bddc8a Samsung have their own adb. Please update the thread if you've got any progress :) thanks ahead! On Jul 11,

[android-developers] Re: SurfaceViews handling, Thread, and general game design

2009-07-14 Thread Dianne Hackborn
I very strongly recommend that you don't use multiple surface views. A surface view is a very heavy-weight object, and intended for the primary area of the window -- for example, the video part of a video player, the playfield of a game, etc. It is basically an overlay, and actually its own

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-07-14 Thread doubleminus
Isn't that what the first lines of code do? File file1 = new File(Environment.getExternalStorageDirectory(), file_name); On Jul 13, 3:02 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Simple. :-) The error says that the file does not exist... that means you should create it. Use

[android-developers] Re: HTC Magic

2009-07-14 Thread A R
Hi, I was facing the same problem. I am not an expert but what all I can gather from various posts it seems our SPL cannot be rooted. Please see http://forum.xda-developers.com/showthread.php?t=529019 quote Haykuro quote : T-Mobile myTouch : 1.33.0006 and 1.33.0010 is the dreaded perfected

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Dianne Hackborn
Fwiw, you don't need that permission to get the battery state. Other than that, I can't really help you. If the status bar battery indicator is changing, then the broadcast is indeed being sent, because it is driven off of that. On Tue, Jul 14, 2009 at 1:56 AM, Richard Schilling

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-14 Thread David Turner
You need a different version of ADB to access this phone at the moment. A future release of the SDK will provide an ADB binary that should be able to do that, but this is not available yet as far as I know. You're quite on the bleeding edge, aren't you ;-) On Tue, Jul 14, 2009 at 6:05 PM, legerb

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
That's a good point. I will try registering the broadcast receiver programmatically as well to see if there's a difference in behavior. Richard Schilling Root Wireless On Jul 14, 9:08 am, Dianne Hackborn hack...@android.com wrote: Fwiw, you don't need that permission to get the battery

[android-developers] Re: how can the contact be writen to SIM card?

2009-07-14 Thread Water E
--values.put( name, ); replace as : --values.put( tag, ); Good Luck! 2009/5/14 蓝思中 lan.sizh...@gmail.com Hi guys, I am trying to store a contact in the SIM card, but I found nothing for it in the G1 phone. Then, I assumed that it may be because G1's application doesn't use the

[android-developers] Configuring APN's PAP authenticat ion / Habilitando la autenticación PAP para mi APN

2009-07-14 Thread Fran Sánchez
Buenos días. Tengo la HTC Magic (con Android 1.5). Para mi trabajo necesito configurar una APN que tenga autenticación PAP, además necesito configurar mi propia IP y DNS. Veo que es imposible hacerlo con mi versión actual. Mi pregunta es: ¿cambiará esto en próximas versiones? ¿Hay alguna

[android-developers] Notepad tutorial improvements

2009-07-14 Thread Macarse
Hi, I've been doing the notepad tutorial @ http://developer.android.com/guide/tutorials/notepad/index.html 1) I've added a char counter on top of the body doing this: note_edit.xml = http://pastebin.com/f5fda29fe NoteEdit.java = http://pastebin.com/f4495e573 Questions with this: - Are there any

[android-developers] MapActivity not showing more than 1 GeoPoint

2009-07-14 Thread Bryant
Hi there, I've been playing around with the MapActivity all day and haven't figured out how to add more than 1 OverlayItem to the map overlays. From following the http://developer.android.com/guide/tutorials/views/hello-mapview.html tutorial, it says that another overlayitem can be added by

[android-developers] Mipmap Generation

2009-07-14 Thread Mike
I've created a simple heightmap renderer for Android, and am at the point where I'd like to apply textures to the terrain. I've had success with applying a simple texture but there is an unbearable amount of texture aliasing visible, I guess because there are no mipmaps for the texture. I could

[android-developers] Re: Camera in portrait mode

2009-07-14 Thread m
Hi Indra, Can you give a code snippet on how you did it? Especially the rotation of the view. I have a surfaceView that I need to rotate. Thanks in advance. Best regards, Mikkel On 3 Jul., 16:01, indra b.indran...@gmail.com wrote: Hi, There is no way of getting the camera preview in

[android-developers] Soft keyboard Layout

2009-07-14 Thread I_Shove
Hello Is it possible to change the layout of the softkeyboard ? Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How to connect to internet from android emulator browser .

2009-07-14 Thread siva c
When you dev machine is connected to internet the emulator browser should be able access the internet... Check the below thread for detail http://groups.google.com/group/android-beginners/browse_thread/thread/0ababd5e40398e49/fbdd321643bf48e1 On Mon, Jul 13, 2009 at 7:43 AM, renjith mp

[android-developers] Not responding

2009-07-14 Thread Siva
Hi I am new to android , i try to run one application i getting error application is not responding . what is the problem ? I am not getting any error at the application before running in eclipse . pls any one help me. --~--~-~--~~~---~--~~ You received

[android-developers] How to detect Application Inactivity ?

2009-07-14 Thread elpix1
Hi all, My application has several Activities which the user can interact with and open Dialog Boxes from them. I need a way to detect when there is no user interaction with any of the Activities and Dialog Boxes after a certain amount of time (configurable by the user) and force a logout of the

[android-developers] Content Provider Permission

2009-07-14 Thread Isis
Hi All, I want to delete Downloads provider data. And I have added permission in AndroidManifest.xml, But it doesn't work, the log gave me a pid and an uid, I guess the problem is caused by these two ids.If it's true, what can I do to solve this problem. AndroidManifest.xml as

[android-developers] Android GUI testing

2009-07-14 Thread AndroidAutoTest
I am investigating to improve test engine for automating android platform. The test engine I developed controls UI component by the absolute coordinate of the screen, not by its control ID. For example, if I want to click a button A, I can send a command to click the button by tapping the screen

[android-developers] EditText cursor position in pixels/dip

2009-07-14 Thread sr
I'd like to position a widget at the cursor position of an EditText widget. This will be a widget on top of the cursor - to move as text is entered into the EditText widget. Currently, I'd using a TextChangedListener and rendering the text locally to figure the pixel position. Painting the text

[android-developers] Re: Problems in using android to developing facebook applications .

2009-07-14 Thread Vijay
Did anyone find a solution for this problem? Thanks. On Jul 10, 3:19 am, Josh rhonnypudd...@gmail.com wrote: I'm having this same problem with jaxb. Anyone out there have any idea why this happens? On May 13, 3:04 am, daen sz.d...@gmail.com wrote: I have no idea yet. now I'm using

[android-developers] what is android.process.acore used for?

2009-07-14 Thread Nick Hsiao
some package whether in apps or provider directory adds it self into android.process.acore by adding application android:process=android.process.acore in AndroidManifest.xml, I dont know if there is difference between not adding or adding this line??? thanks~

[android-developers] Re: How to get and edit button in an AlertDialog

2009-07-14 Thread Chris
I had the same problem of getButton() returning null. Just reorder the calls so that you show() the dialog before trying to access its buttons: AlertDialog alertDialog = builder.create(); alertDialog.show(); Button button = (Button) alertDialog.getButton(BUTTON_POSITIVE); // edit the button

[android-developers] Lock screen feature does not work

2009-07-14 Thread Jerry Wang
Hi there, I have ever saw the similar discussion in this group, but nobody answer. And I am very confusing about this feature. Because most of developers do not seem to meet this problem. The problem is when I press ENDCALL button, it does not going into Screen Lock view. And I have download

[android-developers] HttpsURLConnection getResponseMessage throws IOException, despite server response

2009-07-14 Thread Stephen Abrams
Hello, I now have a solution to my problem, as I only needed to authenticate via HTTPS, encrypting username and password, get the session cookie, and use this cookie for future HTTP communication. However, I would like to understand why there was an IOException generated from a

[android-developers] File.isFile() and File.isDirectory() both return false

2009-07-14 Thread Anirudh
Hi, I have a function to list the contents of a directory. For the contents of the directory /System, both isDirectoy and isFile functions return a false value. How is this possible? Please clarify. The code snippet for reference: 1. public void populateContents(String dir) { 2.

[android-developers] Re: Camera in portrait mode

2009-07-14 Thread m
Hi Indra, Is it possible that you can share any code snippet on how you do the rotation? Especially how do you rotate the view? I have a surfaceView that needs to get rotated and I have not found any ways of doing it. Best regards, Mikkel On Jul 3, 4:01 pm, indra b.indran...@gmail.com wrote:

[android-developers] Re: Service won't stop when exiting application

2009-07-14 Thread Lex
Ooops that was a typo when I posted the message. ccClient and cocarClient are supposed to be the same object. But I was indeed passing something else. In public void onStop() { super.onStop(); stopService(new Intent(this, cocarClient.getClass()));

[android-developers] Re: File.isFile() and File.isDirectory() both return false

2009-07-14 Thread David Turner
Maybe because your application has no permission to access the corresponding file/directory? On Tue, Jul 14, 2009 at 12:06 PM, Anirudh aithalanir...@gmail.com wrote: Hi, I have a function to list the contents of a directory. For the contents of the directory /System, both isDirectoy and

[android-developers] Re: File.isFile() and File.isDirectory() both return false

2009-07-14 Thread Dianne Hackborn
Also there is no such directory /System (with a capital S), and it looks like this code may be using raw leaf names as top-level names it tries to find, which also wouldn't exit. That is, there is no bin dir, but there is a /system/bin On Tue, Jul 14, 2009 at 9:44 AM, David Turner

[android-developers] How to query the number of unread SMS

2009-07-14 Thread n179911
Hi, Can you please tell me how can i query the number of unread SMS in android programmically? i.e. How can I implement the SMS unread count like this link: http://android.kanokgems.com/sms-unread-count/ Thank you. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: what is android.process.acore used for?

2009-07-14 Thread Dianne Hackborn
It's an internal process where we can run a bunch of stuff that is frequently used (home, contacts provider, user dictionary provider, etc) without having to spend separate processes for each. So basically it is an optimization. On Tue, Jul 14, 2009 at 2:50 AM, Nick Hsiao w0512...@gmail.com

[android-developers] Re: Lock screen feature does not work

2009-07-14 Thread Dianne Hackborn
Please post questions about building the platform on android-porting, thanks. Fwiw, this has been asked a number of times, and it is because your device hasn't been provisioned yet. On Tue, Jul 14, 2009 at 1:01 AM, Jerry Wang b8603...@gmail.com wrote: Hi there, I have ever saw the similar

[android-developers] Re: Android GUI testing

2009-07-14 Thread Dianne Hackborn
You can use Instrumentation, which allows test code to run inside the app, so it can directly access views and retrieve them with things like View.findViewById(). On Tue, Jul 14, 2009 at 7:55 AM, AndroidAutoTest kim.jungs...@gmail.comwrote: I am investigating to improve test engine for

[android-developers] Re: Soft keyboard Layout

2009-07-14 Thread Dianne Hackborn
Only if you write your own IME. On Tue, Jul 14, 2009 at 4:37 AM, I_Shove thomas.j...@gmail.com wrote: Hello Is it possible to change the layout of the softkeyboard ? Regards -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Dianne Hackborn
Oh if you are doing this in your manifest, then that won't work: http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED On Tue, Jul 14, 2009 at 9:17 AM, Richard Schilling richard.rootwirel...@gmail.com wrote: That's a good point. I will try registering the

[android-developers] Re: TDD on Android (or should I say Dalvik)

2009-07-14 Thread jimshowalter
I don't see mocks for SQLiteDatabase or Cursor in android.test.mock. I want to test my data model without using the actual database. I tried using EasyMock to do that, but it flunked Verify on the emulator. I tried creating my own stub, but the default constructor for SQLiteDatabase wasn't

[android-developers] Re: How to write async socket with Android?

2009-07-14 Thread Moto
I just googled: java async socket And got this tutorial: http://games.fabiolee.com/post.asp?id=418 I'm not sure if it helps... Moto! On Jul 14, 11:17 am, Walter androidremotecont...@gmail.com wrote: You usually need different threads to read  and write, prevent blocking the UI thread. On

[android-developers] getDeviceId returns null

2009-07-14 Thread MCON Dev
Hi, I am running this piece of code myDevice = Globals.getInstance().getDevice(); this.deviceID = myDevice.getDeviceId() ; with the below xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.org.mcruiseon.client

[android-developers] Re: Speech Recognition

2009-07-14 Thread Steven
I figured out what was wrong. But like the commenter below I get the recognizer is not present displayed when I run my code in the emulator. I read that google voice search must be installed for the voice recognition intent to work. Is this correct? -Steven On Jul 9, 6:08 pm, Mark Murphy

[android-developers] Re: HOWTO push kernel repo into android.git.kernel.org?

2009-07-14 Thread Yusuf T. Mobile
Or the repo mailing list. But before you ask them, read this: http://source.android.com/submit-patches/workflow Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
Thanks for the reply. I am trying hard to merge them together and the Application logic seems a little more than setting the globals, such performing differently on onLowMemory, onTerminate and onConfigurationChanged. So,is it possible to get the intent that starts the activity or the

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
Thanks for the reply. I am trying hard to merge them together and the Application logic seems a little more than setting the globals, such performing differently on onLowMemory, onTerminate and onConfigurationChanged. So,is it possible to get the intent that starts the activity or the

[android-developers] Re: Problem in running the android sky widget

2009-07-14 Thread Jeff Sharkey
There have been previous threads about android.location.Geocoder not entirely working in the SDK. That app depends on responses from that API, which is why it's not working. The geocoder works on actual devices, otherwise you could hard-code values when debugging. j On Tue, Jul 14, 2009 at

[android-developers] Re: Problem in running the android sky widget

2009-07-14 Thread n179911
On Tue, Jul 14, 2009 at 11:05 AM, Jeff Sharkeyjshar...@android.com wrote: There have been previous threads about android.location.Geocoder not entirely working in the SDK.  That app depends on responses from that API, which is why it's not working. The geocoder works on actual devices,

[android-developers] Re: flag_fullscreen + windowNoTitle == button focus bug

2009-07-14 Thread Brady
Hi Dianne, thank you for your reply. I wonder if dynamically positioning the top buttons onscreen in the OnCreate would help this timing issue? For now I guess I lucked out because I don't use the IME in this screen, but thank you for pointing this out. I can see why this might be a problem

[android-developers] Re: Test onUpgrade

2009-07-14 Thread Vyrak
I did that part. The problem I'm running into is trying to 'simulate' an application upgrade to test if my onUpgrade method works. However, it's still not being invoked when I try reinstalling the application to a new version. Is there a way to simulate an application upgrade without having to

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-14 Thread Da Yang
OK. There is only one way to test my camera application. use any APK Installer install the apk, though it's not handy, it's the solution in the moment. But thank you for your answers. Maybe i want to write to SAMSUNG development group, and ask for a right adb if they do have one. On Tue, Jul 14,

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
On Tue, Jul 14, 2009 at 12:12 AM, magicpig zsumagic...@gmail.com wrote: Thanks Dianne for the quick reply. My two Application.java do some more things than having the statics: 1. own the ability to store current activity for use in all the activities in the same process. (In the

[android-developers] Re: Cell Radio Info

2009-07-14 Thread Richard Schilling
I found good field test mode instructions at http://phoneftd.blogspot.com/2009/03/google-g1-phone-field-test.html Enter the Field Mode by typing (exactly) this into the Dailer app: *#*#7262626#*#* When the dialer sees the string it will start the field test application. I'm sure if you look at

[android-developers] Re: Some G1 phones getting device not found with adb...

2009-07-14 Thread Richard Schilling
Somehow I feel both relieved and scared at the same time knowing this is a possibility. :-) I wonder. My second phone started acting the same way last night. Richard On Jul 13, 7:24 pm, nEx.Software justin.shapc...@gmail.com wrote: This occasionally happens to me on both my G1 and my Ion.

[android-developers] Re: Getting ESN number of a Phone

2009-07-14 Thread MCON Dev
Yusuf, Wont the following work ? globals.setDevice((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)); Globals { public void setDevice(TelephonyManager myDevice){this.myDevice = myDevice ;} public initialize(){ myDevice = Globals.getInstance().getDevice(); this.deviceID =

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
Thanks everyone for your help. My bad. I do register in the body of the program instead of in the manifest. So, scratch the part above about the manifest. I declare a static variable in the activity to keep track of whether or not the registration has already happened. Perhaps the receiver

[android-developers] Re: Multi-touch My Touch Phone Questions

2009-07-14 Thread dotclick
Multitouch has been used before Apple so I doubt their patent will survive. But I can understand why they might not want to get into a legal argument until its settled. On Jul 13, 4:58 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Some hackers have been able to enable multi-touch on the

[android-developers] Re: Android BUG....

2009-07-14 Thread dotclick
This is EXACTLY the ridiculous type of response I'm talking about. If you would have actually read the post or taken the 2 seconds to click your own link and search 1583 you would have found that it was reported but has not been fixed. I like Google but this just just fell to a new low of

[android-developers] keeping screen on while activity active

2009-07-14 Thread Lex
Hi, I have a map activity for which I would like to have the screen turned on as long it's active (the app consists of one activity only). When the activity is paused or stopped I want to return to normal on/off mode. Keeping the screen on works fine while the app is running but when I exit the

[android-developers] Re: getDeviceId returns null

2009-07-14 Thread Al Sutton
I'm guessing you're running on the emulator in which case getting null is normal. Al. --- http://andappstore.com/ On Jul 14, 6:22 pm, MCON Dev mcon...@gmail.com wrote: Hi, I am running this piece of code myDevice = Globals.getInstance().getDevice();   this.deviceID = myDevice.getDeviceId()

  1   2   >