[android-beginners] Re: droidsans Font

2009-01-20 Thread Fathi
mark, thank u for replying i just delete the font folder from inside the android SDK and still it load the droid font how it could be happen? from where the emulator laod the font? regards On Jan 19, 3:16 pm, Mark Murphy mmur...@commonsware.com wrote: Fathi wrote: Hello every one, i just

[android-beginners] How to get a Content Resolver in static methods?

2009-01-20 Thread Brian 1143
Hi, I want to access android.provider.Settings so I need a content resolver. Could anyone show me how to get a content resolver in frameworks/base/ core/java/android/os/Environment.java. Thanks. --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] need to know few apis

2009-01-20 Thread srini amul
a) Is there any utility function in andrioid, to convert from ASCII String to UTF 16 string (or) Vise versa like STRTOWSTR() / WSTRTOSTR() ? b) How do i update my surface holder size ? What is the API to do this ? c) How do  i get a frame which is been displayed on a screen ? What is the API to

[android-beginners] How to broadcast key events. or terminate the call?

2009-01-20 Thread Naeem
Hi All, I want to terminate incoming or outgoing call. But there is no public API available. I think I will do this if I broadcast key events like KeyEvent.KEYCODE_ENDCALL. Anybody can help me how to Terminate calls Or Broadcast key events Thanks

[android-beginners] Re: Basic Thread Question

2009-01-20 Thread steve_macleod
anyone have an idea on this one? thanks On Jan 19, 10:29 am, steve_macleod steven_macl...@hotmail.com wrote: Hi Dave, First - thanks for the reply. Maybe im missing something here, but what is the app's message looper? I am creating the thread with the following line: mPacManThread =

[android-beginners] Re: How to broadcast key events. or terminate the call?

