[android-developers] Re: ListView throws Exception

2008-04-11 Thread pyf
Yes, it's working. You mean the way I used is not correct? but that's what mentioned in API. From exception, it seems it could not find android.R.id.list. On Apr 12, 1:17 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > You are extending ListActivity right? Maybe you could try using > android.R.layout.s

[android-developers] Re: Cursor c = this.getContentResolver().query( gets nullpointer exception when code is moved

2008-04-11 Thread Megha Joshi
Hi, The code here is incomplete, and does not suggest any reason for an error, I am not sure what the issue might be, could you post the code for your class and its declaration in AndroidManifest.xml? Do you have the permission to read contacts set in AndroidManifest.xml? Thanks, Megha On Fri, A

[android-developers] MapView invalidate (is invalidating?)

2008-04-11 Thread GUS
I have a MapView that I update from time to time from a timing thread. The problem is when the user interacts with the map two invalidate occurs, does anyone know how can I know if the map is alredy drawing for me not to send invalidate again? is there anything like isdrawing or isinvalidating?

[android-developers] Re: ListView throws Exception

2008-04-11 Thread Dan U.
You are extending ListActivity right? Maybe you could try using android.R.layout.simple_list_item_1 in your createFromResource call instead of android.R.id.list. On Apr 11, 8:37 pm, pyf <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to customize layout by having ListView in it. > This is my code

[android-developers] Re: Problem woth OnLongClickListener

2008-04-11 Thread [EMAIL PROTECTED]
I'm also having problems with the OnLongClickListener. I have it attached to an ImageButton, but the event never fires. On Mar 8, 7:54 am, babyblue <[EMAIL PROTECTED]> wrote: > I can't make onLongClickListener work either. I just register it with > a Button. No matter how long I hold it, no long

[android-developers] Managed Cursors

2008-04-11 Thread Flik
How many cursors can an activity manage? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gro

[android-developers] Re: Installing apk on the emulator

2008-04-11 Thread Dan U.
If it's not obvious what the solution is, you need to only have one of those LAUNCHER entries in your app (assuming 1 entry point). On Apr 11, 8:57 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > You have a > > in androidmanifest.xml for each activity you have. > > On Apr 11, 7:53 pm, Shooter <[EMAIL

[android-developers] Re: Installing apk on the emulator

2008-04-11 Thread Dan U.
You have a in androidmanifest.xml for each activity you have. On Apr 11, 7:53 pm, Shooter <[EMAIL PROTECTED]> wrote: > Hi there, > > To test out my project, I installed my project using (on the > commandline): > - emulator -wipe-data > - adb install xyz.apk (xyz is my application name). > > Wh

[android-developers] Re: Porting android to PXA270 board

2008-04-11 Thread Qin Shiming
Init process tries to get partition information by read /proc/mtd, and try to mount system and userdata partitions. but your MTD partition has no those partitions. On 4月11日, 下午4时37分, renegade <[EMAIL PROTECTED]> wrote: > I try to run Android on my PXA270 board... > Kernel version is 2.6.19. > Aft

[android-developers] ListView throws Exception

2008-04-11 Thread pyf
Hi, I'm trying to customize layout by having ListView in it. This is my code: = public void onCreate(Bundle icicle) { super.onCreate(icicle); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.

[android-developers] Installing apk on the emulator

2008-04-11 Thread Shooter
Hi there, To test out my project, I installed my project using (on the commandline): - emulator -wipe-data - adb install xyz.apk (xyz is my application name). What I see is that I get in the list of apps on the phone, I get "xyz" icon for each class in my project rather than just one "xyz" ico

[android-developers] enquiry about the resubmission

2008-04-11 Thread vinay
hello, I have two questions - After I submit my app then suppose I re-submit my app. 1- So, can I safely assume that my second submission is the one that will be tested and not the first one? 2- Do we get a acknowledge mail for resubmission as well? I only got a ack mail for my new su

[android-developers] Re: Confusing Problem about MediaPlayer

2008-04-11 Thread Megha Joshi
Hi Robert, What if you set mSF to null in surfaceDestroyed() call... Does that help? Thanks, Megha On Fri, Apr 11, 2008 at 2:27 PM, Robert <[EMAIL PROTECTED]> wrote: > > > Hi Megha, > > I am successfully using your classes to capture and view video files. > But, can't seem to reliable reuse

[android-developers] Is a Service already running?

2008-04-11 Thread Soonil Nagarkar
As the subject states, I want to check if a Service is already running. If it is not, I do not want to start it, and if it is I want to stop and then start it again. How can I find this out? Thanks - Soonil N. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: how to play a JSpeex encoded audio file?

2008-04-11 Thread Megha Joshi
Hi Anil, These codecs are not yet supported. Please see the list below for currently supported codecs: http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html#media Thanks, Megha On Apr 10, 9:48 am, Anil <[EMAIL PROTECTED]> wrote: > no reply? > > On Apr 10, 10:14 am, Anil <[EMAIL

[android-developers] Re: Android real hardware performance in comparison with emulator

2008-04-11 Thread Gable
I see the previous poster mentioned around 3000 faces running with OK speed.. i really don't understand that. although i'm using textures and normals for my loaded quake 2 models, i get like < 1 FPS. Even if I only load the vertex, texture, and normal buffers once, at model loading time and i neve

[android-developers] Re: Sample code: MyMediaRecorder.java NullPointerException

2008-04-11 Thread Megha Joshi
Hi, You should install sdcard on the emulator before running the MediaRecorder sample as it stores the recorded media file in the path Video.Media.EXTERNAL_CONTENT_URI which is on the sdcard. Thanks, Megha On Fri, Apr 11, 2008 at 1:32 PM, Niranjan <[EMAIL PROTECTED]> wrote: > > I am getting fol

[android-developers] Re: Different scroll with buttons vs touch

2008-04-11 Thread revcom
Hi Ola, I've been having this problem for ages with scrolling long series of vertical nested layouts including a TextView title and embedded buttons in each row. When scrolled and operated entirely by touch, you can click any visible button and it fires correctly. When scrolling vertically usi

[android-developers] Emulator Startup Options

2008-04-11 Thread kobica
Hi Folks, The docs says : -data If you use -data but does not exist, the emulator creates a file at that location. It doesn't work. Cannot find file: /home/.../.android/userdata-qemu2.img Please specify a valid -data file Any idea? Thanks, Kobi --~--~-~--~~~---

[android-developers] gallery displaying RelativeLayout?

2008-04-11 Thread hal
I'm trying to have my gallery display RelativeLayouts instead of ImageViews, using the code from: http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/view/Gallery1.html My getView code looks like this, but I get null pointers and nothing works: public View getView(int

[android-developers] Re: Service starts on Alarm

2008-04-11 Thread hackbod
The Alarm examples in ApiDemos is a good place to start: http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/ On Apr 11, 5:25 am, Saj <[EMAIL PROTECTED]> wrote: > I want the program to allow a user to define a specific time and > date.. and a message should appear

[android-developers] Re: emulator of m5-rc15 problem

2008-04-11 Thread SnowDrifter
If you changed over from a previous version make sure you delete your image file in (probably): C:\Documents and Settings\YourName\Local Settings\Application Data \Android Delete the.img file and try again. I had issues with the old img file messing stuff up. If your background is the mountainsc

[android-developers] Re: Failed to open database file

2008-04-11 Thread Megha Joshi
Hi, I was able to re-install the latest version of SDK and plugin, download the samples and use them on my windows machine. Did you modify the code to include your local files, URLs before running it? The Media Samples use files from sdcard, so you do need to upload files to the sdcard and provide

[android-developers] Re: XferMode

2008-04-11 Thread tatagogo
Lol, that was easy I feel like a world class idiot now :) Cheers! --~--~-~--~~~---~--~~ 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.co

