[android-developers] Re: Motorola Droid -- Poor accelerometer performance

2009-12-08 Thread Heiko
With SENSOR_DELAY_GAME I get very unstable sample rates. Mostly it averages around 9 samples/second, but I also got 20, 30, 60 and 80. Seems like the SensorEventListener is very unreliable. The iPod 2G and iPhone 3GS have approximately the same hardware as the Droid (even the same accelerometer),

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Jack Ganesh
No One knows ? ? ? On Dec 8, 9:08 am, Jack Ganesh ganesh...@gmail.com wrote: HI All,  Any one knows how to Kill my all the activity at a time ? Am inside so many sub menu if i click exit button there it should close all teh activity and show the OEM Screen. Cheers, Ganesh -- You

[android-developers] Re: About Message Center Service Number

2009-12-08 Thread peter
anyone kowns? On 12月7日, 下午1时31分, peter heywoodpres...@gmail.com wrote: Hello, Everyone: I found that in SmsMessage class, it has an instance of method named getServiceCenterAddress( ). this method could get the Message Center Address from message's pdu that you recived.

[android-developers] Re: Where could I download the SDK source code

2009-12-08 Thread budziq
On Dec 8, 3:59 am, Grant jeasun...@gmail.com wrote: Dear All: Where could I download the SDK source code Thanks. Well, it depends on what You mean by SDK source code... If it is the SDK itself then it is http://developer.android.com/sdk/index.html And if you really mean the source code

Re: [android-developers] Difference between ImageView.setImageBitmap() and RemoteView.setImageViewBitmap() ????

2009-12-08 Thread Jeff Sharkey
One alternative you can use is RemoteViews.setImageViewUri(), and then write your own ContentProvider that feeds images through openAssetFile(). j On Wed, Nov 18, 2009 at 8:55 PM, tedd jeevitha.jaya...@gmail.com wrote: Hi, I have seen that the ImageView.setImageBitmap() can process high

Re: [android-developers] ACTION_APPWIDGET_PICK , filtering the list

2009-12-08 Thread Jeff Sharkey
The current API doesn't allow for filtering of that list, and that ACTION is the only method of binding. A future API improvement might be to allow automatic binding of widgets if the certificates match between the requested provider and host. j On Thu, Nov 26, 2009 at 6:44 AM, daniel.benedykt

Re: [android-developers] Re: appwidget Image on Orientation Change Issue

2009-12-08 Thread Jeff Sharkey
Remember that widget RemoteViews updates are applied over a potentially-cached layout. You should always set all values on each update you send. For example, if the last update you passed only updated a TextView, that single update could potentially be applied over the top of a brand new layout

Re: [android-developers] Re: Safe way to get the My Contacts Group?

2009-12-08 Thread Jeff Sharkey
You're correct, the Google Contacts sync adapter could change the TITLE for this group in the future. However, it's more likely that we'll use RES_PACKAGE and TITLE_RES to set a custom, localized title in the future. j On Thu, Nov 19, 2009 at 12:11 PM, jak. koda...@gmail.com wrote: I'm a

Re: [android-developers] android Contacts application theme/style

2009-12-08 Thread Jeff Sharkey
The default framework theme is dark. :) j On Thu, Nov 19, 2009 at 4:16 PM, n179911 n179...@gmail.com wrote: Hi, Can you please tell me why the android Contacts application theme/style is using 'dark' theme? For example, the activity's background is Black instead of White. I have looked

Re: [android-developers] Android 2.0 Bugs in ContactsContract.Intents.Insert

2009-12-08 Thread Jeff Sharkey
The Organization and Notes fields have been fixed in a future release, internal tracking #2256272. As for the Name field, our current splitting algorithm lives down in the provider, which is why it only assigns to the first-name field. Future API should probably be added to allow callers to

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Dexter#39;s Brain
Why would you want to do it? But there are, according to me, 2 ways. 1. Home Button 2. Power Off Actually, if you really want to kill your process, you can use any other Task Manager kind of application. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 1:15 pm, Jack

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Jack Ganesh
Hi Dexter, Through Code i need to kill all Activity. Am into my Sub Menu in my Application. there if i press exit then i need to come to OEM Screen means Phone welcome screen. How to do ? ? ? Cheers, Ganesh On Dec 8, 2:39 pm, Dexter#39;s Brain coomar@gmail.com wrote: Why would

