[android-beginners] Re: Issues with Hello World

2009-06-09 Thread Sheng-Yi Shih
Hi,

I also have the same problem. When I ran this program, it just launch
the android emulator
and showed nothing but the android on the screen. There is no Hello
Android on the screen.
I tried to press all the keys on the screen but there is still no reaction.
The code i am running is as
follows. I also put the log here. Please help me to figure out how to start
from here. Thanks.


Jude



Log
[2009-06-08 22:56:40 - HelloWorld1] --
[2009-06-08 22:56:40 - HelloWorld1] Android Launch!
[2009-06-08 22:56:40 - HelloWorld1] adb is running normally.
[2009-06-08 22:56:40 - HelloWorld1] Performing com.example.HelloWorld1.hello
activity launch
[2009-06-08 22:56:40 - HelloWorld1] Automatic Target Mode: launching new
emulator with compatible AVD 'adv15'
[2009-06-08 22:56:40 - HelloWorld1] Launching a new emulator with Virtual
Device 'adv15'
[2009-06-08 22:56:47 - HelloWorld1] New emulator found: emulator-5554
[2009-06-08 22:56:47 - HelloWorld1] Waiting for HOME
('android.process.acore') to be launched...

Code

package com.example.HelloWorld1;

import android.app.Activity;
import android.os.Bundle;




import android.widget.TextView;

public class hello extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText(Hello, Android);
   setContentView(tv);
   }
}

2009/6/8 Jack Ha jack...@t-mobile.com


 Do you see any error messages in the Console?


 --
 Jack Ha
 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 Jun 6, 7:03 pm, Fahd fahdb...@gmail.com wrote:
  Hi All,
 
  I am following the hello world example and when I run it through
  eclipse, the emulater starts showing android...
  then it comes in to the system and asks me to press menu to unlock.
  When I do it, it justs unlocks but there no helloworld or application
  window, just the normal android desktop! Am I missing somthing??
 
  Following is the code I am running (which is the copy of the example)
 
  package com.example.helloandroid;
 
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.TextView;
 
  public class HelloAndroid extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  TextView tv = new TextView(this);
  tv.setText(Hello, Android);
  setContentView(tv);
  //setContentView(R.layout.main);
  }
 
  }
 
  Why isnt the helloworld window coming?? Any help plss
 
  Fahd
 


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Looking for Android Developers

2009-06-09 Thread Nithin

Hi,

Developers who are looking for android jobs can send their profile to
cont...@androidindians.com We will get back to you immediately.

Thanks
Nithin
www.androidindians.com
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Looking for Android Developers

2009-06-09 Thread Sujay Krishna Suresh
Hi,
 i'm interested... but is the work online?? n is it full-time or
pass-time???
'm a  student so cant be a fulltime employee... N i study @
Coimbatore,TamilNadu...
If u hv any requirement for me jus lemme no... 'll send in my resume...

On Tue, Jun 9, 2009 at 12:38 PM, Nithin nithin.war...@gmail.com wrote:


 Hi,

 Developers who are looking for android jobs can send their profile to
 cont...@androidindians.com We will get back to you immediately.

 Thanks
 Nithin
 www.androidindians.com
 



-- 
Regards,
Sujay
Steven Wrighthttp://www.brainyquote.com/quotes/authors/s/steven_wright.html
- It's a small world, but I wouldn't want to have to paint it.

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator not showing on screen from cmd.

2009-06-09 Thread David Turner
On Sat, Jun 6, 2009 at 3:01 PM, timberwo7ves timberwo7...@gmail.com wrote:


 Using the emulator -avd testavd command, where 'testavd' is the name
 of my AVD, a list of the syntax for using the emulator came up in the
 cmd window, an instance of the JavaFX SDK 1.1 Device Manager started
 up, but the actual emulator window did not appear, though the tutorial
 says that a window should pop up.


I'm pretty sure that JavaFX SDK has nothing to do with Android :-)
Maybe you have a JavaFX emulator program in your path, and that this is
what is being called?



 ideas appreciated :)

 


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] SMS

2009-06-09 Thread janardhan

hi
this is janardhan
i am trying one application i.e.,client and server application.
can any one guide me how to write it in android.


Thanks and regaards
jana
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Network query apis

2009-06-09 Thread bobby

Hi,

Could anyone please let me know how to monitor network traffic on
android? I am looking to calculate the data usage of my emails(gmail)
on android phone.

I am looking for
1. The INTENT FILTER name to register to listen for email activity.
2. How to query for attachment?

Generally, how to monitor any network traffic? Any pointers would be
helpful.

Thanks,
Bobby

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Socket connection

2009-06-09 Thread iuiz

Hi,
I am currently writing an app, that uses Sockets to communicate. I
create Socket using the following:

Socket sock = new Socket(123.123.123.123, 13267);

The Server runs on a Vista Machine.

The Problem is, that when I use Wlan and the Android Handy is in the
same Network as the Vista Server, there are no problems. But if I turn
Wlan off and use the internet IP of the Vista PC, it won't work. I
also opened the Port in the Vista Firewall.

Do I have to give explicit Permissions? I already have uses-
permission android:name=android.permission.INTERNET /uses-
permission in the manifest.

