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

2011-07-07 Thread Bogdan Muresan
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 instructions on how I can do it? Are there any 3.0+ images? -- You

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

2011-07-07 Thread rashmi
Hi, I have written an aidl file in the path android/framwork/base/core/ java/com/, which has a import statement - import org.json.JSONObject. But the build is failing with an error - 'couldn't find import for class org.json.JSONObject'. According to my study I found that for import statements in

[android-developers] Re: Sony Ericsson EDK for Timescape

2011-07-07 Thread Johan Abramsson
Hi there, Thanks for downloading the EDK, we hope you will find it useful. In our 2011 Android products the deep integration of Timescape was changed so that it is a standalone app, and in the same time we decided to specialise Timescape a little bit more also. Therefore, the email extensions

[android-developers] Re: Image scaling on Sony Ericsson Xperia phone

2011-07-07 Thread Johan Abramsson
Hi, I am glad you liked the article, Andreas has done a really great job. I will forward your thoughts into the customer service organisation. Thanks for letting us know. Kind regards /Johan On Jul 6, 8:37 pm, Martin Sall maris.seiman...@gmail.com wrote: Really nice article. It is great to

[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

[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 :-) ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout

[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

[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

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

2011-07-07 Thread sumit
Michael Roland mi.roland at 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

[android-developers] Re: Android Library and Resources

2011-07-07 Thread Guillaume
On Jul 6, 5:36 pm, David Olsson zooklu...@gmail.com 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

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 rickd...@gmail.com OK so it does not need to be webview but

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 chattsaur...@gmail.com may be your code is getting entangled in an infinite loop. have you tried using break ? On Jul 6, 4:51 pm, mark2011

[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)

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

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] 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 bruno.vinicius...@gmail.com 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

[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

[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 kmans...@gmail.com 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? --

[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

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 haythe...@gmail.com wrote: Hi, I am trying to work with

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 ahmedelsayed.sho...@gmail.comwrote: hi all , i want to know how to get my mobile servie provider using android code ?

Re: [android-developers] Android Accelerometer Sensor

2011-07-07 Thread Filip Havlicek
And what is the error? 2011/7/7 souissi haythem haythe...@gmail.com 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,

[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] 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 ahmedelsayed.sho...@gmail.comwrote: thanks for reply i tested this code TelephonyManager telephonyManager =((TelephonyManager)

[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 ? -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.com/ -- You received this message because you are

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 fina.pere...@gmail.com 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

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 rashmi@gmail.com wrote: Hi, I have written an aidl file in the path android/framwork/base/core/ java/com/, which has a import

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 mfpere...@gmail.com wrote: Hi All, I'm trying to close (remove from home) my AppWidget when the user goes to

[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 mmur...@commonsware.com wrote: This is a fine question to ask your attorney. On Thu, Jul 7, 2011 at 4:18

[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

[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 treking...@gmail.com wrote: On Tue, Jul 5, 2011 at 8:51 AM, MG matic.goropev...@gmail.com wrote: I want this TextView to have semi-transparent background and rounded edges. How would I accomplish this?

[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] 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

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 matic.goropev...@gmail.com wrote: Hi! I have a problem. I am developing an app where I get some message (html text) and display it in TextView.

[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

[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

[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] 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

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 raghavs...@gmail.com 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

[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] 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 hy.yours...@gmail.comwrote: 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

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] 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

Re: [android-developers] Audio

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 5:06 AM, kaushik p kaushiks...@gmail.com 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?

Re: [android-developers] Need dictionary database.

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 5:46 AM, Aditya dabhaga...@gmail.com 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] 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 raghavs...@gmail.com 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

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 raghavs...@gmail.com 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 ... ?

[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 treking...@gmail.com wrote:

[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

[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; } whatever the code

[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 mmur...@commonsware.com wrote: Use removeCallbacks() to get rid of your posted Runnable when it is no longer valid, and schedule

Re: [android-developers] EventQueue.peekMessage

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 9:11 AM, andrei-dmitriev andrei-dmitr...@yandex.ru 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

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 matic.goropev...@gmail.com 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

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 raghavs...@gmail.com 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

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 raghavs...@gmail.com 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

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

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 raghavs...@gmail.com wrote: I am aware of the last know

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 raghavs...@gmail.com 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

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 mmur...@commonsware.com 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

[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

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 fred.nig...@googlemail.comwrote: 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

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 treking...@gmail.com wrote: On Thu, Jul 7, 2011 at 8:47 AM, Mark Murphy mmur...@commonsware.comwrote: Don't

[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

[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);

[android-developers] DexFile Error meaning

2011-07-07 Thread Guilherme Lunhani
Hi, In a project that i'm working, in some point of development i found this Exception in DexFile.class, before the application running my Laucher Activity... I go to Google and search some articleshttp://stackoverflow.com/questions/4502445/dexfile-class-error-in-eclipsethat help search the

[android-developers] Re: DexFile Error meaning

2011-07-07 Thread Streets Of Boston
Can't say much without seeing the code of your StartActivity. Do you link to a library (JAR)? Maybe this JAR refers to the ProtectionDomain class of another java-implementation that's not quite compatible with the Android SDK's one. -- You received this message because you are subscribed to

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread JAlexoid (Aleksandr Panzin)
Question is: Are you ready to spend time and money battling over %6 of US sales? I don't expect that you live in Texas. And Apple hasn't really stepped in more than Google has, don't be fooled by that letter. BTW: Google has the same license Apple has. They both acquired the license from

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread John Coryat
Question is: Are you ready to spend time and money battling over %6 of US sales? Is this what Lodsys is asking for? -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread String
I'm curious too, where are you getting the 6% figure? BTW: We have no way of knowing that Google has the same license Apple has. All we know is that Google and Apple each obtained *a* license from Intellectual Ventures. It may be a reasonable assumption that the licenses have similar terms,

[android-developers] Re: DexFile Error meaning

2011-07-07 Thread droidGUI
Strange... now works :) I tried delete my emulator images once (yesterday), to verify if was problem in Debugger machine but not worked... I tried again (deleted ALL Emulators images) and create one new, and now my Launcher Activity works how expected... (The DexFile Exception ocurred only when

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread Chris
I read yesterday it wasn't 6%, its 0.575% which, principle aside, is a paltry amount. Here's one reference: http://9to5mac.com/2011/05/16/lodsys-were-not-patent-trolls-heres-why-were-entitled-to-royalties-over-in-app-purchasing/ - I think there's more info at Groklaw about exactly what

[android-developers] Re: DexFile Error meaning

2011-07-07 Thread droidGUI
in any case, this is my on Create, when my code crash... /* (non-Javadoc) * @see android.app.Activity#onCreate(android.os.Bundle) */ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub

[android-developers] rounded corner // Shape Drawable (via xml) vs. PNG

2011-07-07 Thread Ralph Bergmann
Hi, On stackoverflow I found a question about creating a rounded corner graphic. http://stackoverflow.com/questions/1683185/android-listview-with-rounded-corners The solution was to create a shape drawable via xml file. My question: Why he/she recommends a shape drawable xml file and not a

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread John Coryat
I read yesterday it wasn't 6%, its 0.575% From what I understand from that link, that's what they are CURRENTLY receiving from Apple, not what they want from us as developers. Does anyone who received THE LETTER have any detail as to what Lodsys is demanding? -John Coryat -- You received

Re: [android-developers] rounded corner // Shape Drawable (via xml) vs. PNG

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 11:58 AM, Ralph Bergmann ra...@dasralph.de wrote: My question: Why he/she recommends a shape drawable xml file and not a png file (9-patch)? Why is a shape drawable better? A ShapeDrawable is neither better nor worse than a nine-patch PNG, any more than a hammer is better

[android-developers] Re: Installing APK + DB

2011-07-07 Thread hectordu...@yahoo.com
your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... YEAH ! it is still crashing but i don't know exactly when :-( but ot works fine by pressing HOME, or returning to the

[android-developers] ftdio_sio stop receive bytes on pandaboard

2011-07-07 Thread dani maoz
Hi I have connected usb to serial dongle to pandaboard. I wrote an application which open ttyUSB0 port and print the information to the screen, after a while it stop receiving data, in order to solve the problem i have to reopen the port, i used usbmon tool and saw that after a while it stop

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

2011-07-07 Thread MartyMoose
I have used TeeCharts for Windows for a number of years. I'm porting some of my applications to Android so I am evaluating TeeCharts for Android. I'm hoping it will make porting a bit easier. http://www.steema.com/entry/63/h4/TeeChart_Java_for_Android_now_available Marty On Jul 7, 8:20 am,

Re: [android-developers] EventQueue.peekMessage

2011-07-07 Thread andrei-dmitriev
The longRoutine is the drawing procedure which may take up to several seconds. Yep, I tried to relay that onto another thread and draw into the SurfaceView but the problem I've faced is that the original view(s) are still repainted with onDraw() thus the content (the background thread is

Re: [android-developers] EventQueue.peekMessage

2011-07-07 Thread Jeffrey Brown
You can use a Canvas to draw an image into a Bitmap on a background thread. Then when that's finished, draw the Bitmap into the View (in onDraw) on the main thread. I'd be worried about a drawing function that takes several seconds to run. We like to keep drawing well under 16ms in order to

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread John Coryat
If I get that letter, I'll reply to them to kindly... I did that exactly once in my life and it took two years and a lot of pain and suffering (and legal bills) to get passed that one outburst. I was young and foolish at the time. Just remember, never respond to any legal letter with

Re: [android-developers] ftdio_sio stop receive bytes on pandaboard

2011-07-07 Thread Mark Murphy
Visit http://source.android.com and click on the Community tab to find a suitable group for your question. On Thu, Jul 7, 2011 at 12:35 PM, dani maoz maoz.d...@gmail.com wrote: Hi I have connected usb to serial dongle to pandaboard. I wrote an application which open ttyUSB0 port and print the

[android-developers] how to typecast String data to Object data type java/Android

2011-07-07 Thread naveen kumar
String epdata=sdfsad; Object epArry= (Object) epdata; facing issues plz help me -- 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

[android-developers] NullPointerException when checking for orientation

2011-07-07 Thread Kim
I am using the recommended method to check orientation when using frames in 3.0 or higher: if(((ViewByRoom.controls CAN_DISPLAY_QUEUE) == CAN_DISPLAY_QUEUE) getActivity() .findViewById(R.id.queueframe)==null) { but sometimes I get a nullpointer exception on the line with

[android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread John Coryat
We received the letter today. Can you detail what Lodsys is demanding of you? -John Coryat -- 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

Re: RE: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-07 Thread Miguel Morales
So, I have to find somebody to find a nice, legal way to say 'suck my balls, your patent doesn't apply to my app?' Ok. Sorry, but I'm not going to let these suit retards try to get any money from me. Then again, I live in a shitty apartment and the most expensive thing I own is my do, I ride my

[android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread Raghav Sood
Hi all, In my app I have to compare getLatitude() and getLongitude() with null in an if statement to check, well, if they are null. My statement looks like this: if (location.getLatitude() != null || location.getLongitude() != null) location is a Location variable. I am getting an error

[android-developers] Re: NullPointerException when checking for orientation

2011-07-07 Thread Kim
Is it possible that the exception is actually caused by the getActivity(), even though the LogCat is pointing to the .findViewByID line? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how to typecast String data to Object data type java/Android

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 12:13 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: String epdata=sdfsad; Object epArry= (Object) epdata; This is a basic Java questions and has nothing to do with Android development.

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 12:22 PM, Raghav Sood raghavs...@gmail.com wrote: I am getting an error that I can not compare these values as they are Doubles in nature and null is not valid here with ||. How can I compare these? As the error indicates, they are not object that are comparable to

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread Raghav Sood
I am trying to guard against them being null. I am getting error reports from users via ACRA that these are returning null sometimes. Hence the safeguard. On Thu, Jul 7, 2011 at 11:05 PM, TreKing treking...@gmail.com wrote: On Thu, Jul 7, 2011 at 12:22 PM, Raghav Sood raghavs...@gmail.com

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 12:38 PM, Raghav Sood raghavs...@gmail.com wrote: I am trying to guard against them being null. I am getting error reports from users via ACRA that these are returning null sometimes. That's not possible. Double-check your logs and what variable they point to. The

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread Raghav Sood
TreKing I had this in a previous thread to but that problem was fixed. This is another one causing the same error/ java.lang.NullPointerException at com.raghavsood.findme.MyPositionOverlay.draw(MyPositionOverlay.java:37) at com.google.android.maps.Overlay.draw(Overlay.java:179) at

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread Mark Murphy
Your location variable is null. On Thu, Jul 7, 2011 at 1:45 PM, Raghav Sood raghavs...@gmail.com wrote: Double latitude = location.getLatitude()*1E6; It is a NullPointerException so I suppose it is returning null. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Question about the values of the Audio Buffer

2011-07-07 Thread jdarladimas
Hello Developers, In an application that I am developing, I am using the AudioRecord class to detect sounds from the microphone. The minimum Buffer Size that I am allowed to use is 4096. So, I get the values from the microphone buffer and put them in a short[] array that has the same size as the

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread TreKing
On Thu, Jul 7, 2011 at 12:45 PM, Raghav Sood raghavs...@gmail.com wrote: Double latitude = location.getLatitude()*1E6; It is a NullPointerException so I suppose it is returning null. NullPointerExceptions are cause by *objects* that are set to null. The only *object* in that statement is

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread Raghav Sood
But the thing is location can't be null. If it was the app wouldn't have reached here. I check for location being null in my main activity: if (location != null) { // Update my location marker positionOverlay.setLocation(location); Only the does MyPositionOverlay receive

Re: [android-developers] Re: NullPointerException when checking for orientation

2011-07-07 Thread Kostya Vasilyev
A complex expression like this can cause a bit of confusion with line numbers. You can watch it in the debugger, while single-stepping, the current line can jump down and up. I suppose it's the same with getting the stack trace. To pinpoint what's going on, rewrite this section of code to

Re: [android-developers] Comparing getLatitude() and getLongitude() to null

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 2:00 PM, Raghav Sood raghavs...@gmail.com wrote: But the thing is location can't be null. If it was the app wouldn't have reached here. I check for location being null in my main activity: if (location != null) {          // Update my location marker        

Re: [android-developers] Re: Installing APK + DB

2011-07-07 Thread Kostya Vasilyev
Hector, What I was hinting at (sorry if I was being too oblique) is that: 1 - There is a bug in your code when the activity gets recreated for configuration changes; 2 - The most frequent case of a configuration change is the screen orientation change; 3 - There are other cases configuration

  1   2   >