Re: [android-developers] Re: SIP development on Android

2010-01-28 Thread Tony
Hi,Upendra First thanks you for your advices. I changed the URI according to your suggestion, however , it seemed no helpful. My server keep istening on port: 5060 so the uri should be sip:andr...@10.0.0.2:5060, and the client port:5061 so the uri should be sip:andr...@10.0.0.2:5061

[android-developers] Re: string to uppercase not working

2010-01-28 Thread Lance Nanek
Strings are immutable in Java and cannot be changed. The toUpperCase method returns a different String than it is passed. The String it returns is upper case. The original stays unchanged. On Jan 28, 2:49 am, android beginner android.beginne...@gmail.com wrote: Hi, The following is the code

[android-developers] Re: take picture without preview

2010-01-28 Thread shumin
Yes, you are right about bar code. But I do not want to show the picture at all on the screen. All I want is take a picture (after certain interval periodically by code) and only show the picture analysis information (brightness, color ratio etc). If someone know about it please give some code

[android-developers] Re: Add ScrollView in TableLayout.

2010-01-28 Thread Pranav
Hi all, I got the solution to add ScrollView in TableLayout. On Jan 28, 11:16 am, Pranav vips...@gmail.com wrote: Hi all, I want to add a ScrollView in TableLayout. Is it possible to add? If yes, than how? Anybody have any idea regarding it? Please share something related to this topic.

[android-developers] Re: HowTO:Rectangular box around link in browser

2010-01-28 Thread gizmomogwai
the code for the rendering of the focusring is in external/webkit/ WebCore/platform/graphics/skia/GraphicsContextSkia.cpp::draw (im here on cupcake sources (although not quite current)) On Jan 28, 6:16 am, Vivek Satpute vivekonlin...@gmail.com wrote: Hi, I could display the box around the URL

[android-developers] Re: android milestone text size small

2010-01-28 Thread extrapedestrian
May be. Im switched to using sp instead of pt, so it works this way. On Jan 27, 3:25 pm, Lance Nanek lna...@gmail.com wrote: Isn't there some sort of density calculation bug that results in small text sizes on the Droid? Maybe you're running into the same thing on the Milestone? On Jan 27,

[android-developers] Re: How to create txt file in android programatically?

2010-01-28 Thread pramod.deore
I had write following lines in Manifet file uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / But still I got Exception. (NullPointerException). My code is as following package com.micro; import java.io.FileInputStream; import java.io.FileOutputStream; import

[android-developers] Re: Internet Connection

2010-01-28 Thread Chander Pechetty
use ConnectivityManager and probably add the permission - ACCESS_NETWORK_STATE to manifest file On Jan 28, 12:31 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank You for ur reply Jian, I will check it and tell to you. On Thu, Jan 28, 2010 at 12:55 PM, Jian Chen

[android-developers] Android Partners

2010-01-28 Thread Sasikumar.S
Hi, Who are the partners of google in android?.. -- Thanks Regards Sasikumar.S -- 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

Re: [android-developers] Re: Internet Connection

2010-01-28 Thread Sasikumar.S
Thank u for ur reply. On Thu, Jan 28, 2010 at 3:15 PM, Chander Pechetty cspeche...@gmail.comwrote: use ConnectivityManager and probably add the permission - ACCESS_NETWORK_STATE to manifest file On Jan 28, 12:31 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank You for ur reply Jian,

[android-developers] IP Adress of android device

2010-01-28 Thread Tony
Hello ,all! If I connect two android pwer real-devices to a LAN through wifi, then what are their IP adress??? How can then find each other by IP address??? are their IP address 192.168.0.* ?? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Internet Connection

2010-01-28 Thread Retrodis
ConnectivityManager cm = (ConnectivityManager) this.getSystemService (Context.CONNECTIVITY_SERVICE); NetworkInfo ni = cm.getActiveNetworkInfo(); if(ni != null) { } On Jan 28, 9:46 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank u for ur reply. On Thu, Jan 28, 2010 at 3:15 PM, Chander

Re: [android-developers] Re: Internet Connection

