[android-beginners] Re: Issue with Android Debug Bridge

2009-10-28 Thread Maxood

Is there anyone to help me here?

On Oct 27, 2:21 am, Maxood maqs...@salsoft.net wrote:
 I am using an emulator here. And on the emulator USB Debugging is
 enabled.
 Still getting the same message error: device not found.

 Also at times ADB runs fine in shell mode but now all of a sudden it
 is not running and throwing error. Why?Whats the reason? And whats the
 solution?

 On Oct 27, 1:05 am, Alexey Tarasov tara...@dodologics.com wrote:



  On my HTC Hero, you need switch on ¨Settings - Applications -
  Development - USB debugging¨  option in order to use adb.

  On Oct 27, 3:24 pm, Maxood maqs...@salsoft.net wrote:

   Also my platform is Windows XP. Processor is AMD.
--~--~-~--~~~---~--~~
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] Detecting a Tidal Wave of Android Apps

2009-10-28 Thread Peter Farago
Hi all,

Flurry, as you may know from previous emails, has been supporting Android
since we launched our mobile application analytics service this January.
This month, we measured the most significant spike to date of android
developer activity within our system.  We're very excited about the upcoming
launch of several more Android handsets and see the correlation between
major android handset launches and developer support.

We shared some stats with Om Malik at GigaOm who has been closely following
the Android story unfold since the beginning.  You can read his take on take
on Android and what's to come at:
http://gigaom.com/2009/10/26/will-there-be-an-android-app-boom-soon/

Best regards,

Peter Farago
VP Marketing
www.flurry.com
Follow us:
http://blog.flurry.com
http://twitter.com/FlurryMobile

--~--~-~--~~~---~--~~
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: Music: file names, album recognition, etc?

2009-10-28 Thread Vladimir Kelman

I found a solution on a Russian-speaking Google Wave devoted to
Android!  By the way, I encourage everybody to join Google Wave ASAP
(no, I already used all my invitations).
A solution, or should I say - a workaround? - is to use Meridian
Player instead of Android's own Music Player.
http://sites.google.com/site/eternalsandbox/Home

As I was told on Meridian's forum,

Yes, it is an Android's media scanner issue, and I also don't know
what's the actual behavior of the auto scanning.
Before 1.1 it will do a full scan each time replugging SD card, but
now it does not. Even manually invoke (by Meridian) sometimes
fail...Hope they can fix this soon.
http://groups.google.com/group/meridian_android/browse_thread/thread/d3da70a557f1d545?hl=en

I wonder why Meridian developers know that, while Google Android
developers do not :(


On Oct 26, 11:37 am, b_nny jonsson.be...@gmail.com wrote:
 I have the same problem... :-(

 On 19 Okt, 18:24, Vladimir Kelman vkel...@gmail.com wrote:



  Had anyone experienced the following issue?
  For some reason, Android (HTC == DevPhone 1 with Android 1.6
  installed, 16 Gb SD card) is not indexingmp3files. After I first
  mounted Android USB on my PC and put some p3 files to a folder on SD
  card, Android indexed some files, but not all. I tried different
  things, and finally deleted all the albums trough Android UI. As I see
  after connecting through USB to my computer, actualmp3files are
  still sitting on SD card. Then, no matter what I do (delete files, add
  them back, move to a different location), Android does not indexmp3
  files any more, leaving Albums/Songs/Artists empty.
  Funny thing, I installed Astro File 
  Managerhttp://www.androlib.com/android.application.com-metago-astro-qzq.aspx;
  it seesmp3files on a SD card and, while clicking on them, launching
  Music Player. But these files stays un-indexed thus invisible through
  a normal Music Player interface.

  Vot could prevent Android from indexingmp3files? Some wrong
  attributes of those files?
--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread GreenRiver

Hix, I tried following the tutorial below: ( RSS Reader Tutorial)
http://www.helloandroid.com/node/110#comment-6819
Because of the differences between the version of SDK that tutorial
using (M3 - I dont' know this version, maybe too old ) and of mine
( android-sdk-windows-1.5_r2), so it appeared many errors.
I tried to fix all of it, althought i printed to logcat the right
results but still have some problem with database so i can't put the
result to the database.
( My project  : http://www.mediafire.com/download.php?wjzqnztmdml)

Is anyone finished the  tutorial above (http://www.helloandroid.com/
node/110#comment-6819) , please show me or send the sourcecode to me
via email ( thong.dom...@gmail.com ).
I realy thanks in advance!

Regards,
thongdm

--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread GreenRiver

If someone has any ideas, please discuss via comments or contact me
view email ( thong.dom...@gmail.com ) . Thanks in advance :)

if you finish the tutorial http://www.helloandroid.com/node/110#comment-6819
, please contact me :)
--~--~-~--~~~---~--~~
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] installing android 2.0 sdk on 64-bit fedora 11?

2009-10-28 Thread Robert P. J. Day


  as a total beginner to the android sdk, i'm just about to try to
install, from scratch, the new 2.0 sdk on a 64-bit version of fedora
11 (which will hopefully be equivalent to installing on a 64-bit
fedora 12 as well).

  has anyone already done this?  based on what i've read so far, my
immediate issues will be:

  * since this is a 64-bit OS, i'll need to install a number of 32-bit
compatibility libs (there's no 64-bit android sdk, right?)

  * does this new sdk work with the java 1.6.0 openjdk that comes with
fedora, or do i still need the 1.5 sun version?

  * which version of eclipse can i use with this new sdk?

  i think those are my immediate concerns.  thanks.

rday
--


Robert P. J. Day   Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page:  http://crashcourse.ca
Twitter:   http://twitter.com/rpjday


--~--~-~--~~~---~--~~
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: Error

2009-10-28 Thread tneufeld

Much appreciated that fixed the problem.

On Oct 26, 8:15 pm, Lance Nanek lna...@gmail.com wrote:
 Looks like you have to change this import:

 import android.content.DialogInterface.OnClickListener;

 To this:
 import android.view.View.OnClickListener;

 This problem often happens when an IDE tries to import something for
 you, but picks the wrong thing. One thing you can do to help prevent
 that for these particular interfaces is to just include the parent
 interface whenever you refer to them. That would mean using
 View.OnClickListener instead of just OnClickListener in your code,
 for example.

 On Oct 26, 2:25 pm, tneufeld tneuf...@gmail.com wrote:

  Hey,

  I am attampting this tutorial from the official android dev site andI
  am getting the following error: The method setOnClickListener
  (View.OnClickListener) in the type View is not applicable for the
  arguments (new DialogInterface.OnClickListener(){})  I checked and
  rechecked the code aginst what it is telling me to put in and it looks
  right, but it is still giving this error.  Cn anyone tell me what I am
  missing?

  Here is the following code:

  package hello.form.stuff;

  import android.app.Activity;
  import android.content.DialogInterface.OnClickListener;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.ImageButton;
  import android.widget.Toast;

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

          final ImageButton btn = (ImageButton)this.findViewById
  (R.id.android_button);

          btn.setOnClickListener(new OnClickListener()
          {
              public void onClick(View v)
              {
                  // Perform action on clicks
                  Toast.makeText(HelloFormStuff.this, Beep Bop,
  Toast.LENGTH_SHORT).show();
                  }

          });

      }

  }

  Thanks,

  Tim

--~--~-~--~~~---~--~~
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] Auto Create AVD (Windows)