Thx,
iuiz
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Issues with Hello World

2009-06-09 Thread jbrohan

[2009-06-09 07:32:04 - HelloAndroid-test]
--
[2009-06-09 07:32:04 - HelloAndroid-test] Android Launch!
[2009-06-09 07:32:04 - HelloAndroid-test] adb is running normally.
[2009-06-09 07:32:04 - HelloAndroid-test] Performing
com.example.helloandroid.HelloAndroid activity launch
[2009-06-09 07:32:04 - HelloAndroid-test] Automatic Target Mode:
launching new emulator with compatible AVD 'c3pio'
[2009-06-09 07:32:04 - HelloAndroid-test] Launching a new emulator
with Virtual Device 'c3pio'
[2009-06-09 07:32:12 - HelloAndroid-test] New emulator found:
emulator-5554
[2009-06-09 07:32:12 - HelloAndroid-test] Waiting for HOME
('android.process.acore') to be launched...
[2009-06-09 07:32:57 - HelloAndroid-test] HOME is up on device
'emulator-5554'
[2009-06-09 07:32:57 - HelloAndroid-test] Uploading HelloAndroid-
test.apk onto device 'emulator-5554'
[2009-06-09 07:32:58 - HelloAndroid-test] Installing HelloAndroid-
test.apk...
[2009-06-09 07:33:21 - HelloAndroid-test] Application already exists.
Attempting to re-install instead...
[2009-06-09 07:33:28 - HelloAndroid-test] Success!
[2009-06-09 07:33:28 - HelloAndroid-test] Starting activity
com.example.helloandroid.HelloAndroid on device
[2009-06-09 07:33:31 - HelloAndroid-test] ActivityManager: Starting:
Intent { comp={com.example.helloandroid/
com.example.helloandroid.HelloAndroid} }
[2009-06-09 07:33:32 - HelloAndroid-test] Attempting to connect
debugger to 'com.example.helloandroid' on port 8611
[2009-06-09 07:33:33 - HelloAndroid-test] Launch error: Failed to
connect to remote VM. Connection refused.


This is the log in my console. It tracks yours very well as far as
Uploading HelloAndroid-test.apk onto device 'emulator-5554'
I'm new myself, maybe it's an issue of the apk (executable bytecode)
not being in the right place. Are you operating in Vista Program Files
folder...very wierd things happen there, It's likely better off in
another folder altogether.

All this being said...I can't get my debigger started so if any other
beginner has overcome tis I'd be glad to hear.

Yours Sincerely
John
On Jun 9, 2:07 am, Sheng-Yi Shih jude.sis...@gmail.com wrote:
 Hi,

 I also have the same problem. When I ran this program, it just launch
 the android emulator
 and showed nothing but the android on the screen. There is no Hello
 Android on the screen.
 I tried to press all the keys on the screen but there is still no reaction.
 The code i am running is as
 follows. I also put the log here. Please help me to figure out how to start
 from here. Thanks.

 Jude

 
 Log
 [2009-06-08 22:56:40 - HelloWorld1] --
 [2009-06-08 22:56:40 - HelloWorld1] Android Launch!
 [2009-06-08 22:56:40 - HelloWorld1] adb is running normally.
 [2009-06-08 22:56:40 - HelloWorld1] Performing com.example.HelloWorld1.hello
 activity launch
 [2009-06-08 22:56:40 - HelloWorld1] Automatic Target Mode: launching new
 emulator with compatible AVD 'adv15'
 [2009-06-08 22:56:40 - HelloWorld1] Launching a new emulator with Virtual
 Device 'adv15'
 [2009-06-08 22:56:47 - HelloWorld1] New emulator found: emulator-5554
 [2009-06-08 22:56:47 - HelloWorld1] Waiting for HOME
 ('android.process.acore') to be launched...

 Code

 package com.example.HelloWorld1;

 import android.app.Activity;
 import android.os.Bundle;

 import android.widget.TextView;

 public class hello extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText(Hello, Android);
setContentView(tv);
}

 }

 2009/6/8 Jack Ha jack...@t-mobile.com



  Do you see any error messages in the Console?

  --
  Jack Ha
  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 Jun 6, 7:03 pm, Fahd fahdb...@gmail.com wrote:
   Hi All,

   I am following the hello world example and when I run it through
   eclipse, the emulater starts showing android...
   then it comes in to the system and asks me to press menu to unlock.
   When I do it, it justs unlocks but there no helloworld or application
   window, just the normal android desktop! Am I missing somthing??

   Following is the code I am running (which is the copy of the example)

   package com.example.helloandroid;

   import android.app.Activity;
   import android.os.Bundle;
   import android.widget.TextView;

   public class HelloAndroid extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText(Hello, Android);
   

[android-beginners] Re: SMS

2009-06-09 Thread Balwinder Kaur (T-Mobile)

Hi Janardhan,

You should start with setting up your Eclipse Dev Environment for
Eclipse if you haven't already done that.
http://developer.android.com/guide/developing/eclipse-adt.html

If you know how to create a basic Hello World Android app, you may
skip this step.
If not, follow it at 
http://developer.android.com/guide/tutorials/hello-world.html

