[android-developers] Anyone has expereiences in developing an audio visualizer?!

2010-07-11 Thread CMF
Seems that there is no API in doing the audio visualizer? -- 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 email to android-develop

[android-developers] Re: Intercepting the Android phone dialer

2010-07-11 Thread Randall
I'd like to know this as well. Did you find out how to do it, yet? On Jun 30, 1:41 pm, Jaap wrote: > Maybe I did not explain myself well. What I want is somebody to use > the defaultphoneapplication on Android but when the call button is > pressed my application gets thenumberand no call is being

[android-developers] FileObserver

2010-07-11 Thread perumal316
Hi All, I want to observe the changes made to the filesystem. I am reposting as previously I have used a wrong title to post. I am using FileObserver for this purpose. But I am getting this error when i import android.os.FileObserver: "The import conflicts with a type defined in the same file"

[android-developers] Re: classes

2010-07-11 Thread Abhyudai Shanker
Guys resolved it.. Thanks Abhyudai -- 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 email to android-developers+unsubscr...@googl

[android-developers] make android 1.5 version application should support Multiple screens or different resolution

2010-07-11 Thread aswani kumar tholeti
Hi folks i new to android. for getting more number of downloads.i will make application in android 1.5 version how can i support multiple screen resolution from android 1.5 version . is there any problem develop application in android 1.5 and release in market is it visible to higher version mo

[android-developers] classes

2010-07-11 Thread Abhyudai Shanker
Hey Guys, Is it possible to create another classes object in a class in android. *I am tryin to do the following:* /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with

Re: [android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-11 Thread Core Form
Excellent info James! FYI: I've seen the fading manifest in AppWidgets prior to froyo. Specifically Googles own 'News and Weather' AppWidget. sent from my Google Nexus One On 12 Jul 2010 15:45, "James W" wrote: > I reckon I know how to do it. :o) > > You can get Tween animations in an AppWidget

[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-11 Thread James W
I reckon I know how to do it. :o) You can get Tween animations in an AppWidget by using the LayoutAnimation tag in your widget's layout xml, it supports all the standard Tween animations including Alpha fades. The first problem is that the animation only runs when you first add the Widget to the

Re: [android-developers] Shake Detector

2010-07-11 Thread Brad Gies
Hi Mark, Well.. no... I'm not thinking the phone is constantly accelerating... That's the point of looking for a fairly high acceleration, and then a low acceleration to count as one shake, but I have played with many different values.. and still don't seem to get absolutely consistent result

Re: [android-developers] Question about IP packet header's TOS(& DSCP) field marking

2010-07-11 Thread David Turner
Which packets are you capturing exactly ? If you are using the emulator's -tcpdump option, then you're capturing the traffic on the emulated ethernet LAN, corresponding to the ethernet packets sent through the emulated kernel (and received by the emulator's internal router/firewall). If you are

Re: [android-developers] Altitude location data

2010-07-11 Thread Frank Weiss
I suppose you're looking for an answer from someone who's run into the exact same or similar problem. However, I gently suggest you try to be more resourceful in your debugging. Try this: 1) Post the URL of the request that you using. 2) Look at the response. If the same numerical error is in the

Re: [android-developers] How to manage an event by 2 widgets

2010-07-11 Thread Sebastián Treu
Well, i'm aswering to myself. I really like this modification to be used by someone, so If someone likes it I can tell him how to do it. What I have done was to extend Gallery and override onScroll() so when the selected view is the next one to the jog, it won't scroll anymore. Also, I need to mo

[android-developers] Re: Polling

2010-07-11 Thread perumal316
Hi, I tried using FileObserver but I am having problems importing "android.os.FileObserver" But I am getting the following error: "The import conflicts with a type defined in the same file" Any idea how to resolve this? Thanks In Advance, Perumal On Jul 12, 11:29 am, Romain Guy wrote: > To

Re: [android-developers] Shake Detector

2010-07-11 Thread Frank Weiss
I've had success using a digital band pass filter. Instead of fiddling with velocities, a band pass filter just looks at the power spectrum within a limited frequency range. I posted my code in the following thread: http://groups.google.com/group/android-developers/browse_thread/thread/d61f7790afb

Re: [android-developers] Polling

2010-07-11 Thread Romain Guy
To monitor files and directories, you can simply use a FileObserver: http://d.android.com/reference/android/os/FileObserver.html On Sun, Jul 11, 2010 at 8:25 PM, perumal316 wrote: > Hi All, > > Is it possible to do polling in Android? > > For example, I want my application to monitor a directory

