[android-developers] How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
Hi all: I want to open an /dev/xx file in a jni so which is load in my Android java application. But return a permission denied error. Do you have any advices? Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Database Leak in LogCat - SQLiteDatabase, Cursor, Lifecycle

2009-01-14 Thread 3D
anyone else get Database Leak found in LogCat? What does it mean? Thanks. On Jan 10, 2:43 pm, 3D ernestgfre...@gmail.com wrote: In LogCat I keep gettingDatabaseLeakfound.  The 'tag' isDatabase and the 'message' isLeakfound.  And its followed by many lines of red in LogCat. I'm using an

[android-developers] Re: Performance Problem with ListView / Styled TextView

2009-01-14 Thread Mariano Kamp
*bump* ;-) On Sun, Jan 11, 2009 at 7:10 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I have a performance problem in a ListView. The problem seems to be that it takes too long to setup each individual row. It scrolls very, very painfully slow, because of that. The actual code

[android-developers] Re: Database Leak in LogCat - SQLiteDatabase, Cursor, Lifecycle

2009-01-14 Thread 3D
Ok, I believe I have fixed it by every time I need the database creating it and then closing it immediately afterward. Seems obvious I guess - don't leave an open database floating around. On Jan 14, 12:33 am, 3D ernestgfre...@gmail.com wrote: anyone else getDatabaseLeakfound in LogCat?  What

[android-developers] Re: Performance Problem with ListView / Styled TextView

2009-01-14 Thread for android
use the efficient list adapter And also you can use the TwoLineListitem On Wed, Jan 14, 2009 at 2:23 PM, Mariano Kamp mariano.k...@gmail.comwrote: *bump* ;-) On Sun, Jan 11, 2009 at 7:10 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I have a performance problem in a ListView.

[android-developers] Re: DisplayMetrics screen DPI seems to be wrong on G1?

2009-01-14 Thread Dianne Hackborn
Yeah it is busted, sorry. On Tue, Jan 13, 2009 at 11:55 PM, Jon Colverson jjc1...@gmail.com wrote: I'm trying to find out the physical size of the device's screen using this code in my activity's onCreate(): DisplayMetrics metrics = new DisplayMetrics();

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
Hi Dianne: Could you give me an advice to resolve it? Now I find the reason is /dev/xx is the root permission, but android app user is like app_xx. To resolve this, my idea is, I create a native service run with the root right, my android app call the service api to read write the fd of

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Jean-Baptiste Queru
Like Dianne said, you can't. Use the published SDK APIs to access the various functionalities exposed by Android. JBQ On Wed, Jan 14, 2009 at 2:38 AM, taosinker taosin...@gmail.com wrote: Hi Dianne: Could you give me an advice to resolve it? Now I find the reason is /dev/xx is the root

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
Jean: Now my company have the license agreement with google. I can build the code and run it on our board. Could you give me some advices? On Jan 14, 2:41 am, Jean-Baptiste Queru j...@google.com wrote: Like Dianne said, you can't. Use the published SDK APIs to access the various

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
I can enter SDK inside and build the code under SDK level. But don't know how to resolve my problem below the SDK level. On Jan 14, 2:41 am, Jean-Baptiste Queru j...@google.com wrote: Like Dianne said, you can't. Use the published SDK APIs to access the various functionalities exposed by

[android-developers] Re: Unable to reconstruct bitmap from ksop2 response

2009-01-14 Thread sooraj.rit
Hi Alistair, it worked. great. thanks 4 ur reply On Jan 13, 7:15 pm, Alistair. alistair.rutherf...@googlemail.com wrote: I am not that familiar with using SOAP but I have passed images using Strings in the past. Can I suggest you encode your image using Base64 and then decode it on the

[android-developers] Re: SKIA performance

2009-01-14 Thread Dianne Hackborn
Hi, discussion about the platform implementation should be in android-platform. On Tue, Jan 13, 2009 at 10:17 PM, Andy Quan zhengyuan.q...@gmail.comwrote: Folks, I have some questions regarding to performance of SKIA performance. 1. In SkUserConfig.h, there is a macro called

[android-developers] Re: Not a big problem.

2009-01-14 Thread kaushik sur
hi ipeg i didnt get ur question clearly. whatevr if you are working in java there is no such concept of global variable , because here object are initiated from heap space. but you can make a globally accessible varible inside a class this way :- public class myClass{ public static x = 0; ... }

[android-developers] Not a big problem.

2009-01-14 Thread ipeg . student
Hi Developers. Now i have a small problem. I want to create a global variable in my program. Please give me the coding of create a global variable. Thanks in advance. Suman. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Regular Expression Help