There is also a tutorial at 
http://developer.android.com/guide/tutorials/notepad/index.html

Very simply, the client could be an Android Activity or Service. (You
may look up more application components at
http://developer.android.com/guide/topics/fundamentals.html)

It can communicate with the server using Java Network programming
fundamentals.

Most of what you would need is available at http://developer.android.com


Hope this helps. If not, please be slightly more explicit about what
it is that you are specifically looking for.

Balwinder Kaur
Senior Mobile Software Engineer
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 Jun 9, 2:17 am, janardhan vuruvakilina...@gmail.com wrote:
 hi
 this is janardhan
 i am trying one application i.e.,client and server application.
 can any one guide me how to write it in android.

 Thanks and regaards
 jana
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: SMS

2009-06-09 Thread Balwinder Kaur (T-Mobile)

Hi Janardhan,

Could you please provide more details about what you are looking to do
in your client-server application ?

If you are looking to do SMS messaging in Android, here is a link that
may help http://mobiforge.com/developing/story/sms-messaging-android

You may also check out the SmsManager Class at
http://developer.android.com/reference/android/telephony/gsm/SmsManager.html
and how to use the Emulator for that at
http://developer.android.com/guide/developing/tools/emulator.html

Hope this helps. If not, please be slightly more explicit about what
it is that you are specifically looking for, so that we may be able to
assist you.

Balwinder Kaur
Senior Mobile Software Engineer
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 Jun 9, 2:17 am, janardhan vuruvakilina...@gmail.com wrote:
 hi
 this is janardhan
 i am trying one application i.e.,client and server application.
 can any one guide me how to write it in android.

 Thanks and regaards
 jana
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: OpenGL View on top of Camera

2009-06-09 Thread MrSnowflake

Yeah, it would be nice to tell people how you did it.

On May 3, 12:30 am, Carl H. charr...@gmail.com wrote:
 Hello Julius,

 did you manage to make it work? The following post doubts the
 possibility of enabling 2 
 SurfaceViews:http://groups.google.com/group/android-developers/browse_thread/threa...

 Could you post your code by any chance.

 Cheers,
 Carl

 On Apr 27, 3:41 am, Julius Spencer jul...@msa.co.nz wrote:

  Hi,

  Apologies - no sooner than I send it and I get it going. :)

  Julius.

  On 27/04/2009, at 1:32 PM, Julius Spencer wrote:

   Hi,

   I am trying to add an OpenGL View on top of a camera preview View but
   I'm getting unexpected results (I can't see the OpenGL object).

   I'm probably missing (not understanding) something obvious. :)

   Either View works on its own and I can add a simple Canvas to the
   preview just not the OpenGL View.

   super.onCreate(savedInstanceState);

   // Hide the window title.
   requestWindowFeature(Window.FEATURE_NO_TITLE);

   // Create our Preview view and set it as the content of our activity.
   mPreview = new Preview(this);
   mGLView = new GLSurfaceView(this);
   mGLView.setRenderer(new CubeRenderer(true));

   setContentView(mPreview);

   addContentView(mGLView, new LayoutParams(LayoutParams.WRAP_CONTENT,
   LayoutParams.WRAP_CONTENT));

   Thanks for any help / education.

   Cheers,
   Julius.
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Built-In Search Bar Widget??

2009-06-09 Thread Rick

I am building an application that will allow users to query a database
via a search bar, and have been looking to see if there is a cleaner
way to do this besides just an EditText view and a Button next to each
other. (had something along the lines of the iPhone's search bar in
mind)

If not, then I'll just keep trying things until I find something I
like.

Appreciate any responses.


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Runtime Exception error, please help...my app does not run.

2009-06-09 Thread jeremy...@hotmail.com

hi all,

