[android-beginners] Re: How can I use methods from an activity in other activities

2009-08-12 Thread Balwinder Kaur (T-Mobile USA)
Hamed3d, Nowhere in your code that you pasted do you have the final field hsudoku. If you mean htest instead of hsudoku, then you have not instantiated htest in the code you have pasted. If you create public static methods, it would work. Balwinder Kaur Open Source Development Center ·T· ·

[android-beginners] Re: App crashes when creating UI

2009-08-12 Thread Balwinder Kaur (T-Mobile USA)
What are you trying to accomplish here? If you are trying to create a UI for your Main Activity, there is really no need to create another Activity (BasicUI). I suggest you stick with the standard Android App programming paradigm and create one Activity for each User focused activity that you

[android-beginners] Re: Reference Guide

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
There are many discussion threads on this topic. Here is one that was recently discussed. http://groups.google.com/group/android-beginners/browse_thread/thread/167917e69eae4544/0ba18a9811a0474f?lnk=gstq=book#0ba18a9811a0474f Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick

[android-beginners] Re: Less than beginner ... completely clueless questions :)

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
Android Porting would be the correct group. http://groups.google.com/group/android-porting Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-beginners] Re: Problem with istallation Android on Eclipse

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
Try Window-Open Perspective-Java Browsing. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On

[android-beginners] Re: hi help me

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
A good place to start : http://developer.android.com/guide/index.html The classic Hello World Android App is available at http://developer.android.com/guide/tutorials/hello-world.html Good Luck Androiding ! Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views,

[android-beginners] Re: Dev 1 Phone Update..

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
The correct forum for this question would be : http://groups.google.com/group/Android-DevPhone-Updating And yes, the links work. I have successfully updated my ADP1 to 1.5 using the link you referred to. Good Luck ! Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together

[android-beginners] Re: Keypad helpers

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
If you add the line android:singleLine=True to you XML declaration. If you do that, the soft keyboard will show a Done button. If you don't want to do that, you can exit the keyboard using the backbutton key. Hope this helps, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick

[android-beginners] Re: Create Android background Service

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
Here is one way of doing it. Create an Activity - lets call it MyDialog. If you want it look like a Dialog, add android:theme=@android:style/Theme.Dialog to your activity tab in the AndroidManifest.xml file. Send periodic Intents from your service class using code something like Intent i = new

[android-beginners] Re: setting wallpaper..plz help.

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
You can set android:configChanges=orientation for your activity in the AndroidManifest.xml file. In your activity, override the onConfigurationChanged method. You can scale your image according to the orientation and set it accordingly. Balwinder Kaur Open Source Development Center ·T· ·

[android-beginners] Re: Controlling the ProgressBar

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
There was a similar problem discussed a few days back, except that a TextView was to be updated. Check out the source code here. http://groups.google.com/group/android-beginners/browse_thread/thread/2e614021697d15e/ec3bc0bce37cb3ef?q=handler#ec3bc0bce37cb3ef If you still have problems, post

[android-beginners] Re: Keypad helpers

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: If you add the line android:singleLine=True to you XML declaration. If you do that, the soft keyboard will show a Done button. If you don't want to do that, you can exit the keyboard using the backbutton key. Hope

[android-beginners] Re: font file change

2009-08-14 Thread Balwinder Kaur (T-Mobile USA)
You can add it to the folder : assets-fonts You can access it with the getAssets() method. You can create a font using the Typeface.createFromAsset(..) method. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those

[android-beginners] Re: The application XXXX(process com.example.XXXX) has stopped unexpectedly

2009-08-18 Thread Balwinder Kaur (T-Mobile USA)
Please check your logcat output. It would give you the pointers. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-beginners] Re: why I can't use movieview to play the movie came from the internet?

2009-08-25 Thread Balwinder Kaur (T-Mobile USA)
You have not setup the MediaPlayer properly that is why you have an error. Could you please post your code ? Also, I guess you mean VideoView not MovieView (although I do some references to a MovieView in the documentation for MediaStore) Balwinder Kaur Open Source Development Center ·T· ·