2009-10-28 Thread yungbol

Ok, for us noobs who are new to this, you may get confused time to
time. I have created an auto AVD maker for those who are confused on
how to do it in the command prompt. All you need to do is enter the
tools location the first time then there you go! Just input the name
and target and your good.

If something don't work properly, make sure your SDK and JDK are
installed properly!

This runs on .NET Framework, so if your computer did not come with it
you will need to get it, google it!

Download: http://www.megaupload.com/?d=GCF7ANRS
Virus Scan: 
http://www.virustotal.com/analisis/6228c414ed0460de078671156c6d25d240c119bc4adc034afbc44731f7e891ee-1256681219

(The 1/40 is because of a string that is stored in the registry)

Good luck!

--~--~-~--~~~---~--~~
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] SDK r3 not working on Mac?

2009-10-28 Thread fern

I just did this:

1) download sdk (android-sdk_r3-mac.zip)
 (good so far)
2) extract sdk (unzip android-sdk_r3-mac.zip)
 (yup, extracts all fine and dandy)
3) add sdk to path (export ANDROID_SDK_HOME, export PATH=${PATH}:$
{ANDROID_SDK_HOME}/tools )
 (ok, I can now execute any command, android, adb, etc)

4) try to run android udpate sdk as the Readme.txt says to:

android update sdk
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.

But nothing.  The UI doesn't come up.  Nothing happens.  But then, if
I run it with sudo, it now launches the UI.  What's going on?  Can I
please fix this, I don't want to run everything with sudo.

sudo android update sdk
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
--- NOW THE UI POPS UP ---

--~--~-~--~~~---~--~~
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: Error Creating AVD

2009-10-28 Thread yungbol



On Sep 23, 11:50 pm, Sudheesh J sudhees...@gmail.com wrote:
 I think you don't have JDK installed (http://java.sun.com/javase/
 downloads/index.jsp).
 Or if you have already installed it, make sure that the bin directory
 is in the PATH.

 On Sep 23, 4:35 pm, Highmastdon albertgroothe...@gmail.com wrote:

  Hi,

  I've been trying to run a default application in netbeans, but there
  is no AVD to select.

  So i found this command to install it.

  Go to the Tools folder and run this command android create avd -n
  name -t 2

  In my case i did this in my Commandline:

  cd C:\Program Files\Java\android-sdk-windows-1.6_r1\tools\
  android create avd -n androidAVD -t 2

  I get the following error:

  'java' is not recognized as an internal or external command, operable
  program or batch file.
  SWT folder '' does not exist.
  Please setANDROID_SWTto point to the folder containing swt.jar for
  your platform.

  I hope you can help me.

I have the same error, I have:
JDK installed to C:\Sun
Eclipse installed to C:\Android
SDK installed to C:\Android

Can someone tell me what to move?

--~--~-~--~~~---~--~~
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] ListView with multiple TextView

2009-10-28 Thread Ash

Hi,

I need to create a ListView with two TextView items.

Please help with some example code for implementing this.

Thanks,
ash.

--~--~-~--~~~---~--~~
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 Hero connection problem causes USB device ID to change from 0bb4:0c01 to 0bb4:0c02.

2009-10-28 Thread savant.d

Hello.

I had this problem. it solves with info from
https://bugs.launchpad.net/ubuntu/+source/hal/+bug/316215 .

Best regards
savant.d

On Sep 14, 11:11 pm, Chris Dew cms...@googlemail.com wrote:
 I just wanted to post this, it took me three hours to get adb to list
 my phone...

 http://www.finalcog.com/htc-hero-android-adb-0bb4-0c01-ubuntu-jaunty-...

 Did anyone else have this problem?

 Chris.

--~--~-~--~~~---~--~~
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] Including 3rd party jars in Android App

2009-10-28 Thread sundancebleu

I'm hoping someone can help, when I try including a custom jar file I
built in another java project through eclipse (in my build path), I
get a could not find method error when I try to run.  When I put a
uses-library in the manifest.xml, I get an
INSTALL_FAILED_MISSING_SHARED_LIBRARY error when the app tries to
install on the emulator.  Do I need to build the library as part of my
AVD?  if so, how do I do that?  Thanks in advance.

--~--~-~--~~~---~--~~
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] showDialog() fails to show anything

2009-10-28 Thread Greg Donald

I'm having problems getting showDialog() to show anything.

I have this for my onCreateDialog() callback:

private static final int ID_DIALOG_X = 1;

protected Dialog onCreateDialog(int id) {
 if (id == ID_DIALOG_X) {
   ProgressDialog pg = new ProgressDialog(this);
 pg.setMessage(Loading..);
 return pg;
 }
 return super.onCreateDialog(id);
}

And then I'm calling it like this:

showDialog(ID_DIALOG_X);

But nothing shows up, no errors either.

Using ddms and Log.i() I can see my onCreateDialog() is being
executed, the new progress dialog gets created, but then nothing shows
up.

Any ideas?  TIA.


-- 
Greg Donald
http://destiney.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: new'ing an Intent