this test code is to display a spinner, and adds an item, which is a
snapshot of a webview site (eg. http://www.yahoo.com , etc.

I am unable to get it to run/display on android emulator, and it shows
a runtime exception in my eclipse plugin debugger.

I am new to this, so your help is greatly appreciated.
-jeremy

--- code -


import java.io.ByteArrayOutputStream;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Picture;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.Spinner;


public class ws extends Activity {
/** Called when the activity is first created. */

public Spinner spinner;
public WebView wv;
public ImageView img;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.initSpinner();
setContentView(R.layout.slidex);
//this.initSpinner();

}


public void initSpinner()
{
this.spinner = (Spinner)this.findViewById(R.id.spinner1);
this.wv = new WebView(this);

this.wv.loadUrl(http://www.yahoo.com;);
this.img = new ImageView(this);
this.img.setMaxHeight(100);
this.img.setMaxWidth(50);
Picture pic = this.wv.capturePicture();
ByteArrayOutputStream bs = new ByteArrayOutputStream();
pic.writeToStream(bs);
byte [] bdata = bs.toByteArray();
int [] idata = new int[bdata.length+1];
this.img.setImageBitmap(Bitmap.createBitmap(idata,50,100,
Bitmap.Config.ALPHA_8));
//this.img.setImageURI(pic);

  //ArrayAdapter adapter = new ArrayAdapter
(this,R.id.spinner1);
  //adapter.add(this.img);
try {
this.spinner.addView(this.img);
}catch(RuntimeException rt)
{
rt.printStackTrace();
}


}

}

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Where I can get royalty free pictures?

2009-06-09 Thread Andrew Li

Hello, everyone!
I made a game recently. and I need some pictures, I searched on the
internet. But most of them are not allowed to use into the Mobile
devices or applications. Does anyone know where I can get royalty free
pictures? Please tell me!
Thanks!!!

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-06-09 Thread tienwai

I had a similar problem and had tried all the methods mentioned above
and it still did not work. However, I noticed that my registry entries
are starting with vid_0bb4pid_0c03 instead of vid_0bb4pid_0c02.
It seems to me that my product id is different from the one in the SDK
and that could be why it did not work.  Can anyone advise on this?

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Issues with Hello World

2009-06-09 Thread safetykid

I am getting something similar, except every so often it will work. I
am using the notepad tutorials and my avd is called avd. here is the
output in the eclipse console:
[2009-06-08 21:47:29 - Notepadv1] Android Launch!
[2009-06-08 21:47:29 - Notepadv1] adb is running normally.
[2009-06-08 21:47:29 - Notepadv1] Performing
com.android.demo.notepad1.Notepadv1 activity launch
[2009-06-08 21:47:29 - Notepadv1] Automatic Target Mode: Preferred AVD
'avd' is not available. Launching new emulator.
[2009-06-08 21:47:29 - Notepadv1] Launching a new emulator with
Virtual Device 'avd'


and it stops there, like I said every so often it will continue and
deploy the app onto the emulator, but the majority of the time it just
loads the home screen, with the alarm clock and the messaging services
crashing

On Jun 8, 9:40 pm, Jack Ha jack...@t-mobile.com wrote:
 Do you see any error messages in the Console?

 --
 Jack Ha
 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 Jun 6, 7:03 pm, Fahd fahdb...@gmail.com wrote:

  Hi All,

  I am following the hello world example and when I run it through
  eclipse, the emulater starts showing android...
  then it comes in to the system and asks me to press menu to unlock.
  When I do it, it justs unlocks but there no helloworld or application
  window, just the normal android desktop! Am I missing somthing??

  Following is the code I am running (which is the copy of the example)

  package com.example.helloandroid;

  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.TextView;

  public class HelloAndroid extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  TextView tv = new TextView(this);
  tv.setText(Hello, Android);
  setContentView(tv);
  //setContentView(R.layout.main);
  }

  }

  Why isnt the helloworld window coming?? Any help plss

  Fahd



--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] downloadable application packaging

2009-06-09 Thread coldskull

I have an app which displays certain image files that I pre-package
into my res/drawable folder.  Ideally, I want users to be able to buy
new update-packs for this app (which would contain image files).
What is the best / easiest / standardized way to do this. ?

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Click on MapView return Dialog/Alert Long/Latitude

2009-06-09 Thread Georgy

Hello,

this should be simple but somehow I can't get it to work!!

I have a simple map application, how can I get a dialog when the user
clicks on the map to whenever the user click somewhere a dialog opens
up returning longitude and latitude.

(something with OnClickListener)

thanks

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] My ADP won't load! Can't get to recovery or fastboot either! No SPL at all just blue led

2009-06-09 Thread Antonio

Hi, i just did something very bad to my G1 and i can't pass the very
first screen that reads android + logo, no access to SPL at all:
- HOME+POWER won't get me to recovery mode
- BACK+POWER won't get me to fastboot either
- CAMERA+POWER won't get me anywhere!

The only thing i'm able to do is SCROLL+POWER that gets me to a BLUE
LED, but blank screen.

Anything else i do, my ADP freezes at the very first screen!

If i connect to my PC using the USB cable the LED lights up with the
AMBER charging color.

Anyone knows anything i can do to make my ADP revive? Or is my ADP
dead for good?

What i did to get to this state: I've tried to downgrade the RADIO
(OTA) to the 1.1 version encountered in HTC website.

Thanks

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Questions about getConfiguration

2009-06-09 Thread nikki

Hi you all Android developers here,

I'm confused about whether to use the getConfiguration in
Settings.System even its definition actually seems only get the font
scale instead of the whole config, or to use the getConfiguration in
ActivityManagerNative whose definition seems actually return the whole
config but belongs to the internal APIs which as far as I know is
still not officially supported.
Or maybe I misunderstood either one of these 2 definitions?


Thanks a lot to any possible thoughts and answers!!!

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Syntax error on token ...... (newb)

2009-06-09 Thread coldskull

I am playing around with android using the eclipse plugin. I have a
basic layout (main.xml) which has a ImageView.

RelativeLayout android:id=@+id/RelativeLayout01
android:layout_width=fill_parent android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
ImageView android:id=@+id/ImageView01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_centerInParent=true android:src=@drawable/
2316840057_7d197ddd0f_m/ImageView
Spinner android:layout_width=wrap_content android:id=@+id/
Spinner01 android:layout_height=wrap_content
android:layout_centerHorizontal=true
android:layout_alignParentBottom=true/Spinner
Button android:layout_toRightOf=@+id/Spinner01
android:layout_width=wrap_content
android:layout_height=wrap_content android:id=@+id/Button02
android:text=Button02 android:layout_alignParentBottom=true
android:layout_alignParentRight=true/Button
Button android:layout_toLeftOf=@+id/Spinner01
android:layout_width=wrap_content
android:layout_height=wrap_content android:id=@+id/Button01
android:text=Button01 android:layout_alignParentBottom=true
android:layout_alignParentLeft=true/Button