[android-developers] Re: How can I call service methods from broadcastReceiver?

2009-12-08 Thread MSChoi
I tested with blocking some lines of function call inside of startSensor() and stopSensor(). Then there is no failure message. Does any expert know how to call those function in startSensor(), stopSensor(). Please tell me how~ /** * remoteService.java */ public class RemoteService extends

[android-developers] Upgrade problems with HTC hero type phones

2009-12-08 Thread SCMSoft
Hi all, We have a number of users experiencing crashes with our apps on Hero type phones (hero, droid eris, etc.). After some debugging, it appears that they upgraded the app, but that the phone somehow cached the old version of the AndroidManifest. For instance, the app version is still reported

[android-developers] deleting then recreating a MapView in the same MapActivity fails

2009-12-08 Thread steelbytes
Hi, I've got an Activity that extends MapActivity. it uses ViewGroup.removeAllViews() LayoutInflater.inflate() to changes parts of itself. if it creates then deletes then [re]creates a MapView using the above method, it gets an exception during inflate that says: You are only allowed to

[android-developers] Getting altitude / height / elevation

2009-12-08 Thread Neilz
Anyone know if it's possible to obtain the physical height or altitude of your device, using the sensors or by any other means? -- 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] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Mark Murphy
Through Code i need to kill all Activity. Am into my Sub Menu in my Application. there if i press exit then i need to come to OEM Screen means Phone welcome screen. How to do ? ? ? Don't do it. That goes against Android conventions. -- Mark Murphy (a Commons Guy)

[android-developers] How to show menu item automatically?

2009-12-08 Thread Sasikumar.S
Hi, How to show menu items automatically (without clicking menu button) when the layout is viewed?.. -- 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] Re: Exception in com.google.android.location.ConfirmAlertActivity

2009-12-08 Thread Dexter#39;s Brain
Hi, There is an error in your XML file, at line no 54. Check it out. Or paste that part of your xml. Also, mention the API version you are using. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 1:43 am, Vijay vijay.meenakshisunda...@gmail.com wrote: I get a

[android-developers] Re: How to show menu item automatically?

2009-12-08 Thread Dexter#39;s Brain
openOptionsMenu() Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 3:40 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to show menu items automatically (without clicking menu button) when the layout is viewed?.. -- Thanks Regards Sasikumar.S -- You

[android-developers] Re: Getting altitude / height / elevation

2009-12-08 Thread Neilz
Hi, thanks for the reply. Yes, I just found the getAltitude() method of Location. Unfortunately it just seems to return 120.0, and doesn't seem to have the accuracy of getLatitude() and getLongitude(). I need the same degree of accuracy for it to be any use. On Dec 8, 10:35 am, Dexter#39;s Brain

[android-developers] Re: Getting altitude / height / elevation

2009-12-08 Thread Kumar Bibek
Well, the documentation doesn't mention anything about the accuracy. You can try and check by moving around, from ground to first floor, how does it behave. I guess, it is a GPS fix, then you can probably look up in Google how does it calculate the altitude and what's the accuracy. Thanks and

Re: [android-developers] Re: How to show menu item automatically?

2009-12-08 Thread Sasikumar.S
Hi kumar, Thanks for ur reply... how to use that?.. On Tue, Dec 8, 2009 at 4:16 PM, Dexter#39;s Brain coomar@gmail.comwrote: openOptionsMenu() Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 3:40 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi,

[android-developers] Re: How to show menu item automatically?

2009-12-08 Thread Kumar Bibek
Just in your onCreate() or onResume() method, call this. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 3:58 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi kumar, Thanks for ur reply... how to use that?.. On Tue, Dec 8, 2009 at 4:16 PM, Dexter#39;s Brain

Re: [android-developers] Re: How to show menu item automatically?

