[android-beginners] access resource strings from non-android classes?

2009-08-29 Thread Jeffrey Blattman
to access resource strings from android code, i can call getResources().getString(R.string). however, what if i am in a class that doesn't extend Context? i suppose i can pass the Context in, but i'd rather not pollute the non-andoid classes. is there a static accessor for resource

[android-beginners] How do I keep an application alive?

2009-08-29 Thread cellurl
How do I keep an application alive? e.g. keep the screen bright and everything displays instantly? I have tried these to no avail... pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, TAG);

[android-beginners] Re: access resource strings from non-android classes?

2009-08-29 Thread Mark Murphy
Jeffrey Blattman wrote: to access resource strings from android code, i can call getResources().getString(R.string). however, what if i am in a class that doesn't extend Context? i suppose i can pass the Context in, but i'd rather not pollute the non-andoid classes. is there a static

[android-beginners] Android not found

2009-08-29 Thread Will
I'm just starting to work with Android. I downloaded the sdk onto my mac. From the tools folder inside the unpacked file in terminal I'm trying to create an AVD with the command android create avd Here is what I get out: willsetchell$ pwd

[android-beginners] intent filter to know when user change the volume

2009-08-29 Thread Michael Krebs
hello, i want to develop an application who allow the user to change the brightness of the screen when he change the volume (in same time he can choose volume or brightness in all application). In src of class AudioManager i've see this : /** * @hide Broadcast intent when the volume for a

[android-beginners] touch back buttun

2009-08-29 Thread servet
hi everyone android very good os. i did research many times about touch back button. im not successful. i dont want to use hardware back button. beacuse its not easy and fast when u using phone with touch. i want to know . is there any app or widget to back? many many thanks.

[android-beginners] Re: Beginner problem with TabHost

2009-08-29 Thread nishiyath NAZER
i dont want to join in this group.so please remove me from this group. On 8/13/09, Tuftux tuft.ouve...@gmail.com wrote: Hey guys ! I'm quite new to Android. I followed the official TabHost tuto but I modified the XML template to display a LinearLayout wich contain a textView instead of a

[android-beginners] Set up Simple

2009-08-29 Thread black gin
Simple is new basic like android programming language. I red instructions on Simple google code page, but they are not step by step Does someone know how to set up Simple build environment? I'm on linux --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] How to exit App without closing the Emulator Window

2009-08-29 Thread Mimi
The first bringing up of the Emulator was painfully slow (3 min). I ran an App. It ended but the AVD was still displaying the last image. I ran the App again and got: emulator: ERROR: the user data image is used by another emulator. aborting I had to close the Emulator Window (Vista) in order

[android-beginners] A useful Group

2009-08-29 Thread Sasi Kumar
join this group it is very useful for you http://groups.google.com/group/mobile-application-developers --~--~-~--~~~---~--~~ 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] eclipse plug-in installation problem

2009-08-29 Thread pro
Hi, I'm trying to install the plug-in on eclipse for fedora 11. Here is the version -- Fedora Eclipse Platform Version: 3.4.2 Based on build id: 20090211-1700 (c) Copyright Eclipse contributors and others 2000, 2009. All rights reserved. Visit http://sources.redhat.com/eclipse I'm seeing

[android-beginners] Application permissions to change time/date

2009-08-29 Thread debuti
I read at android api public static boolean setCurrentTimeMillis (long millis) Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions. Returns * if the clock was successfully set to the specified time. which are the permissions, who do

[android-beginners] Re: Android-Beginners Query : How to get the full path of the files under res folder of an Android App?

2009-08-29 Thread Mimi Tam
First time doing HelloAndroid, I could not get the Emulator to run newly build Apps from within Eclipse when emulator is already up and running and I had to relaunch the Emulator every time. I tried different things but to no avail. Please help. I am running Android SDK 1.5 r3, latest DDMS and

[android-beginners] Re: Procedure to obtain Google Maps API key

2009-08-29 Thread chals
Hi, MD5 Fingerprint of the SDK Debug Certificate works fine in my maps. When i tried to run my maps using self signed certificate after obtain Maps API key, my map's is not working. Anybody tell me how to run maps using self sign certificate instead of debug certificate. On Aug 13, 5:27 pm,

[android-beginners] draw textview

2009-08-29 Thread Sasi Kumar
please give some suggestion for me... I want to draw text in my text view my class is extended with Activity. textview t1; textview t2; t1.settext(sun 29 Sug 2009); t2.settext(tue 29 Sug 2009); see here sun and tue both are having same length words but it is moving. so when

[android-beginners] Re: eclipse error: missing required Java project

2009-08-29 Thread zyy571137
在2009-08-25,deki dcec...@gmail.com 写道: hi list, beginner here. I am getting 3 eclipse errors: Project 'foo' is missing required Java project: 'bar' The project cannot be built until build path errors are resolved Conversion to Dalvik format failed with error 1 anyone seen this? Thanks