2009-01-20 Thread Mark Murphy
Naeem wrote: I want to terminate incoming or outgoing call. You can't. But there is no public API available. Correct. I think I will do this if I broadcast key events like KeyEvent.KEYCODE_ENDCALL. You can't, except perhaps to your own application (and even that requires are fair bit of

[android-beginners] Re: How to get a Content Resolver in static methods?

2009-01-20 Thread Mark Murphy
Brian 1143 wrote: Hi, I want to access android.provider.Settings so I need a content resolver. Could anyone show me how to get a content resolver in frameworks/base/ core/java/android/os/Environment.java. Use Context#getContentResolver(). Your activity or service is your Context. --

[android-beginners] Re: droidsans Font

2009-01-20 Thread Mark Murphy
Fathi wrote: from where the emulator laod the font? The emulator has the fonts built into the firmware. You cannot remove them without replacing the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

[android-beginners] How to reach internet via GPRS/EDGE in Android

2009-01-20 Thread KenKC
Hi All, Does anyone know how to reach internet via GPRS/EDGE in Android (Google G1)? just set corret APN/username/password in settings, then open browser? Is it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Internet on emulator

2009-01-20 Thread Zeeshan Ahmad
Hi there I have an Ethernet LAN connection in my room and wanted to know as to whether I can use it to surf the web on the emulator??? If yes then how??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: Basic Thread Question

2009-01-20 Thread Dave Sparks
Android is a message driven application framework. The message looper is the thread that reads messages queued for your application and calls the methods in your application based on the message context. By calling sleep, you effectively put your entire application to sleep for 10 seconds because

[android-beginners] Re: ebook

2009-01-20 Thread Shuvo
http://www.netbks.com/programming/general-programming-programming/professional-android-application-development_19141.html http://www.netbks.com/programming/general-programming-programming/android-a-programmers-guide_13579.html

[android-beginners] APK file size and compiling in Eclipse

2009-01-20 Thread Tom
My APK file size is 1.3M compiled out of Eclipse. No manner of tweakings of the project settings seems to change the size of this (specifically Java Compiler / Classfile Generation toggles for debugger info). Besides reducing the res/drawable image sizes, are there other things to help reduce

[android-beginners] Re: ebook

2009-01-20 Thread Josh Dobbs
I'm quite sure they are not distributing free ebook versions. Thhat site is whack! they are giving away other peoples property and asking for donations!?!? While I don't presume to speak on behalf of the authors of those books, those links appear to point to illegal copies. I am not aware of any

[android-beginners] Malformed URL

2009-01-20 Thread Kas
Hi, I am trying to fetch an image and render it in an activity. But I keep getting a MalformedURLException. Here's my code snippet: protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState);

[android-beginners] Re: Problem with looping through the buttons in the Layout

2009-01-20 Thread James Yum
Hi Anil, Reflection may work for you. Here's an untested example (with exception handling omitted): Field field = R.id.class.getField(button + i); int id = field.getInt(null); Cheers, James On Sun, Jan 18, 2009 at 4:01 AM, amadamala amadam...@gmail.com wrote: I'm using TableLayout for my

[android-beginners] Re: Help with path syntax for reading file off SD card

2009-01-20 Thread James Yum
Hi, What is the error? Cheers, James On Sun, Jan 18, 2009 at 1:22 PM, robotissues jason.van.an...@gmail.com wrote: I am trying to create a very simple mp3 player with one button that plays one song. I found misc code here and there as a start. I am running the application via Eclipse

[android-beginners] Re: Generating MD5 Fingerprint of the SDK Debug Certificate

2009-01-20 Thread James Yum
Hi Greg, keytool is in the bin subdirectory of the JDK. Cheers, James On Mon, Jan 19, 2009 at 1:07 PM, Greg Corradini gregcorrad...@gmail.com wrote: Hello, I'm trying to use the following keytool command to generate a Map Key for the debug certificate: keytool -list -alias androiddebugkey

[android-beginners] Re: Generating MD5 Fingerprint of the SDK Debug Certificate

2009-01-20 Thread Greg Corradini
Thks James, I saw that in another post, but it didn't make sense along side the official documentation where they tell you to generate it from the debug.keystore in the windows xp local settings. I'll try generating it from that directory. I'll also put in a request to change the documentation on

[android-beginners] Re: Loading dialog

2009-01-20 Thread Ivan Soto
I ended up using the method described in this post: http://www.helloandroid.com/node/243 hope someone else find it useful :) On Mon, Jan 19, 2009 at 4:34 PM, Ivan Soto ivanso...@gmail.com wrote: Ok, I'm trying with this now: showDialog(DIALOG2_KEY); new Thread(new Runnable(){ public void

[android-beginners] Re: Error in using push command

2009-01-20 Thread James Yum
Hi, Did you create a disk image and load it in the emulator? http://code.google.com/android/reference/emulator.html#sdcard Cheers, James On Sat, Jan 17, 2009 at 12:47 AM, srini amul srinia...@yahoo.com wrote: Hi, I am trying to copy the file to the emulator. I used a below command adb

[android-beginners] Re: Help with path syntax for reading file off SD card

2009-01-20 Thread jtaylor
Just to be sure, use Environment.getExternalStorageDirectory() instead of referring directly to the the sdcard file directory. - Juan T. On Jan 18, 4:22 pm, robotissues jason.van.an...@gmail.com wrote: I am trying to create a very simple mp3 player with one button that plays one song.  I

[android-beginners] Re: How to set an image as WebView's background

2009-01-20 Thread James Yum
Hi, Here's an example that may help: http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/WebViewDemo/ It places all HTML related assets under the assets directory. Cheers, James On Tue, Jan 20, 2009 at 9:10 AM, sagar saagar.par...@gmail.com wrote: Hello every1... I have

[android-beginners] Re: Basic Thread Question

2009-01-20 Thread jtaylor
On Jan 20, 12:04 pm, Dave Sparks davidspa...@android.com wrote: Android is a message driven application framework. The message looper is the thread that reads messages queued for your application and calls the methods in your application based on the message context. By calling sleep, you

[android-beginners] Re: How to broadcast key events. or terminate the call?

2009-01-20 Thread Naeem
anybody can help me that how to broadcast key events. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe

[android-beginners] Re: Problem in playing a video file

2009-01-20 Thread Mahesh Vaghela
Thanks Dave, Your ideas have really help me a lot. I have start working on getting a web server from where I can download my files. I will come back here when I finish that task. Thanks again for your thoughtful help. On Tue, Jan 20, 2009 at 10:47 PM, Dave Sparks

[android-beginners] Export to sim somewhat working...

2009-01-20 Thread Greg
Ok I wrote an application based off the SIM import tool located on the latest source for Android, its crude but it should work, i need help polishing it off and I would hope that it would make it into the main tree in time for release. THIS IS CODE EMBEDDED IN THE SOURCE NOT THE SDK. I was