2009-10-28 Thread Mark Murphy



 btw, I have class called RootGameScreen in my workspace, namespace

         button.setOnClickListener(new View.OnClickListener()
         {
             public void onClick(View v)
             {
                 Intent startGameIntent = new Intent(this,
 RootGameScreen.class);

In Java, this refers to the narrowest possible scope by default. So, in
your Intent constructor, this is the View.OnClickListener anonymous
inner class you are defining.

Change your code to:

Intent startGameIntent = new Intent(WelcomeScreen.this,
RootGameScreen.class);

and you may have better luck.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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: How to begin with android

2009-10-28 Thread android beginner
dont worryinstall the sdkit took some 1 hour...after that install
the things with eclipse plug in.then started to run 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: Android RSS Reader, Please Help

2009-10-28 Thread GreenRiver

no one help me :(
--~--~-~--~~~---~--~~
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] taking a screenshot...of whatever is drawn on the view

2009-10-28 Thread Samuh

I am trying to take a screen shot of whatever is drawn on my custom
view's canvas. I use the following lines for the same:

//enable drawing cache
this.setDrawingCacheEnabled(true);
// use the drawing on the cache to create a Bitmap Object
Bitmap screenshot = Bitmap.createBitmap(this.getDrawingCache());
// disable the cache
this.setDrawingCacheEnabled(false);

Problem:

The getDrawingCache() call returns null sometimes.
Any pointers to what I am doing wrong here?

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: Android 2.0 SDK is here!

2009-10-28 Thread Maxood

I am getting the following messages after

Done. Nothing was installed.

Downloading SDK Platform Android 2.0, API 5, revision 1
SSL peer shut down incorrectly

Whats the solution?
On Oct 27, 11:16 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 new and updated tools. regardless of the SDK version, you can always
 develop your app to target previous SDK versions. in your manifest, look
 for the line,

 uses-sdk android:minSdkVersion=3 /

 3 is for 1.5, 4 for 1.6 ...

 On 10/27/09 10:42 AM, Matt Raffel wrote:





  how does this apply if my phone is currently 1.5 and I wanted my app to
  work on it?  Do I stick to 1.5?

  Matt

  Xavier Ducrohet wrote:

  Hello everyone!

  We've just announced the Android 2.0 SDK
 http://android-developers.blogspot.com/2009/10/announcing-android-20-...

  If you already have the 1.6 SDK, note that you can simply use the SDK
  Manager to add Android 2.0 to your SDK. Make sure you also get the new
  SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
  shipped with 1.6) doesn't enforce dependencies between platforms and
  Tools (fixed in rev 3)

  For more information about using the SDK Manager, see:
 http://developer.android.com/sdk/adding-components.html

  Have fun!
  Xav

 --
--~--~-~--~~~---~--~~
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: SDK Setup on Windows

2009-10-28 Thread Matt Raffel

maybe try deleting/uninstalling the old sdks first?

mellery451 wrote:
 I'm refreshing my android SDKs as I had some very old versions on my
 Windows XP machine.
 
 I grabbed the latest package for the windows tools - specifically:
 
 http://developer.android.com/sdk/download.html?v=android-sdk_r3-windows.zip
 
 I unpack it and put the tools directory in my path. When I try to run
 SDK Setup.exe, it does nothing. No output, nothing.
 
 Anyone else had this problem? How should I start diagnosing the issue?
 
  
 


--~--~-~--~~~---~--~~
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: new'ing an Intent

2009-10-28 Thread Matt Raffel

Mark Murphy wrote:
 
 btw, I have class called RootGameScreen in my workspace, namespace
 
 button.setOnClickListener(new View.OnClickListener()
 {
 public void onClick(View v)
 {
 Intent startGameIntent = new Intent(this,
 RootGameScreen.class);
 
 In Java, this refers to the narrowest possible scope by default. So, in
 your Intent constructor, this is the View.OnClickListener anonymous
 inner class you are defining.
 
 Change your code to:
 
 Intent startGameIntent = new Intent(WelcomeScreen.this,
 RootGameScreen.class);
 
 and you may have better luck.
 

yes that was it.  A newbie error. :)  Thnx

Matt

--~--~-~--~~~---~--~~
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: Issue with Android Debug Bridge

2009-10-28 Thread Alexey Tarasov

Probably firewall issue, cause emulator is connected via TCP
connection.
Try 'netstat -ab' and see its output for emulator image, e.g. is it
listening ports 5554,  and so on. If yes, then switch firewall off
and try again 'adb devices'
I'm not using Windows, so I don't know which other problems may be
with emulator in your case.

On Oct 27, 2:21 am, Maxood maqs...@salsoft.net wrote:
 I am using an emulator here. And on the emulator USB Debugging is
 enabled.
 Still getting the same message error: device not found.

 Also at times ADB runs fine in shell mode but now all of a sudden it
 is not running and throwing error. Why?Whats the reason? And whats the
 solution?


--~--~-~--~~~---~--~~
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: ListView with multiple TextView

2009-10-28 Thread jbrohan

The Notepad example does this.

On Oct 27, 6:37 pm, Ash ashly@gmail.com wrote:
 Hi,

 I need to create a ListView with two TextView items.

 Please help with some example code for implementing this.

 Thanks,
 ash.
--~--~-~--~~~---~--~~
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: taking a screenshot...of whatever is drawn on the view

2009-10-28 Thread Samuh

Also, sometimes getDrawingCache() returns a Bitmap that returns true
for isRecycled() test..
--~--~-~--~~~---~--~~
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] TabWidget causing null pointer

2009-10-28 Thread tatman

I'm trying to figure out how to use the TabHost.  I am following this
example here: 
http://developer.android.com/guide/tutorials/views/hello-tabwidget.html

The TabWidget control is causing a null pointer exception.  If I
take it out, then I do not have the exception.   From what I can
see, I've followed the example closely.   Has anyone else seen this?
or have an idea what's the problem?

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TabHost
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/tabHostId
android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout

xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TabWidget
android:id=@+id/tabWidgetId
android:layout_width=fill_parent
android:layout_height=wrap_content /
FrameLayout
android:id=@+id/tabContentId
android:layout_width=fill_parent
android:layout_height=fill_parent 
TextView
android:id=@+id/tabView1Id
android:layout_width=fill_parent
android:layout_height=fill_parent /
TextView
android:id=@+id/tabView2Id
android:layout_width=fill_parent
android:layout_height=fill_parent /
TextView
android:id=@+id/tabView3Id
android:layout_width=fill_parent
android:layout_height=fill_parent /
/FrameLayout
/LinearLayout
/TabHost
/LinearLayout



Thnx
Matt
--~--~-~--~~~---~--~~
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 2.0 SDK is here!

2009-10-28 Thread Dori

Exactly the same problem here, any suggestions?

On Oct 28, 10:32 am, Maxood maqs...@salsoft.net wrote:
 I am getting the following messages after

 Done. Nothing was installed.

 Downloading SDK Platform Android 2.0, API 5, revision 1
 SSL peer shut down incorrectly

 Whats the solution?
 On Oct 27, 11:16 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
 wrote:



  new and updated tools. regardless of the SDK version, you can always
  develop your app to target previous SDK versions. in your manifest, look
  for the line,

  uses-sdk android:minSdkVersion=3 /

  3 is for 1.5, 4 for 1.6 ...

  On 10/27/09 10:42 AM, Matt Raffel wrote:

   how does this apply if my phone is currently 1.5 and I wanted my app to
   work on it?  Do I stick to 1.5?

   Matt

   Xavier Ducrohet wrote:

   Hello everyone!

   We've just announced the Android 2.0 SDK
  http://android-developers.blogspot.com/2009/10/announcing-android-20-...

   If you already have the 1.6 SDK, note that you can simply use the SDK
   Manager to add Android 2.0 to your SDK. Make sure you also get the new
   SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
   shipped with 1.6) doesn't enforce dependencies between platforms and
   Tools (fixed in rev 3)

   For more information about using the SDK Manager, see:
  http://developer.android.com/sdk/adding-components.html

   Have fun!
   Xav

  --
--~--~-~--~~~---~--~~
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: I have a great idea for an app and have tried my best but cant get anything to work!! Help please!!

2009-10-28 Thread pulsarman325

Thank you to all of you for your help, I have realised that this is
miles above my head If anyone is interseted in the map i created
which is essex, uk not usa, the link is
http://maps.google.co.uk/maps/ms?ie=UTF8hl=enmsa=0msid=117183460661217565520.000476db0142a6ac232aft=hz=9
Let me know what you all think and if you want me to finish the map by
adding more haunted places, ps happy halloween everyone haha



On Oct 28, 1:48 am, Lance Nanek lna...@gmail.com wrote:
 Wow, the Android 1.6 Google Maps app does really well with the KML
 version of the My Map I was testing, though.

 Starting Maps using this code gave a This Community Map could not be
 displayed because it contains errors. error:
 Uri uri = Uri.parse(geo:0,0?q=http%3A%2F%2Fmaps.google.com%2Fmaps%2Fms
 %3Fie%3DUTF8%26hl%3Den%26oe%3DUTF8%26msa%3D0%26msid
 %3D107089898552236652791.000476babeb0ef2ce49c0%26ll
 %3D42.145078%2C-82.792969%26spn%3D0.458201%2C0.823975%26z%3D10%26output
 %3Dkml);
 Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
 startActivity(intent);

 But downloading the KML from there myself by using the unencoded URL
 manually:http://maps.google.com/maps/ms?ie=UTF8hl=enoe=UTF8msa=0msid=10708...

 And putting it on a test server where the URL was simpler worked fine
 with that method. Here's the UI the Maps app 
 showed:http://imgur.com/qIcAW.pnghttp://imgur.com/3qAMb.pnghttp://imgur.com/FURDZ.pnghttp://imgur.com/MJLcr.png

 There may be a different encoding, or no encoding way to get the
 direct attempt to work as well. I just saw this method over in another
 thread and haven't gotten to play with it 
 much:http://groups.google.com/group/android-developers/browse_thread/threa...

 Leaving off the geo:0,0?q= prefix didn't work. Same error as
 following a URL with the HTML version of the My Map. Just downloaded
 the file and wouldn't start Maps with it with the KML version of the
 My Map.

 On Oct 27, 8:21 pm, Lance Nanek lna...@gmail.com wrote:



  Trying a My Maps URL directly on my Android 1.6 phone right now didn't
  work out well. The Google Maps app showed an error, Unable to load
  the URL. The Browser showed the map OK, but tapping the icons did
  nothing. Zooming the map out got stuck partway when I tapped the zoom
  out control.

  The Browser on Android 2.0 in an emulator did slightly better. The map
  loaded, zoomed out OK, and showed the bubbles with details when I
  tapped them. I had to set the zoom to close and text size to huge in
  order to actually read the text, though, and then it overflowed the
  popups. The controls were tiny as well. It would be tough to tap them
  on a real phone. The D-PAD would only select the Google logo, terms
  and report a problem links, and the Map/Sat/Ter controls. It
  wouldn't select the other controls.

  The link I was using for testing was the top Google search result for
  google maps essex 
  hauntings:http://maps.google.com/maps/ms?ie=UTF8hl=enoe=UTF8msa=0msid=10708...

  This looks like it was made by the My Maps feature, although it
  probably isn't the one created by the OP.

  Anyway, just reporting that the quickest method of just using the URL
  that works for desktops doesn't seem viable. There may be some way to
  embed a simpler version on a web page and use that URL. I know the
  Google Maps API you use for making web pages explicitly mentions
  Android:http://code.google.com/apis/maps/documentation/v3/#Mobile

  I've seen that the Google Maps app on Android 2.0 has an option in the
  main menu called Layers which pops up a dialog with an option called
  More layers which then offers My Maps , Wikipedia, and Transit
  Lines. So it looks like Google may be adding support for My Maps to
  their own Google Maps application in Android 2.0.

  If I were going to write a custom Android app to show the OP's My Map,
  I would be tempted to generalize it to work with any available My Map
  out there. Knowing Google is about to release exactly that as feature
  kind of puts a damper on thatidea, though.

  On Oct 27, 6:18 pm, mark mcqueen pulsarman...@googlemail.com wrote:

   It is a map i done using my maps/google maps that has links to haunted
   places around essex, including statements and pics. I only need to create
   app to link to my map etc

   On Oct 27, 2009 10:02 PM, MMC2 m...@mmc2.com.au wrote:

   What does your app actually do?

   Mike

   - Original Message - From: pulsarman325 

   pulsarman...@googlemail.com To: Android Begin...- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] G729 for mjsip

2009-10-28 Thread Azhar

Hi

Any on have developed the java classes for the G729 codec to be used

in the mjsip srack


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: How to begin with android

2009-10-28 Thread Niamathullah sharief
Its not a hard thing to do. You have to do this. If you feel this is hard?
Then you cant handle the developing things.

On Wed, Oct 28, 2009 at 11:02 AM, android beginner 
mirra07aurobin...@gmail.com wrote:



 dont worryinstall the sdkit took some 1 hour...after that install
 the things with eclipse plug in.then started to run 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: Auto Create AVD (Windows)

2009-10-28 Thread niko20

Hi,

Thanks for your hard work, but the latest SDK contains an AVD creator
built in. In Eclipse you go to Tools-Android SDK and AVD manager, and
you can create new AVD's from there real quick.

-niko

On Oct 27, 5:09 pm, yungbol chris...@gmail.com wrote:
 Ok, for us noobs who are new to this, you may get confused time to
 time. I have created an auto AVD maker for those who are confused on
 how to do it in the command prompt. All you need to do is enter the
 tools location the first time then there you go! Just input the name
 and target and your good.

 If something don't work properly, make sure your SDK and JDK are
 installed properly!

 This runs on .NET Framework, so if your computer did not come with it
 you will need to get it, google it!

 Download:http://www.megaupload.com/?d=GCF7ANRS
 Virus 
 Scan:http://www.virustotal.com/analisis/6228c414ed0460de078671156c6d25d240...

 (The 1/40 is because of a string that is stored in the registry)

 Good luck!
--~--~-~--~~~---~--~~
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 2.0 SDK is here!

2009-10-28 Thread Wayne Wenthin
Keep trying.   I had to select the components individually and it finally
made it.   I think it is related to a big rush to get the components.   I
had no problem at home during the evening hours.

On Wed, Oct 28, 2009 at 5:31 AM, Dori dorian.cus...@googlemail.com wrote:


 Exactly the same problem here, any suggestions?

 On Oct 28, 10:32 am, Maxood maqs...@salsoft.net wrote:
  I am getting the following messages after
 
  Done. Nothing was installed.
 
  Downloading SDK Platform Android 2.0, API 5, revision 1
  SSL peer shut down incorrectly
 
  Whats the solution?
  On Oct 27, 11:16 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
  wrote:
 
 
 
   new and updated tools. regardless of the SDK version, you can always
   develop your app to target previous SDK versions. in your manifest,
 look
   for the line,
 
   uses-sdk android:minSdkVersion=3 /
 
   3 is for 1.5, 4 for 1.6 ...
 
   On 10/27/09 10:42 AM, Matt Raffel wrote:
 
how does this apply if my phone is currently 1.5 and I wanted my app
 to
work on it?  Do I stick to 1.5?
 
Matt
 
Xavier Ducrohet wrote:
 
Hello everyone!
 
We've just announced the Android 2.0 SDK
   
 http://android-developers.blogspot.com/2009/10/announcing-android-20-...
 
If you already have the 1.6 SDK, note that you can simply use the
 SDK
Manager to add Android 2.0 to your SDK. Make sure you also get the
 new
SDK Tools (revision 3), as the SDK Manager in revision 2 (the one
 that
shipped with 1.6) doesn't enforce dependencies between platforms and
Tools (fixed in rev 3)
 
For more information about using the SDK Manager, see:
   http://developer.android.com/sdk/adding-components.html
 
Have fun!
Xav
 
   --
 



-- 
Writing code is one of few things
that teaches me I don't know everything.

http://www.fuligin.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: Android 2.0 on Dev Phone

2009-10-28 Thread okubax

probably not

On Oct 28, 3:49 pm, Vinicius Carvalho viniciusccarva...@gmail.com
wrote:
 Hello there! Does anyone knows when will it be available the images to
 install on the dev phone 1? I'm really excited about the new features:
 Maps Navigation rules :)
