[android-developers] what the ScanResult.capabilities actually is?

2009-01-14 Thread zcj0429
Hi: I'm now working on an applaction which needs wifi function. However, I don't have a G1, I can only do some work on the emulator. So can some one be so kind to tell me what the ScanResult.capabilities actually is ? Because in the documents it only says that it's a string describing authentic

[android-developers] comining/merging two images

2009-01-14 Thread The Spirit
HI. I have two images. The first one is 300x300 with a round transparent "hole" in the middle (it is a png image). Underneath, i want another image, which is the same size but completely filled with color. Can i now combine this two images to one so that i get one image, which is the first image,

[android-developers] Re: How to force screen backlight brightness change immediately?

2009-01-14 Thread Peli
I fear it does not exist yet, but I don't have too much insight. Maybe someone from Google can comment on this? Peli On 15 Jan., 02:13, birdy wrote: > Dear Peli: > > Can you tell us the new API's name? Does this new API will be used in > BrightnessPreference.java in android's setting function?

[android-developers] Re: Adding images to emulator

2009-01-14 Thread birdy
Dear sir: 1.Please tell me which folder in emulator I should put those images. Should that be in /data/misc? 2.Use adb push , "/data/misc" will be local or remote? Please show me a sample. Thank you! birdy On 1月15日, 上午4時18分, "Jake Maui" wrote: > If you use eclipse, you can do a push through

[android-developers] a Chinese Web about Android Development - aidiji.com

2009-01-14 Thread sizhong...@gmail.com
worth a trip. --~--~-~--~~~---~--~~ 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-

[android-developers] make failed

2009-01-14 Thread Caspar
The make system post these messages: target Dex: core-tests make: *** [out/target/common/obj/JAVA_LIBRARIES/core- tests_intermediates/classes.dex] Killed I don't know what's meana, and I "repo sync" the sourcecode angin and result was same. It can be maked just a few days ago. Does anybody can f

[android-developers] Getting cellular network data

2009-01-14 Thread UAE
Hi, I would like to know if its possible to get low-level information related to the cellular network, as I would like to use them in an app I am willing to design. I have searched the APIs and this and other discussion boards, but I cant seem to find any info regarding that. Would someone plea

[android-developers] gps checksum never used, validity of message not verified

2009-01-14 Thread Michael Caughey
I'm not quite sure how to tell the version of the code I pulled down. I can tell you I pulled it down this evening. I was looking at the gps_qemu.c file to see how the checksum was handled. It appears that the only place there is any reference to the checksum is in the nmea_tokenizer_init met

[android-developers] Wait for Activity result

2009-01-14 Thread SweetSugar
I'm trying to write a service that starts an activity and then does something with data the activity receives from the user. I want to wait for the activity to signal it has gotten the data from the user but when I do any sort of waiting within the function that starts the activity, the activity d

[android-developers] Make a video with Android

2009-01-14 Thread ANDREA P
I want to make a program that recording a video in Android There is an example here http://code.google.com/intl/it-IT/android/toolbox/apis/media.html The class used is MediaRecorder. but there are many errors when I use this code in eclipse. Help me please !!! --~--~-~

[android-developers] Re: Android Dev Phone 1

2009-01-14 Thread somatt
I wasn't aware verizon had sim cards. -Matt On Jan 14, 8:03 am, Kenneth Loafman wrote: > If I understand previous posts, a Verizon SIM card won't work in the G1 or > Developer phones.  Is that correct?  If so, not all SIM cards work. > > On Tue, 13 Jan 2009 07:18:46 -0800 (PST), blake > wrote:

[android-developers] audio recording to split (small) files without dropping or overlapping samples

2009-01-14 Thread flatmax
Hi there, Has anyone managed to record audio to small files without dropping samples between ? perhaps it is possible to use two recorders which toggle between recording states ... when on is recording, the other is priming and waiting to record ... Something like : //declare two recorders Med

[android-developers] Is Android going to use the LGPL'ed Qt 4.5?

2009-01-14 Thread Alexander Orlov
Today Nokia have announced that it will relicense the Qt Framework under LGPL Is Android going to embed Qt in its libraries layer now ? --~--~-~--~~