2009-12-08 Thread Sasikumar.S
Hi kumar, Thanks U On Tue, Dec 8, 2009 at 4:29 PM, Kumar Bibek coomar@gmail.com wrote: Just in your onCreate() or onResume() method, call this. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 3:58 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi kumar, Thanks

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Jack Ganesh
HI Mark, Say some thing ? ? ? Am in need to perfom this operation. On Dec 8, 3:40 pm, Dexter#39;s Brain coomar@gmail.com wrote: Hi Mark, I am aware that this is the Android convention. But, in some situations, you just want to kill your activity. For example, in your browser, if you

[android-developers] Tasks Running in Android

2009-12-08 Thread Sasikumar.S
Hi, How to find, what are the tasks running in android emulator?... -- 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

[android-developers] Is there any way to but an Object to transfer between some Activities without Serialization

2009-12-08 Thread Le Tuan Anh
Normally, I used to apply method Intent.putExtrae(String, Serializable) to put an Object transfer between some Activity in Android. But now, my object can not implement Serialization, so do you know any other way to put Object in an Intent to get the same effect. Thanks a lot -- You received

Re: [android-developers] Tasks Running in Android

2009-12-08 Thread satishbabumsc
Try with ps -A @ Satish bellapu Sent from BlackBerry® on Airtel -Original Message- From: Sasikumar.S sasikumar.it1...@gmail.com Date: Tue, 8 Dec 2009 16:42:53 To: android-beginn...@googlegroups.com; android-chen...@googlegroups.com; android-developers@googlegroups.com; Blogspot

[android-developers] Re: Motorola Droid -- Poor accelerometer performance

2009-12-08 Thread Heiko
Problem solved. In case others experience the same problems: The constants for the sensors seem to be wrong. I used: getSensorList (SensorManager.SENSOR_ACCELEROMETER).get(0); which returned a handle to the magnetic field sensor. Also the Sensor.TYPE_ACCELEROMETER constant returned a wrong

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Sasikumar.S
Use finish(); to kill the current activity... On Dec 8, 4:11 pm, Jack Ganesh ganesh...@gmail.com wrote: HI Mark, Say some thing ? ? ? Am in need to perfom this operation. On Dec 8, 3:40 pm, Dexter#39;s Brain coomar@gmail.com wrote: Hi Mark, I am aware that this is the Android

[android-developers] Re: AppWidget / Home screen widget and size

2009-12-08 Thread Kaj Bjurman
Doesn't anyone got input on this issue? Isn't it possible to solve the problem? On 6 Dec, 19:50, Kaj Bjurman kaj.bjur...@gmail.com wrote: I tried to create a folder named xml-small and placed the widget provider xml-files there. It looks like I need to use something like 50x50 dip for one

Re: [Mobile-App-Developers] Re: [android-developers] Tasks Running in Android

2009-12-08 Thread Sasikumar.S
Hi, Thanks for ur reply... What is that ps -A ? On Tue, Dec 8, 2009 at 4:46 PM, satishbabu...@gmail.com wrote: Try with ps -A @ Satish bellapu Sent from BlackBerry® on Airtel -- *From: * Sasikumar.S sasikumar.it1...@gmail.com *Date: *Tue, 8 Dec 2009

[android-developers] Re: SensorManager.registerListener gives unexpected results

2009-12-08 Thread TonyDoc
Thanks, looks like I'm not going inasane... Does anyone else have a Samsung Galaxy and can try this? On Dec 6, 4:52 pm, Lance Nanek lna...@gmail.com wrote: T-Mobile G1: V/SensorEvent( 2054): Time=19 V/SensorEvent( 2054): Time=79 V/SensorEvent( 2054): Time=159 V/SensorEvent( 2054): Time=18

[android-developers] Re: SensorManager.registerListener gives unexpected results

2009-12-08 Thread TonyDoc
What do you mean? Newer builds? Do you mean 1,6, 2.0? I'm using 1.5 SDK to try this... On Dec 7, 5:45 pm, dan raaka danra...@gmail.com wrote: The newer versions of the build dont exhibit this problem .. -Dan On Mon, Nov 30, 2009 at 6:30 AM, TonyDoc tony...@gmail.com wrote: I'm registering a

[android-developers] R file not generating automatically

2009-12-08 Thread Sasikumar.S
Hi, After i created my project. The R file is not generating. I need to build the application to create that R file. After i add any image or string. It is not automatically adding in R file. I need to build another time to generate that code in R file. what is the reason?... -- Thanks Regards