[android-developers] Polling

2010-07-11 Thread perumal316
Hi All, Is it possible to do polling in Android? For example, I want my application to monitor a directory continuously. If there is for example a new folder created in that directory I want to log it down. Is it possible to acheive this by polling? Or is there any other way to do this? Thanks

[android-developers] Re: Monitoring Camera

2010-07-11 Thread perumal316
Ok thanks for the info! On Jul 12, 9:44 am, Mark Murphy wrote: > On Sun, Jul 11, 2010 at 9:43 PM, perumal316 wrote: > > Yes, I have tried that. But it is only possible to log when that app > > is used. But I want to log whenever the camera is used. So when > > another application will be using t

Re: [android-developers] Shake Detector

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 9:43 PM, Brad Gies wrote: > Has anyone implemented an Android Shake Detector that works well on most > phones? http://github.com/commonsguy/cw-advandroid/tree/master/Sensor/Shaker/ > I thought it would be fairly simple to implement but I keep getting false > results. Basi

Re: [android-developers] Re: Monitoring Camera

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 9:43 PM, perumal316 wrote: > Yes, I have tried that. But it is only possible to log when that app > is used. But I want to log whenever the camera is used. So when > another application will be using the camera, I want to log it down > too. Is it possible? I am not aware o

[android-developers] Shake Detector

2010-07-11 Thread Brad Gies
Has anyone implemented an Android Shake Detector that works well on most phones? I thought it would be fairly simple to implement but I keep getting false results. Basically, what I'm doing is setting up a sensor Listener, checking to make sure it is a SensorManager.SENSOR_ACCELEROMETER event

[android-developers] Re: Monitoring Camera

2010-07-11 Thread perumal316
Hi Murphy, Yes, I have tried that. But it is only possible to log when that app is used. But I want to log whenever the camera is used. So when another application will be using the camera, I want to log it down too. Is it possible? Thanks In Advance, Perumal On Jul 12, 9:35 am, Mark Murphy wro

Re: [android-developers] How to write Monkey Script

2010-07-11 Thread Prue Meng
Hi park type= point the "type" can be anything count= 10 how times do you want to run the script speed= 1.0(ms) the interval of two script sentence start data >> captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0); captureDispatchPoi

Re: [android-developers] Monitoring Camera

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 9:31 PM, perumal316 wrote: > I want to write an application that will write to a log file each time > my camera is used. Is there any way I can go about doing it? Write an app that uses the Camera API, and log when that app is used. > I want my application to log down eve

[android-developers] Monitoring Camera

2010-07-11 Thread perumal316
Hi All, I want to write an application that will write to a log file each time my camera is used. Is there any way I can go about doing it? I tried to used the the camera API example provided in the sdk. But it is running as a separate application. I want my application to log down everytime the

Re: [android-developers] Button Long Click to increase Numeric Text View

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 8:32 PM, Kris Skarbø wrote: > I have a Button and a numeric TextView. When I longpress the Button i > want the value in the TextView to increase. > > Could someone assist me with the code inside the "onLongClick" method? tv.setText(String.valueOf(i+=1)); > Does it start a

Re: [android-developers] How to manage an event by 2 widgets

2010-07-11 Thread Sebastián Treu
On Sat, Jul 10, 2010 at 6:31 PM, Mark Murphy wrote: > On Sat, Jul 10, 2010 at 5:22 PM, Sebastián Treu > wrote: >>> Then clone the Gallery class in your project and make your changes there. >> >> I thought on that, but my 'clone' will be on my package and there's >> some protected variables that t

[android-developers] Button Long Click to increase Numeric Text View

2010-07-11 Thread Kris Skarbø
Hey, I need help with some code. I have a Button and a numeric TextView. When I longpress the Button i want the value in the TextView to increase. Could someone assist me with the code inside the "onLongClick" method? Does it start a Timer which calls on a background thread which increases the nu

[android-developers] Re: How to get paid? If you put in wrong acct....

2010-07-11 Thread Tim Jowers
On Sun, Jul 11, 2010 at 7:59 PM, Tim Jowers wrote: > > Has anyone been able to get paid after putting in wrong account > information? > > I made this mistake and for a month now have tried to get it straight. > Unfortunately, Google only has a web entry form and it does not allow free > text. So,