[android-developers] difference in android SDK version 0.9beta and 1.0

2009-01-14 Thread noworyz
hi all. I am a newbie to the android platform. I wanted to know whats the difference between android SDK0.9beta and 1.0?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Problems with Activity Lifecycle, onRestoreInstanceState/onActivityResult

2009-01-14 Thread Danny
I work on an application where ActivityA starts ActivityB with 'startActivityForResult'. Overall, this seems to work fine, but there are two things I do not understand: 1. After ActivityB executes finish(), the *first* method called in ActivityA is onActivityResult with the correct result. But Ac

[android-developers] ServerSocket.accept() not recognizing attempts to connect?

2009-01-14 Thread Dave
I am listening out for requests using the following method: serverSocket = new ServerSocket(18081); appendText("\nlistening..." ); Socket client = serverSocket.accept(); appendText("\nrequest"); The program outputs "listening...", but then blocks at serverSocket.accept(), so "request" is never o

[android-developers] bluetooth on android

2009-01-14 Thread tavleen singh
hi guys.. im a newbie to the android world. I currently am trying to enable bluetooth. Can someone guide me what should i do to get it done im working on the 0.9beta version of sdk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[android-developers] How to uninstall calculator package from emulator

2009-01-14 Thread Anil Yadav
Hi All I'm trying to uninstall calculator package (pre installed package) from emulator using 'adb uninstall' command but it is giving error 'failed'. I want debug the calculator package. Please help if anyone knows about it Thanks in advance Anil Yadav --~--~-~--~~---

[android-developers] source not found

2009-01-14 Thread Neo
I create a new blankview extends view , i want load it from my layout.xml but when i debug it , error it said "source not found". if i don't debug it , it same. http://schemas.android.com/apk/res/ android" xmlns:app="http://schemas.android.com/apk/res/ com.example.android.apis" a

[android-developers] Re: Streaming MP4s on Android

2009-01-14 Thread Dave Sparks
If it won't play from the SD card, it isn't going to stream either. I read the thread you referenced in your original message and it leaves out a lot of details. Information below is for H.264 AVC codec on the G1: Performance is rated for AVC baseline profile Level 1.3. A conservative bit rate fo

[android-developers] Re: Continuing topic " Bind to a remote service"

2009-01-14 Thread rktb
Thanks Dianne. I was able to modify the framework by adding a new interface, and this I was able to import in both my applications. -Ravi On Jan 15, 12:37 am, "Dianne Hackborn" wrote: > If you changed the package, they are different interfaces, and you can't > call across them.  This is exactly

[android-developers] Re: Dependency injection into Activity

2009-01-14 Thread Al Sutton
A number of things which could come under the label "common accepted Java practice" are more about ensuring testability and simplifying the work of future maintainers than they are about performance. As with every platform it's a choice that has to be made, and given some of the comments abou

[android-developers] Re: Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-14 Thread Dave Sparks
I'd have to look at the code, but it doesn't surprise me. The phone app/lock screen is a tricky bit of code and I don't think it was intended for the ringtone to play while the screen is off. Is there a reason you chose the Ringtone class to play your sound? There are other options e.g. Notificat

[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-14 Thread Wanted unique nickname
Where do these Camera Parameters come from? I see in the class index for Camera.Parameters that I can access different parameters through set(string, ...) but I have no idea what to place in the string argument. Do you know of a list of all possible camera parameters or those which are supported

[android-developers] which are files other than on sdcard, we can use for transferring.

2009-01-14 Thread jalandar
which are files other than on sdcard, we can use for transferring. Can we system file for transferring to other device. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] what is absolute path name of file on SDCard

2009-01-14 Thread jalandar
Hello , every body What is absolute and relative path for file on sdcard, which one is require while transferring file(absolute or relative), --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Re: the android's built in video player, supports which file format

2009-01-14 Thread rktb
Did you really mean pm4 or mp4? pm4 -- I don't know what this is avi -- To the best of my knowledge, we don't have support for this currently. Audio -- AAC (AAC-LC, AAC+, Enhanced AAC+), AMR (narrowband and wideband), mp3, wav, midi, ogg-vorbis. On Jan 15, 10:19 am, jalandar wrote: > thank u