[android-developers] integration testing with content provider

2009-12-08 Thread tenacious
I have an application which uses its own content provider in several activities. I've written a ProviderTestCase2 for my content provider without much problem. For this I extended RenamingDelegatingContext to use a test database instance. Now I want to write integration tests against my

Re: [android-developers] R file not generating automatically

2009-12-08 Thread Le Tuan Anh
There is something wrong with your layout (XML), just check the file content, refresh and run again. Le Tuan Anh Sent from Sint-Josse-Ten-Noode, Brx, Belgium 2009/12/8 Sasikumar.S sasikumar.it1...@gmail.com Hi, After i created my project. The R file is not generating. I need to build the

Re: [android-developers] R file not generating automatically

2009-12-08 Thread Sasikumar.S
Hi, Thanks for ur repply.. Not only for single project. I created lot of projects. In All the project the R file is not generating for past 3 days.. On Tue, Dec 8, 2009 at 5:03 PM, Le Tuan Anh anhlt1...@gmail.com wrote: There is something wrong with your layout (XML), just check the file

Re: [android-developers] R file not generating automatically

2009-12-08 Thread Sasikumar.S
WHAT MAY BE THE CHANGES IN LAYOUT FILE?... On Tue, Dec 8, 2009 at 5:08 PM, Le Tuan Anh anhlt1...@gmail.com wrote: I got the same problem in several times, the reason only I can figure out and fixed is look at the layout file carefully to debug and then it work. Le Tuan Anh Sent from

[android-developers] Re: File Downloads in Android Web Browser

2009-12-08 Thread AJ
i hope at least somebody would be having any idea on this. Thanks, AJ On Dec 8, 10:40 am, AJ ajeet.invinci...@gmail.com wrote: Hi All, I have problem in downloading the content when Content-Disposition: attachment is specified in response coming from the server. I searched the forum and

[android-developers] Re: Is there any way to but an Object to transfer between some Activities without Serialization

2009-12-08 Thread Kumar Bibek
NopesIt can't be done with the simplicity you are asking for. The Remote Interface way, or the Parcelable way. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 4:13 pm, Le Tuan Anh anhlt1...@gmail.com wrote: Normally, I used to apply method Intent.putExtrae(String,

[android-developers] broadcastreceiver never died?

2009-12-08 Thread sleith
hi, i created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. i use Advanced Task Killer, and killed the Test application. but when i kill another application, for example gmail, the Test's broadcastreceiver got the intent (i logged