--~--~-~--~~~---~--~~
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 2.0 on Dev Phone

2009-10-28 Thread Vinicius Carvalho

Probably not what? ...

On Oct 28, 1:54 pm, okubax oku...@gmail.com wrote:
 probably not

 On Oct 28, 3:49 pm, Vinicius Carvalho viniciusccarva...@gmail.com
 wrote:

  Hello there! Does anyone knows when will it be available the images to
  install on the dev phone 1? I'm really excited about the new features:
  Maps Navigation rules :)
--~--~-~--~~~---~--~~
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] Some layout advice please!

2009-10-28 Thread Dori

Hello everyone, I am posting as I would like some advice, this being
my first exploration of the android platform I'm a little confused.

I want one of my activity's to be a menu, which looks like a common
old ListView, with an icon and two lines of text in each. I only have
5 items but each one's touch action should be different, say one will
start a new activity, one will activate a datePicker, one will open a
browser and so on, also i would like to able to change the text on the
menu items programmatically.

I'm confused as all the ListActivty / ListView examples ive seen have
been building the lists from arrays, cursors, or some other organised
data source, with each selection of a list item resulting in the same
type of action being performed, say exposing some extra text. What
would anyones advice be on how to go about what i'm doing, is listView
inapproproate for this, should I just be declaring the whole thing in
XML as LinearLayouts with child views and ignoring the listView
classes?