[android-developers] Re: Changing view widget properties in a ListAdapter

2008-04-11 Thread SnowDrifter
After looking at the Activity lifecycle I am not sure if there are any other places I can put this update. Anyone have any ideas? On Apr 10, 9:50 pm, SnowDrifter <[EMAIL PROTECTED]> wrote: > I also tried using the getListView, which seems like the right thing > to use but at onStart it reports th

[android-developers] Re: Confusing Problem about VideoView

2008-04-11 Thread Mayank
Hey, I'm too facing a similar problem. I'm using a frame layout containing 2 surface view of different sizes one over the other. I'm playing only one 3gp file with media player but trying to switch the surface view while the application runs. I'm u

[android-developers] Re: Imagine the possibilities of Android + Carnegie Mellon's Alice

2008-04-11 Thread trickybit
Something where professional software creators can make good money doing top-quality work? On Apr 10, 10:37 pm, RichardBronosky <[EMAIL PROTECTED]> wrote: > http://www.alice.org/index.php?page=what_is_alice/what_is_alice > > If Google gets the Android platform so that anyone on any network has >

[android-developers] Browser(webkit) Icon?

2008-04-11 Thread zero
Hi folks a simple, maybe even stupid question: i'd like to display the browser icon in an activiy menu (as it is supposed to launch the browser with an uri), but i can't find it anywhere. (maybe i'm just looking in the wrong direction). is this possible? am i allowed to do so? any hints are appre

[android-developers] Re: Extending android.app.Application

2008-04-11 Thread trickybit
I didn't use fully-qualified classname, I used classname starting with a 'dot' relative to the manifest package. That is, in the top level tag, the package attribute might have value "com.jjj.myapp" and in the tag, the android:name attribute might have value ".MyApplication" where the ful

[android-developers] Re: Service starts on Alarm

2008-04-11 Thread zero
if you can wait for another week or so, i suggest using the openintents alert framework. :) (we'll have support for this pretty soon, but right now i'm' busy with polishing other things) but as this is propably not the case, i just point you here: http://code.google.com/android/reference/android/a

[android-developers] Cannot connect to server running in Android

2008-04-11 Thread kobica
Hi Folks, I have a strange issue and would appreciate if someone can take a quick look. I'm probably missing here something fundamental. I'm trying to run 2 emulators. 1 with TCP Server application, listening on localhost:, and the other emulator, running a client, trying to connect to the f

[android-developers] Re: Media Sample Apps

2008-04-11 Thread Niranjan
Hi Megha, I am trying sample application MediaRecorder and I get following exception when I click start recording button. ERROR/AndroidRuntime(654): java.lang.NullPointerException ERROR/AndroidRuntime(654): at android.content.ContentResolver.getProvider(ContentResolver.java:380) ERROR/Androi

[android-developers] Here's some help for the "Emulator disconnected" launch issue!

2008-04-11 Thread NTR
At least this works for me. 1. Disable automatic launch targeting from the Run...-dialog 2. Run your project as usual 3. The launch target selector opens. Now it's tempting to click "Launch emulator", but the trick is 4. Don't do that! Click "Cancel" instead. 5. Quickly launch the project again a

[android-developers] Re: Confusing Problem about MediaPlayer

2008-04-11 Thread Robert
Hi Megha, I am successfully using your classes to capture and view video files. But, can't seem to reliable reuse the same surface when returning from a subactivity. I tried playing a video file in onActivityResult(), and although managed to play it on rare occasions, most of the time the video

[android-developers] Re: Communication between two emulators. UDP Chat app

2008-04-11 Thread kobica
On Apr 10, 3:28 am, Digit <[EMAIL PROTECTED]> wrote: > you need to type "redir add udp:5000:5000" on the server emulator's console > you typed it in a Windows command-line :-) > What's the difference between redirecting and forwarding. Right now I'm using forwarding on the server emulator to f

[android-developers] Sample code: MyMediaRecorder.java NullPointerException

2008-04-11 Thread Niranjan
I am getting following exception while trying sample media recording example. Any idea? ERROR/AndroidRuntime(654): java.lang.NullPointerException ERROR/AndroidRuntime(654): at android.content.ContentResolver.getProvider(ContentResolver.java:380) ERROR/AndroidRuntime(654): at android.conte

[android-developers] Re: Question of geocoding API - to be used in Android App.

2008-04-11 Thread marvin
I think I worked out why the real geocoder doesnt do reverse geocoding nicel. I posted it up here: http://blog.marvinware.com/2008/04/gee-oh-code.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers

[android-developers] Re: intent actions vs. filter actions

2008-04-11 Thread Megha Joshi
Hi David, This seems like a bug in the Menu.addIntentOptions() method, because the Intent should have had an Action even though it was fired because it was in SELECTED_ALTERNATIVE category. Please log this in the android issue tracker. Thanks, Megha On Thu, Apr 10, 2008 at 10:44 AM, David Given

[android-developers] Re: XferMode

2008-04-11 Thread NTR
Simply: setXfermode(new PorterDuff(PorterDuff.Mode.DARKEN)); tatagogo wrote: > Does anyone know exactly how you set up an Xfermode for use with > Paint..? I'm trying to set up an XferMode with PorterDuff.Mode.DARKEN > so that, when assigned, all pixels painted with the Paint call will > darken t

[android-developers] Re: RelativeLayout does not work Correctly(Bug?)

2008-04-11 Thread Dan U.
Change rlp to RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); Because what your original code did was to make the TextView fill up the width of the screen. On Apr 11, 8:23