2010-01-28 Thread Sasikumar.S
ok.. Thank U On Thu, Jan 28, 2010 at 3:37 PM, Retrodis mattwoodfi...@googlemail.comwrote: ConnectivityManager cm = (ConnectivityManager) this.getSystemService (Context.CONNECTIVITY_SERVICE); NetworkInfo ni = cm.getActiveNetworkInfo(); if(ni != null) { } On Jan 28, 9:46 am, Sasikumar.S

Re: [android-developers] Re: OpenGL Fillrate Issues

2010-01-28 Thread Ralf Schneider
Ok, the can be seen here: http://pastebin.com/f3757c38c A package is here: http://www.file-pasta.com/file/0/TouchPerfTest.apk The results with this Java program on the N1: 01-28 10:58:04.109: INFO/TouchPerfTest(25423): FPS: 55.82622451910052 01-28 10:58:05.129: INFO/TouchPerfTest(25423): FPS:

Re: [android-developers] Re: OpenGL Fillrate Issues

2010-01-28 Thread Ralf Schneider
2010/1/28 Lance Nanek lna...@gmail.com Someone in one of the past threads on this issue mentioned that overriding dispatchTouchEvent on Activity performs better than onTouchEvent on a View. It might be worth testing that if you guys are writing benchmarks anyway. Thanks for the tip! I

[android-developers] Displaying Virtual Keyboard without expanding EditText

2010-01-28 Thread swapnil kamble
I want to display keyboard when my app gets started. I know we can get Virtual Keyboard when clicked on EditText field, but I want to show Virtual Keyboard without clicking on EditText. Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama Rama

[android-developers] Re: Displaying Virtual Keyboard without expanding EditText

2010-01-28 Thread Per Sandström
I think this works: InputMethodManager inputMethodManager = (InputMethodManager) getSystemService( Context.INPUT_METHOD_SERVICE ); inputMethodManager.showSoftInput ( yourEditText, InputMethodManager.SHOW_FORCED ); you might have to force the