Thanks for any help and sorry if this is a really simple question :)

ps im also posting this on the android forum...
--~--~-~--~~~---~--~~
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: Some layout advice please!

2009-10-28 Thread Dori

I ment to say posting also on the anddev forum!

On Oct 28, 4:06 pm, Dori dorian.cus...@googlemail.com wrote:
 Hello everyone, I am posting as I would like some advice, this being
 my first exploration of the android platform I'm a little confused.

 I want one of my activity's to be a menu, which looks like a common
 old ListView, with an icon and two lines of text in each. I only have
 5 items but each one's touch action should be different, say one will
 start a new activity, one will activate a datePicker, one will open a
 browser and so on, also i would like to able to change the text on the
 menu items programmatically.

 I'm confused as all the ListActivty / ListView examples ive seen have
 been building the lists from arrays, cursors, or some other organised
 data source, with each selection of a list item resulting in the same
 type of action being performed, say exposing some extra text. What
 would anyones advice be on how to go about what i'm doing, is listView
 inapproproate for this, should I just be declaring the whole thing in
 XML as LinearLayouts with child views and ignoring the listView
 classes?

 Thanks for any help and sorry if this is a really simple question :)

 ps im also posting this on the android forum...
--~--~-~--~~~---~--~~
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: Issue with Android Debug Bridge

2009-10-28 Thread Maxood

Turned off the firewall. Issue is still pending. Again getting the
same error message on running adb shell:
Device Not Found
On adb devices, i get an empty list with the following messages:
* daemon not running. starting it now*
* daemon started successfully *
List of devices attached



On Oct 28, 5:02 am, Alexey Tarasov tara...@dodologics.com wrote:
 Probably firewall issue, cause emulator is connected via TCP
 connection.
 Try 'netstat -ab' and see its output for emulator image, e.g. is it
 listening ports 5554,  and so on. If yes, then switch firewall off
 and try again 'adb devices'
 I'm not using Windows, so I don't know which other problems may be
 with emulator in your case.

 On Oct 27, 2:21 am, Maxood maqs...@salsoft.net wrote:



  I am using an emulator here. And on the emulator USB Debugging is
  enabled.
  Still getting the same message error: device not found.
  Also at times ADB runs fine in shell mode but now all of a sudden it
  is not running and throwing error. Why?Whats the reason? And whats the
  solution?