[android-developers] Re: the android's built in video player, supports which file format

2009-01-14 Thread jalandar
thank u for reply will you clear little more, how to play pm4 or avi with android built in player, is there any converter. And for audio, is it only support mp3 format. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[android-developers] Re: Problem in Viewing table - sdk1.0

2009-01-14 Thread PRATAP SOLAPUR
you should use .tables to view the tables in the db. On 1/13/09, jayesh.thadani wrote: > > > Hi pratap, > yes i created table in program... > and it is working fine, i am able to retrieve data from table, my > problem is .table in sqlite3 is not showing tables that are in > database >

[android-developers] Re: How to build Android.jar from the source code

2009-01-14 Thread Dianne Hackborn
Hi, discussion about working on the platform should be on android-platform; thanks. On Wed, Jan 14, 2009 at 8:48 PM, Android wrote: > > hi all , > > Thanks for your help and valuable comments. here one quick question... > > I taken the MMS application which is availble in the source code. > I cre

[android-developers] Re: Can preferences be preserved across upgrades?

2009-01-14 Thread Dianne Hackborn
"preserve data" means that all of your app's data is retained, including its SharedPreferences. On Wed, Jan 14, 2009 at 8:53 PM, Jay-andro wrote: > > When an install is done with the "preserve data" option (like adb > install -r), are preference values kept intact or are they lost? Do we > have

[android-developers] Re: Soft Keypad not appearing

2009-01-14 Thread Dianne Hackborn
You should move this over to android-platform since you are asking about working on the platform code. Thanks! On Wed, Jan 14, 2009 at 7:57 PM, Ram wrote: > > Thanks for the confirmation. > > 1) As we don't have the numeric keypad, can we just modify the code > (as mentioned below) to enable So

[android-developers] Can preferences be preserved across upgrades?

2009-01-14 Thread Jay-andro
When an install is done with the "preserve data" option (like adb install -r), are preference values kept intact or are they lost? Do we have to do something particular to make sure preferences survive an upgrade? thanks Jay --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to build Android.jar from the source code

2009-01-14 Thread Android
hi all , Thanks for your help and valuable comments. here one quick question... I taken the MMS application which is availble in the source code. I created an android project for that source code in my eclipse.which uses the new SDK (android-sdk-windows-1.0_r2). MMS application uses some of the

[android-developers] How many different fonts are available to WebView in android

2009-01-14 Thread S Plissken
Hi, Can you please tell me how many different fonts are available to WebView in android? For example, in my html page (viewed using WebView in android) , how can i specified the fonts used in my html page (using css) are available on android? Thank you. --~--~-~--~~~-

[android-developers] Re: Soft Keypad not appearing

2009-01-14 Thread Ram
Thanks for the confirmation. 1) As we don't have the numeric keypad, can we just modify the code (as mentioned below) to enable Soft keypad for Landscape mode as well. 2) If the above could be done, can we change the nColumns parameter (in ButtonGridLayout.java) value from 3 to 4, as Landscape vi

[android-developers] Re: Permission denied while compiling android source code..

2009-01-14 Thread Ashrotronics
Thanks for your advice,i've posted this issue to android-platform group, As to filesystem,Here is the details:my pc's OS is winXP,and my unbuntu is running on a VM installed in my XP, Does this matters when compiling android source code ? Tks again! On Jan 15, 11:21 am, Jean-Baptiste Queru wrote

[android-developers] Re: Permission denied while compiling android source code..

2009-01-14 Thread Jean-Baptiste Queru
This'd be a better question for android-platform, so that android-developers can stay focused on discussing issues related to application development with the SDK. It sounds like somehow the files in your git checkout don't have the executable bit when they should. Could it be that the filesystem

[android-developers] Permission denied while compiling android source code..

2009-01-14 Thread Ashrotronics
Hi all: As is shown above,Errors occured at the very beginning,See the details: build/core/product_config.mk:229: WARNING: adding test OTA key /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission

[android-developers] Re: com.google.wireless.gdata

2009-01-14 Thread James
FYI: the wireless gdata code is here: http://android.git.kernel.org/?p=platform/external/gdata.git;a=summary --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: How to build Android.jar from the source code

