[android-developers] Share a message with Facebook does not work..

2011-07-07 Thread dillipk
Hello, I am trying to share a message with Facebook to be posted on my facebook wall. I am using the following code, but it gets stuck off at http://m.facebook.com/sharer.php?u= Code: private void openFaceBook(){ Intent facebookIntent = new Intent(Intent.ACTION_SEND); faceboo

[android-developers] How to get the Hw-Tablet configuration??

2011-07-07 Thread s.rawat
Hi Is there a way/any android api which can give us the system configuration(hw configuration -memory, cpu config, speed, processor version and other accelerator information) or do we have to log cat the /proc/meminfo and /proc/cpuinfo into the file in c fucntion and dump the file to the android ap

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Raghav Sood
Thanks Mark, TreKing and Filip. The problems gone away and will not be coming back. LocationManager.NETWORK_PROVIDER works like a charm. Thanks On Thu, Jul 7, 2011 at 7:32 PM, TreKing wrote: > On Thu, Jul 7, 2011 at 8:47 AM, Mark Murphy wrote: > >> Don't use Criteria. Use LocationManager.NETWORK

Re: [android-developers] Android Charting dll for plotting Graphs

2011-07-07 Thread s.rawat
Thanks Fred, very well said Rgds, -Saurabh "..pain is temporary.quitting lasts forever.." On Wed, Jul 6, 2011 at 8:59 PM, Fred Niggle wrote: > Hello. > > Try to drop the windows mindset when coding for android, in Linux > there is no such thing as a dll (as for as I know). > > There are

[android-developers] Active Installs doing (still) strange things....

2011-07-07 Thread Jim Graham
I'm just wondering if anyone else is seeing this There's still something strange going on in the Market, and it is a bit too much a a coincidence to believe. For the last several days, EVERY time my total installs goes up by some number (regardless of what that number is), active installs go

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 8:47 AM, Mark Murphy wrote: > Don't use Criteria. Use LocationManager.NETWORK_PROVIDER. > To add to this, this is because by using Criteria and, more importantly, specifying ACCURACY_FINE and POWER_HIGH, you are pretty much saying "gimme GPS if available". ---

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 9:43 AM, Raghav Sood wrote: > Coming back to the point. Is there any way to make sure that the app does > not use GPS? That is even if GPS is on the app only uses the cell network? > The whole point of my app was to provide the location without the GPS being > used. Can I se

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Raghav Sood
@TreKing: getBestProvider(); returns GPS but as my app is perfectly functional without the GPS I would like to use the cell network even when GPS is available. Is there any way to do so? Thanks On Thu, Jul 7, 2011 at 7:13 PM, Raghav Sood wrote: > I am aware of the last know location returning n

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Raghav Sood
I am aware of the last know location returning null. As for my code using GPS, the book that I learnt geo services said that this shouldn't happen. Seems they were wrong. Coming back to the point. Is there any way to make sure that the app does not use GPS? That is even if GPS is on the app only u

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 8:28 AM, Raghav Sood wrote: > I would like this group's help on the fact as to why the app force closes > when the GPS is turned on and how do I fix it. The app does not use the GPS > at all. Are you sure about that? When GPS is on, what does getBestProvider return?

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 9:28 AM, Raghav Sood wrote: > I have a app that triangulates the users location and displays it on a map > without using the GPS. As long as the GPS is off the app does its job > perfectly. The moment someone turns the GPS on the app force closes and > gives a NullPointerExc

Re: [android-developers] Re: Hide TextView after some time

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 9:16 AM, MG wrote: > Solved. > Created new Runnable with t.setVisibility(4). Then as suggested, added > removeCallbacks() and it works perfectly. It would be even better if you called setVisibility(View.INVISIBLE), rather than hard-coding in some magic number. -- Mark Mur