/RelativeLayout




I copied a sample jpg file in the the res/drawable directory and I
reference it from the main.xml, The 'layout' view of the main.xml
looks fine in eclipse (i can see the image i copied). But I cant
compile/run my program in the emulator because of errors in the R.java
file. Here is my activity:

import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.TextView;

public class FlashStart extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
}
}





Here is my R.java:

public final class R {
public static final class attr {
}
public static final class drawable {
public static final int 2316840057_7d197ddd0f_m=0x7f02;
public static final int icon=0x7f020001;
}
public static final class id {
public static final int Button01=0x7f050004;
public static final int Button02=0x7f050003;
public static final int ImageView01=0x7f050001;
public static final int RelativeLayout01=0x7f05;
public static final int Spinner01=0x7f050002;
}
public static final class layout {
public static final int main=0x7f03;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int hello=0x7f04;
}
}


The error I get is: Syntax error on token 2316840057, delete this
token.



--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Can't get hello android printed

2009-06-09 Thread dayfrom

Try to launch your hello app again

On Jun 7, 10:17 am, Fahd fahdb...@gmail.com wrote:
 Hi All,

 I am following the hello world example and when I run it through
 eclipse, the emulater starts showing android...
 then it comes in to the system and asks me to press menu to unlock.
 When I do it, it justs unlocks but there no helloworld or application
 window, just the normal android desktop! Am I missing somthing??

 Following is the code I am running (which is the copy of the example)

 package com.example.helloandroid;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.TextView;

 public class HelloAndroid extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         TextView tv = new TextView(this);
         tv.setText(Hello, Android);
         setContentView(tv);
         //setContentView(R.layout.main);
     }

 }

 Why isnt the helloworld window coming?? Any help plss

 Fahd

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Eclipse debug port problem (8700)

2009-06-09 Thread axl.cookb...@gmail.com

Hi!

I try to install Android sdk (latest version) on my Ubuntu Hardy box
with eclipse 3.4. I followed the guide but when i open eclipse I have
an error message:

Could not open Selected VM debug port (8700). Make sure you do not
have another instance of DDMS or of the eclipse plugin running. If
it's being used by something else, choose a new port number in the
preferences.

I try with netstat but the port 8700 not seems used...

Any idea?

Thank you

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Need to know if it can access the USB as a com port

2009-06-09 Thread kgulzar

I have gone through the documents and found that there is a linux
kernel running.
according to the capabilities of the linux if i plug in the USB to
serial converter it should detecte it as a com port such as /dev/
ttyUSBX...

So by using the SDK can i access the Serial port some how?

I read that the usb signals are detected as a mass storage device
connectivity or power connected signals but what about the above
mentioned task?

The documentation also says there are C++ libraries inside but the sdk
sample codes are in java. is it possible to access using C++?

BR

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Issues with Hello World

2009-06-09 Thread Zombie

press the menu one more timeyou'll get it

On Jun 7, 7:03 am, Fahd fahdb...@gmail.com wrote:
 Hi All,

 I am following the hello world example and when I run it through
 eclipse, the emulater starts showing android...
 then it comes in to the system and asks me to press menu to unlock.
 When I do it, it justs unlocks but there no helloworld or application
 window, just the normal android desktop! Am I missing somthing??

 Following is the code I am running (which is the copy of the example)

 package com.example.helloandroid;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.TextView;

 public class HelloAndroid extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         TextView tv = new TextView(this);
         tv.setText(Hello, Android);
         setContentView(tv);
         //setContentView(R.layout.main);
     }

 }

 Why isnt the helloworld window coming?? Any help plss

 Fahd

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem with Hello World

2009-06-09 Thread vkroz

Just wait few minutes -- it may take a time a while to launch emulator
first time.

On Jun 6, 9:35 am, maurizio.bellemo maurizio.bell...@gmail.com
wrote:
 Hi all

 I'm rookie I tried to run the hello app in Android developers...
 (after having installed the SDK, Eclipse and the plugin for
 Android) There are two problems

 1 - When creating a project it appears an error like
     classfile error
     dalvik machine error 1

 2 - When I run the application, the android phone appears, but there
 is no hello world app... there is simply this android phone with all
 the widgets inside the google search bar but no app

 Can u help me?

 thks
 Bye Maurizio

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Beginner Help needed

2009-06-09 Thread Robert Meza

I am very new to the Android SDK, I cannot get the emulator to run, I
have looked to the community board and I cannot figure out how to
create and AVD file/folder, where am I suppose to create this? I just
want to run the emulator so I can test the browser, I do not want to
create any embedded applictaions, please please help, every time I do,
android creat avd... it says command not found, please please help!

-- 
Robert Meza
robertm...@gmail.com
916.205.1726

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to test the andriod ported on a new hardware

2009-06-09 Thread Sri

Hi All,

am new to this platform, and would like to know how to test the
android when it is ported on the new hardware, is there any test suit
available something like LTP?