[android-beginners] Taking picture with camera and getting content uri

2009-08-29 Thread Matija
Hi, how can start taking picture with camera and in dialog result get uri for that picture. I did following: ... for audio Intent intent = new Intent (android.provider.MediaStore.RECORD_SOUND); startActivityForResult(intent, 2); ... for picture Intent intent = new

[android-beginners] problem with Hello, Gallery R.styleable not resolve

2009-08-29 Thread steve
I've been working through the Hello,Views examples. They are great resource - thanks to those that created them. There is a problem with the setiton on the example using android.R.sytleable public ImageAdapter(Context c) { mContext = c; TypedArray a = obtainStyledAttributes

[android-beginners] Downloading files from the browser

2009-08-29 Thread gladys anne
Hi all, I wonder if android supports downloading all types of files directly from the browser? If not, then (1) what type of files does it support? Also, (2) where do my downloaded files go? I just tried saving a picture, and it went to Pictures, what about the others?

[android-beginners] Scheduler or cron in android

2009-08-29 Thread debuti
Is there a way to set up a cron like task to do some background stuff? That would be awesome, anyway, if there isnt, is there someway to initialize a program at boottime (that schedules itself)? --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] Re: Hello Tutorials - Gallery Example

2009-08-29 Thread noeuli
Thanks for all guys. This bug-fix codes work good! --~--~-~--~~~---~--~~ 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 from

[android-beginners] Is using google maps driving direction legal for android app for ADC II?

2009-08-29 Thread -v-
Hi, Is it legal to use the driving directions obtained from google via json in an android app (which I plan to submit to ADCII?) They have deprecated com.google.googlenav the package I guess...dont know why! Do I need to get some sort of key to use their maps direction legally? -v-

[android-beginners] R.java (generated File)

2009-08-29 Thread ConquerWorm
Hey, I am wondering if someone can explain this file to me and how it works. See I have created a very simple project that is suppose to draw a Background image to the screen. I have created two files, FirstTryActivity and FirstTryView. So Here is the line of code that is causing me problems:

[android-beginners] Change system time

2009-08-29 Thread debuti
Hi everyone! I'm looking forward to code a ntp application for android. The issue is that i dont know how to achieve this with the latest api, i dont know how to change/set the current phone time/date. Any suggestions? Thanks dudes. --~--~-~--~~~---~--~~ You

[android-beginners] using java.sql instead of android.database

2009-08-29 Thread tetron
Can I use the standard java.sql API to query a sqlite database on android? I am working on an app that shares some code between the client side (android) and server side (apache tomcat servlet) and I am puzzled why the android documentation includes java.sql but no information on how to use it

[android-beginners] ImageView appearing above soft keyboard

2009-08-29 Thread MobileDev
Hi, We're using a bunch of ImageView windows in an application using SDK 1.5 and when the soft keyboard window appears the ImageView windows are appearing ontop of it, thus blocking out some of the letters on the keyboard. When creating the LayoutParams we're only using the following:

[android-beginners] unsubscribe me

2009-08-29 Thread baskakov
Please unsubscribe me from this group!I permanently fail to achieve this on my own because my messages to `unsubscribe` address are disregarded unsubscribeInkorgenX **baskakovunsubscribe 14.11 (8 timmar sedan) ** Svara Mail Delivery Subsystem till mig visa information 14.11 (8 timmar

[android-beginners] eclipse plug-in installation problem

2009-08-29 Thread pro
Never mind, activating all the ( brute force) the sites, makes the problem go away. thanks -pro --~--~-~--~~~---~--~~ 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] Re: Configure my Account without G1

2009-08-29 Thread Winston Shines
Hola Jose, There is a web site called cell phone hacks. In case you have been there already let me know otherwise when I find I will get you the website and there may be someone there who knows, and I will do some research also. Take care... Mr. Winston Shines Principal Consultant Maximillian

[android-beginners] Hi friends

2009-08-29 Thread hansika
Hi Friends, I have send this msg for more flexible connection between friends, Make a huge circle by connecting friends, get improvement along with that. Thanks Regards, Hansika. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-beginners] Re: repo init error

2009-08-29 Thread catch222jp
Please tell me your developing env.. If there is any proxy server, you may have to use corkscrew, and change proxy setting... On 8月25日, 午前11:01, richard007.lin richard007@gmail.com wrote: Dear all,     I've just installed repo successfully. But I got an error when using repo init -u

[android-beginners] Re: Why does using People._COUNT cause IllegalArgumentException to be thrown?

2009-08-29 Thread 장영환
Hi. I tried with your code, it works. Kindly check two things. 1. You should over 23 contacts, because you write Uri myPerson = ContentUris.withAppendedId( People.CONTENT_URI, 23 ); 2. You should write permission code in AndroidManifest.xml like below. uses-permission