2009-01-14 Thread Andrew Stadler
Raghu-- To clarify what Dianne has said: If you are building an app that requires a modified runtime, then you are building an app that may not properly run on the released, end-user platform. This is why we recommend sticking with the published SDK for building apps. You might want to explore

[android-developers] Saving/Loading dynamic Bitmaps

2009-01-14 Thread Patrick
Ok, I have to post again, because what appears to have worked before only did if the alpha channel of the bitmap was mostly opaque. All I need is to save and load a bitmap inside a file of my own format. I don't really care what format the bitmap data itself has, as long as 100% of the data in th

[android-developers] Re: [buid code problem] android 1.5

2009-01-14 Thread Andrew Stadler
Morris- Questions about building Android code from the open source repositories should be sent to the android-platform mailing list. This list is for discussion of developing android apps using the SDK. You can find more information at Thanks Andy On Tue,

[android-developers] Re: debuggerd committing suicide to free the zombie?

2009-01-14 Thread j
Here is the rest of logcat output: D/dalvikvm( 2402): GC freed 1443 objects / 88448 bytes in 92ms I/DEBUG ( 2255): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 2255): Build fingerprint: 'tmobile/kila/dream/trout:1.1/ PLAT-TC1/118299:userdebug/test-keys' I/DEBUG

[android-developers] Re: How to force screen backlight brightness change immediately?

2009-01-14 Thread birdy
Dear Peli: Can you tell us the new API's name? Does this new API will be used in BrightnessPreference.java in android's setting function? On 1月13日, 上午2時23分, Peli wrote: > > Note that this code is not using the SDK, and will break in a future > > release. > > .. but hopefully only after a proper

[android-developers] debuggerd committing suicide to free the zombie?

2009-01-14 Thread j
What is Android telling me when it says "I/DEBUG ( 2052): debuggerd committing suicide to free the zombie! I/DEBUG ( 2179): debuggerd: Nov 14 2008 06:22:15" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Androi

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-01-14 Thread Rohit
If I want to set the background resource of a view with a large PNG, what is the best way to do it? Right now I just call setBackgroundResource with the id of the resource eg. R.drawable.wallpaper_news. Is there a better way to do it using decodeByteArray? I have a couple of views to set the backg

[android-developers] location accuracy

2009-01-14 Thread schtieF
hi, i hacked a lot with the locationlistener and i find something strange. when i get a location changed and draw a circle with the accuracy radius around it and compare this to the map app my location feature, i recognized, that the map app uses the accuracy as diameter and not as radius. so ho

[android-developers] Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-14 Thread jarkman
We have an app which uses Ringtone.play() to play tones. We've found that when the screen is off, calls of Ringtone.play() in our Activity do not make any noise (although the activity is definitely running). However, calls of Ringtone.play() from our BroadcastReceiver always make a noise, even w

[android-developers] Re: Dependency injection into Activity

2009-01-14 Thread Dianne Hackborn
On Wed, Jan 14, 2009 at 11:45 AM, Koert wrote: > All the books that you read nowadays always promote the idea of loose > coupling... Abstracting the entire platform underneath Activity would probably introduce a bit more overhead than we want to take on for a mobile platform. Just my personal

[android-developers] Re: Streaming MP4s on Android

2009-01-14 Thread Qchan
No messages concerning the video shows in the log output. Also, the video won't play via sdcard either. On Jan 14, 1:42 pm, rktb wrote: > Hi, > > Can you play the same content if you push it onto your sdcard? > > Do you see any related messages in the adb log output? > > -Ravi > > On Jan 14, 4:5

[android-developers] Re: TextView with links gets black while scrolling?

2009-01-14 Thread Peli
I've tried with and without android:textAppearance="?android:attr/textAppearanceSmall" and it did not make any difference... Peli On 14 Jan., 23:13, "Torgny Bjers" wrote: > Have you tried setting the appearance to one of the defaults, that > particular setting might be there? > > On Jan 14, 200

[android-developers] Re: Utterly simple app keeps giving me "ActivityManager: [1] Killed"