[android-developers] Re: Bug in the PhoneStateIntentReceiver

2008-04-11 Thread Megha Joshi
Hi Abhinav, There is a bug int he current SDK due to which you do not receive a broadcast when "send to voicemail" is hit. This has been fixed and the fix will be available with a future release of the SDK. Thanks, Megha On Thu, Apr 10, 2008 at 12:48 PM, Abhinav Parashar <[EMAIL PROTECTED]> wrot

[android-developers] Re: query phone state

2008-04-11 Thread Megha Joshi
Hi David, At present, there is no value in Phone state enum like 'ENGAGED' to show that the phone is engaged in a call. But the Phone state of RINGING is broadcast when a call is received and a state of IDLE is broadcast when the call ends. You could devise your logic to know when a phone is engag

[android-developers] emulator of m5-rc15 problem

2008-04-11 Thread minti
it keep typing the "=" without quote in the text field in front of contacts as emulator start i have check the keyboad also but it still typing the sign --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] Cursor c = this.getContentResolver().query( gets nullpointer exception when code is moved

2008-04-11 Thread franw
hi - this code worked perfectly when it was in my main launcher, but when i moved it to another class in my project, i get a null pointer exception. public String getContactStr() { String pList = ""; String st = ""; Cursor c = this.getContentResolver().query(

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-11 Thread Stefan Handschuh
You should relax! IF the proxy-setting would be THIS important, there would be a hint and a proper support by Adnroid itself. But testing is not that complicated: just serach for "public proxy" and select a anonymous (don't take a transparent one). > Bump. I'd also like to read an official

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-11 Thread Michael Johnston
Bump. I'd also like to read an official clarification about proxies. On Apr 11, 4:34 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote: > BUMP. Cant we expect judges to just use -http-proxy flag ? I have not taken > care of proxy issues in my app. Please let us know. > > Regards, > harsh > > On Fri, A

[android-developers] GTalk incoming chat message causes an exception in the emulator

2008-04-11 Thread NTR
When I try to send a GTalk message from the GTalk client in my computer to the emulator client, the following exception is thrown: ERROR/Checkin(520): Error reporting crash: java.lang.NullPointerException ERROR/Notification(6349): This constructor doesn't work correctly anymore ERROR/Notification

[android-developers] Custom mockup location providers - what's wrong with this?

2008-04-11 Thread NTR
I'm trying to make my own mockup location providers, but I just can't get them to work. I have the following file structure in the emulator: /data/misc/location/house/kml /data/misc/location/house/properties The kml file is obtained by saving a path in Google Earth. Code: LocationManager locat

[android-developers] RelativeLayout does not work Correctly(Bug?)

2008-04-11 Thread Android-Berry
Hi There, I have created RelativeLayout and added only one TextView to make display at the center-horizantal. However, it does not work. it always show up left-align. Here is my code: RelativeLayout rl = new RelativeLayout(this); rl.setLayoutParams(new RelativeLayout.LayoutParams(

[android-developers] XferMode

2008-04-11 Thread tatagogo
Does anyone know exactly how you set up an Xfermode for use with Paint..? I'm trying to set up an XferMode with PorterDuff.Mode.DARKEN so that, when assigned, all pixels painted with the Paint call will darken the underlying pixels (I don't wish to use an alpha channel btw)... however I've had ver

[android-developers] Re: Why not display Vertical Scroll bar and can not scroll down.

2008-04-11 Thread Android-Berry
Hi Megha, Thanks for your replay, it was really helpful. I have done this according to your msg. it does work. However, this things is that if content of LinearLayout is not enought to fill the screen, while the LinearLayout's background is set to YELLOW or WHITE,or what ever not BLACK(since th

[android-developers] Re: Extending android.app.Application

2008-04-11 Thread Agus
WildLuka, In the android manifest file, you can see tag now add the attribute android:name="your_full_classname_which_extends_application" thats all to it. Agus. On 4/11/08, WildLuka <[EMAIL PROTECTED]> wrote: > > Not exactly what I was looking for ... > > > On Apr 11, 5:23 am, SnowDrifter

[android-developers] Re: Your content must have a listview whose id attribute is 'android.R.id.list'

2008-04-11 Thread Steve918
I think your code should read @android:id/android:list, you left out the android: in front of list On Apr 11, 6:55 am, aibtus <[EMAIL PROTECTED]> wrote: > This too does not work.  I still get a "Your Content must have a > ListView whose id attribute is 'android.R.id.list' " How do we go > around

[android-developers] Re: Extending android.app.Application

2008-04-11 Thread WildLuka
Not exactly what I was looking for ... On Apr 11, 5:23 am, SnowDrifter <[EMAIL PROTECTED]> wrote: > I started here:http://code.google.com/android/intro/index.html > > download Eclipse and install the android package as instructed in the > documentation above. using Eclipse will help you with sett

[android-developers] Service starts on Alarm

2008-04-11 Thread Saj
I want the program to allow a user to define a specific time and date.. and a message should appear when the schedule is triggered. Like if I set the time and date to 12 am, April 14, 2008, a message should appear on that time. How do you suggest me to do that? Thanks.. --~--~-~--~~---

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-11 Thread joos
I think yes, you can expect judges to you proxy flags. But if you are opening an http Connection from inside your app it does not use the proxy settings (I think). You would have to check the proxy settings in your application and then add these parameters to your http open connection call. Gre

[android-developers] Re: Your content must have a listview whose id attribute is 'android.R.id.list'

2008-04-11 Thread aibtus
This too does not work. I still get a "Your Content must have a ListView whose id attribute is 'android.R.id.list' " How do we go around this problem? On Feb 21, 1:27 am, trickybit <[EMAIL PROTECTED]> wrote: > etc. > > On Feb 20, 1:03 am, shubha <[EMAIL PROTECTED]> wrote: > > > szeldon, eve

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-11 Thread Harsh Jain
BUMP. Cant we expect judges to just use -http-proxy flag ? I have not taken care of proxy issues in my app. Please let us know. Regards, harsh On Fri, Apr 11, 2008 at 4:58 PM, joos <[EMAIL PROTECTED]> wrote: > > > Is there an offical answer from google regarding this? > > I would rather not hav

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-11 Thread joos
Is there an offical answer from google regarding this? I would rather not have to care about this, since it is difficult to test this anyway. I would have to set up a proxy and so on. I think I will not handle proxy access in my app and rather add a note to my readme file, that my prototype req

[android-developers] Re: Discussion on media-sample-apps

2008-04-11 Thread barbapapaz
Hello Megha I have post two video on your topics "About Rtsp" (see link below) http://groups.google.com/group/android-challenge/msg/114f11e31351840d Can you test it? Thanks On Apr 11, 5:55 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Hi Anil, > > This might be because the sample does not in

[android-developers] Re: SSL KeyStore

2008-04-11 Thread patrick
I now tested following key formats: * JKS: not supported, exception.msg = "KeyStore JKS Implementaion not found", after calling: KeyStore.getInstance("JKS"); * PKCS12: doesn't complain when created (keyStore = KeyStore.getInstance("PKCS12") works). but fails on load-time: "exception decryp

[android-developers] Using notifications to switch between different already opened activities

2008-04-11 Thread Semeria Stefano
Hi all, I am working on an IM application for android. Currently I have one main activity showing a list of contacts and another activity (let's call it ChatActivity) for handling conversation. When the user starts a chat with a contact I open the chat activity with the startActivity firing an

[android-developers] Re: SSL KeyStore

2008-04-11 Thread patrick
I have the same problem with android m5-rc15. Which TLS key formats are supported by the android api? thanks for answers! Patrick On Mar 23, 6:09 am, "Jonathan Thompson" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am getting an IOException "wrong version of key store" when I run the > following c

[android-developers] Porting android to PXA270 board

2008-04-11 Thread renegade
I try to run Android on my PXA270 board... Kernel version is 2.6.19. After hard fight I succesfully applied patch. I have new shiny kernel. My board starts from SD card. Bootloader (u-boot) starts from flash and it searches for kernel on SD card. First partition of SD card contains kernel (FAT16):

[android-developers] Re: Progress bar problem

2008-04-11 Thread AkaZn
That lock is used for my working thread to calculating the data. In the working thread I use synchronized(lock){ // do work here } To guarantee that the progress dialog cannot be dismissed before the calculating process is done. If at the time I call the progress dialog, the work is not done the

[android-developers] Re: Extract focus color from theme

2008-04-11 Thread vetch
I know, you need something like in WindowsAPI: GetSysColor(). Unfortunately, I did not found any simply way to get color of system control/item, too. Documentation is in development, so at this time, you can create your own global color table with public static function getColor(item). Later yo

[android-developers] Re: Sample.XML Layout examples equivalents of Style Constants

2008-04-11 Thread hackbod
Don't copy the theme, just make your own theme that is a child of the system theme you want to base yours on, and just put the modified values in your own theme. There are a number of examples in ApiDemos: http://code.google.com/android/samples/ApiDemos/res/values/styles.html On Apr 10, 9:59 pm

[android-developers] Is it possible to create file in /system/media directory..

2008-04-11 Thread vetch
by my application ? I know policy about security, but I did not found any information, how to access system media directory for writing and creation of new, shareable files. greets, Peter. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Removing a database or its table

2008-04-11 Thread Ram
You can use the following steps to remove the database adb shell cd data cd data cd cd databases rm if you'd just like to remove one table replace the last step with sqlite3 drop table ; For a clean start, it may be better to wipe out the whole db instead of just removing one table On Apr 1

[android-developers] Re: Slow Bitmap operations

2008-04-11 Thread qvark
Thanks guys for your answers. I think I will post a question in the ADC group to see if somebody is taking the risk of submitting an application that uses JNI. In the mean time I will keep profiling and profiling to see if I can reduce it a few seconds... On 11 abr, 01:23, David Given <[EMAIL P