Please help me on this.

Thanks in anticipation.

Regards,
-Sri

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: latest adt broken?

2009-06-09 Thread johann_fr

Same error, just using the new Android project wizard, open res/layout/
main.xml, ctrl-space anywhere in the file = error occurs.

I noticed that the layout view in the editor is not working too...

Config :  Eclipse 3.4.2, Windows XP, Android SDK 1.5r2

On 7 juin, 20:41, dana dana...@gmail.com wrote:
 yes, i got the same error.

 Any project says

 [2009-06-07 11:35:03 - TestAndriod] Unknown error:
 java.lang.NullPointerException
 while doing a build for ANY project

 I am using Eclipse 3.4.2
 XP
 SDK 1.5r2

 Any feedback?

 Dana

 On May 27, 6:32 am, chtiboss chtib...@gmail.com wrote:

  Eclipse 3.4.2
  Windows XP Pro
  SDK 1.5 r2
  in any XML file (main.xml at least)
  it bug appear anywhere in the File
  For exemple this bug appear in the sample XML  
  hello-linearlayouthttp://developer.android.com/guide/tutorials/views/hello-linearlayout...

  On 26 mai, 23:57, Raphael r...@android.com wrote:

   Hi,

   I'm trying to reproduce this and hmm well I don't manage to get this 
   error.
   Could you help me a bit?
   - Which version of Eclipse are you using?
   - Which OS platform?
   - Which SDK?
   - Does that happen on any XML file or just some of them?
   - Does it break anywhere in the XML file or in some specific context?
   (between elements, inside an element, on an attribute name or
   attribute value?)
   - Can you try to reproduce that using one of the SDK samples XML files?

   I'm trying to narrow the issue.
   Thanks in advance.
   R/

   On Mon, May 25, 2009 at 8:29 PM, solid young...@gmail.com wrote:

I just upgraded to the latest adt (0.9.1) and now I am getting null
pointer in eclipse when I try to invoke the content assistant (ctrl
+space) on andoid xml files such as the layout files.  Also the
outline does not appear to be linked to the XML files any more.  Below
is the log from eclipse when I hit ctrl+space.  Is there any way I can
fix adt???

!ENTRY org.eclipse.ui 4 0 2009-05-25 23:18:47.253
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
       at
com.android.ide.eclipse.editors.AndroidContentAssist.computeCompletionPropo­sals
(Unknown Source)
       at
org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcesso­r.computeCompletionProposals
(CompoundContentAssistProcessor.java:300)
       at
org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProp­osals
(ContentAssistant.java:1836)
       at
org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposa­ls
(CompletionProposalPopup.java:555)
       at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.access
$16(CompletionProposalPopup.java:552)
       at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run
(CompletionProposalPopup.java:487)
       at 
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
       at
org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals
(CompletionProposalPopup.java:481)
       at
org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletio­ns
(ContentAssistant.java:1664)
       at 
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation
(StructuredTextViewer.java:437)
       at org.eclipse.ui.texteditor.TextOperationAction$1.run
(TextOperationAction.java:131)
       at 
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
       at org.eclipse.ui.texteditor.TextOperationAction.run
(TextOperationAction.java:129)
       at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
       at 
org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:
185)
       at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute
(LegacyHandlerWrapper.java:109)
       at 
org.eclipse.core.commands.Command.executeWithChecks(Command.java:
476)
       at 
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
(ParameterizedCommand.java:508)
       at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
(HandlerService.java:169)
       at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand
(WorkbenchKeyboard.java:472)
       at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press
(WorkbenchKeyboard.java:824)
       at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent
(WorkbenchKeyboard.java:882)
       at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings
(WorkbenchKeyboard.java:571)
       at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3
(WorkbenchKeyboard.java:512)
       at org.eclipse.ui.internal.keys.WorkbenchKeyboard
$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:127)
       at 

[android-beginners] .apk file failed to uploan on emulator

2009-06-09 Thread chinna Durai
Hi,
I tried to run the JetBoy sample example from SDK. When i try to run it on
emulator, it gives me following error

[2009-06-08 22:25:50 - JetBoy] Uploading JetBoy.apk onto device
'emulator-5554'

[2009-06-08 22:26:08 - JetBoy] Failed to upload JetBoy.apk on
'emulator-5554': timeout

[2009-06-08 22:26:08 - JetBoy] Launch canceled!

Can anyone tell me what would be the issue.

I am using Android 1.5 platform.  and

uses-sdk android:minSdkVersion=*3* /

Thanks in advance.

-- 
Thanks and Regards
Chinnadurai M

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Setting up AVD?

2009-06-09 Thread Feign Narula
Hi,

   I had a similar error when I tried to setup this on windows vista command
prompt

   For this I had the issue resolved by

1.  you need to make sure jdk is installed
2.  Now type set path on your command line.
You should see a path where jdk is located and if you dont see it
 you need to include it in the path.The path should be including the
bin folder
 otherwise it will not find java.exe.

   To include jdk to your path :

set path = %path%;path-where-jdk-installed\bin

   It is the bin folder under the jdk path where you will find java.exe
which is required
   when android.bat is executed

   Now, create your avd, it should work in the same command window

   android create avd --target 2 --name my_avd