[android-developers] How to get paid? If you put in wrong acct....

2010-07-11 Thread Tim Jowers
Has anyone been able to get paid after putting in wrong account information? I made this mistake and for a month now have tried to get it straight. Unfortunately, Google only has a web entry form and it does not allow free text. So, I've tried the options they have sent me and tried and tried but

Re: [android-developers] Re: EVO failing in MediaPlayer

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 7:41 PM, jsdf wrote: > Sorry to push to the top, but has anyone seen anything like this? I haven't, but then again I haven't used MediaPlayer on an EVO yet. I have played back videos on an EVO, though, all of which should route through MediaPlayer, and have not had any une

[android-developers] Re: Killi Process with files on SD card

2010-07-11 Thread Streets Of Boston
The CursorUtils class is one I wrote myself to deal with external storage and phone storage (HTC Incredible). On Jul 10, 9:30 pm, Mark Murphy wrote: > Where is this CursorUtils class that you are using? I don't see it in > the SDK or source code. > > Thanks! > > On Sat, Jul 10, 2010 at 9:23 PM, S

[android-developers] Re: ProgressDialog fills screen in Froyo 2.2

2010-07-11 Thread Rmac
Thanks Romain... at least now I know it is not a bug or something I did incorrectly. For what it's worth, I think the previous dialogs looked better. Displaying a wider dialog with a single word message just looks odd. I preferred the centered wrapped look. On Jul 11, 4:40 pm, Romain Guy wrote

[android-developers] Question about IP packet header's TOS(& DSCP) field marking

2010-07-11 Thread comet565
Hi, i am making a small android application which VoIP program based in SIP(Session Initiation Protocol) using the android default emulator(version : Android SDK 2.2) Through this program, i will support the QoS for each service such as voice telephony, SMS messaging and so on. So, i want to mark t

[android-developers] Re: EVO failing in MediaPlayer

2010-07-11 Thread jsdf
Sorry to push to the top, but has anyone seen anything like this? Does anyone have any suggestion? On Jul 7, 8:46 pm, jsdf wrote: > All, > We are seeing some very strange results in media playback on HTCEVO > devices. > > In our call to MediaPlayer.create(getApplicationContext(), uri), we > get f

Re: [android-developers] Re: double tap zoom on Google maps

2010-07-11 Thread zeeshan mirza
I am forwading onTouchEvent() now but still i need lilbit more help. Have a look at my previous 2 or 3 posts. BR, Shan On Sat, Jul 10, 2010 at 11:40 AM, zeeshan mirza < zeeshan.nabeel.mi...@gmail.com> wrote: > Can you see what i have replied rather than criticizing whether i can > develop this ap

[android-developers] how to set focus on the list

2010-07-11 Thread cindy
Hi My application displays a list view. When it is first displayed, I want to set the focus to the first listitem. How could I do it? Thanks! Cindy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

Re: [android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread Mark Carter
Would be great if you had some kind of menu/index/jump-to-system to make the different sections easily locatable! On 11 July 2010 20:36, sm1 wrote: > I also moved the SQLite info upward a little in the text view for the > 1.6+ app. It is now between sections Settings.Secure and > Configuration.

Re: [android-developers] ProgressDialog fills screen in Froyo 2.2

2010-07-11 Thread Romain Guy
It doesn't span the whole screen but dialogs now fill a certain percentage of the screen by default. On Sun, Jul 11, 2010 at 2:29 PM, Connick wrote: > I've noticed progress dialogs being wider (i.e. extra padding) but it's not > extending the width of the screen. (same size in portrait and landsc

Re: [android-developers] ProgressDialog fills screen in Froyo 2.2

2010-07-11 Thread Connick
I've noticed progress dialogs being wider (i.e. extra padding) but it's not extending the width of the screen. (same size in portrait and landscape) -Stace On Sun, Jul 11, 2010 at 5:16 PM, Rmac wrote: > I am not sure if this is a bug or new "feature" so I'd like feedback > if others have notice

[android-developers] ProgressDialog fills screen in Froyo 2.2

2010-07-11 Thread Rmac
I am not sure if this is a bug or new "feature" so I'd like feedback if others have noticed it. Prior to Froyo 2.2, when a ProgressDialog (or AlertDialog) was shown it would wrap to its content so that the dialog would horizontally span to the message content width. Now with 2.2, the width of the

[android-developers] Re: bluetooth apps for android

2010-07-11 Thread DonFrench
No. On Jul 11, 8:44 am, Manu wrote: > Is there anyway of testing bluetooth applications for android phone > without actually having a real android device. I am asking this > because the emulaator does not support bluetooth. -- You received this message because you are subscribed to the Google G

[android-developers] Re: NSPredicate-like functionality for Collections?

2010-07-11 Thread Lance Nanek
I've filtered collections using this library on the server side before: http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/Collections2.html#filter%28java.util.Collection,%20com.google.common.base.Predicate%29 I don't know if it works on Android, however. -Lance On

[android-developers] Re: Bitmap GetPixel broken??

2010-07-11 Thread HaMMeReD
Thanks Romain, solved my problem quickly. Adam On Jul 11, 12:36 pm, Romain Guy wrote: > When an image is opaque, it is dithered at loading time. You can use > BitmapFactory.Options to disable dithering. You can also force > BitmapFactory to load the image in ARGB_ format to avoid > dithering

[android-developers] Re: How to programmatically use "include" on xml

2010-07-11 Thread Conny
Mark, Thanks for your prompt reply. False alarm. When we use include in xml file, to reuse a ui element we specify a unique id for each include. Obviously, in code I need to create a new ViewGroup everytime I reuse the ui :). I was expecting to just work by addView without having to create a new