--~--~-~--~~~---~--~~
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] listen for when my app is installed

2009-10-28 Thread Jeffrey Blattman




i would like to copy some files from assets to the SD card when my app
is installed. i see the PACKAGE* intents, but i'm unclear which one (or
set) i should be listening for. i am sure this is a common pattern, can
someone point me to a page that describe the proper way to do this?

thanks.

-- 





[android-beginners] Re: Including 3rd party jars in Android App

2009-10-28 Thread Xavier Ducrohet

uses-library is for shared library which you cannot add yourself.

You should simply have to put the jar file in your project folder and,
from Eclipse, do a right click on it from the Package Explorer and
choose Add to build path

Xav

On Tue, Oct 27, 2009 at 5:15 PM, sundancebleu sundanceb...@gmail.com wrote:

 I'm hoping someone can help, when I try including a custom jar file I
 built in another java project through eclipse (in my build path), I
 get a could not find method error when I try to run.  When I put a
 uses-library in the manifest.xml, I get an
 INSTALL_FAILED_MISSING_SHARED_LIBRARY error when the app tries to
 install on the emulator.  Do I need to build the library as part of my
 AVD?  if so, how do I do that?  Thanks in advance.

 




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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: listen for when my app is installed

2009-10-28 Thread Sean Hodges
On Wed, Oct 28, 2009 at 4:45 PM, Jeffrey Blattman 
jeffrey.blatt...@gmail.com wrote:

  i would like to copy some files from assets to the SD card when my app is
 installed. i see the PACKAGE* intents, but i'm unclear which one (or set) i
 should be listening for. i am sure this is a common pattern, can someone
 point me to a page that describe the proper way to do this?


Could you not just check for their existence on the SD card before copying
them over?

Otherwise, when the user changes their SD card, your app will no longer have
these files available. Your app will be dependent on the SD card that was
plugged in when it was installed... There may also be compatibility issues
with backup/restore programs.

--~--~-~--~~~---~--~~
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: SDK r3 not working on Mac?

2009-10-28 Thread Xavier Ducrohet

This really shouldn't be necessary. Can you check the access rights on
the files you extracted?

Xav

On Tue, Oct 27, 2009 at 3:20 PM, fern f...@happyfern.com wrote:

 I just did this:

 1) download sdk (android-sdk_r3-mac.zip)
  (good so far)
 2) extract sdk (unzip android-sdk_r3-mac.zip)
  (yup, extracts all fine and dandy)
 3) add sdk to path (export ANDROID_SDK_HOME, export PATH=${PATH}:$
 {ANDROID_SDK_HOME}/tools )
  (ok, I can now execute any command, android, adb, etc)

 4) try to run android udpate sdk as the Readme.txt says to:

 android update sdk
 No command line parameters provided, launching UI.
 See 'android --help' for operations from the command line.

 But nothing.  The UI doesn't come up.  Nothing happens.  But then, if
 I run it with sudo, it now launches the UI.  What's going on?  Can I
 please fix this, I don't want to run everything with sudo.

 sudo android update sdk
 No command line parameters provided, launching UI.
 See 'android --help' for operations from the command line.
 --- NOW THE UI POPS UP ---

 




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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: Android 2.0 on Dev Phone

2009-10-28 Thread wonglik

I am also very curious about that. But I am a bit confused. Some
sources claim it will run on G1 some that it will not. HTC site now
does not offer 2.0 image at the moment.

On Oct 28, 6:06 pm, Vinicius Carvalho viniciusccarva...@gmail.com
wrote:
 Probably not what? ...

 On Oct 28, 1:54 pm, okubax oku...@gmail.com wrote:

  probably not

  On Oct 28, 3:49 pm, Vinicius Carvalho viniciusccarva...@gmail.com
  wrote:

   Hello there! Does anyone knows when will it be available the images to
   install on the dev phone 1? I'm really excited about the new features:
   Maps Navigation rules :)
--~--~-~--~~~---~--~~
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: listen for when my app is installed

2009-10-28 Thread Jeffrey Blattman




thanks yes that's a good point about being dependent on the SD card.

On 10/28/09 10:19 AM, Sean Hodges wrote:

  On Wed, Oct 28, 2009 at 4:45 PM, Jeffrey
Blattman jeffrey.blatt...@gmail.com
wrote:
  
i would like to copy some
files from assets to the SD card when my app
is installed. i see the PACKAGE* intents, but i'm unclear which one (or
set) i should be listening for. i am sure this is a common pattern, can
someone point me to a page that describe the proper way to do this?


  
  
Could you not just check for their existence on the SD card before
copying them over?
  
Otherwise, when the user changes their SD card, your app will no longer
have these files available. Your app will be dependent on the SD card
that was plugged in when it was installed... There may also be
compatibility issues with backup/restore programs.
  
  
--~--~-~--~~~---~--~~
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: SDK Setup on Windows

2009-10-28 Thread Raphael

All SDK Setup does is execute tools\android.bat for you.
Please help me understand what's going on by doing the following:
- open a command prompt
- cd to the android-sdk-windows folder
- execute tools\android.bat from here
- give me the output please :-)

Also, an important question: Do you have Java installed on your machine?

R/

On Tue, Oct 27, 2009 at 3:50 PM, mellery451 mellery...@gmail.com wrote:

 I'm refreshing my android SDKs as I had some very old versions on my
 Windows XP machine.

 I grabbed the latest package for the windows tools - specifically:

 http://developer.android.com/sdk/download.html?v=android-sdk_r3-windows.zip

 I unpack it and put the tools directory in my path. When I try to run
 SDK Setup.exe, it does nothing. No output, nothing.

 Anyone else had this problem? How should I start diagnosing the issue?

 


--~--~-~--~~~---~--~~
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: Taking Screenshots from Phone using Windows 7?

2009-10-28 Thread Justin Anderson
Had you by chance connected your phone to your computer once before having
it set up to debug?

There is a known issue on Windows when this is the case.  If this is your
problem, try following these steps:

Try this link:
http://www.anddev.org/debugging-installing_apps_on_the_g1_windows_driver-t3236.html