[android-beginners] Re: Install app on a device?

2009-08-29 Thread aamod rao
Hi Michael I have a similar problem .. but the difference here is that These guys at HTC have not installed Android magic on my phone at all.. they say that android market is is not available in the India ...they do not have a server here.. now i have an android phone HTC Magic with no apps at

[android-beginners] How do you prevent media from restarting when you rotate an android phone

2009-08-29 Thread The White Rabbit
Hi, I am trying to make a game for android. But when I rotate the android phone my background music restarts. How do I prevent this? Any help would be appreciated. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-beginners] How can I grab all keys? (including ENTER key)

2009-08-29 Thread Marcin Baliniak
Hi, I need to grab all keys in my application, but have a little problem when I'm using soft keyboard I didn't get event when press ENTER key, other keys generate event onDown/Up, but onKey event never occurs. Here is full source code: import android.app.Activity; import android.content.Intent;

[android-beginners] Re: Development Phone

2009-08-29 Thread Chris Stratton
On Aug 24, 9:09 am, Ran dahan...@gmail.com wrote: What is the benefit of working with ADP1 over the other Android phones ? Just to expand on what others have said: Cost seems comparable betwen a dev phone and a retail phone at full retail or plan price + termination fee, so it's really more

[android-beginners] Re: Developing application in Android

2009-08-29 Thread Roman ( T-Mobile USA)
For sure you already found the following page http://developer.android.com/index.html?utm_campaign=enutm_source=en-ha-na-us-bkutm_medium=ha Download the Android SDK for your system (Windowsm, Linux or Mac) I recommend to start playing around with the SDK. You find on the Android SDK page

[android-beginners] Re: Change system time

2009-08-29 Thread Roman ( T-Mobile USA)
Normally your phone gets the time information from your telephony layer using NITZ. The Ril layer passes the time information up to the higher level. I am assuming that you cannot change the time settings as a normal user. You might be able to change the time using the date command as root, but

[android-beginners] The server does not accept apks signed with the debug certificate.

2009-08-29 Thread cellurl
I am trying to upload an app to the ADC-2. http://market.android.com/adc/Home#EDIT_APPLICATION: It says my .adk is wrong. The server does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. The server requires that the certificate

[android-beginners] Re: unsubscribe from this group

2009-08-29 Thread Romain Guy
Just go to http://groups.google.com/group/android-beginners?hl=enpli=1 (URL shown at the bottom of every email you send/receive) and click Edit my Membership, then unsubscribe. No need to become rude and demanding. On Fri, Aug 28, 2009 at 11:49 AM, baskakovbaskakovea...@gmail.com wrote: Will

[android-beginners] Re: The server does not accept apks signed with the debug certificate.

2009-08-29 Thread Mark Murphy
cellurl wrote: I am trying to upload an app to the ADC-2. http://market.android.com/adc/Home#EDIT_APPLICATION: It says my .adk is wrong. The server does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. The server requires

[android-beginners] Re: The server does not accept apks signed with the debug certificate.

2009-08-29 Thread cellurl
Thanks for that. What I found was that I had 2 apk files workspaces/app.apk workspaces/app/bin/app.apk I was uploading the bin one and instead I needed to upload the top one. It took it. thanks jp On Aug 29, 3:52 pm, Mark Murphy mmur...@commonsware.com wrote: cellurl wrote: I am trying to

[android-beginners] When I hit a key I can't open the menu

2009-08-29 Thread Steeler
If I hit any key while my game runs, I can no longer open the built-in menu by clicking the menu button (on the emulator), hitting f2, or hitting page up... until I click on the screen on the emulator (not the emulator window, but specifically the emulator's screen). Then I can open the menu, and

[android-beginners] Mediaplay Problem

2009-08-29 Thread Nick Burton
Howdy all, this is a problem faced by an Android Australia group member. Since we're just starting out I've reposted here to get him a solution. Any help would be appreciated. Kind regards, Nick. -- Forwarded message -- hey guys, i got a bit a code in a resource utility class:  

[android-beginners] OverLookingSomething??

2009-08-29 Thread Rc3375
Hi All, I'm wondering if I'm overlooking something. I too am new with Android. Finally got all software installed and the paths fixed. Problem now is ECLIPSE(?) Is not generating the BUILD.xml file. Am I overlooking anything??? Thank you for your help..RC3375

[android-beginners] Re: When I hit a key I can't open the menu

2009-08-29 Thread Steeler
Never mind, fixed it. I had some issues with the return values on onKeyUp and onKeyDown. On Aug 29, 5:46 pm, Steeler cowboyd...@yahoo.com wrote: If I hit any key while my game runs, I can no longer open the built-in menu by clicking the menu button (on the emulator), hitting f2, or hitting