On 6/4/09, alexanderwigm...@googlemail.com alexanderwigm...@googlemail.com
wrote:


 Hey all.
 (I'm using windows vista)
 I'm trying to create the hello word app.

 I set my cmd enviromental variable to the android SDK location, (C:
 \Android\android-sdk-windows-1.5_r2)
 In cmd I paste the following:
 android create avd --target 2 --name my_avd
 Then  I get the following error:

 Microsoft Windows [Version 6.0.6001]
 Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

 C:\Users\Alexandroid create avd --target 2 --name my_avd
 'java' is not recognized as an internal or external command,
 operable program or batch file.




 C:\users\alex... Just noticed that, shouldn't it be? c:\android?

 


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] android' is not recognized as an internal or external command,

2009-06-09 Thread Yogeshbansal

Hi Team,

I am a newbie to this forum. I am trying to run my first android
program. I have set everything as pe the instruction. when I tried to
create AVD for command prompt i got the below error.

D:\Project_Work\android-sdk-windows-1.1_r1\android-sdk-
windows-1.1_r1\toolsand
oid
'android' is not recognized as an internal or external command,
operable program or batch file.

Please guide me on this

thanks
yogesh

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Issues with Hello World

2009-06-09 Thread renegadea...@googlemail.com

I am pretty sure u need to have the create activity box ticked in
eclipse and the app will run

On Jun 9, 7:07 am, Sheng-Yi Shih jude.sis...@gmail.com wrote:


 I also have the same problem. When I ran this program, it just launch
 the android emulator
 and showed nothing but the android on the screen. There is no Hello
 Android on the screen.
 I tried to press all the keys on the screen but there is still no reaction.
 The code i am running is as
 follows. I also put the log here. Please help me to figure out how to start
 from here. Thanks.

 Jude

 
 Log
 [2009-06-08 22:56:40 - HelloWorld1] --
 [2009-06-08 22:56:40 - HelloWorld1] Android Launch!
 [2009-06-08 22:56:40 - HelloWorld1] adb is running normally.
 [2009-06-08 22:56:40 - HelloWorld1] Performing com.example.HelloWorld1.hello
 activity launch
 [2009-06-08 22:56:40 - HelloWorld1] Automatic Target Mode: launching new
 emulator with compatible AVD 'adv15'
 [2009-06-08 22:56:40 - HelloWorld1] Launching a new emulator with Virtual
 Device 'adv15'
 [2009-06-08 22:56:47 - HelloWorld1] New emulator found: emulator-5554
 [2009-06-08 22:56:47 - HelloWorld1] Waiting for HOME
 ('android.process.acore') to be launched...

 Code

 package com.example.HelloWorld1;

 import android.app.Activity;
 import android.os.Bundle;

 import android.widget.TextView;

 public class hello extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText(Hello, Android);
setContentView(tv);
}

 }

 2009/6/8 Jack Ha jack...@t-mobile.com





  Do you see any error messages in the Console?

  --
  Jack Ha
  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 Jun 6, 7:03 pm, Fahd fahdb...@gmail.com wrote:
   Hi All,

   I am following the hello world example and when I run it through
   eclipse, the emulater starts showing android...
   then it comes in to the system and asks me to press menu to unlock.
   When I do it, it justs unlocks but there no helloworld or application
   window, just the normal android desktop! Am I missing somthing??

   Following is the code I am running (which is the copy of the example)

   package com.example.helloandroid;

   import android.app.Activity;
   import android.os.Bundle;
   import android.widget.TextView;

   public class HelloAndroid extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText(Hello, Android);
   setContentView(tv);
   //setContentView(R.layout.main);
   }

   }

   Why isnt the helloworld window coming?? Any help plss

   Fahd

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] ADB problem

2009-06-09 Thread safetykid

When I try to load an application onto the emulator it usually will
not work, it does work sometimes, but not often. the Eclipse console
looks like this:
[2009-06-08 22:52:16 - Notepadv1] Android Launch!
[2009-06-08 22:52:16 - Notepadv1] adb is running normally.
[2009-06-08 22:52:16 - Notepadv1] Performing
com.android.demo.notepad1.Notepadv1 activity launch
[2009-06-08 22:52:16 - Notepadv1] Automatic Target Mode: Preferred AVD
'avd' is not available. Launching new emulator.
[2009-06-08 22:52:16 - Notepadv1] Launching a new emulator with
Virtual Device 'avd'

I can narrow this down to a problem with adb.exe because when I run
the emulator with the command line, then try to install using

adb.exe install [app name].apk

it will not find any devices. Also I tried the adb devices command and
it showed no devices in the list.
I am using windows vista ultimate 64 bit edition.

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: android' is not recognized as an internal or external command,

2009-06-09 Thread Mark Murphy

Yogeshbansal wrote:
 Hi Team,
 
 I am a newbie to this forum. I am trying to run my first android
 program. I have set everything as pe the instruction. when I tried to
 create AVD for command prompt i got the below error.
 
 D:\Project_Work\android-sdk-windows-1.1_r1\android-sdk-
 windows-1.1_r1\toolsand
 oid
 'android' is not recognized as an internal or external command,
 operable program or batch file.
 
 Please guide me on this