Step 5 most likely will not happen. If it does not then try the
following:
- Open Device Manager
- You should see something mentioning your Galaxy, or an ADB
Interface, or perhaps even just something with a yellow question mark
on it
- Right click and choose Update Driver Software
- Browse to the file you downloaded and unzipped
- When finished restart your computer

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Oct 27, 2009 at 9:30 AM, martani_net martani@gmail.com wrote:


 I have the same problem, and the device seems to be installed normally
 with the drivers from the SDK.

 If you figure out a solution please post it here.

 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] Re: rega

2009-10-28 Thread Justin Anderson
http://developer.android.com/reference/android/os/Bundle.html

It is simply a class that holds data in key-value pairs.  In onCreate is
most often used to save state in your class for when the OS stops and
restarts your package...  i.e. when the screen rotates, or if the OS decides
to shut down your app while it is in the background.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Oct 27, 2009 at 12:27 AM, balanagu sabareesh
bsabare...@gmail.comwrote:

 ya i have read the document i little bit understood about bundle if you
 have any brief idea please tell.


 On Tue, Oct 27, 2009 at 11:36 AM, Justin Anderson janderson@gmail.com
  wrote:

 Have you read the docs?


 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Mon, Oct 26, 2009 at 10:10 PM, sabs bsabare...@gmail.com wrote:



 Hi everybody,
 onCreate(Bundle savedInstanceState)
 can any tell me about the Bundle.







 


--~--~-~--~~~---~--~~
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] What does the Home button do?

2009-10-28 Thread jbrohan

I'm running into a problem that when I press Home in say the settings
page of my app, it finishes OK but the next time I start it's back in
settings. I'd really prefer it to start at the beginning!
It looks from the trace that the calling activity is not itself
returned to and stopped
Thanks
John
--~--~-~--~~~---~--~~
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: What does the Home button do?

2009-10-28 Thread RichardC

It's a little to much to explain here, have a read of:

http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html
and
http://developer.android.com/guide/topics/fundamentals.html

But basically pressing [home] puts your task into the background, it
does NOT finish it (even though the process may be killed).  When you
return to your application it is restarted from where it left off.
There are quite a few ways of changing this behaviour see Launch
modes in the second link above.

Have a read of the above and if you have further questions I will try
to answer them.

--
RicharDC

On Oct 28, 7:04 pm, jbrohan jbro...@gmail.com wrote:
 I'm running into a problem that when I press Home in say the settings
 page of my app, it finishes OK but the next time I start it's back in
 settings. I'd really prefer it to start at the beginning!
 It looks from the trace that the calling activity is not itself
 returned to and stopped
 Thanks
 John
--~--~-~--~~~---~--~~
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 2.0 on Dev Phone

2009-10-28 Thread otto888

There is a very unstable Android 2 rom out for G1/ADP1. I'm running it
right now seeing what works.
Works: Calls  Data
Doesn't work: Wifi, Bluetooth, sound(in-call sound works :\),and its
slow.
Link for the brave: http://forum.xda-developers.com/showthread.php?t=577291

On Oct 28, 12:39 pm, wonglik wag...@gmail.com wrote:
 I am also very curious about that. But I am a bit confused. Some
 sources claim it will run on G1 some that it will not. HTC site now
 does not offer 2.0 image at the moment.

 On Oct 28, 6:06 pm, Vinicius Carvalho viniciusccarva...@gmail.com
 wrote:



  Probably not what? ...

  On Oct 28, 1:54 pm, okubax oku...@gmail.com wrote:

   probably not

   On Oct 28, 3:49 pm, Vinicius Carvalho viniciusccarva...@gmail.com
   wrote:

Hello there! Does anyone knows when will it be available the images to
install on the dev phone 1? I'm really excited about the new features:
Maps Navigation rules :)
--~--~-~--~~~---~--~~
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] Dynamic linking error in MacOS 10.4.11?

2009-10-28 Thread Eno

Im trying to run aapt and Im seeing this error:

dyld: Symbol not found: _open$UNIX2003
  Referenced from: /Users/test/Desktop/Android/android-sdk/platforms/
android-1.5/tools/aapt
  Expected in: /usr/lib/libSystem.B.dylib

Just wondering if I need to upgrade my OS or some component in my
install is missing?



--

--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread Raphael

I don't think posting up up every 2 hours is going to help any...

M3 is a seriously obsolete release, which dates before Android had any
kind of stable API in place. If you really want help porting your
code, you might as well start by listing the compilation errors you
get. I also noticed you mentioned you were using the 1.5 SDK -- you
might want to switch to the latest 2.0 SDK.

R/

--~--~-~--~~~---~--~~
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: listen for when my app is installed

2009-10-28 Thread Raphael

Out of curiosity, why do you want to copy your assets on the sdcard
anyway? They are already nicely zipped in your APK.
R/

On Wed, Oct 28, 2009 at 9:45 AM, Jeffrey Blattman
jeffrey.blatt...@gmail.com wrote:

 i would like to copy some files from assets to the SD card when my app is 
 installed. i see the PACKAGE* intents, but i'm unclear which one (or set) i 
 should be listening for. i am sure this is a common pattern, can someone 
 point me to a page that describe the proper way to do this?

 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: Issue with Android Debug Bridge

2009-10-28 Thread Raphael

So you're trying to see an emulator, right, not a physical device?

Can you tell us a bit more:
- the version of adb: adb version
- the version of your emulator: emulator -version (give the full
first line, including build_id)
- is the emulator fully booted when you try to see it in adb? does it
have network?
- what AVD platform are you trying to run in your emulator?

R/

--~--~-~--~~~---~--~~
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: taking a screenshot...of whatever is drawn on the view

2009-10-28 Thread Raphael

I don't know about the DrawingCache. However if all you want is to
draw your view to a bitmap, that's pretty easy: create a new bitmap,
wrap it in a new Canvas(theBitmap) and call your view.onDraw with this
canvas.

R/

On Wed, Oct 28, 2009 at 3:04 AM, Samuh samuh.va...@gmail.com wrote:

 I am trying to take a screen shot of whatever is drawn on my custom
 view's canvas. I use the following lines for the same:

--~--~-~--~~~---~--~~
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: listen for when my app is installed

2009-10-28 Thread Jeffrey Blattman




ehhh ... they are sample files that the user is allowed to edit. i was
trying to keep track of things, like when the user edits an asset file,
copy it to the sdcard and ignore the asset file from then on ... and
doing something like when the user removes the file, mark it removed by
adding a *-removed file to the SD card. all of that was getting
confusing. it's much simpler if i can just assume one location for file
where i know they can be edited without having to worry about this r/o
file mirror in another place.