Re: [android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Mark Murphy
For example, in your browser, if you have been opening many pages, and then you click on Back, it takes you to the previous page in the browser's history. Say, my history has 10 pages, so to finally exit the application, I have to press back 10 times.. Press HOME, and you're done.

Re: [android-developers] broadcastreceiver never died?

2009-12-08 Thread Mark Murphy
i created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. i use Advanced Task Killer, and killed the Test application. but when i kill another application, for example gmail, the Test's broadcastreceiver got the intent (i logged

[android-developers] Re: loop sound

2009-12-08 Thread JacobGladish
After loading the file in Audacity (windows vista) and looping it, it revealed that my file simply didn't play cleanly. The original audio sources I have are in apple's core audio format. The funny thing is that I used quicktime pro to convert them from .caf to .wav, and then both mp3 and ogg

[android-developers] Problems with Accelerometer - random values

2009-12-08 Thread Enrique López Mañas
Hello all, I'm using a HTC Magic in order to develop an application which makes use of the accelerometer. Following the indications from tutorials and the docs, this is a snapshot of the code I'm using: /* Next code register the ACCELEROMETER SENSOR*/ SensorManager mSensorManager =

Re: [android-developers] Problems with Accelerometer - random values

2009-12-08 Thread Mark Murphy
Hello all, I'm using a HTC Magic in order to develop an application which makes use of the accelerometer. Following the indications from tutorials and the docs, this is a snapshot of the code I'm using: /* Next code register the ACCELEROMETER SENSOR*/ SensorManager mSensorManager =

[android-developers] Re: Problems with Accelerometer - random values

2009-12-08 Thread Enrique López Mañas
Thank you Mark, Yes, I just take out from my table my USB black hole, but still not working. I was reading on another Thread that the problem might be because of external influences like music or whatever, but I'm not playing on my application: The Thread is:

[android-developers] Re: Problems with Accelerometer - random values

2009-12-08 Thread Enrique López Mañas
Ok, now the values are for some reason (with my phone so far from any computer device, and facing up) the following: [1.1304889, -0.88532263, 11.863323] On 8 Dez., 14:07, Enrique López Mañas eenriquelo...@gmail.com wrote: Thank you Mark, Yes, I just take out from my table my USB black hole,

[android-developers] Re: Emulator on Linux 10 times slower than on Windows

2009-12-08 Thread brian.schim...@googlemail.com
@Michael MacDonald: Seems like a good advice, but i my case didn't help neither. @arnouf: - I'm not sure what you mean by using the good environment x86 / 64. I tested this on x86 hardware and on x64 hardware, but always with a 32 Bit Linux. Is seems as if the host processor bits have no impact

[android-developers] Re: Updating SDK through AVD

2009-12-08 Thread Lieuwe
I know the error message doesn't seem to relate to the problem, but that fixed it for me. -C I found a direct link here: http://dl-ssl.google.com/android/repository/android-1.5_r03-linux_x86.zip Your solution may well have worked as I indeed had several of these google API's already

[android-developers] ActivityManager.restartPackage() is not working

2009-12-08 Thread Asif k
Hi All, I want to kill my application whose base activity is demo.test.MyActivity. I am trying to kill it from other application by following code, but getting the error like package name is not valid am.restartPackage(demo.test); // here am is ActivityManager define earlier ) Thanks,

[android-developers] Re: Adding button to ListView

2009-12-08 Thread Abhi
can anyone help me on this topic please? On Dec 8, 1:06 am, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I have a tab layout with two tabs, the first of which has a listview of 5 clickable rows. Below this listview, I need a button. I have been able to create the listview but don't know

Re: [android-developers] alarm not firing up !

2009-12-08 Thread Mark Murphy
I was doing alarm manager and stuff. i did like below public class AlarmExample extends Activity { private Button setAlarmButton = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] RemoteService and RemoteServiceBinding - Different package (apk) - Problem

2009-12-08 Thread Ash
Hi!! I have made two different packages for API Demo sample - RemoteService in Service app package (Service.apk) RemoteServiceBinding in Client app package(Client.apk) (two different apk and two different projects in eclipse) The Service app offer services which Client app binds to and utilizes.

[android-developers] How can I change the color of the Search button on Searchable Activity?

2009-12-08 Thread Philip
Hi all, Firstly, we can see here: {sdk-path}/docs/reference/android/app/ SearchManager.html#SearchabilityMetadata In particular, we can change the text in the Search button through below: android:searchButtonText If provided, this text will replace the default text in the Search button.

[android-developers] Re: ActivityManager.restartPackage() is not working

2009-12-08 Thread justinh
Is that the package name you have defined in your Manifest for the package attribute? Also, you need to provide the parameter as a String. On Dec 8, 8:46 am, Asif k asifk1...@gmail.com wrote: Hi All,   I want to kill my application whose base activity is demo.test.MyActivity.  I am trying

[android-developers] JDBC Driver for SQLiteDatabase

2009-12-08 Thread kristianlm
Hi folks! I've been looking around for a portable way to use database functionality in Android without much success. I wanted to interface the built-in SQLite database in Android through JDBC but there were no drivers ...right? at least I could not find any! So I started my own:

[android-developers] Units for Paint.setTextSize() ?

2009-12-08 Thread WoodManEXP
Does anyone know what the units are for Paint.setTextSize(size) ? With the TextView class you can use a call like TextView.setTextSize(TypedValue.COMPLEX_UNIT_PT, ptSize) to select the units of the size parameter. How are the units set for Paint.setTextSize()? Thank you, -- You received this

[android-developers] Re: broadcastreceiver never died?

2009-12-08 Thread justinh
It's going to call every time that broadcast is sent. If you want to handle specific packages you need to do that inside the receiver by looking at the received Intent. Each time it's done handling that broadcast it should be garbage collected. On Dec 8, 6:53 am, sleith raysle...@gmail.com wrote:

[android-developers] Re: Adding button to ListView

2009-12-08 Thread AJ
It looks the following link is explaining what do you want, but i am not sure. Check it. http://www.anddev.org/viewtopic.php?p=28745 Thanks, AJ On Dec 8, 6:59 pm, Abhi abhishek.r.sha...@gmail.com wrote: can anyone help me on this topic please? On Dec 8, 1:06 am, Abhi

[android-developers] Re: alarm not firing up !

2009-12-08 Thread Jags
hmm I was right at guessing that, i miss something in manifest. Thanks a lot i had to add this to have it worked receiver android:name=.OnAlarmReceiver /receiver regards Jagat On Dec 8, 8:01 pm, Mark Murphy mmur...@commonsware.com wrote: I was doing alarm manager and stuff. i did like

[android-developers] SDK version problem

2009-12-08 Thread Lieuwe
Hi, I have this strange problem here. I am fairly new to Android development and I was just playing around putting a few bits and pieces from several samples together. I created (in Eclipse) an Android 1.5 project (thats sdk version 3 right?) .. now it creates the apk file no problem, Eclipse

[android-developers] Re: broadcastreceiver never died?

2009-12-08 Thread sleith
ok thanks for your replies :) On Dec 8, 9:14 pm, justinh henderson.jus...@gmail.com wrote: It's going to call every time that broadcast is sent. If you want to handle specific packages you need to do that inside the receiver by looking at the received Intent. Each time it's done handling that