[android-beginners] Re: why I can't use movieview to play the movie came from the internet?

2009-08-26 Thread Balwinder Kaur (T-Mobile USA)
);                     intent.setAction(Intent.ACTION_VIEW);                     startActivity(intent); url is a internet address begin with http://; orrtsp://. _ On Aug 25, 11:26 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t

[android-beginners] Re: OverLookingSomething??

2009-08-30 Thread Balwinder Kaur (T-Mobile USA)
No, you are not. A build.xml does not show up in your Eclipse Android project. You can use the instructions at http://developer.android.com/guide/developing/eclipse-adt.html#RunningAnApplication to run your app. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The

[android-beginners] Re: virtual keyboard

2009-09-01 Thread Balwinder Kaur (T-Mobile USA)
http://android.git.kernel.org/?p=platform/development.git;a=tree;f=samples/SoftKeyboard;hb=cupcake Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-beginners] Re: virtual keyboard

2009-09-01 Thread Balwinder Kaur (T-Mobile USA)
of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 1, 2:48 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: http://android.git.kernel.org/?p=platform/development.git;a=tree;f=sa... Balwinder Kaur Open Source

[android-beginners] Re: How to send uppercase letter using InstrumentationTestCase.sendKeys() ?

2009-09-02 Thread Balwinder Kaur (T-Mobile USA)
Did you try KEYCODE_SHIFT_LEFT or KEYCODE_SHIFT_RIGHT ? Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-beginners] Re: Have anyone used mediaplayer to run rtsp streaming successfully either on the emulator or on the HTC device?

2009-09-16 Thread Balwinder Kaur (T-Mobile USA)
Here is a related thread http://groups.google.com/group/android-developers/browse_thread/thread/0dcefbbd59ac638d This piece of code works on a HTC device. public class AMLRTSTPStreaming extends Activity implements

[android-beginners] Re: When does one start to develop for 1.6?

2009-09-16 Thread Balwinder Kaur (T-Mobile USA)
Now would be a time as good as any to start developing apps with the SDK 1.6 and new Level 4 APIs. As per the Google official blog, devices with 1.6 will start appearing in October. http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here.html. Balwinder Kaur Open Source

[android-beginners] Re: How to use MediaStore to get content URI of audio file saved in sdcard ?

2009-09-16 Thread Balwinder Kaur (T-Mobile USA)
Environment.getExternalStorageDirectory() to get a File. And Uri.fromFile(File f) to get the Uri. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-beginners] Re: Scroll image like a WebView

2009-09-22 Thread Balwinder Kaur (T-Mobile USA)
You are right. ScrollView only supports vertical scrolling and HoriontalScrollView supports horizontal scrolling. Since WebView scrolls like you want to it, why don't use it ? WebView w = (WebView)findViewById(R.id.webkit); w.loadUrl(http://www.android.com/goodies/android_vector.jpg;); Use the

[android-beginners] Re: Syntax error with function

2009-09-23 Thread Balwinder Kaur (T-Mobile USA)
Then probably you are not using 1.6 SDK, because invalidateAllKeys() is a level 4 API. I suggest you check Eclipse-Preferences-Android- SDK Location. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the

[android-beginners] Re: EditText