http://developer.android.com/sdk/1.5_r2/installing.html

See Installing the SDK, starting with the third paragraph.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] OverlayItem Drawable Any way to get current drawable?

2009-06-09 Thread Wayne Wenthin
I am looking at changing the drawable on an OverlayItem when it is tapped
and then restoring that to its previous state later.   I can't seem to find
a way to extract the current drawable out of the OI.   I have multiple
drawables in the same overlay and would prefer not to split them up.   Is
there something I'm missing here?

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: android' is not recognized as an internal or external command,

2009-06-09 Thread David Turner
The android tool was added in SDK 1.5, so it's not part of previous
releases

On Tue, Jun 9, 2009 at 3:25 PM, Yogeshbansal canceryogi1...@gmail.comwrote:


 Hi Team,

 I am a newbie to this forum. I am trying to run my first android
 program. I have set everything as pe the instruction. when I tried to
 create AVD for command prompt i got the below error.

 D:\Project_Work\android-sdk-windows-1.1_r1\android-sdk-
 windows-1.1_r1\toolsand
 oid
 'android' is not recognized as an internal or external command,
 operable program or batch file.

 Please guide me on this

 thanks
 yogesh

 


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: android' is not recognized as an internal or external command,

2009-06-09 Thread Mark Murphy

David Turner wrote:
 The android tool was added in SDK 1.5, so it's not part of previous
 releases

Oops, didn't notice that. I assumed it was a PATH problem.

In 1.1r1, you would want to use tools like activitycreator, found in the
tools/ directory of the SDK. Or, move to 1.5r2, which is the current
release.

My apologies to the OP for my earlier incorrect response.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: OverlayItem Drawable Any way to get current drawable?

2009-06-09 Thread Mark Murphy

Wayne Wenthin wrote:
 I am looking at changing the drawable on an OverlayItem when it is
 tapped and then restoring that to its previous state later.   I can't
 seem to find a way to extract the current drawable out of the OI.   I
 have multiple drawables in the same overlay and would prefer not to
 split them up.   Is there something I'm missing here?

You could keep track of your item states outside of the drawables. I
think you can subclass OverlayItem to add whatever additional
information you might want to hold onto.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem with Hello World

2009-06-09 Thread Roman

As already mentioned before it seems like you project is not compiled
correctly. Check in the workspace of your Eclipse project whether you
have an apk file (in bin folder of your project).

First make sure that you have not compile error. Normale the console
window is telling you what happened.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·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 Jun 8, 4:23 pm, vkroz vladimir.k...@gmail.com wrote:
 Just wait few minutes -- it may take a time a while to launch emulator
 first time.

 On Jun 6, 9:35 am, maurizio.bellemo maurizio.bell...@gmail.com
 wrote:

  Hi all

  I'm rookie I tried to run the hello app in Android developers...
  (after having installed the SDK, Eclipse and the plugin for
  Android) There are two problems

  1 - When creating a project it appears an error like
      classfile error
      dalvik machine error 1

  2 - When I run the application, the android phone appears, but there
  is no hello world app... there is simply this android phone with all
  the widgets inside the google search bar but no app

  Can u help me?

  thks
  Bye Maurizio


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Ticker and Merquee

2009-06-09 Thread RTX

what hapend to the Ticker object ?
i cant find it any more

also Merquee is implemented only on a focusable objects
and only horizontal

what about vertical
and what about runing by itself

did anyone tried to ipmlement this ?


--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Ticker and Merquee

2009-06-09 Thread RTX

i found the TextSwitcher object
this one can be a good replacer for a ticker
or a merquee



On Jun 9, 3:54 pm, RTX rote...@gmail.com wrote:
 what hapend to the Ticker object ?
 i cant find it any more

 also Merquee is implemented only on a focusable objects
 and only horizontal

 what about vertical
 and what about runing by itself

 did anyone tried to ipmlement this ?
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] 500kb OPML parsing issues

2009-06-09 Thread renegadea...@googlemail.com

Right this is the problem. I am trying to find specific words within
this large OPML file which content is

:http://news.bbc.co.uk/rss/feeds.opml

The file is a large list of rss feeds for various bbc news items - and
I need to parse it to find specific feeds.

Currently I am doing it as follows:

 http://pastebin.com/m15e0ea5f

This is fairly fast if i search for say celtic however if you enter
w00f and run the command it will be disgustingly slow.

Can anybody demonstrate how I can parse this opml file using the
android xml parsers please - because i have tried, and tried, and
tried and cannot get it to do it!

Cheers

Andy
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: android' is not recognized as an internal or external command,

2009-06-09 Thread Yogeshbansal

Hi David,

Thanks a lot for quick response.

But I didn't get what exactly i need to do.

thanks
Yogesh

On Jun 10, 4:03 am, Mark Murphy mmur...@commonsware.com wrote:
 David Turner wrote:
  The android tool was added in SDK 1.5, so it's not part of previous
  releases

 Oops, didn't notice that. I assumed it was a PATH problem.

 In 1.1r1, you would want to use tools like activitycreator, found in the
 tools/ directory of the SDK. Or, move to 1.5r2, which is the current
 release.

 My apologies to the OP for my earlier incorrect response.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---