as suggested, i just have some code in onCreate() that copies the
assets to the SD card, if they don't exist there already. simple and
easy. i was over complicating things by trying to listen for app
installation.

On 10/28/09 4:12 PM, Raphael wrote:

  
Out of curiosity, why do you want to copy your assets on the sdcard
anyway? They are already nicely zipped in your APK.
R/

On Wed, Oct 28, 2009 at 9:45 AM, Jeffrey Blattman
jeffrey.blatt...@gmail.com wrote:
  
  

i would like to copy some files from assets to the SD card when my app is installed. i see the PACKAGE* intents, but i'm unclear which one (or set) i should be listening for. i am sure this is a common pattern, can someone point me to a page that describe the proper way to do this?

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] How to add a dialog in a AppWidget

2009-10-28 Thread Carl

Hi all,

I am trying to add a dialog to a widget I made, in where when you
press it, it displays two options, YES and NO. If the user presses
YES, it will start an Activity.
I tried to use android.app.Dialog but it looks like it only works with
Activities. Is there any way of achieving this?

Thanks.

Carl

--~--~-~--~~~---~--~~
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: What does the Home button do?

2009-10-28 Thread jbrohan

Thanks RicharDC

This explains a lot. Why the MyTracks is always there using up my
battery, and more to the point why my application that uses a Camera
fails sometimes. I think I'm sure I want to go right back to OFF when
the user presses Home or Back. Do regular users understand this or am
I lacking some gene required to operate a cell-phone.

The example of moving from email to Gallery etc is interesting. My
thrust is to keep the app predictable. Starting from the same place is
predictable. Snap a picture, send it in, stop. Snap a picture, fiddle
with the settings, send in the picture, do it again, stop. It seems to
me I have to end in a stop except where the sequence is interrupted by
a phone call, and that works fine already.

I think what I'd like is to intercept the Home button and finish() my
whole task. I'll look into this in the morning.
Thanks again
John


--~--~-~--~~~---~--~~
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: TabWidget causing null pointer

2009-10-28 Thread tatman

I got the debugger attached and in the debugger I
see the exception RuntimeException, Your content must have a TabHost
whose id attribute is 'android.R.id.tabhost'

I have set the id of my tabhost element to tabhost.  I've also set it
in pretty much every other control.  I've looked at a number of
samples nothing is standing out as to what I did wrong.  Im at a
loss.

?xml version=1.0 encoding=utf-8?
TabHost
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:id=@+id/tabhost
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  LinearLayout
android:id=@+id/tabLinearLayoutID
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TabWidget
   android:id=@+id/tabs
   android:layout_width=fill_parent
   android:layout_height=wrap_content
  /
 FrameLayout
   android:id=@+id/tabFrameID
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   
   TextView
   android:id=@+id/textView1Id
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:text=tab 1
   /
   TextView
   android:id=@+id/textView2Id
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:text=tab 2
   /
   TextView
   android:id=@+id/textView3Id
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:text=tab 3
   /
 /FrameLayout
  /LinearLayout
/TabHost


On Oct 28, 8:22 am, tatman matt.raf...@gmail.com wrote:
 I'm trying to figure out how to use the TabHost.  I am following this
 example 
 here:http://developer.android.com/guide/tutorials/views/hello-tabwidget.html

 The TabWidget control is causing a null pointer exception.  If I
 take it out, then I do not have the exception.   From what I can
 see, I've followed the example closely.   Has anyone else seen this?
 or have an idea what's the problem?

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:orientation=vertical
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         TabHost
                 xmlns:android=http://schemas.android.com/apk/res/android;
                 android:id=@+id/tabHostId
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 LinearLayout
                         
 xmlns:android=http://schemas.android.com/apk/res/android;
                         android:orientation=vertical
                         android:layout_width=fill_parent
                         android:layout_height=fill_parent
                         TabWidget
                                 android:id=@+id/tabWidgetId
                                 android:layout_width=fill_parent
                                 android:layout_height=wrap_content /
                         FrameLayout
                                 android:id=@+id/tabContentId
                                 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
                                 TextView
                                         android:id=@+id/tabView1Id
                                         android:layout_width=fill_parent
                                         android:layout_height=fill_parent /
                                 TextView
                                         android:id=@+id/tabView2Id
                                         android:layout_width=fill_parent
                                         android:layout_height=fill_parent /
                                 TextView
                                         android:id=@+id/tabView3Id
                                         android:layout_width=fill_parent
                                         android:layout_height=fill_parent /
                         /FrameLayout
                 /LinearLayout
         /TabHost
 /LinearLayout

 Thnx
 Matt
--~--~-~--~~~---~--~~
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: Error early in development

2009-10-28 Thread hawksd20

Did you just use the installation directions given on the website and
also in the hello android tutorial because I have gone through those
directions several times trying to figure out if I am doing something
wrong but I am almost positive I have followed the directions
correctly and I don't know how I will ever get this to work.

On Oct 26, 4:59 pm, Paul Turchenko paul.turche...@gmail.com wrote:
 I personally have everything installed on Windows 7. There's no
 HOMEDRIVE or HOMEPATH variables set in my environment. Everything
 works fine here without it.

 On Oct 25, 7:02 pm, hawksd20 hawks...@yahoo.com wrote:



  I'm still stuck on this, is anyone else having this problem or is it
  just me?
--~--~-~--~~~---~--~~
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] Any suggestions on how to save and XML DOM back to a file?

2009-10-28 Thread launchpadtt

Hello,

I have this app that's reading in an xml file into a document object.
usually with code like this.

Java:
InputStream in=openFileInput(file.xml);
DocumentBuilder builder=DocumentBuilderFactory.newInstance
().newDocumentBuilder();
Document doc=builder.parse(in, null);
certainelements=doc.getElementsByTagName(elementname);


then i would make changes to the some of the element attributes. But
I'd like to save it back to a file. The snippets I've found on the net
involve some of the following packages

import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.apache.xml.serialize.XMLSerializer;

none of which seem to be a part of android (at least according to
eclipse)

my question is how do I save the contents of the document object back
to a file then? I'd like to save only the changes I made but I don't
mind if I overwrite the whole file. I was thinking I could output it
to a string and just use the Working with Files tutorial to save that
string back to the file, but I don't know how to do that either.

Any assistance is 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
-~--~~~~--~~--~--~---