2009-09-23 Thread Balwinder Kaur (T-Mobile USA)
Can you post the code you used to programmatically create an EditText ? The following code snippet in an activity does what you want it to do. EditText e = new EditText(this); ViewGroup.LayoutParams vw = new ViewGroup.LayoutParams (ViewGroup.LayoutParams.FILL_PARENT,

[android-beginners] Re: Sense UI

2009-09-23 Thread Balwinder Kaur (T-Mobile USA)
You can check out differences from 1.6 and 1.5 http://developer.android.com/sdk/api_diff/4/changes.html The platform highlights are here: http://developer.android.com/sdk/android-1.6-highlights.html Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-09-23 Thread Balwinder Kaur (T-Mobile USA)
I assume you mean Android SDK 1.6, not JDK 1.6. Thanks for sharing the information and you can check out a presentation made at Google I/O this year on Battery Life http://code.google.com/events/io/sessions/CodingLifeBatteryLife.html Balwinder Kaur Open Source Development Center ·T· · ·Mobile·

[android-beginners] Re: How to call built-in camera application from my app??

2009-09-23 Thread Balwinder Kaur (T-Mobile USA)
There are a lot of good tutorials/examples on the web on using Intents. If you post your code using Intents, someone will help you get started. If you are using Android, you should be familiar with Intents. Thanks, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The

[android-beginners] Re: onKeyboardActionListener vs onKeylistener

2009-09-23 Thread Balwinder Kaur (T-Mobile USA)
, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Did you try hitting the backbutton on the emulator ( that would remove virtual keyboard) and see if EditBox B gets updated or not ? I think it should. If not, please past your code here, so folks can take a look

[android-beginners] Re: onKeyboardActionListener vs onKeylistener

2009-09-24 Thread Balwinder Kaur (T-Mobile USA)
in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 23, 9:54 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: hmm..I don't know what is going in your environment. For me (using SDK 1.5) Your code as is,  works too. When I hit

[android-beginners] Re: is it possible to receive incoming call automatically?

2009-09-25 Thread Balwinder Kaur (T-Mobile USA)
Intercepting an incoming call is not supported officially from the SDK, which does not mean that folks are not using hacks to do just the same, as many apps on the market will show you. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements

[android-beginners] Re: java.util.prefs.Preferences doesn't work on device?

2009-09-25 Thread Balwinder Kaur (T-Mobile USA)
There is also android.content.SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-beginners] Re: Accessing SharedPreferences from Services and non-Activities

2009-09-25 Thread Balwinder Kaur (T-Mobile USA)
The app context object is not available in the constructor. Try moving that code in the onbind or onStart callback methods. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-beginners] Re: problem in services

2009-10-06 Thread Balwinder Kaur (T-Mobile USA)
Service is a faceless UI-less application component. You need a trigger to start it, either from an Activity which then may go away or in response to a broadcast intent from a BroadcastReceiver that may call the Service's startService method. (Note, you can't bind to the service from a broadcast

[android-beginners] Re: Doubt

2009-10-07 Thread Balwinder Kaur (T-Mobile USA)
or is it the classic OO Parking lot design problem that needs to be done in Android :) ? http://stackoverflow.com/questions/764933/amazon-interview-question-design-an-oo-parking-lot You will find plenty of solutions online if you search for it. If there is help you need with Android, please

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-07 Thread Balwinder Kaur (T-Mobile USA)
int rid = getResources().getIdentifier(pic_ + input, drawable, your_package_name); Drawable d = getResources().getDrawable(rid); You may check out the file MBellishClipartSelector.java from http://codecamp.pbworks.com/EmbellishYourPictures-BuildanApplicationforanAndroidPhone-2009 Balwinder

[android-beginners] Re: How to get resource path?

2009-10-08 Thread Balwinder Kaur (T-Mobile USA)
getResources().openRawResourceFd(int id) Get the FileDescriptor for the file and use MediaPlayer.setDataSource (FileDescriptor fd) method. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-beginners] Re: View id names for native android layouts

2009-10-13 Thread Balwinder Kaur (T-Mobile USA)
You can check out the source code file that gives you insights into the layout file for simple_list_item_checked http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/layout/simple_list_item_checked.xml;h=95612f63f3144703913aee3f0d06e032074b8f0b;hb=HEAD It uses the

[android-beginners] Re: Log.d() show same log twice in logcat

2009-10-13 Thread Balwinder Kaur (T-Mobile USA)
What's your development environment setup like ? Do you have two devices/emulators talking to each other and running the same app ? Are you using DDMS ? I have seen something like this when I had two phones connected via USB to my laptop and was using DDMS/logcat to view the output. Balwinder

[android-beginners] Re: ContentURI cannot be resolved HELP ME ............