2009-01-14 Thread clark
Could you provide details as to what changes you made to AndroidManifest.xml to fix this problem? Thanks, ~clark On Jan 12, 8:38 pm, Droid Rage wrote: > Resolved the issue.  Thanks for getting me on the right track.  It was > a problem with the AndroidManifest.xml > > On Jan 12, 1:06 pm, "Dian

[android-developers] Re: TextView with links gets black while scrolling?

2009-01-14 Thread Disconnect
There is a cache attribute that can cause this too. (It bit me on the device, but not the emulator.) textCacheColor? Something like that, haven't got it available right now (its on the mbp apple is busy abusing) On Wed, Jan 14, 2009 at 5:13 PM, Torgny Bjers wrote: > Have you tried setting the ap

[android-developers] Re: Problem with setting the background color of a listview item

2009-01-14 Thread Alx
Sorry for the repeat post.. I'll try that cheers. On Jan 14, 10:13 pm, Alx wrote: > When I'm trying to set the background colour of the listitem , say > with > position 0, the colour is repeated on other listitems when I scroll > through the listview. > > My code is > > class CustomAdapter exten

[android-developers] Problem with setting the background color of a listview item

2009-01-14 Thread Alx
When I'm trying to set the background colour of the listitem , say with position 0, the colour is repeated on other listitems when I scroll through the listview. My code is class CustomAdapter extends SimpleCursorAdapter { public CustomAdapter(Activity context, int task_row, Cur

[android-developers] Re: TextView with links gets black while scrolling?

2009-01-14 Thread Torgny Bjers
Have you tried setting the appearance to one of the defaults, that particular setting might be there? On Jan 14, 2009 5:10 PM, "Peli" wrote: Actually, android:textColor="?android:attr/textColorPrimary" does not work (same behavior), but android:textColor="#" works :-) There must

[android-developers] Re: TextView with links gets black while scrolling?

2009-01-14 Thread Peli
Actually, android:textColor="?android:attr/textColorPrimary" does not work (same behavior), but android:textColor="#" works :-) There must be some text color set wrongly way down in the hierarchy of stateful text colors, but I could not figure out where exactly. Peli On 14 J

[android-developers] Re: TextView with links gets black while scrolling?

2009-01-14 Thread Peli
Unfortunatley, this does not resolve the issue. Actually, testing it more, it has nothing to do with the scroll view. It is enough to have a TextView with android:autoLink="all" to trigger this behavior. I wonder if there is any text attribute or style "while_clicked" or similar that one could o

[android-developers] Re: What's wrong with this broadcast receiver?

2009-01-14 Thread Massimo Barbera
Hi Moazzam, I do not get any error. I justo do not see the emulator stopping at the break point. Where shall I see an error? Any suggestion about where to log for logs? On 14 Gen, 22:05, moazzamk wrote: > What error message do you get? > > - Moazzamhttp://moazzam-khan.com/ > > On Jan 14, 12:5

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread srajpal
That worked perfectly, here is the final code that saves the screenshot as a file: //mView is my View Bitmap screenBMP = Bitmap.createBitmap(mView.getMeasuredWidth(), mView.getMeasuredHeight(), Bitmap.Config.RGB_565); Canvas screenShotCanvas = new Canvas(screenBMP); mView.draw(screenShot

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread srajpal
That worked perfectly, here is the final code that saves the screenshot as a file: //mView is my View Bitmap screenBMP = Bitmap.createBitmap(mView.getMeasuredWidth(), mView.getMeasuredHeight(), Bitmap.Config.RGB_565); Canvas screenShotCanvas = new Canvas(screenBMP); mView.draw(screenShot

[android-developers] Re: What's wrong with this broadcast receiver?

2009-01-14 Thread moazzamk
What error message do you get? - Moazzam http://moazzam-khan.com/ On Jan 14, 12:55 pm, Massimo Barbera wrote: > Dear all, > I have been following the examples for developing a Broadcast Receiver > to catch the boot complete. > > Though it looks like I have just copied and pasted the code of the

[android-developers] Install SDK OSx