[android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-01-28 Thread String
Why don't you just contact your dedicated Market support rep, you know, the one who's paid out of the 30% cut that Google takes? Oh wait... String On Jan 28, 3:43 am, nubin...@gmail.com nubin...@gmail.com wrote: Maybe Google is shifting resources to support dissatisfied NexusOne customers

[android-developers] if second application installed on phone then first will not found

2010-01-28 Thread pramod.deore
when I had tried to install any application for the first time , it gives me following error as. D:\Pramod Backup\android\android-sdk-windows\toolsadb install pramod.apk 77 KB/s (8628 bytes in 0.109s) pkg: /data/local/tmp/pramod.apk Failure [INSTALL_FAILED_ALREADY_EXISTS] But there is no

[android-developers] how to monitor sim has been changed?

2010-01-28 Thread pramod.deore
Anybody please help me writing this application. Actually I am writing one application using that the application is runs when power is on and check for the IMSI number. If we have changed the sim card then imsi number is also get changed, then one sms is send from that new sim card to one number.

[android-developers] sqlite multithreading

2010-01-28 Thread manigault
Hi all, i need to use the SqliteDataBase from from multiple threads. According the the sqlite documentation sqlite is threadsafe if it's compiled with SQLITE_THREADSAFE = 1 and in android this can be done by calling SQLiteDatabase.setLockingEnabled(true) ( the default value is also true so it

[android-developers] Reason for location listener becomes null ??

2010-01-28 Thread sheik
Hi all , i having issues regarding location listener in myService class file .. here is code i like to share .. myService.java ///onStart method .. onStart() { locationManager = (LocationManager) getSystemService (Context.LOCATION_SERVICE) . . provider =

Re: [android-developers] if second application installed on phone then first will not found

2010-01-28 Thread Narendra Bagade
Check the version of apk file. if having same version then it will notify it is already Exists. Regards, Narendra On Thu, Jan 28, 2010 at 4:08 PM, pramod.deore deore.pramo...@gmail.comwrote: when I had tried to install any application for the first time , it gives me following error as.

[android-developers] How can i use DragLayer.java to drag and drop my own ListView items

2010-01-28 Thread pink 444
Hi, I have to drag and drop items of listview.After a lot searching i found one class of launcher as DragLayer.java. How can i use DragLayer.java to drag and drop items of listview. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Displaying Virtual Keyboard without expanding EditText

2010-01-28 Thread swapnil kamble
Earlier I did that way only. But unfortunately editext gets expanded.I have my edit Text field at the center of the screen. Below that I want Virtual Keyboard without expanding edittext. 2010/1/28 Per Sandström pg.sandst...@gmail.com I think this works: InputMethodManager inputMethodManager

[android-developers] incoming sms filter

2010-01-28 Thread Jags
I hv a problem, I need some hints. I need to have my app receive certain kind of sms (say meant for my app). is it possible ? is it possible to receive all the sms in my app rather than default sms app ? how to config my app to receive sms ? please help with some links and stuff regards --

[android-developers] How to drag and drop items of ListView?

2010-01-28 Thread pink 444
Hi, I have to drag and drop items of ListView,which typically have an image and text. How can i implement this. Thanks in advance. -- 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: if second application installed on phone then first will not found

2010-01-28 Thread pramod.deore
Actually It is happened each time. If i created a new application with a name which is not created before then also it give me the same error. and If I install it using -l -r parameter the it will be installed succesfully but previous application is now not present in the phone.i.e at any time

[android-developers] Re: OpenGL Fillrate Issues

2010-01-28 Thread Mario Zechner
@Ralf The code looks ok. The only differene to my code is that i don't overwrite GLSurfaceView but instead register an OnTouchListener with the surface view. Just in case, maybe you could try that as well? You example should be easily adaptable. Maybe Robert can try your code on his N1. @Kevin

[android-developers] Listview Filter

2010-01-28 Thread Sasikumar.S
Hi, In my listview i'm adding more than 2500 items in list. when i'm using text filter. It is taking more time to load the text starting with the character i have given. ex:- If i'm giving 'sa' it is taking more than 2 minutes to show the items starting with 'sa'. Is this problem for me only or

[android-developers] show more photos

2010-01-28 Thread surya prakash
Hi I am getting photos from website and display them in Grid view, but here I do not want display all of them at time, 1. I want show only 10 photos and a more link below the grid , but i can display more link at top, how can I add it at bottom? 2.when user click on more it should display the

[android-developers] Re: IP Adress of android device

2010-01-28 Thread Bob Kerns
The IP addresses will be whatever the DHCP server on that subnet says they should be. Often, the DHCP server role will be handled by your router to the internet, but in a corporate environment, things may be more complicated. When a device connects to an IP network, it usually broadcasts who am

[android-developers] Spinner Example

2010-01-28 Thread satish bhoyar
Hi all, I am developing a small application with the help of spinner widget.Requirement is to display different toast messages when the spinner list items are selected. For e.g if the spinner items are Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday then on selecting Sunday item through

Re: [android-developers] Spinner Example

2010-01-28 Thread Mark Murphy
I am developing a small application with the help of spinner widget.Requirement is to display different toast messages when the spinner list items are selected. For e.g if the spinner items are Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday then on selecting Sunday item through

Re: [android-developers] Spinner Example

2010-01-28 Thread satish bhoyar
When user click on the item, I dont knw which event to register like button have OnClick so what is there for this how to check which item is selected? thanks On Thu, Jan 28, 2010 at 6:22 PM, Mark Murphy mmur...@commonsware.comwrote: I am developing a small application with the help of

Re: [android-developers] Re: OpenGL Fillrate Issues

2010-01-28 Thread Ralf Schneider
2010/1/28 Mario Zechner badlogicga...@gmail.com @Ralf The code looks ok. The only differene to my code is that i don't overwrite GLSurfaceView but instead register an OnTouchListener with the surface view. Just in case, maybe you could try that as well? You example should be easily

Re: [android-developers] Spinner Example

2010-01-28 Thread Mark Murphy
When user click on the item, I dont knw which event to register like button have OnClick so what is there for this how to check which item is selected? Use setOnItemClickListener(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] The concurrency control of ContentProvider whose android:multiprocess is set true

2010-01-28 Thread soccercheng
I have the following questions about the ContentProvider: -- The concurrency control of ContentProvider whose android:multiprocess is set true According to Android Dev Guide (http://developer.android.com/intl/ zh-TW/guide/topics/manifest/provider-element.html), it says thatif

Re: [android-developers] The concurrency control of ContentProvider whose android:multiprocess is set true

2010-01-28 Thread Mark Murphy
Does this mean that multiple instances of the same ContentProvider will be running on different processes with different VM instance? if the answer is yes, how do I control the mutual exclusion of ContentProvider instances running on different VM instances in different process space?

[android-developers] Re: IP Adress of android device

2010-01-28 Thread WoodManEXP
Yea, trying to communicate between any two Androids, or any devices for that matter, using their IP address is probably going to be next to impossible, in the general case. It would work OK inside an intranet where IP addresses are less volatile (like the way controllers communicate with robots

Re: [android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-01-28 Thread TreKing
On Thu, Jan 28, 2010 at 4:35 AM, String sterling.ud...@googlemail.comwrote: Why don't you just contact your dedicated Market support rep, LOL ... now that's funny. you know, the one who's paid out of the 30% cut that Google takes? To be fair, Google does not take the 30% cut, the carrier

[android-developers] Re: Testing location using network as location provider?

2010-01-28 Thread WoodManEXP
Sure, simply hard code the test coordinate in your app at the point you would otherwise call the LocationManager to get the last known location. Not too elegant, but it has worked over here on many occasions... On Jan 27, 10:57 pm, julius jul...@msa.co.nz wrote: Hi, I have an application which

[android-developers] Android - minimal UI, services or broadcast recievers?

2010-01-28 Thread draf...@gmail.com
I have an application that will have no User Interface (not exactly none altogether but VERY minimal). I want it to scan for Wifi access points at regular intervals, check the connected state of Wifi and check the connected level of the currently connected access point. It also listens for the

[android-developers] Re: Launching the correct activity on resume

2010-01-28 Thread ayanir
thanks jotobjects, I wanted to add few comments: 1.when I used the singleTask in launchMode, when I opened the app icon from the Home screen, it stated Activity A and not the last Activity. so this is not the solution. 2.from:

[android-developers] Re: How to drag and drop items of ListView?

2010-01-28 Thread Christine
On Jan 28, 12:28 pm, pink 444 pnk...@gmail.com wrote:     I have to drag and drop items of ListView,which typically have an image and text.     How can i implement this. There's no built-in drag and drop, you have to implement it yourself. If you want to have a graphic representation of the

[android-developers] ViewGroup Problem

2010-01-28 Thread satish bhoyar
Hi all, I am trying to extend the ViewGroup in my application. then from my main activity i will create a variable of type following is the code snippet public class NewViewGrp extends Activity { Vg V = new Vg(this);/* Vg is extending the ViewGroup */ TextView Tv; /** Called

[android-developers] Re: Listview Filter

2010-01-28 Thread Brion Emde
It sounds like your problem to me. I am doing similar filtering via a web service (10K records on remote database) and have some latency associated with the network, but I'm talking a second or two, at the most, not minutes. I think you should take a look at how you are doing things to make sure

[android-developers] ANDROID_ID always null on devices

2010-01-28 Thread flsobral
Hello. I'm trying to get the ANDROID_ID on two different devices but it always return null on both. I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a Motorola Milestone with firmware 2.0. I've been using this small sample to show the id, but it always shows null: public void

[android-developers] Re: OpenGL Fillrate Issues

2010-01-28 Thread MrChaz
@Mario Could you do me a favour and paste in the strings you're checking when using android.os.Build.Model? I don't have access to any phones other than the G1. It would be willing to bet that the couple of comments of missing objects I've had are related to the VBO issue you mention. Maybe the

Re: [android-developers] Spinner Example

2010-01-28 Thread satish bhoyar
Hi murphy, can u please share the code snippet.. please Thanks satish On Thu, Jan 28, 2010 at 6:33 PM, Mark Murphy mmur...@commonsware.comwrote: When user click on the item, I dont knw which event to register like button have OnClick so what is there for this how to check which item is

[android-developers] How to send data along a phone call

2010-01-28 Thread saikiran n
Hi, In android we can make a call by using intent. Similarly we can invoke recevers on the incomming call. I have implemented an application to make a call as well as to receive call using intents. My question is we can pass data using intents. The same thing if iam apply to my application i got

[android-developers] How to run apk application on Linux

2010-01-28 Thread Frederic Hornain
Dear *, Is it possible to run apk application on linux without using android emulator ? if yes, How ? Thanks for your help. BR Frederic ;) -- 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] java.lang.IllegalArgumentException while parsing xml file

2010-01-28 Thread Stefan
Hello, i have several gpx files on my sd card and i show them (the filename) on a listview. if i choose a gpx file, the track is load in another activity with a listview,too (adress-strings are shown). if i use the back button, the listview with the filenames is shown again and i can choose

Re: [android-developers] How to run apk application on Linux

2010-01-28 Thread Mark Murphy
Is it possible to run apk application on linux without using android emulator ? Not generally. Ubuntu proposed an Android Execution Environment: https://wiki.ubuntu.com/Specs/AndroidExecutionEnvironment However, I don't think it is ready yet, and I am not aware of any equivalents from other

[android-developers] Re: Android Partners

2010-01-28 Thread String
On 28 Jan, 09:45, Sasikumar.S sasikumar.it1...@gmail.com wrote: Who are the partners of google in android?.. Do you mean the OHA? http://www.openhandsetalliance.com/oha_members.html String -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Launching the correct activity on resume

2010-01-28 Thread String
Did you read the instructions that Dianne posted? Set android:launchMode=singleTop on your first activity.  You will then get an onNewIntent() when you are re-launched from home.  There you can startActivity() for your second activity; if you want back from the second activity to skip the

[android-developers] Image from the MapView

2010-01-28 Thread Gautam Bisht
Hi all, Is there any way to get the image of the map displayed in MapView ?? Thanks Gautam -- 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

[android-developers] RemoteViews setSelected

2010-01-28 Thread Michael Scott
Hi, I am trying to do aRemoteViews.setBoolean(R.id.a_text_view, setSelected, true) on a text view in a homescreen widget to select the view, but I only get the textview to display a text like error expanding view(!). The log says: android.widget.RemoteViews$ActionException: view:

Re: [android-developers] RemoteViews setSelected

2010-01-28 Thread Mark Murphy
I am trying to do aRemoteViews.setBoolean(R.id.a_text_view, setSelected, true) on a text view in a homescreen widget to select the view, but I only get the textview to display a text like error expanding view(!). The log says: android.widget.RemoteViews$ActionException: view:

[android-developers] Re: OpenGL Fillrate Issues

2010-01-28 Thread Mario Zechner
@mrchaz I check for MB200/MB220/Behold. I use String.contains() for the behold. This is only a list for the dext/clique and behold. There might be other devices that have the same problem. Maybe Robert could share his settings. On 28 Jan., 15:15, MrChaz mrchazmob...@googlemail.com wrote: @Mario

[android-developers] Re: ANDROID_ID always null on devices

2010-01-28 Thread jotobjects
The emulator always returns null. On Jan 28, 6:14 am, flsobral flsob...@gmail.com wrote: Hello. I'm trying to get the ANDROID_ID on two different devices but it always return null on both. I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a Motorola Milestone with firmware 2.0.

[android-developers] Re: ANDROID_ID always null on devices

2010-01-28 Thread flsobral
Yes, I'm aware of that. In fact any value I try to retrieve from Settings.System and Settings.Secure on emulator is null (like DATE_FORMAT). I'm testing on the two devices previously mentioned, and although I can use the same method to get any other property value, it always return null when I

[android-developers] Re: string to uppercase not working

2010-01-28 Thread jotobjects
Following up with Lance's correct answer. Try this String str = f; String strUpper = str.toUpperCase(Locale.*ENGLISH*); On Jan 28, 1:05 am, Lance Nanek lna...@gmail.com wrote: Strings are immutable in Java and cannot be changed. The toUpperCase method returns a different String than it is

[android-developers] Re: sqlite multithreading

2010-01-28 Thread jotobjects
As the error message says, you have to call close(). Good practice is to wrap your use of the writable database in a try/catch block and call close in the finally block so that close never gets skipped for any reason. On Jan 28, 2:43 am, manigault manig...@gmail.com wrote: Hi all, i need to use

Re: [android-developers] Re: sdk setup.exe and windows 7

2010-01-28 Thread A P
Hello Andrew, I also ran into this issue on Windows 7, but I ended up re-installing the SDK. I haven't had a problem since then. On Wed, Jan 27, 2010 at 3:59 AM, Christine christine.kar...@gmail.comwrote: A coworker told me that he had to create a symlink from the adk folder on C: to D: or

Re: [android-developers] Re: sqlite multithreading

2010-01-28 Thread Martin Obreshkov
:) i don't want to close the connection because i need a connection for each thread that operates with the db e.g if i have 5 threads i will need 5 open connections. But after all it seems that android is synchronizing the connection using global locks so i can use one connection in all threads -

[android-developers] How to stop playing music or sound of other application

2010-01-28 Thread Alam
Hi, I want to know that can we stop playing sound or music of other application which actually plays the music from our application? Something like get the handle of MusicPlayer or AudioManager in our application and using this handle stop the currently playing sound. Please share some

[android-developers] Spannable confusion

2010-01-28 Thread Bill Michaelson
I might be misunderstanding some restrictions or subtlety about the use of Spannables in a TextView. It seems that whenever I apply an identical combination of display enhancements to two separate and non-overlapping ranges of text, the first set (earlier in the string) does not take effect in

Re: [android-developers] ANDROID_ID always null on devices

2010-01-28 Thread Wayne Wenthin
I have a function for this since I munge up the android id and I need an androidid for the emulator so I make one up. Hope this helps. public String getandroidid() { String AndroidID = System.getString(this.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); if (AndroidID ==

[android-developers] Re: Multi-threaded http requests cause exception

2010-01-28 Thread Biosopher
Hi Frank, Thanks for pointing me back to AsyncTask. I had seen AsyncTask but hadn't updated my code to it. Instead I had relied on Threads and Handlers as they had worked without a problem before. I'm still unsure why the Thread and Handler setup wasn't working, but now that I've updated to

[android-developers] Re: Spannable confusion

2010-01-28 Thread Bill Michaelson
On Jan 28, 11:24 am, Bill Michaelson wmmichael...@gmail.com wrote: I might be misunderstanding some restrictions or subtlety about the use of Spannables in a TextView. It seems that whenever I apply an identical combination of display enhancements to two separate and non-overlapping ranges

[android-developers] Re: Spannable confusion

2010-01-28 Thread Bill Michaelson
To answer my own question, the problem is related to the fact that I am reusing instances of enhancements, like new ForegroundColorSpan (Color.BLUE). I am emerging from my fog. More to come... On Jan 28, 11:24 am, Bill Michaelson wmmichael...@gmail.com wrote: I might be misunderstanding some

[android-developers] Wakelock and phone restarts

2010-01-28 Thread nikhil
Hello Friends, I have a service which holds on to a wakelock and the code is similar to this, public class WakeLockService extends Service { PowerManager.WakeLock wl; @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub

[android-developers] how to get RSSI (to get bluetooth signal strength)?

2010-01-28 Thread Zhenan Hong
Hi, I am working on Android platform 2.1 and trying to make an app that can get the Bluetooth signal strength from remote devices. It seems i should try to read the 'RSSI' something like : int rssi = intent.getIntExtra (BluetoothDevice.EXTRA_RSSI, Integer.MIN_VALUE); But it just keep

[android-developers] Is it possible to have Options Menu for when a dialog is displayed?

2010-01-28 Thread rkg
Hi, I am trying to display menu options while showing an AlertDialog i.e. when MENU key is pressed, it should show whatever options that have been created. I read the following in the Dev Guide at developer.android.com - --- A dialog should not have an Options menu When a dialog

[android-developers] Re: How to draw a border like each row in a list view

2010-01-28 Thread DuoCentillion
That was very helpful, Mark. On Dec 2 2009, 12:31 am, Mark Murphy mmur...@commonsware.com wrote: Hi, Between each row inlistview, android draw a horizontal line (fades away at both ends). If I have a LinearLayout view, how can i add aborderlike that? Add a 1px high View with a

[android-developers] Re: sdk setup.exe and windows 7

2010-01-28 Thread Lambda Developer
hi, i have the same problem as Andrew Green. I am not being able to run android sdk setup.exe! java is properly installed on my windows 7. (latest version of JDK) what i think i have done is modified the environment variable PATH, and probably that is causing the trouble. i would be glad if

[android-developers] missing Traditional Chinese Font

2010-01-28 Thread Sing
I'm developing IME application for Traditional Chinese. I found that there are some characters not displaying well in the emulator and also my Nexus One. Here is one example: http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=%E5%96%BAuseutf8=true There is a solution on the web that

[android-developers]

2010-01-28 Thread jigish
Hi guys I am new to android development, and also I m damn new to java technologies I am php web developer Just wanted to know from all u big brains, from where do I need to start.. Adv java? Or j2me I have no idea how this stuff works Looking forward to ur replies Thanks

[android-developers] Re: Book for learning Android

2010-01-28 Thread Mina Samy----http://android-pro.blogspot.com
Hi check my blog I'm starting learning android too http://www.android-pro.bogspot.com On Jan 27, 11:26 am, Chirayu Dalwadi chirayu.dalw...@gmail.com wrote: I want useful links, requried to learn android Help me out -- You received this message because you are subscribed to the Google

[android-developers] installing multiple apks

2010-01-28 Thread LV
Hi, I have an application that uses a remote service via an AIDL interface, and both components are defined in separate APKs. Is there a way to bundle these in a single monolithic APK for installation? or if multiple apks are required, how can i easily deploy this to the user...i cannot have them

[android-developers] Use of final for locals on Dalvik

2010-01-28 Thread Tim Russell
I've seen a lot of use of final for local primitives. Presumable to indicate to the compiler that the value shouldn't be changed. However, what's the implication of this on Dalvik? I believe final local variables are usually placed on the heap for extended lifetime (for use in inner classes),

[android-developers] Re: ANDROID_ID always null on devices

2010-01-28 Thread theSmith
On Jan 28, 11:34 am, Wayne Wenthin wa...@fuligin.com wrote: I have a function for this since I munge up the android id and I need an androidid for the emulator so I make one up.   Hope this helps. public String getandroidid() { String AndroidID = System.getString(this.getContentResolver(),

[android-developers] AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
I am performing several https posts and http downloads from two different servers using AsyncTasks. The connections are fairly quick but I'm surprised to see that they are running synchronously instead of in parallel. To be more explicit, here is pseudo-code for what's happening when I initiate

[android-developers] Emulator problem with GSM network

2010-01-28 Thread Johannes Carlsson
Hi We have had problem with the emulator not working correctly with the GSM network. The emulator just says No network. There were also other thing that didnt work correctly (e.g. screen DPI). This problem only occured sometimes on some machines (in our case it seems to be faster ones with quad

[android-developers] Re: Spinner Example

2010-01-28 Thread Shekhar
Hi Mark, Could you please share code snippet for the above problem. Thanks, Shekhar On Jan 28, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote: When user click on the item, I dont knw which event to register like button have OnClick so what is there for this how to check which item is

[android-developers] Re: Spinner Example

2010-01-28 Thread Shekhar
Hi Mark, Could you share a code snippet for this. Thanks, Shekhar On Jan 28, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote: When user click on the item, I dont knw which event to register like button have OnClick so what is there for this how to check which item is selected? Use

[android-developers] Re: if second application installed on phone then first will not found

2010-01-28 Thread جنوبي مهاجر
On Jan 28, 2:32 pm, pramod.deore deore.pramo...@gmail.com wrote: Actually It is happened each time. If i created a new application with a name which is not created before then also it give me the same error. and If I install it using -l -r parameter the it will be installed succesfully but

[android-developers] Need help for a proper way of using Listview paired with a background process

2010-01-28 Thread dj brikz
Hello Everyone, I have a problem in using ListView because I always receive an IllegalStateException stating that the adapter was changed or updated but the listview was not notified...I didnt have this error in 1.5 only during when i started testing using 1.6 platform..The program is

[android-developers] Customised grid

2010-01-28 Thread vishu
Hi I need guidance regarding the following scenario in android. I need to put the views dynamically in grid. Suppose if there are 2 views .. then the grid dimensions sh'd be 1*2 suppose if there are 3 viewsthen the grid dimesions sh'd be 2*2 and two views in one row and 1 view in another

[android-developers] Register a new MIME-type with Android

2010-01-28 Thread Varun Khaneja
Hi, I want to register my application for files of a certain popular and well-documented MIME-type. The problem is that Android does not seem to recognize this MIME-type. The following sample code demonstrates this: package com.example.helloandroid; import android.app.Activity; import

[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-28 Thread JFrog
Not sure if this is relevant to what you are handling in your application, but I've head that droiddraw is a possible tool for handling layouts in a graphical nature. I haven't personally used the tool and it doesn't seem all that sophisticated but it may help with layout issues. ~JFrog

[android-developers] Re: converting ycbcr 420 to rgb

2010-01-28 Thread tdom...@googlemail.com
I managed to use the referenced C code, through JNI. this seems to work. the code can be found in the svn repository. regards tobi On 7 Jan., 19:10, tdom...@googlemail.com tdom...@googlemail.com wrote: Hi, I want to display the preview frames of an android smartphone on an opengl texture. As

[android-developers] Re: Book for learning Android

2010-01-28 Thread free1000
Do yourself a favour and get the ebook subscription from Mark Murphy. If you work through the tutorials book you will be coding android apps in double quick time. I've looked at other books, but these are great, and the author responds to questions on his own email list/bulletin board.

[android-developers] Re: AsyncTask and simultaneous network downloads

2010-01-28 Thread Streets Of Boston
AsyncTask is based upon the java.util.concurrent package's ExecutorService and FutureTask classes. When you create and execute an AsyncTask a thread is obtained from a pool of threads (i don't know what the size of this pool is for AsyncTasks) and your background process is executed on this

[android-developers] Re: Android market and other languages...

2010-01-28 Thread reyden
Thanks, I'll post the question there, maybe I get lucky :-) Anyway, I don't see any reason to enforce particular language(s) in apps. If people in my country can buy Android devices and access Market to download apps and I'm willing to make free applications for them, why should Google care about

[android-developers] Re: How to drag and drop items of ListView?

2010-01-28 Thread Rahul Vij
Well you can look at the Android source code for the implementation of Music application uses a list where drag and drop is implemented. I think its called TouchInterceptor. On Jan 28, 6:56 am, Christine christine.kar...@gmail.com wrote: On Jan 28, 12:28 pm, pink 444 pnk...@gmail.com wrote:  

[android-developers] How to run unit test under 'tests' directory

2010-01-28 Thread hap 497
Hi, In android source, it has unit tests under 'tests' directory. Can you please tell me how can I run those unit tests? Thank you. -- 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] background services

2010-01-28 Thread Abhi
Hi, I have an application with a single activity. When the user taps the screen while on the activity, I want to start the accelerometer in the background (keeping the main activity running) and read values till the User taps at the screen again. I have worked on some basic android programming

Re: [android-developers]

2010-01-28 Thread Frank Weiss
That's a good question. First, I don't think J2ME is going to give you much insight, you might as well just start with Android. If you have done OOP in PHP, that would help. Unfortunately, the Android SDK relies on some advanced Java techniques such as template classes, generics, and inner

  1   2   3   >