[android-developers] Lazy Loading Images in a ListView

2009-12-08 Thread Samuh
I trying a hand at ListViews and my current experiment is aimed at displaying some data in a ListView. The data to be displayed in each row is simple: an image and some text. The images come from a remote server and the textual data is hardcoded. I have a class that downloads images using

[android-developers] Re: Adding button to ListView

2009-12-08 Thread justinh
You can specify a View id for the content of a tab. So in setContent (int viewId) you would use something other than a ListView, ie, a view that had a listview inside of it with a button on the bottom. On Dec 8, 9:16 am, AJ ajeet.invinci...@gmail.com wrote: It looks the following link is

[android-developers] DatagramSocket and Receive

2009-12-08 Thread fala70
I am working with UDP and DatagramSocket. I verified that the Receive function clear all data more of setLength of DatagramPacket. My packets have a variable len. I use first two bytes to understand the len packet. public void run() { byte []buff = new byte[1024]; } private int

[android-developers] Custom Component ImageView Override Help

2009-12-08 Thread superjet
Hi, I've made a little test component that overrides ImageView, called myImageView, and prints some text and an arrayList of Doubles over whatever image is specified in the related xml. However, right now, the text and Doubles that are drawn over the image are defined within the myImageView

[android-developers] DatagramSocket and Receive