2009-01-14 Thread j.ophof
Hi, Is there a way to do the install. On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile, if you haven't already set one up on your machine. This sounds simple to Linux/Unix hackers but not to me yet. Someone has a hint to make it

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread James Yum
Hi, Try something like this: 1. Create a new bitmap with the same dimensions as the view. 2. Create a new canvas for that bitmap, e.g.: Canvas screenshotCanvas = new Canvas(screenshotBitmap); 3. Draw onto the canvas: view.draw(screenshotCanvas); Cheers, James On Wed, Jan 14, 2009 at 12:

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread srajpal
I am not sure I understand, can you please elaberate? I am drawing into a bitmap using the DrawingCache which should be a bitmap, the view has a canvas already. So I am a little confused. Can you explain? On Jan 14, 3:31 pm, Romain Guy wrote: > The problem is the size of the View you are tr

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread srajpal
I thought I was drawing the View into the Bitmap with screenshot = Bitmap.createBitmap(mView.getDrawingCache()); or screenshot = Bitmap.createBitmap(mView.getDrawingCache(), mView.getLeft(), mView.getTop(), mView.getMeasuredWidth(), mView.getMeasuredHeight()); Is

[android-developers] Re: Can't seem to get something as simple as a ListView to work

2009-01-14 Thread ecogeek
Well now I don't get an error when I save, but I still can't get the layout to display, now it says this: UnsupportedOperationException: BridgeTypedArray:UNKNOWN VALUE FOR getTextArray(0) => @array/FacesList Thanks for the help. :) On Jan 14, 2:18 pm, Dmaxi wrote: > I tried it and works. > >

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread James Yum
Just checking, have you thought about drawing the view into a Bitmap? Cheers, James On Wed, Jan 14, 2009 at 12:29 PM, srajpal wrote: > > but i get the same error if i just pick a potion of the screen > > screenshot = Bitmap.createBitmap(mView.getDrawingCache(), > 100,100,100,100); > > > or try

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread Romain Guy
The problem is the size of the View you are trying to capture. The view is too big. What you can do however is draw the View in a Canvas attached to your own Bitmap. On Wed, Jan 14, 2009 at 12:29 PM, srajpal wrote: > > but i get the same error if i just pick a potion of the screen > > screenshot

[android-developers] Re: Please help: CreateBitmap() is null when full screen is enabled