[android-developers] Re: How to programmatically use "include" on xml

2010-07-11 Thread Conny
Correction. I am able to add one view to the placeholder, but unable to add more than one. I get this exception 07-12 01:15:05.508: ERROR/AndroidRuntime(426): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 07-12 0

Re: [android-developers] How to programmatically use "include" on xml

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 3:37 PM, MCON Dev wrote: > But I need to programmatically include 1 xml into another. Please elaborate on what you mean by this. > addview returns > 07-12 01:01:18.429: ERROR/AndroidRuntime(267): > java.lang.IllegalStateException: The specified child already has a parent.

[android-developers] How to programmatically use "include" on xml

2010-07-11 Thread MCON Dev
So I read the xml tricks 2 from developer.android.com, and it worked for me. But I need to programmatically include 1 xml into another. addview returns 07-12 01:01:18.429: ERROR/AndroidRuntime(267): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView

Re: [android-developers] Bitmap GetPixel broken??

2010-07-11 Thread Romain Guy
When an image is opaque, it is dithered at loading time. You can use BitmapFactory.Options to disable dithering. You can also force BitmapFactory to load the image in ARGB_ format to avoid dithering. On Sun, Jul 11, 2010 at 12:31 PM, HaMMeReD wrote: > I'm trying to load a image, for the purpo

[android-developers] Bitmap GetPixel broken??

2010-07-11 Thread HaMMeReD
I'm trying to load a image, for the purpose of debugging I've made the image a solid grey #494949. I load it with the following code inputstream = context.getResources().openRawResource(R.drawable.level1_heightmap); level1_heightmap = BitmapFactory.decodeStream(inputstream); Although when I run

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
I also moved the SQLite info upward a little in the text view for the 1.6+ app. It is now between sections Settings.Secure and Configuration. This is at about 1/6 of the view. On Jul 11, 2:28 pm, sm1 wrote: > )s) Internals for Android 1.6+ version 2010.7.11b will now also > display the source_id

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
)s) Internals for Android 1.6+ version 2010.7.11b will now also display the source_id when running on android v. 2.2+. On my N1, it showed 2010-03-22 followed by a time and a long generated unique id. serge On Jul 11, 1:44 pm, sm1 wrote: > got it. Thanks Mark. > > On Jul 11, 12:38 pm, Mark Cart

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
got it. Thanks Mark. On Jul 11, 12:38 pm, Mark Carter wrote: > That function is only in SQLite 3.6.18+ (see link in my last comment), so > will only work on 2.2+. > > On 11 July 2010 18:31, sm1 wrote: > > > > > Thanks for the tip Richard. > > > I added SQLite version display in the two apps: >

[android-developers] HELP: A Verizon Droid puzzle.

2010-07-11 Thread whitemice
I am based in Germany and publish the "Last Call Widget" on the Android Market. I have been steady improving it over time, but one group of users still complain about it not working on their devices. My widget listens for the "android.intent.action.PHONE_STATE" intent, and then sets an alarm to u

Re: [android-developers] Continuously scrolling ListActivity