2009-12-08 Thread fala70
I am working with UDP and DatagramSocket. I verified that the Receive function clear all data more of setLength of DatagramPacket. My packets have a variable len. I use first two bytes to understand the len packet. This is my code: public void run() { byte []buff = new byte[1024];

Re: [android-developers] JDBC Driver for SQLiteDatabase

2009-12-08 Thread Mark Murphy
Why is no such JDBC driver already included in Android? Android does not support JDBC. Am I missing the big picture here? Android is designed to be used on devices with limited RAM, limited CPU, limited storage space for application code, and limited electricity (battery), to connect to local

[android-developers] Web server to use user-agent to determine if request was from Android

2009-12-08 Thread Stephen Abrams
Hello all, I am curious about what user-agents we can expect the Android phones to use by default when using WebView. I am considering checking user-agents strings for mobile and android to determine if request to server is from an Android phone. With a G2 development phone, WebView requests

[android-developers] Re: Camera Preview Filter Choppiness

2009-12-08 Thread Streets Of Boston
You're right, rollback... i didn't even notice that. Although the threads are a one-shot processing and end immediately after that, the system may start to choke on the sheer multitude of them, especially if the decoding is a bit slow. Greg, create only one thread and pause and resume the

[android-developers] How to know the encoding of an SMS

2009-12-08 Thread Carl
Hi, I am writing an SMS application that processes SMSs according to the encoding type. Is there anyway to know, without needing to parse the PDU, if the message is 7-bit encoded or using UCS-2 encoding? Thank you. Carl -- You received this message because you are subscribed to the Google

[android-developers] Android Parser

2009-12-08 Thread bins
package citySlikkerV1.parsers; public abstract class BaseClass { protected String[] mElements; protected boolean[] mElementsState; protected abstract void assignElementState( int ID, boolean state ); protected abstract int getElementCount(); protected

[android-developers] Re: Android Parser

2009-12-08 Thread bins
package citySlikkersV1.HttpClass; import java.io.ByteArrayOutputStream; import java.io.InputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import

[android-developers] Re: Android Parser

2009-12-08 Thread bins
package citySlikkersV1.ResponseHandler; import java.io.StringReader; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import android.util.Log; import citySlikkerV1.parsers.CommonHandler; public class

[android-developers] Re: Android Parser

2009-12-08 Thread bins
package citySlikkersV1.RequestHandler; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.message.BasicNameValuePair; import org.apache.http.protocol.HTTP; import

[android-developers] Re: Android Parser

2009-12-08 Thread bins
package citySlikkersV1.DataStructure; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.Vector; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import

[android-developers] Publish App

2009-12-08 Thread stanlick
I just published my first application to the market and the Just in display show my icon and app name, but under the appname is shows my birth certificate name! How can I change this? Is it something I am missing in my manifest? I'm sure my mom would it; but me -- not so much. Peace, Scott --

[android-developers] Re: Publish App

2009-12-08 Thread justinh
I'm pretty sure that has to do with the Developer Console settings, not your app. When you signed up I think their was a field that said This is your publishing name ? On Dec 8, 10:53 am, stanlick stanl...@gmail.com wrote: I just published my first application to the market and the Just in

[android-developers] Re: Publish App

2009-12-08 Thread stanlick
u rock bro! I just found it. Any idea why I'm getting a server error when I try to purchase the app on my phone? Peace, Scott On Dec 8, 9:59 am, justinh henderson.jus...@gmail.com wrote: I'm pretty sure that has to do with the Developer Console settings, not your app. When you signed up I

[android-developers] Re: Publish App

2009-12-08 Thread justinh
If your phone uses the same Google account as your developer account, they purposefully disallow you from downloading your own app. (and giving it 5 stars :) ) On Dec 8, 11:02 am, stanlick stanl...@gmail.com wrote: u rock bro!  I just found it.  Any idea why I'm getting a server error when I

[android-developers] Re: Publish App

2009-12-08 Thread stanlick
Ahh, I see! I was just trying to make sure it worked and I could install it through the store. So, realizing the Google accounts are the same on my phone and dev acct, is the USB cable the only way I can install/upgrade the app on my phone? Peace, Scott On Dec 8, 10:08 am, justinh

[android-developers] Re: Adding button to ListView

2009-12-08 Thread Brion Emde
I'm not completely clear what you are asking. Yesterday I happened to find this clarification of addFooterView() (and addHeaderView() ) for a ListView: http://www.mail-archive.com/android-developers@googlegroups.com/msg19596.html The sample program in that message worked very well for me and is

[android-developers] Re: Back-porting from Android 2.0 to Android 1.5

2009-12-08 Thread theSmith
Should we just create our own search activity or is there one available in 1.5? As far as I know the global search feature is only 1.6+. When creating our own activity, how would we capture the search key (hard) being pressed on a device? -Chris On Dec 7, 6:25 pm, Dianne Hackborn

[android-developers] Make SectionIndexer pick up new dataset

2009-12-08 Thread Lee
Hello, I have an extended BaseAdapter that implements SectionIndexer. I build my own index data whenever the dataset changes. It works fine, but when the data set changes, the grid keeps using the same SectionIndexer data even after a manual update of the section data in my adapter and an

[android-developers] Re: Publish App

2009-12-08 Thread Maps.Huge.Info (Maps API Guru)
You can always upload it somewhere on the web and download it to your device that way. You'll need to allow unknown source under menu- settings-applications in order to download it from a non-market location though. -John Coryat Radar Now! What Zip Code? -- You received this message because

[android-developers] Re: Publish App

2009-12-08 Thread stanlick
Thanks brother! Yeah, I've had my beta testers downloading it from my web site, but it doesn't handle version upgrade notifications. Peace, Scott On Dec 8, 10:27 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: You can always upload it somewhere on the web and download it to your

Re: [android-developers] Re: Publish App

2009-12-08 Thread Wayne Wenthin
I wrote a batch file that does this for me. I export as xxx-unaligned.apk then the batch deletes my old version uses zipalign on the ualigned, uninstalls the old aligned version from my phone then reinstalls the new version. On Tue, Dec 8, 2009 at 8:12 AM, stanlick stanl...@gmail.com wrote:

[android-developers] Camera - Icon image resource for 'take picture' button?

2009-12-08 Thread Mark Wyszomierski
Hi, On the G1 camera app, there's a handsome looking camera button which you can press to signal the app to take the picture. It's a round button with a little camera icon in it. Is that button resource available in android.R? I'd like to use it in my own app if possible. Thanks -- You

[android-developers] Re: Make SectionIndexer pick up new dataset

2009-12-08 Thread Lee
OK, looking at the cupcake source, seems this is the correct way to dump the data: grid.setFastScrollEnabled( false ); So my problem is: why is the index indicator (the transparent thing supposed to be in the middle showing the section) in the top left corner nearly invisible after this:

[android-developers] Re: DatePicker: years before 2000

2009-12-08 Thread Thomas
The user can still manually edit the box change the value. Yes but if he/she just enters a new value and taps on OK - is the new value passed to onDateSet() in the Hello, DatePicker demo? Regards Thomas On 7 Dez., 21:16, dan raaka danra...@gmail.com wrote: The user can still manually edit the

[android-developers] Focus problem with dpad

2009-12-08 Thread tikky
Hi, I have a a simple activity with a list view. Each element of the list view contains a photo, text view and a button. I have an onClickListener() implemented for the button. When I touch the button, onClickListener gets called, which is what I want. But when I use the D-PAD, and press down

[android-developers] Re: Exception in com.google.android.location.ConfirmAlertActivity

2009-12-08 Thread Vijay
This error is from com.google.android.location.ConfirmAlertActivity. Its not open source I believe. I use Donut. Thanks. On Dec 8, 4:42 am, Dexter#39;s Brain coomar@gmail.com wrote: Hi, There is an error in your XML file, at line no 54. Check it out. Or paste that part of your xml. Also,

[android-developers] Eclipse Debug only my Classes

2009-12-08 Thread Jose Gomez
When I am debugging my code and stepping through the code elipse keeps going on this darn tangents into the android classes which I don't care about. It makes it very difficult to debug. Anyway I can force it to use only my code and just go through the android stuff silently? Its specially

[android-developers] Re: Publish App

2009-12-08 Thread stanlick
care 2 share? On Dec 8, 10:35 am, Wayne Wenthin wa...@fuligin.com wrote: I wrote a batch file that does this for me.   I export as xxx-unaligned.apk then the batch deletes my old version uses zipalign on the ualigned, uninstalls the old aligned version from my phone then reinstalls the new

[android-developers] Re: Make SectionIndexer pick up new dataset

2009-12-08 Thread Lee
Problem worked-around. If I change the height of the grid by 1 pixel after the data set changes, the SectionIndexer draws in the correct place too. Sure there's a more elegant way :-) Lee -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Re: Back-porting from Android 2.0 to Android 1.5

2009-12-08 Thread Dianne Hackborn
Android since 1.0 has included a search API that could bring up an app-specific search activity while within that app. 1.5 introduced global search that apps could participate in outside of their app. I don't understand what you mean by a search activity available in 1.5 -- there is global

[android-developers] Re: SDK version problem

2009-12-08 Thread Tatyana Ulyanova
Hello! I think you should set in AndroidManifest.xml (in Uses SDK attribute) following options: Min SDK verion to 3 (it's corresponded to 1.5 SDK) Target SDK version to 3,4 or 5 (it is the best SDK for your application) Max SDK version to 5 (it's currently the last Android 2.0 SDK, but

  1   2   >