2009-01-14 Thread srajpal
but i get the same error if i just pick a potion of the screen screenshot = Bitmap.createBitmap(mView.getDrawingCache(), 100,100,100,100); or try to pass it exact size screenshot = Bitmap.createBitmap(mView.getDrawingCache(), mView.getLeft(), mView.getTop(), mVi

[android-developers] Re: SQLiteClosable exception with SimpleCursorAdapter and managedQuery when populating ListView

2009-01-14 Thread Torgny
*bump* I have tried a similar example from the Android site: http://code.google.com/android/samples/NotePad/index.html Which causes the same error when you manage to switch view from landscape to portrait or otherwise cause onDestroy to be called just as the ListView is being populated with data

[android-developers] Re: How to catch global events?

2009-01-14 Thread Romain Guy
It is intentional for security reasons. On Wed, Jan 14, 2009 at 11:56 AM, tzi...@gmail.com wrote: > > Was it designed like that intentionally? > Can you suggest any workarounds or alternatives to implement my > project? > > Thanks, > Ziv. > > On Jan 14, 6:27 pm, Romain Guy wrote: >> That's simp

[android-developers] Re: Can't seem to get something as simple as a ListView to work

2009-01-14 Thread Dmaxi
I tried it and works. arrays.xml: 2 4 6 8 10 12 20 100 main.xml: --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Adding images to emulator

2009-01-14 Thread Jake Maui
If you use eclipse, you can do a push through the ui On Tue, Jan 13, 2009 at 6:44 PM, kcode wrote: > > How can i add images to the phone(emulator),so that the image viewer > can display them. Current when I initiate an image viewer, a message > is displayed that there are no images to be displa

[android-developers] Re: Notification and PendingIntent

2009-01-14 Thread Al
The first thing that gets called in my app after I click on the notification is onPause(), so that's the first place I put a breakpoint in to have a poke around. Unless I put breakpoints in the Android source code, I don't think I can find where it goes missing. On Jan 14, 2:16 pm, moazzamk wrot

[android-developers] Re: Adding images to emulator

2009-01-14 Thread mathiastck
adb push On Jan 13, 4:44 pm, kcode wrote: > How can i add images to the phone(emulator),so that the image viewer > can display them. Current when I initiate an image viewer, a message > is displayed that there are no images to be displayed. > > Thanks --~--~-~--~~~---

[android-developers] Re: How to catch global events?

2009-01-14 Thread A T
My guess is that being able to do that *might* pose some security problems On Wed, Jan 14, 2009 at 2:56 PM, tzi...@gmail.com wrote: > > Was it designed like that intentionally? > Can you suggest any workarounds or alternatives to implement my > project? > > Thanks, > Ziv. > > On Jan 14, 6:27

[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-14 Thread blindfold
It is not officially supported on the G1, but you might try Camera.Parameters.set("autofocus", "false"); Regards On Jan 14, 7:52 pm, Wanted unique nickname wrote: > Hi, >     Does anyone know how to disable autofocus from the Camera class? > This feature is available in SnapPhoto.  I want to ta

[android-developers] How to implement background activities?

2009-01-14 Thread Mariano Kamp
Hi, I have trouble getting my head around background activities and am wondering how to implement something like downloading the latest weather every 30 minutes? Here is a sketch, please let me know if that makes sense? (1) Implement the download logic. (2) Let the Alarm Manage

[android-developers] Re: How to catch global events?

2009-01-14 Thread tzi...@gmail.com
Was it designed like that intentionally? Can you suggest any workarounds or alternatives to implement my project? Thanks, Ziv. On Jan 14, 6:27 pm, Romain Guy wrote: > That's simple: you can't :) > > On Wed, Jan 14, 2009 at 1:13 AM, tzi...@gmail.com wrote: > > > Hi all, > > > I want to write an

[android-developers] Re: Internationalization of webView apps

2009-01-14 Thread Sundog
It occurs to me that I probably incorrectly assumed you were talking about a connection to a web server. I assumed this because I have been unable to get local HTML files and image assets to work with WebView. (On that note, if I can ask without derailing this thread, can anyone point me to a sim

[android-developers] Re: Dependency injection into Activity

2009-01-14 Thread Koert
Thanks for the suggestions, I guess I was assuming that there was a way to hook into the GUI framework like JSF or other modern frameworks. I hope that future enhancements of Android would include this capability. All the books that you read nowadays always promote the idea of loose coupling...

[android-developers] Re: Can't seem to get something as simple as a ListView to work

2009-01-14 Thread ecogeek
I replaced array with string-array and now I get no resource found On Jan 13, 8:05 pm, James Yum wrote: > I believe it should be a string-array rather than an array. > > Cheers, > James > > On Tue, Jan 13, 2009 at 3:15 PM, ecogeek wrote: > > > I'm trying to make my first app and I'm designing t

[android-developers] Re: Continuing topic " Bind to a remote service"

2009-01-14 Thread Dianne Hackborn
If you changed the package, they are different interfaces, and you can't call across them. This is exactly what the error message is saying, you can see the two different interfaces listed there. You should define the interface once and share it across all of the code using it. On Wed, Jan 14, 2

[android-developers] Re: How to change android emulator file system mode

2009-01-14 Thread Dan Raaka
this should help http://benno.id.au/blog/2007/11/29/android-update-systemimg On Jan 14, 12:54 am, eric wrote: > Hi, > > In android r2 sdk(android-sdk-linux_x86-1.0_r2.zip) the /data > directory is not read only, I use chmod 777 data but it says that the > file system is read only. How to change

[android-developers] Re: Application not responding - boot receiver - Why does it happen?

2009-01-14 Thread code_android_festival_way
Ok it had been the Bluetooth Receiver. Thank you for your answer. On 14 Jan., 20:03, moazzamk wrote: > Do you have any other type of receiver registered? Something without > an intent-filter? > > - Moazzamhttp://moazzam-khan.com/ > > On Jan 14, 11:30 am, code_android_festival_way > > wrote: > >

[android-developers] Re: Problematic Android heap management remaining cause of crashes

2009-01-14 Thread fadden
On Jan 13, 11:42 am, blindfold wrote: > > What log messages appear when this happens? Okay, nothing really useful there. Next thing to look at is the event log. You can retrieve it like this: % adb logcat -b events -d > events.txt It has a bunch of lines like this (I got these by launching t

[android-developers] Re: Trouble with TabActivity

2009-01-14 Thread Timothy DeWees
Nevermind, I was just being silly. I just had to mark onCreate as protected. I just mis-understood what you had told me. Thanks!!! On Jan 13, 10:16 am, Timothy DeWees wrote: > So I think I need to do something like this: > > > /

[android-developers] Re: Application not responding - boot receiver - Why does it happen?

2009-01-14 Thread moazzamk
Do you have any other type of receiver registered? Something without an intent-filter? - Moazzam http://moazzam-khan.com/ On Jan 14, 11:30 am, code_android_festival_way wrote: > I'd like to extend that question. > > I have done some testing now. I have completly dropped the > BroadcastReceiver

[android-developers] How to disable Auto-Focus on Camera?

2009-01-14 Thread Wanted unique nickname
Hi, Does anyone know how to disable autofocus from the Camera class? This feature is available in SnapPhoto. I want to take two images at different levels of focus. So the first picture is captured with AutoFocus disabled, and then on the second picture I enable autofocus and hope that it fi

[android-developers] Re: Streaming MP4s on Android

2009-01-14 Thread rktb
Hi, Can you play the same content if you push it onto your sdcard? Do you see any related messages in the adb log output? -Ravi On Jan 14, 4:56 pm, Qchan wrote: > Hi! > I'll get straight to the point. > I was able to stream this file using the SDK on > Linux.http://groups.google.com/group/a

[android-developers] Re: Debugging on actual G1

2009-01-14 Thread fadden
On Jan 13, 2:47 pm, longhairedsi wrote: > here's the relevent part of my log, I think "ERROR: thread attach > failed" must be the related problem, but not sure why? That message is coming out of process ID 1554, which is in the process of shutting down. There's a race condition exposed by the "

[android-developers] Re: Creating gradients on a view/layout in xml.

2009-01-14 Thread steele johnson
Thanks for the help. Oh BTW, do you know where I can find all of the xml tags and attrs in a nice categorized list? On Jan 14, 1:38 pm, Mark Murphy wrote: > steele johnson wrote: > > I can't seem to find any docs that explain how to define a color > > gradient on a view in xml. Can someone poin

[android-developers] Re: Creating gradients on a view/layout in xml.

2009-01-14 Thread Mark Murphy
steele johnson wrote: > I can't seem to find any docs that explain how to define a color > gradient on a view in xml. Can someone point me to an example? Thanks. Put something like this in res/drawable/yournamehere.xml: http://schemas.android.com/apk/res/android"; android:shape="rectangle">

[android-developers] Creating gradients on a view/layout in xml.

2009-01-14 Thread steele johnson
I can't seem to find any docs that explain how to define a color gradient on a view in xml. Can someone point me to an example? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Re: Playing encrypted video.

2009-01-14 Thread rktb
If you have already opened the file for encryption, and have a file descriptor, you could pass that with setDataSource. -Ravi On Jan 14, 1:17 pm, RunX wrote: > Hi, > > I want to play an encrypted video file. > Currently, I use the method - setDataSource(String videoPath) in order > to play vide

[android-developers] Re: Continuing topic " Bind to a remote service"

2009-01-14 Thread rktb
Hi, I tried to follow what was being discussed in http://code.google.com/android/reference/aidl.html#calling and http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/. My test code looks almost the same. The only difference being that in my case, the service and the ac

[android-developers] What's wrong with this broadcast receiver?

2009-01-14 Thread Massimo Barbera
Dear all, I have been following the examples for developing a Broadcast Receiver to catch the boot complete. Though it looks like I have just copied and pasted the code of the existing working examples, it looks like mine is not working. Here is my code: if placing a breakpoint at the "if" and s

[android-developers] Re: adb Error: ADB server didn't ACK

2009-01-14 Thread David Turner
hello, what do you mean by "after running Process Explorer" exactly ? On Tue, Nov 25, 2008 at 9:02 AM, Gameboy wrote: > > I got same problem on windows, after running Process Explorer. > > > --~--~-~--~~~---~--~~ You received this message because you are subscri

  1   2   >