2009-01-14 Thread A T
The Java matcher tries to match the entire string, unlike other regex engines. Try this: if (!Pattern.matches([a-z]+, DrawingName.getText().toString())) { //do nothing for now DrawingName.setText(WRONG); } Notice the ! before the expression. On Wed, Jan 14, 2009 at 2:28 AM, Josh

[android-developers] Re: Iptables

2009-01-14 Thread damoral...@gmail.com
Thank you very much for all your answers. I would like to ask, then, do you know which method can be used to create a firewall for Android? I've read that SMobile has created one, and therefore it should be possible to do the same. The only thing I wonder is how to do so without actually

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Dianne Hackborn
Much of the device tree is not directly accessible to applications; there is no way to get around this. On Wed, Jan 14, 2009 at 12:22 AM, taosinker taosin...@gmail.com wrote: Hi all: I want to open an /dev/xx file in a jni so which is load in my Android java application. But return a

[android-developers] Re: Accessing Files on the sdcard

2009-01-14 Thread Tez
Hi, thanks for the reply. Also, I was wondering whether it is possible to stream audio to the AudioTrack class i came across in the cupcake development branch. If so, how can I go about bringing that functionality to the current version of the SDK. Cheers, Earlence On Jan 13, 8:44 pm,

[android-developers] Activity callback anomaly

2009-01-14 Thread A T
Hi, I'm noticing a strange pattern in my acitivty when I open another activity from within mine (I have a button that goes to the contacts view, for instance). Instead of my onPause method being called once, I'm seeing this pattern: onPause, onResume, onPause, in very quick succession. I can't

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

2009-01-14 Thread Dianne Hackborn
You should use the official SDK for app development. On Tue, Jan 13, 2009 at 8:21 PM, Android malapati.raghaven...@gmail.comwrote: Hi, I am new to the Android development. I just started to work on SMS/MMS application . I downloaded the Android source code from the Google website also did

[android-developers] Re: Performance Problem with ListView / Styled TextView

2009-01-14 Thread Dianne Hackborn
Ummm... don't do that? Your slow code is doing tons of work, so it is going to be slow. If you just can't avoid doing all of that work for each item, you might need to fall back on the approach of formatting the text in a separate thread, based on the list view API demo for when retrieving item

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

2009-01-14 Thread Peli
It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand

[android-developers] Re: Accessing Files on the sdcard

2009-01-14 Thread Jean-Baptiste Queru
There is currently no SDK built from cupcake (which isn't stable enough yet). New cupcake functionalities aren't currently available to application developers working with the SDK. JBQ On Wed, Jan 14, 2009 at 4:55 AM, Tez earlencefe...@gmail.com wrote: Hi, thanks for the reply. Also, I was

[android-developers] Re: Performance Problem with ListView / Styled TextView

2009-01-14 Thread Mark Murphy
Mariano Kamp wrote: public View getView(int position, View convertView, ViewGroup parent) { View rowView = convertView != null ? convertView : activity .findViewById(R.layout.entry_row); Why are you attempting to use a single row View for every entry in the list? In other words,

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Mark Murphy
taosinker wrote: I can enter SDK inside and build the code under SDK level. But don't know how to resolve my problem below the SDK level. Discussions on below the SDK level are better suited for one of the mailing lists for the Android open source project: http://source.android.com/discuss

[android-developers] Re: Notification and PendingIntent

2009-01-14 Thread moazzamk
May you should try printing the contents of extras before it goes to onPause(). It is possible that extras exists but it's empty. - Moazzam http://moazzam-khan.com On Jan 13, 7:09 pm, Al alcapw...@googlemail.com wrote: Not yet :( I've tried putting the data in my intent in different ways,

[android-developers] Re: Do I need a while loop in GLThread of GLSurfaceView if animation is not needed?

2009-01-14 Thread Satya Komatineni
I think I may be able to answer part of this question, as a good nights sleep and a necessary walk with our family dog in the morning chill seemed to have set something straight in my head. The outer while loop is necessary because, the secondary thread the GLThread is taking responsibility to

[android-developers] Re: If your hosting your own .apk

2009-01-14 Thread Tom
Gah! Still looking for a solution to host my apk where I can share it with my testers. Seems like I must be missing some portion of the Google solutions for this. On Dec 17 2008, 8:17 am, David Given d...@cowlark.com wrote: Tom wrote: Sites will not work for hosting APKs since the mimetype

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

2009-01-14 Thread Torgny
Hello, I have a ListView that uses SimpleCursorAdapter with a ViewBinder. If switch from portrait to landscape on the phone as the list is populating items, I get an SQLiteClosable exception because the activity's onDestroy has been called, but the adapter is still loading data from the cursor.

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Dan Dumont
It is checking the entire length of the string... your pattern is not doing what you want. I suggest you read up on regular expressions. Your regexp says: Match 1 character a-z, followed by any character zero or more times. On Wed, Jan 14, 2009 at 2:28 AM, Josh joshdo...@gmail.com wrote:

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Dan Dumont
Sorry, that's Match 1 character *NOT *a-z, followed by any character zero or more times. try ^[^a-z]+$ On Wed, Jan 14, 2009 at 10:00 AM, Dan Dumont ddum...@gmail.com wrote: It is checking the entire length of the string... your pattern is not doing what you want. I suggest you read up on

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Josh Dobbs
Thanks for the suggestion but it's still not working. There's got to be a way to do this without looping through a charachter at a time. On Wed, Jan 14, 2009 at 7:03 AM, Dan Dumont ddum...@gmail.com wrote: Sorry, that's Match 1 character *NOT *a-z, followed by any character zero or more

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Faber Fedor
On Wed, Jan 14, 2009 at 10:00 AM, Dan Dumont ddum...@gmail.com wrote: It is checking the entire length of the string... your pattern is not doing what you want. I suggest you read up on regular expressions. Your regexp says: Match 1 character a-z, followed by any character zero or more

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

2009-01-14 Thread code_android_festival_way
Hello. I am talking about an application which works with a background service. To start that background service I have registered a Broadcast Receiver which waits for the boot completed action. When the receiver is called I am directly starting up the background service. To sum up:

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Josh Dobbs
That doesnt work either. what i want to do is check the entire length of the string to ensure that only a-z are in the string and that there are no special characters. On Wed, Jan 14, 2009 at 7:15 AM, Faber Fedor faberfe...@gmail.com wrote: On Wed, Jan 14, 2009 at 10:00 AM, Dan Dumont

[android-developers] Manifest Editor - Application tab shows empty page

2009-01-14 Thread Mihai Fonoage
I started playing around with the Android Editors, so I wrote a simple Todo List application (taken from a book), and I opened the AndroidManifest.xml file using the Manifest Editor. My problem is that the Application tab shows an empty page. All other tabs work correctly. I have the ADT and the

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Al
Both A T and Faber's solutions should work fine if you add the check for uppercase letters also: String foo = aAsdjshdIUjkshf; System.out.println(foo.matches([a-zA-Z]+) ? Yay : Nay ); Prints 'yay'. String foo = aAsdjs1234hdIUjkshf;

[android-developers] Re: charging for upgrades to free apps?

2009-01-14 Thread chris.cap...@gmail.com
ok. thanks a lot for your understanding. is there anyone from google that can comment for sure? thanks. On Jan 11, 7:55 pm, Raymond Rodgers raym...@badlucksoft.com wrote: chris.cap...@gmail.com wrote: i have a free app and i want to put out an updated version that isn't free. when us devs

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

2009-01-14 Thread Al
I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for

[android-developers] Re: If your hosting your own .apk

2009-01-14 Thread Al Sutton
I still think Amazon S3 is your best bet (help using S3 for apks is available from http://andappstore.com/AndroidPhoneApplications/awshosting.jsp) Al. Tom wrote: Gah! Still looking for a solution to host my apk where I can share it with my testers. Seems like I must be missing some

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

2009-01-14 Thread Al Sutton
http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-android-optimization/ Al. Al wrote: I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a

[android-developers] interface source code

2009-01-14 Thread elo
Hi! I need the source code of the Sliding Drawer of the emulator. I would like to see how to code the events on the buttons of the Sliding Drawer Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] GTalk IM on G1 seems to use Smack.

2009-01-14 Thread Guillaume Perrot
For those who were wondering whether the built in GTalk application was using Smack or not, I found those logs with adb bugreport: Cmd line: com.google.process.gapps DALVIK THREADS: main prio=5 tid=3 WAIT | group=main sCount=1 dsCount=0 s=0 obj=0x400143a8 | sysTid=119 nice=0 sched=0/0

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

2009-01-14 Thread Peli
It's the same link I had put into my original post (at least the information behind it). My problem is slightly different: I'm not worried about the background changing color (in fact, I have the default black background), but in this case the *text* changes color from the default white (or light

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

2009-01-14 Thread Torgny
All you need to do to resolve this is make sure you set android:textColor to something like android:textColor=?android:attr/ textColorPrimary and that will take care of your problem! On Jan 14, 11:06 am, Peli peli0...@googlemail.com wrote: It's the same link I had put into my original post (at

[android-developers] Internationalization of webView apps

2009-01-14 Thread Fred Grott(shareme)
Some of you know that I ma one of the crazy ones developing a mobile app using only web based code and using webview, see video: http://www.youtube.com/watch?v=7NCZLYBqe8Q I know that I can using native code detect which human language was set and thus would like to code wise have my app

[android-developers] Re: interface source code

2009-01-14 Thread Romain Guy
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/com/android/internal/widget/SlidingDrawer.java;h=a4045d553a024472c3a17e0dc3e7c8a0cdb2b054;hb=master On Wed, Jan 14, 2009 at 7:41 AM, elo esyo...@gmail.com wrote: Hi! I need the source code of the Sliding Drawer

[android-developers] Re: DisplayMetrics screen DPI seems to be wrong on G1?

2009-01-14 Thread Romain Guy
This should be fixed in cupcake. On Tue, Jan 13, 2009 at 11:55 PM, Jon Colverson jjc1...@gmail.com wrote: I'm trying to find out the physical size of the device's screen using this code in my activity's onCreate(): DisplayMetrics metrics = new DisplayMetrics();

[android-developers] Re: The code in android which draw a rectangle surrounding an anchor in Webkit

2009-01-14 Thread Fred Grott(shareme)
Correct me if I am wrong, but if you are working in webview do you not mean the -webkit css commands for the box and etc..as an example see my blue box in video of Xspot: http://www.youtube.com/watch?v=7NCZLYBqe8Q That is css and -webkit css commands not C++ or Java.. On Jan 13, 11:26 pm, S

[android-developers] Re: android 1.5

2009-01-14 Thread Fred Grott(shareme)
I am not sure Morris as I was not set about building my own copy until this weekend.. looks like it did not build successfully On Jan 13, 11:15 pm, Morris morrischen.c...@gmail.com wrote: Dear All: I face a situation about building the new android. I don't know whether I successfully

[android-developers] Playing encrypted video.

2009-01-14 Thread RunX
Hi, I want to play an encrypted video file. Currently, I use the method - setDataSource(String videoPath) in order to play videos. But when the file is encrypted I need to open the encryption before passing it to the media player. How can I do that? Maybe there is a way to set a memory file as

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

2009-01-14 Thread eric
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 it because I need to put a execution file into it or is there any other directory can be put. I try to make a sdcard,

[android-developers] ask for help: write contact into SIM (phonebook app)

2009-01-14 Thread huangjuanm...@gmail.com
hi, I wrote a case to test phonebook app, but I encountered a problem for SIM card handling. I don't know if the emulated SIM card (I run it on emulator) does not allow me to control it, or the function I used is not correct ? ***code*** ContentValues

[android-developers] How to catch global events?

2009-01-14 Thread tzi...@gmail.com
Hi all, I want to write an application that monitors each and every keystroke or move event that the user does on his phone. How can i catch global events such as key strokes or motion events? The point is catching them globally and not from within my application -because my application will run

[android-developers] Re: Clearing the WebView cache

2009-01-14 Thread Beshoy
Nick, I'm not quite understanding how you got this to clear the cache... right now, i have a webview with the following code: webView = (WebView) findViewById(R.id.myWebView); webView.setWebViewClient(new Callback()); in the Callback method, I have settings for the webView as well as load the

[android-developers] Scaling objects within an AbsoluteLayout

2009-01-14 Thread Pachu
Hello, I am currently using an AbsoluteLayout in order to position things as they would be on the pc based on centimeters, and converting that to its pixel value. My question is, how to go about scaling the layout/entire view so that all of the content is visible. AKA essentially a zoom feature

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

2009-01-14 Thread Mr. Cararia
Hi, I have the same problem on Mac OSX.. I don't know where I have to give this commands too.. ciao On 6 Gen, 11:59, sweeti montyswee...@gmail.com wrote: Hi,  I also have a problem with my setup.  I went to begin programming  but Eclipse wouldn't start my apps, giving me this error:    

[android-developers] Streaming MP4s on Android

2009-01-14 Thread Qchan
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/android-developers/browse_thread/thread/6162d55b73916083/3c3d4479be7f7ca0#3c3d4479be7f7ca0 However, I cannot stream my own here: http://ultraedge.net:88/test.mp4 Just to let

[android-developers] Perl on Android Emulator

2009-01-14 Thread Puneet Bhatia
Dear friends, I want to run Perl script on Android Emulator but when I tried to do that, I got error, Perl : command not found. Can you please guide me how I can use Perl on emulator. Thanks in advance. Regards Puneet Bhatia --~--~-~--~~~---~--~~ You received

[android-developers] Validating Dialog usage from Activity instrumentation test cases

2009-01-14 Thread singlemalt
I'm attempting to write some integration tests using the Activity instrumentation test case framework. Here's the scenario: (1) An Activity presents some data as a form for the user to complete. (2a) If data submission is successful the form Activity launches a new Activity. (2b) If data

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

2009-01-14 Thread Romain Guy
That's simple: you can't :) On Wed, Jan 14, 2009 at 1:13 AM, tzi...@gmail.com tzi...@gmail.com wrote: Hi all, I want to write an application that monitors each and every keystroke or move event that the user does on his phone. How can i catch global events such as key strokes or motion

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

2009-01-14 Thread code_android_festival_way
I'd like to extend that question. I have done some testing now. I have completly dropped the BroadcastReceiver (waiting for Boot completed) from my Manifest. But after rebooting I can see the myapp thread being up again and I'm getting the not responding message. And this happens with NO

[android-developers] Re: Internationalization of webView apps

2009-01-14 Thread Sundog
I must be missing something. Why not simply send your server a parameter from your strings file? The parameter will automatically switch based on which internationalized strings file is in use, then you simply switch languages any way you want on your end. On Jan 14, 9:12 am, Fred Grott(shareme)

[android-developers] Re: Perl on Android Emulator

2009-01-14 Thread Mark Murphy
Puneet Bhatia wrote: I want to run Perl script on Android Emulator but when I tried to do that, I got error, Perl : command not found. Can you please guide me how I can use Perl on emulator. Perl is not a supported Android development language. -- Mark Murphy (a Commons Guy)

[android-developers] Need help to find the phone's free space?!

2009-01-14 Thread Mariano Kamp
Hi, I am wondering how to find out how much space is left on the device before I download something big? According to the documentation StatFs would have the appropriate methods for doing that, but in practice I failed with StatFs on the emulator and G1. Here is a piece of code

[android-developers] Re: Regular Expression Help

2009-01-14 Thread Josh Dobbs
Thanks! that works perfectly. On Wed, Jan 14, 2009 at 7:27 AM, Al alcapw...@googlemail.com wrote: Both A T and Faber's solutions should work fine if you add the check for uppercase letters also: String foo = aAsdjshdIUjkshf;

[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 r59...@gmail.com wrote: I got same problem on windows, after running Process Explorer. --~--~-~--~~~---~--~~ You received this message because you

[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

[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

[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 omeranda...@gmail.com wrote: Hi, I want to play an encrypted video file. Currently, I use the method - setDataSource(String videoPath) in

[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

[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: shape xmlns:android=http://schemas.android.com/apk/res/android;

[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 mmur...@commonsware.com wrote: steele johnson wrote: I can't seem to find any docs that explain how to define a color gradient on a view in

[android-developers] Re: Debugging on actual G1

2009-01-14 Thread fadden
On Jan 13, 2:47 pm, longhairedsi longhaire...@googlemail.com 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

[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 ultrae...@gmail.com wrote: Hi! I'll get straight to the point. I was able to stream this file using the SDK on

[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

[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 festival.s...@googlemail.com wrote: I'd like to extend that question. I have done some testing now. I have completly

[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 whtdrgn...@gmail.com wrote: So I think I need to do something like this:

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

2009-01-14 Thread fadden
On Jan 13, 11:42 am, blindfold seeingwithso...@gmail.com 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

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

[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 chunkai.hw...@gmail.com 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

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

[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 j...@google.com 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 ecog...@gmail.com wrote: I'm trying to make my first

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

[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 romain...@google.com wrote: That's simple: you can't :) On Wed, Jan 14, 2009 at 1:13 AM, tzi...@gmail.com tzi...@gmail.com wrote:

[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

[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 marc.rob...@gmail.com wrote: Hi,     Does anyone know how to disable autofocus from the Camera class? This feature is available in

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

[android-developers] Re: Adding images to emulator

2009-01-14 Thread mathiastck
adb push On Jan 13, 4:44 pm, kcode fghj...@gmail.com 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: 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

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

[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: resources string-array name=FacesList item 2/item item 4/item item 6/item item 8/item item 10/item item 12/item item 20/item item

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

[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

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

[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 sraj...@gmail.com wrote: but i get the same error if i just pick a potion of the

[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 sraj...@gmail.com 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);

[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 robert.b...@gmail.com wrote: I

[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

  1   2   >