Re: [android-developers] EventQueue.peekMessage

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 9:11 AM, andrei-dmitriev wrote: > why there is no a way to poll or peek the message from the event queue? > I want it to implement the break for the routine running on the UI thread. > private void longRoutine() { >    while (flag){ >        if (queue.peekMessage() != null)

[android-developers] Re: Hide TextView after some time

2011-07-07 Thread MG
Solved. Created new Runnable with t.setVisibility(4). Then as suggested, added removeCallbacks() and it works perfectly. Thank you! M On Jul 7, 1:55 pm, Mark Murphy wrote: > Use removeCallbacks() to get rid of your posted Runnable when it is no > longer valid, and schedule a fresh one. > > > > >

[android-developers] EventQueue.peekMessage

2011-07-07 Thread andrei-dmitriev
Hi folks, why there is no a way to poll or peek the message from the event queue? I want it to implement the break for the routine running on the UI thread. private void longRoutine() { while (flag){ if (queue.peekMessage() != null) { return; } } } Or am I mi

[android-developers] Custom GridView with ArrayAdapter out of sync with backing data

2011-07-07 Thread ragupathi ragupathi
Hi every one, im developing one program for android gridview and displaying images from getting images in sdcard and displayed. when i click one image need to add one images in that gridview child. its working fine.. bit my problem is when im scrolling down the un selected images was highlight

[android-developers] Re: App not visible from Android Market on the device

2011-07-07 Thread Manuel R. Ciosici
@TreKing Thank you for the reply. Interesting read, but doesn't apply in my case. In the meantime also sent an email to Android market support, maybe they have a explanation. Manuel On Jul 7, 2:45 pm, TreKing wrote: > http://www.google.com/support/androidmarket/developer/bin/static.py?p... > >

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 7:18 AM, Raghav Sood wrote: > Does anyone know what could be causing this and how to fix it? Are you waiting for the GPS to actually report that it found a valid location ... ? --

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Filip Havlicek
In brief, Mark wanted to see the code of the null Location acquisition using GPS. 2011/7/7 Raghav Sood > Exactly my point. When the GPS is on it returns null for the location, but > if the GPS is off then the cell phone tower location works fine. Is there > any way that I can set my app to tria

Re: [android-developers] Need dictionary database.

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 5:46 AM, Aditya wrote: > Can anyone help me in finding a dictionary database for my application? What help do you want, besides the obvious of searching the internets, which you can obviously do for yourself? --

Re: [android-developers] Audio

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 5:06 AM, kaushik p wrote: > I want some .mp3 file to be played when a button is clicked . Can anyone > please help me do it ? What have you tried so far? - TreKing

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Raghav Sood
Exactly my point. When the GPS is on it returns null for the location, but if the GPS is off then the cell phone tower location works fine. Is there any way that I can set my app to triangulate using only the cellphone network? Thanks On Thu, Jul 7, 2011 at 5:58 PM, Mark Murphy wrote: > How ar

Re: [android-developers] Re: App not visible from Android Market on the device

2011-07-07 Thread TreKing
http://www.google.com/support/androidmarket/developer/bin/static.py?page=known_issues.cs See "Can't Find App" (and "Applications Missing From Android Market" - though not exactly your use case). These reeks of another Android Market Screw Up™ --

Re: [android-developers] Installing a x86 image in new sdk tools v12

2011-07-07 Thread David Turner
On Thu, Jul 7, 2011 at 8:32 AM, Bogdan Muresan wrote: > I've upgraded to android sdk tools 12. As a release note google says: > The AVD manager and emulator can now use system images compiled for > ARM v7 and x86 CPUs. > > Has anyone tried to run a x86 image? If so, can you provide some > instruct

[android-developers] Re: Need help with a Spinner

2011-07-07 Thread Jaswant
HI just do following: Create an ArrayList say list when Add button is click call list.add(editext content); and then create An ArrayAdapter with items taken from list then call spinner.setAdapter... For Clear call list.clear(); and then create An ArrayAdapter with items taken from list then call

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Mark Murphy
How are you getting that Location that is null? On Thu, Jul 7, 2011 at 8:18 AM, Raghav Sood wrote: > Hi all > I wrote an app that gets and displays your location on a map. I am using the > Google Maps service to render the map. The app has been live for less than > two hours and I have received 3

[android-developers] Honeycomb (3.1) adjustResize behavior inconsistent with 2.1?

2011-07-07 Thread Nathan Fig
My activity has android:windowSoftInputMode="adjustResize" and, in 2.1, the softKeyboard will resize the layout accordingly. In 3.1, however, I have not been able to get the same behavior: the soft keyboard will push EditText views, but not Button views. Same behavior on both the 10 inch Galaxy t

[android-developers] Re: Array Adapter Problem

2011-07-07 Thread Jaswant
Adapter always accept a String array or a List not just "String" . So your String items=--- must be like String[] items={ m_addItemText.getText().toString()}; Enjoy and never forget to say '*Jai Hind*'. -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: [android] app does not show up after wake up

2011-07-07 Thread Jaswant
add the launcher intent filter in your activity which receive broadcast notifications... -- 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 gro

[android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Raghav Sood
Hi all I wrote an app that gets and displays your location on a map. I am using the Google Maps service to render the map. The app has been live for less than two hours and I have received 33 crash reports (using ACRA). I have been able to recreate the problem. The app works fine if the GPS is of

Re: [android-developers] Hide TextView after some time

2011-07-07 Thread Mark Murphy
Use removeCallbacks() to get rid of your posted Runnable when it is no longer valid, and schedule a fresh one. On Thu, Jul 7, 2011 at 7:37 AM, MG wrote: > Hi! > I have a problem. I am developing an app where I get some message > (html text) and display it in TextView. Comunication is based on JAD

[android-developers] record incoming and outgoing calls?

2011-07-07 Thread Hitendrasinh Gohil
Hi, Just want to know that how to record incoming and outgoing calls on wide varity of devices? I am using the mediarecorder and with this i am able to record incoming and outgoing calls with sony xperia x10 mini. mediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); and same code

[android-developers] Hide TextView after some time

2011-07-07 Thread MG
Hi! I have a problem. I am developing an app where I get some message (html text) and display it in TextView. Comunication is based on JADE and JADE-Android, but problem is not here. I can send and recieve messages OK. I need my TextView to disapear after some time (let say 10s) if there is no new

[android-developers] Re: Android TextView Style

2011-07-07 Thread MG
Thnx, that was helpfull, I managed to do it. :) On Jul 5, 7:25 pm, TreKing wrote: > On Tue, Jul 5, 2011 at 8:51 AM, MG wrote: > > I want this TextView to have semi-transparent background and rounded edges. > > How would I accomplish this? > > http://developer.android.com/guide/topics/ui/themes

[android-developers] Need dictionary database.

2011-07-07 Thread Aditya
Hello All, Am in the middle of implementing one application which includes dictionary feature(English). Can anyone help me in finding a dictionary database for my application? Thanks in Advance Aditya. -- You received this message because you are subscribed to the Google Groups "Android Develope

[android-developers] Re: MapView and terms of service

2011-07-07 Thread Fina Perez
Just in case, I moved the buttons to the top of the screen, so the logo is always visible. But, yes...I guess the one with the best answer is a lawyer On Jul 7, 12:16 pm, Mark Murphy wrote: > This is a fine question to ask your attorney. > > > > On Thu, Jul 7, 2011 at 4:18 AM, Fina Perez wro

Re: [android-developers] Closing AppWidget when force closing an application

2011-07-07 Thread Mark Murphy
You are not informed of when the user force-stops your application. And you have no way to remove app widgets from the home screen. On Tue, Jul 5, 2011 at 1:38 PM, Marcos Fábio wrote: > Hi All, > > I'm trying to close (remove from home) my AppWidget when the user goes > to (Settings -> Applicatio

Re: [android-developers] Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-07 Thread Mark Murphy
Visit http://source.android.com for assistance in building your custom firmware. This list is for Android SDK development. On Thu, Jul 7, 2011 at 2:41 AM, rashmi wrote: > Hi, > I have written an aidl file in the path android/framwork/base/core/ > java/com/, which has a import statement - import o

Re: [android-developers] MapView and terms of service

2011-07-07 Thread Mark Murphy
This is a fine question to ask your attorney. On Thu, Jul 7, 2011 at 4:18 AM, Fina Perez wrote: > Hi all! > > I use the Google API in my app and I have a question about the logo on > the map. I don't modify it when I display the map, but If I display > the route between two points, I paint two bu

[android-developers] Audio

2011-07-07 Thread kaushik p
Hi all is there any way we can our own voice for the button click . I want some .mp3 file to be played when a button is clicked . Can anyone please help me do it ? -- Thanks&Regards Kaushik Pendurthi http://kaushikpendurthi.blogspot.com/ -- You received this message because you are subscribe

Re: [android-developers] Re: how to get my mobile service provider using android

2011-07-07 Thread Raghav Sood
Yes that is correct. The emulator has no actual network and uses Android as its carrier name. On Thu, Jul 7, 2011 at 3:23 PM, Ahmed Shoeib wrote: > thanks for reply > i tested this code > > TelephonyManager telephonyManager =((TelephonyManager) > context.getSystemService(Context.TELEPHONY_SERVIC

[android-developers] Re: how to get my mobile service provider using android

2011-07-07 Thread Ahmed Shoeib
thanks for reply i tested this code TelephonyManager telephonyManager =((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)); String operatorName = telephonyManager.getNetworkOperatorName(); Log.e("service provider ", operatorName); and the output in simulator

Re: [android-developers] Android Accelerometer Sensor

2011-07-07 Thread Filip Havlicek
And what is the error? 2011/7/7 souissi haythem > Hi, > > I am trying to work with Accelerometer Sensor. So i tried this > example: > http://blog.androgames.net/85/android-accelerometer-tutorial/ > > It work perfectly. > But when i change AccelerometerManager activity to a service, it > doesn't

Re: [android-developers] how to get my mobile service provider using android

2011-07-07 Thread Raghav Sood
Take a look at http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On Thu, Jul 7, 2011 at 2:16 PM, Ahmed Shoeib wrote: > hi all , > > i want to know how to get my mobile servie provider using android > code ? > > thanks . > > -- > You receiv

Re: [android-developers] Android Accelerometer Sensor

2011-07-07 Thread Raghav Sood
Well could you post the error? Also did you change the activity declaration in your manifest to declare a service? The class you posted is also extending activity, not service. On Thu, Jul 7, 2011 at 2:35 PM, souissi haythem wrote: > Hi, > > I am trying to work with Accelerometer Sensor. So i

[android-developers] Android Accelerometer Sensor

2011-07-07 Thread souissi haythem
Hi, I am trying to work with Accelerometer Sensor. So i tried this example: http://blog.androgames.net/85/android-accelerometer-tutorial/ It work perfectly. But when i change AccelerometerManager activity to a service, it doesn't work and i got an error. //this is the activity that i want change

[android-developers] Re: App not visible from Android Market on the device

2011-07-07 Thread Manuel R. Ciosici
@ Kostya I don't think it's that. It worked with that title after we published it and up to this week. Manuel On Jul 7, 12:26 am, Kostya Vasilyev wrote: > I don't see it from my devices either. > > Might this be caused by the single quote or the vertical bar in the name? > > -- Kostya > > 07.07

[android-developers] how to get my mobile service provider using android

2011-07-07 Thread Ahmed Shoeib
hi all , i want to know how to get my mobile servie provider using android code ? thanks . -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from th

Re: [android-developers] Dalvik VM Java Annotations has very poor Performance

2011-07-07 Thread Daniel Drozdzewski
On Tue, Jul 5, 2011 at 9:06 PM, Bruno Vinicius wrote: > Hi, > > I've been using annotations on a Android project for a parsing XML > data into a VO object, and I came to notice that retrieving Annotation > info from a class or field is very slow. On a 1k iterations loop it > gives me a 100x fold p

RE: [android-developers] SIP + BT Doesn't work

2011-07-07 Thread Christopher Van Kirk
This is probably an issue with the phone. I have the same model phone and it's never worked for me either, on 2.0, 2.2 or 2.3.3. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Guye Sent: Wednesday, July 06, 2011 2:44

Re: [android-developers] Re: android loop problem

2011-07-07 Thread Kostya Vasilyev
Based on what you've explained so far, I think you are running your loop on the main (UI) thread, and are thus blocking it from doing anything else, which includes updating the UI. Have you read this: http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html#Threads ht

[android-developers] MapView and terms of service

2011-07-07 Thread Fina Perez
Hi all! I use the Google API in my app and I have a question about the logo on the map. I don't modify it when I display the map, but If I display the route between two points, I paint two buttons onto the map. One of this buttons is drawn over the logo (left corner on the bottom of the screen) an

Re: [android-developers] Re: android loop problem

2011-07-07 Thread wu mark
But It doesn't display the screen that I display in the loop. I don't think it had executed the loop part. Mark 2011/7/6 saurabh chatterjee > may be your code is getting entangled in an infinite loop. have you > tried using "break" ? > > On Jul 6, 4:51 pm, mark2011 wrote: > > Dear All : > > >

Re: [android-developers] Help. I need to pull and eventually send a value via webview

2011-07-07 Thread Filip Havlicek
Do you need to display the webpage? Or you are just interested in the value if the hidden input? How is the other value supposed to be sent back to the server, is it via javascript, is it a html form or something else? 2011/7/6 sabanim > OK so it does not need to be webview but that's the closes

[android-developers] Re: Android Library and Resources

2011-07-07 Thread Guillaume
On Jul 6, 5:36 pm, David Olsson wrote: > Clean, refresh more times and test by creating a new copy of the > workspace. I have run into this problem several times, TheKing's > solution works most of the time but the latest time this happened to > me I had to create a new project and then it worked

[android-developers] Re: android nfc tech API help

2011-07-07 Thread sumit
Michael Roland gmail.com> writes: Hello Micheal, I am trying to read data from a NfcB card but I get NoClassDefFound exception if I try to get an object of NfcB using: NfcB myTag = NfcB.get(t) Can you please tell me how can read data from this type of card? Also, is there any way to find the typ

[android-developers] Re: signing my apk file for distribution. keystores, certificates, signing ??..

2011-07-07 Thread Ali Chousein
If you follow the tutorial it should work like a charm. Probably the paths you give in your commands are not correct. Have a closer look. Try using absolute paths, instead of relative paths in your commands. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/

[android-developers] Re: Building a commercial app that uses maps

2011-07-07 Thread gjs
Hi, There is other options as well - You could use both of google native & web based. Other map provider libraries/api eg: http://www.openstreetmap.org/ http://resources.arcgis.com/content/arcgis-android/api plus the online offering from microsoft, ovi http://msdn.microsoft.com/en-us/library/

[android-developers] Re: ScrollBar in Android not working ???

2011-07-07 Thread Ali Chousein
The following, both in XML and code, work like a charm for me. Should work for you also :-) http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="wrap_content"> http://schemas.android.com/apk/res/ android" android:layout_width="fill_paren

[android-developers] Re: Sending GPS coordinate to emulator reboots it

2011-07-07 Thread Ali Chousein
Bbbrrr, looks scary. I've been working extensively with GPS signal and have been sending GPS coordinates to the emulator. The target AVDs I created are version 2.1 (updated) and 2.2 and I've never faced any issue. Some coordinates I worked with are: geo fix 5.4780 51.4480 geo fix 9.9975 48.3945 ge

<    1   2