2009-10-13 Thread Balwinder Kaur (T-Mobile USA)
1. Class name is ContentUris, not ContentURI 2. Package name for ContentUris is android.content.ContentUris 3. Try using android.net.Uri or the android.net.Uri.Builder; ContentUris are for those Uris that have a scheme of content Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick

[android-beginners] Re: Build android middleware code for emulator

2009-10-13 Thread Balwinder Kaur (T-Mobile USA)
The instructions for building android source code is available at source.android.com and the forum for discussing problems related to those are http://groups.google.com/group/android-platform Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and

[android-beginners] Re: why use onCreateDialog?

2009-10-14 Thread Balwinder Kaur (T-Mobile USA)
The answer to your question is part of the documentation :) Read under the topic Showing a Dialog http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse

2009-10-14 Thread Balwinder Kaur (T-Mobile USA)
In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file everytime modifications are made. The Clean... option is also there under Project. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and

[android-beginners] Re: Problems with WakeLock

2009-10-15 Thread Balwinder Kaur (T-Mobile USA)
Could you please post the rest of your code - or at least the portion where you call finish. I can't reproduce your problem with the information that is present. Also, what version of the SDK are you using and where are you seeing this problem..on a device (which one) or the emulator (which

[android-beginners] Re: Problems with WakeLock

2009-10-16 Thread Balwinder Kaur (T-Mobile USA)
();                 }             } out side of the calls posted it doesn't really do very much it's just a display;ay at the moment. On 15 Oct, 18:13, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Could you please post the rest of your code - or at least the portion where you

[android-beginners] Re: Controlling who and when can access for a Service and Waiting for Android Threads to finish

2009-10-19 Thread Balwinder Kaur (T-Mobile USA)
One solution for question 1 is : Maintain a state machine internal to your Service. If your service is not in ready state, calls to bindService can return false and calls to startService can ignore the request. Balwinder Kaur ·T· · ·Mobile· stick together The views, opinions and statements in

[android-beginners] Re: Listner for Click and Touch events:

2009-10-20 Thread Balwinder Kaur (T-Mobile USA)
So you want to capture touch and click events that are not meant for your application ? I don't believe that is possible using the SDK. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-beginners] Re: Dialogbox title doesn't allow other controls to go up

2009-10-20 Thread Balwinder Kaur (T-Mobile USA)
It is requestWindowFeature (Window.FEATURE_NO_TITLE) this snippet will do the trick... @Override protected Dialog onCreateDialog(int id) { Dialog d = new Dialog(this); d.requestWindowFeature(Window.FEATURE_NO_TITLE); d.setTitle(You shouldn't see this); //

[android-beginners] Re: Dynamic text movement

2009-10-20 Thread Balwinder Kaur (T-Mobile USA)
You can use methods like setGravity. You may have to create an onKeyListener and override the onKey method. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and

[android-beginners] Re: I Need Help Setting Up My ADB On MY Mac

2009-10-21 Thread Balwinder Kaur (T-Mobile USA)
do which adb to see if it is on your path. If not you may have to specify it. Balwinder Kaur Senior Mobile Software Engineer ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-beginners] Re: Update 1.6

2009-10-23 Thread Balwinder Kaur (T-Mobile USA)
This is a developer forum for Android SDK issues. However, to assist you, your options are: 1. Contact Vodafone Tech support, if you want the official update. This is the safe, official, and probably easiest way. If you want to have some hacking fun and can live with the thrill/risk of

[android-beginners] Re: can't launch intent + debug problem, Source not found

2009-12-01 Thread Balwinder Kaur (T-Mobile USA)
What version of Android are using and what hardware platform are you running on ? Balwinder Kaur Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-beginners] Re: can't launch intent + debug problem, Source not found

2009-12-01 Thread Balwinder Kaur (T-Mobile USA)
, and do not necessarily represent those of T-Mobile USA, Inc. On Dec 1, 7:34 am, Marton Kodok pentiu...@gmail.com wrote: android 2.0 windows 7 on 64 bit, with Java Android setup for 32 bit 2009/12/1 Balwinder Kaur (T-Mobile USA) balwinder.k...@t-mobile.com What version of Android are using