2010-07-11 Thread Brad Gies
Sure, it's possible... I did the same thing in a webview using Javascript. How I did it would be similiar to how you should do it with a list view... This is assuming you are using an array list for the data for your List View. First, you need to know how many items your screen would show (the

Re: [android-developers] NSPredicate-like functionality for Collections?

2010-07-11 Thread Greg Pasquariello
Yeah, it's nice to be able to filter JSON though, without having to "database-ize" it. Thanks! -Greg On Jul 11, 2010, at 10:46 AM, Connick wrote: > Not to my knowledge. I will typically rely on a local database with the > appropriate filter clause. (Would be nice if we had a lightweight OR

Re: [android-developers] NSPredicate-like functionality for Collections?

2010-07-11 Thread Connick
Not to my knowledge. I will typically rely on a local database with the appropriate filter clause. (Would be nice if we had a lightweight ORM framework to leverage though) -Stace On Sun, Jul 11, 2010 at 12:05 PM, gpasq wrote: > Anyone know of any libs for Collections that are similar to iOS > N

[android-developers] Re: Configuring automated build scripts

2010-07-11 Thread Nadav
Sorry, I must have hit refresh on the page so it resubmitted :( On Jul 11, 12:41 pm, Nadav wrote: > I have an app that needs to be built in 3 versions, where the only > differences between the versions are a few strings that need to be > compiled with the app. > One of those strings is the IP add

[android-developers] Configuring automated build scripts

2010-07-11 Thread Nadav
I have an app that needs to be built in 3 versions, where the only differences between the versions are a few strings that need to be compiled with the app. One of those strings is the IP address of a server where the app needs to send data to, so for security reasons I want this to be compiled wit

Re: [android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread Mark Carter
That function is only in SQLite 3.6.18+ (see link in my last comment), so will only work on 2.2+. On 11 July 2010 18:31, sm1 wrote: > Thanks for the tip Richard. > > I added SQLite version display in the two apps: > > )s) Internals for Android 1.5+ > > )s) Internals for Android 1.6+ > > > They s

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
Thanks for the tip Richard. I added SQLite version display in the two apps: )s) Internals for Android 1.5+ )s) Internals for Android 1.6+ They show SQLite 3.6.22 on my 2.2 N1. The info is about 1/4 down the text view. Btw, I also tried to select sqlite_source_id() but this returned an exce

Re: [android-developers] How should I do this?

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 12:04 PM, Sean Chitwood wrote: >    I'm binding to the service and then starting it so that I can get > the notification of the propertyUpdate. That makes no sense to me, sorry. Most of the time, you only need one or the other, not both. Why do you think you need both in t

[android-developers] NSPredicate-like functionality for Collections?

2010-07-11 Thread gpasq
Anyone know of any libs for Collections that are similar to iOS NSPredicate? The NSPredicate classes allow you to specify SQL-like filtering rules which can be applied to collections of object, other collections, etc., to retrieve filtered results. Thanks in advance! -Regards Greg Pasquariello

Re: [android-developers] How should I do this?

2010-07-11 Thread Sean Chitwood
Mark-- I'm binding to the service and then starting it so that I can get the notification of the propertyUpdate. As far as dssShow not being assigned to: in bindService(i, mConnection, Context.BIND_AUTO_CREATE); mConnection is an instance of a ServiceConnection object that has a onServic

[android-developers] Configuring automated build scripts

2010-07-11 Thread Nadav
I have an app that needs to be built in 3 versions, where the only differences between the versions are a few strings that need to be compiled with the app. One of those strings is the IP address of a server where the app needs to send data to, so for security reasons I want this to be compiled wit

[android-developers] bluetooth apps for android

2010-07-11 Thread Manu
Is there anyway of testing bluetooth applications for android phone without actually having a real android device. I am asking this because the emulaator does not support bluetooth. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Obfuscation

2010-07-11 Thread Eurig Jones
How many of you obfuscate your android applications? Do you think there's any point? -- 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, s

Re: [android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread Mark Carter
Thanks very much Richard - very useful! Worth checking out: http://www.sqlite.org/changes.html to see what problems the version differences could cause. On 11 July 2010 15:34, RichardC wrote: > I have written a quick and dirty test program (see below) and tested > it using different build optio

[android-developers] Re: Resolving activities

2010-07-11 Thread CMWiii
The end result is the same. Activity not found. For reference: Using ComponentName(Package, Class) produced the same values as unflatten(package/class). On Jul 11, 1:34 am, Dianne Hackborn wrote: > On Sat, Jul 10, 2010 at 5:39 PM, CMWiii wrote: > > "name" was just chosen for the psuedo code.

[android-developers] Re: Application throws exception when I rotate the device

2010-07-11 Thread RichardC
You are dismissing your dialog from the background thread - you can't do this. Specifically you can't do any UI operations from a background thread. Have a look at AsyncTask in the SDK it should do everything you need. Hint dismiss your dialog in onPostExecute. On Jul 11, 8:22 am, "pramod.deor

[android-developers] Re: Need help setting up my device for development

2010-07-11 Thread jul
Thanks, but it doesn't work for me :( On Jul 11, 1:29 pm, Andres Colubri wrote: > The following works for me: > > adb kill-server > sudo ./adb start-server > adb devices > > jul wrote: > > Hi, > > > I'm developing an Android app using Eclipse on Debian Lenny, and I'd > > like to test it on my HTC

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread RichardC
I have written a quick and dirty test program (see below) and tested it using different build options against 4 different emulator versions. The tests were repeated building different build options of the same program: build 1 android:minSdkVersion="3" android:targetSdkVersion="4" bu

[android-developers] how to deal with button clickevent in a listview?

2010-07-11 Thread 苗忠良
hi,all: I write a listactivty,the item including a textview and a button,the data came from a sqlite。but in handling the clickevent , i meet some problem, in the CursorAdapter's bindView() function,i cann't get the current position。in log,i find position of Cursor is the position I last click th

[android-developers] Pick a contact - only with phone, email ...

2010-07-11 Thread andreas
Hi, I use this code to start the contact app and pick a contact in my app Intent contactintent = new Intent (Intent.ACTION_PICK); contactintent.setType(ContactsContract.Contacts.CONTENT_TYPE); startActivityForResult(contactintent,PICKCONTACT); and then working with the result in onActivityResult

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread RichardC
Think I have found one ... will upload a test app (if it works) later this afternoon and post here when it is available. -- Richard On Jul 11, 9:21 am, Mark Carter wrote: > Is there any way to (programmatically) check what version of SQLite is > installed? > > On Jun 24, 1:09 pm, Mark Carter wr

Re: [android-developers] How should I do this?

2010-07-11 Thread Mark Murphy
On Sat, Jul 10, 2010 at 11:53 PM, Sean Chitwood wrote: >    Currently I have this code: > > Intent i = new Intent(); > i.setAction(Intent.ACTION_RUN); > i.setClass(ShowDetail.this, DownloadShowsService.class); > > > > i.putExtra(Constants.TITLE_FIELD, mShow.getTitle()); > i.putExtra(Constants.ENCL

Re: [android-developers] Continuously scrolling ListActivity

2010-07-11 Thread Mark Murphy
On Sun, Jul 11, 2010 at 5:00 AM, RodgerWilko! wrote: > Is it possible to have a list activity that dosen't finish? i.e. if > you scroll to the end of the list then the start of the list begins > again? There is nothing built in to handle this. There are hacky ways of getting a similar effect with

[android-developers] Altitude location data

2010-07-11 Thread Neilz
Hi all. I know that the GPS altitude data isn't particularly reliable, so I looked for alternatives. This looks like a good solution I found here: http://stackoverflow.com/questions/1995998/android-get-altitude-by-longitude-and-latitude But the value returned is not what I expected: -1.79769313

[android-developers] Re: Changing view after softkeypad has slided in

2010-07-11 Thread Chrono
I've also tried to animate the footer into the negative area of the screen as well as changing the paddingBottom to a negative value but both trials didn't work. There must be a solution for that. I mean, changing views dependent on the state of the soft keypad is an important thing to increase us

Re: [android-developers] Need help setting up my device for development

2010-07-11 Thread Andres Colubri
The following works for me: adb kill-server sudo ./adb start-server adb devices jul wrote: Hi, I'm developing an Android app using Eclipse on Debian Lenny, and I'd like to test it on my HTC Magic. I followed the instructions given in http://developer.android.com/guide/developing/device.html f

[android-developers] Need help setting up my device for development

2010-07-11 Thread jul
Hi, I'm developing an Android app using Eclipse on Debian Lenny, and I'd like to test it on my HTC Magic. I followed the instructions given in http://developer.android.com/guide/developing/device.html for Ubuntu Gusty/Hardy, but the device does not seem to be set up properly: x...@xxx:~/android-

Re: [android-developers] Continuously scrolling ListActivity

2010-07-11 Thread YuviDroid
To hide the scrollbars add this to the listview tag: android:scrollbars="none" For the other question I have no idea... On Sun, Jul 11, 2010 at 11:00 AM, RodgerWilko! wrote: > Hi, > > Is it possible to have a list activity that dosen't finish? i.e. if > you scroll to the end of the list then the

[android-developers] Re: unable to update the app

2010-07-11 Thread feeling3_4
when using adb to install, it says "you have to uninstall the app first". On 7月8日, 下午10时53分, TreKing wrote: > On Thu, Jul 8, 2010 at 9:23 AM, feeling3_4 wrote: > > and then I copy the apk file of new version to the SD card. > > First question is why you're installing from the SD card? Why no

[android-developers] Re: ACTION_PHONE_STATE_CHANGED broadcast doesn't fire my broadcast receiver

2010-07-11 Thread Federico Paolinelli
On 11 Lug, 10:58, Federico Paolinelli wrote: > On 11 Lug, 10:15, Federico Paolinelli wrote: > > > > > So, I added the receiver (contained in application) in the manifest > > > > >                 > android:name="android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED"/> > > > > > > >

[android-developers] Continuously scrolling ListActivity

2010-07-11 Thread RodgerWilko!
Hi, Is it possible to have a list activity that dosen't finish? i.e. if you scroll to the end of the list then the start of the list begins again? It's be best if you could also disable the scroll bar. Thanks for your help! RodgerWilko! -- You received this message because you are subscribed

[android-developers] Re: ACTION_PHONE_STATE_CHANGED broadcast doesn't fire my broadcast receiver

2010-07-11 Thread Federico Paolinelli
On 11 Lug, 10:15, Federico Paolinelli wrote: > So, I added the receiver (contained in application) in the manifest > > >                 android:name="android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED"/> > > > > > I gave the readphone state permission > >     android:name="androi

[android-developers] Re: Preload NinePatchs

2010-07-11 Thread Gyscos
In the end, I just used getDrawable each time, and indeed the first call is considerably longer... I'll just have to adjust the progress bar :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

Re: [android-developers] Re: Resolving activities

2010-07-11 Thread Dianne Hackborn
On Sat, Jul 10, 2010 at 5:39 PM, CMWiii wrote: > "name" was just chosen for the psuedo code. It is a component name of > the form" packagename/classname", > hence the unflatten. > Don't use flattened names. The only time you'll use those is if you actually to have to flatten to a string, to pu

Re: [android-developers] Re: HELP

2010-07-11 Thread Dianne Hackborn
On Sat, Jul 10, 2010 at 11:19 PM, Indicator Veritatis wrote: > Really? Then what is http://source.android.com/source/using-eclipse.html > all about? It says "Platform development", and uses several other key > phrases that make it clear it is not just about building Android > applications. > You

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread Mark Carter
Is there any way to (programmatically) check what version of SQLite is installed? On Jun 24, 1:09 pm, Mark Carter wrote: > Hmmm - this is a bit worrying, isn't it? How to possibly test SQL which can > potentially run so differently on different devices? > > One starting point would be get a list

[android-developers] ACTION_PHONE_STATE_CHANGED broadcast doesn't fire my broadcast receiver

2010-07-11 Thread Federico Paolinelli
So, I added the receiver (contained in application) in the manifest I gave the readphone state permission But the onReceive method of my receiver is never called, using a real device (hero) or the emulator. Am I missing something? This is driving me mad. Thanks,

[android-developers] Re: Application throws exception when I rotate the device

2010-07-11 Thread pramod.deore
It throws Exception as 07-11 12:45:05.145: ERROR/AndroidRuntime(2871): FATAL EXCEPTION: main 07-11 12:45:05.145: ERROR/AndroidRuntime(2871): java.lang.IllegalArgumentException: View not attached to window manager 07-11 12:45:05.145: ERROR/AndroidRuntime(2871): at android.view.WindowManagerImpl

[android-developers] Application throws exception when I rotate the device

2010-07-11 Thread pramod.deore
I have developed simple application of progress bar in that when I hit the button then it will do some work in background and one progress bar is visible on foreground. afte completing back ground work it display the same screen. It works fine if I don't rotate mobile but when I rotate mobile then