Re: [android-beginners] Fighting with Eclipse

2010-02-23 Thread Ralf Schneider
All you suggestion are working. Thanks a lot!

- Ralf

2010/2/24 Xavier Ducrohet x...@android.com

 On Mon, Feb 22, 2010 at 2:27 AM, Ralf Schneider li...@gestaltgeber.com
 wrote:
  Hello,
 
  I develop my application in C++ with the NDK.
 
  The C++ part is no problem for me.
  I'm using cygwin and Visual C++ (my project is completely cross-platform
 and
  I can test and debug everything with my desktop computer under Windows).
 
  But, I'm really new to Eclipse. There are two annoying things I like to
 get
  rid off.
 
  1.) Whenever I start my application in the debugger with Eclipse I get
  asked: Select a way to debug  A list of options follows: Android
  Application, Android JUnit Test, ...
  = Becuase my application is always the same type: An Android
 Application
  I really want to get rid of this stupid question! How can I disable this
  dialog and go straight into the debug perspective?

 I'm guessing you're launching the debug session by simply clicking the
 Debug (green bug) icon in the toolbar, or Run Debug from the menu?

 What this does is make Eclipse try to create/find a launch
 configuration that is valid for your project instead of launching a
 specific configuration, which is what you should do after you've
 created one or launched once (this creates one the first time)

 here's what you could do:
 - use the drop down menu next to the icon to see the list of existing
 launch config (or open Debug configurations to create a new one).
 - Go to the preferences and under Run/Debug  Launching, change the
 Launch Operation preference to Always launch the previously
 launched application. That way you can just click the bug icon
 directly (or use the Run  Debug which actually becomes Run  Debug
 Last Launched)

  2.) Because I'm using the NDK my Android Projects contains a shared
 library.
  If I compile a new version of the library Eclipse does not recognize that
  the library has changed and does not create a new package. So, I always
 have
  to make a modification(space, backspace) to a Java source file if I
 create a
  new shared library.
  = How can I tell Eclipse the project depends on the shared library? If
 the
  library changes Eclipse should create and deploy a new package.

 It looks like your workspace isn't set for auto-refresh. Go to the
 preferences and under General  Workspace check refresh
 automatically.
 This will make Eclipse automatically detect files that are changed
 outside of Eclipse and trigger a recompilation.

 Xav
 --
 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.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 Exchange support

2009-11-04 Thread Ralf
Hello Henrik,

we also encountered problems trying the Android 2.0 emulator to
connect to company exchange 2007 server.
Actually we didn´t even come to be connected. The server is found but
login/pwd will be rejected. Logfiles show the same conntecting details
as using a Windows Mobile Phone with Exchange sync.
Did you already found out anything new?

Best regards
Ralf

-- 
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 Forwarding Sample don't work

2009-04-13 Thread Ralf

Could you look at the logcat output (Eclipse  Windows  Perspective 
DDMS) or adb logcat from a shell? There should be a strack trace
that will tell you exactly what crashed.

For example, are you sure that the findViewById does not return null?
R/

On Sat, Apr 11, 2009 at 7:59 PM, evo lanev...@gmail.com wrote:

 Hi,
 I had try some simply code on android. but when run on emulator. the
 1st pages are fine, when click the button to second pages. it pop up
 error Sorry - The application Pages (process com.Pages) has stop
 unexpectedly

 here the code:[Pages.java]

 package com.Pages;

 import android.app.Activity;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.Button;

 public class Pages extends Activity
 {
   �...@override
        protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);

        // Watch for button clicks.
        Button goButton = (Button)findViewById(R.id.go);
        goButton.setOnClickListener(mGoListener);
    }

    private OnClickListener mGoListener = new OnClickListener()
    {
        public void onClick(View v)
        {
            Intent intent = new Intent();
            intent.setClass(Pages.this, loli.class);
            startActivity(intent);
        }
    };
 }

 an next pages code[loli.java]:
 package com.Pages;

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


 /**
  * Example of removing yourself from the history stack after
 forwarding to
  * another activity.
  */
 public class loli extends Activity
 {
   �...@override
        protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.loli);
    }
 }

 I did't find any error on the code, is there any mistake done by 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] Re: How to hide alert dialog programmatically?

2009-04-12 Thread Ralf

On Sun, Apr 12, 2009 at 3:35 PM, SteleFreak mijatovste...@gmail.com wrote:

 Is there a way to hide alert dialog after it has been shown, but

http://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)

R/

 programmatically?? Or is the BACK button only way? Or if i need to
 implement a button , what method should I call for alert to be hidden?
 


--~--~-~--~~~---~--~~
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 finding java/javascript html program

2009-04-12 Thread Ralf

Did you request the INTERNET permission in your manifest?
http://developer.android.com/reference/android/Manifest.permission.html#INTERNET
uses-permission android:name=android.permission.INTERNET /

R/

On Sun, Apr 12, 2009 at 6:30 PM, Thomas tbirchm...@usa.net wrote:

 Hi Guys:
 I've written a small javascript - html program
 http://gpsmancer/android/amdroidgpstest.html to test linking to an
 android platform.  With this I've written as small program that uses a
 java  wv.loadUrl( http://gpsmancer.com/android/androidgpstest.html;)
 in a android java program. The idea is to provide GPS latitude and
 longitude to an html form program.  When I run the app using the
 emulator I get Web page not available. If I go to the android
 emulator web browser it finds the url without difficulty.  It has not
 trouble finding other URLs as well.  My question: do I need to set
 some sort of emulator setting or permission or does the emulator not
 work with java/javascript/html?  For those that care about geocaching,
 the game can be seen at http://gmpmancer.com . There are several
 variations and I am attempting to extend the game to android.  I have
 a netbook version working on my ASUS netbook running winXP but the
 android platform seems to be a logical extension.  Some of the
 versions work on IPhone, and various cellphones but in a crippled
 sense.
 Regards, Tom Birchmire

 


--~--~-~--~~~---~--~~
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: Horizontal RadioGroup

2009-04-12 Thread Ralf

RadioGroup inherits from LinearLayout, so you should be able to simply
use android:orientation=horizontal in your XML or the corresponding
java code (disclaimer: I've never tried to do so, but it seems
logical)

R/

On Sun, Apr 12, 2009 at 2:56 PM, kaloer mkal...@gmail.com wrote:

 Hi!
 I'm new to Android Developing, and don't know how to list the
 RadioButtons in a RadioGroup horizontal instead of the default
 vertical way.

 Default it is like this:
 (o) XX
 (o) XX
 (o) XX

 How can i do this:
 (o) X (o) X (o) X

 I am doing the layout in code, so please answer using that instead of
 xml :-)

 Best Regards
 Kaloer

 


--~--~-~--~~~---~--~~
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: Toggle Button

2009-04-12 Thread Ralf

Use an AbsoluteLayout.
R/

On Sat, Apr 11, 2009 at 10:46 PM, Moorthy jegatheeshmoor...@gmail.com wrote:

 Hi all ,
     I am new to android. I want to add Toggle Button in a particular
 position (x , y) .so any idea please suggest 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: how to read specific part in a string

2009-03-17 Thread Ralf

I'd suggest to take that opportunity to learn on regexp and try a/ to
understand what the one we gave you does and b/ how to modify it with
your new requirement.

Franky, regex are not that hard to come up with -- it is harder to
read an existing one than to write one :-)

I suggest the following reading:
- Regex as implemented by Java:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html
- Any book on Perl will have a regex section. The canonical reference is here:
   http://perldoc.perl.org/perlretut.html

Learning regex is an essential tool in your programming knowledge.
Maybe this will convince you: http://xkcd.com/208/ :-D

Hope this helps,
R/


On Tue, Mar 17, 2009 at 1:39 PM, guruk ilovesi...@gmail.com wrote:

 I will try it... looks good :) i love this regex stuff, but still have
 no clue about.. haha
 but if it works.. respect..
 can you also do something like sm1 (serge) that includes also
 attributes like:
 status code=0/

 So i guess we need something like.

 takeit (OrgString, Tagstring, AltTag)
 like: takeit (myString, status, code)

 and best (than all is included)
 takeit (myString, status, code,position)
 -- for example if this Tag appears several times in the code I could
 specify which one I would like to parse :)

 Greets
 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] Re: Problem creating new app

2009-03-16 Thread Ralf

I don't think ADT supports Eclipse 3.2 anymore. Could you please try
with Eclipse 3.3 or 3.4?

R/

On Sun, Mar 15, 2009 at 4:41 PM, Kevin J. Brooks
bear123434...@comcast.net wrote:
 I had to re-install my whole operating system.  Now after reinstalling
 Eclipse 3.2 and Android SDK I can to create a new application. Here is a
 screen shot of the screen.

 


--~--~-~--~~~---~--~~
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 do I set the focus to a widget?

2009-03-16 Thread Ralf

On Sun, Mar 15, 2009 at 11:14 PM, frizzo rg...@vbrad.com wrote:

 I am trying to set the focus to a EditText widget, but I don't see any
 way to do it.  What am I missing?

http://developer.android.com/reference/android/view/View.html#requestFocus()

R/


 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: Cannot run Android emulator on Linux

2009-03-16 Thread Ralf

Please post the exact error message you get when you try to run the
emulator. You're most likely missing a lib or something like that. Run
the emulator with -verbose.
R/

On Sun, Mar 15, 2009 at 3:23 AM, Mohi mom...@gmail.com wrote:

 Hi,

 I downloaded the the entire SDK for my ubuntu machine. Then I went to
 tools directory and ran ./emulator which opened the emulator
 correctly.

 However, I did the same thing on my 64 bit Arch Linux computer, but
 when I use ./emulator, it tells me such file or directory doesn't
 exist.

 Note that, I have uninstalled openjdk6 from my computer and installed
 Sun JDK, but still not able to get the emulator running.

 My ubuntu laptop is a slow computer and if I run eclipse, it gets even
 slower. That is, it's very annoying to do my coding on it.

 Anyone had such problem before?

 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] Re: INTERNET permission won't let my app start

2009-03-15 Thread Ralf

Could you post your manifest?
In your log it clearly says that you don't provide the INTERNET
permission. Could it be a typo or a syntax issue?

java.lang.SecurityException: Permission Denial: starting Intent
{ flags=0x1000 comp={dev.funnyrss/dev.funnyrss.FRSS} } from null
(pid=-1, uid=-1) requires android.permission.INTERNET


R/


On Fri, Mar 13, 2009 at 11:14 AM, The Savage Killer
thesavage.kil...@gmail.com wrote:

 My application won't start anymore after I've given it internet
 permissions in the manifest file, without the permissions i get a
 simple socket error.
 Here's a LogCat of a debug run:

 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): 
 AndroidRuntime START 
 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): CheckJNI is ON
 03-13 18:05:59.493: DEBUG/AndroidRuntime(662): --- registering native
 functions ---
 03-13 18:05:59.503: INFO/jdwp(662): received file descriptor 19 from
 ADB
 03-13 18:06:00.712: DEBUG/PackageParser(52): Scanning package: /data/
 app/vmdl24071.tmp
 03-13 18:06:00.862: WARN/PackageManager(52): Attempt to re-install
 dev.funnyrss without first uninstalling.
 03-13 18:06:00.862: INFO/installd(27): unlink /data/dalvik-cache/
 d...@app@vmdl24071@classes.dex
 03-13 18:06:00.902: DEBUG/AndroidRuntime(662): Shutting down VM
 03-13 18:06:00.902: DEBUG/dalvikvm(662): DestroyJavaVM waiting for non-
 daemon threads to exit
 03-13 18:06:00.913: INFO/dalvikvm(662): DestroyJavaVM shutting VM down
 03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread shutting
 down
 03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread has shut
 down
 03-13 18:06:00.922: DEBUG/jdwp(662): JDWP shutting down net...
 03-13 18:06:00.932: DEBUG/jdwp(662): +++ peer disconnected
 03-13 18:06:00.932: INFO/dalvikvm(662): Debugger has detached; object
 registry had 1 entries
 03-13 18:06:00.952: DEBUG/dalvikvm(662): VM cleaning up
 03-13 18:06:00.972: DEBUG/dalvikvm(662): LinearAlloc 0x0 used 529708
 of 4194304 (12%)
 03-13 18:06:01.252: DEBUG/dalvikvm(52): GC freed 5687 objects / 344760
 bytes in 363ms
 03-13 18:06:01.423: DEBUG/AndroidRuntime(670): 
 AndroidRuntime START 
 03-13 18:06:01.423: DEBUG/AndroidRuntime(670): CheckJNI is ON
 03-13 18:06:01.653: DEBUG/AndroidRuntime(670): --- registering native
 functions ---
 03-13 18:06:01.672: INFO/jdwp(670): received file descriptor 19 from
 ADB
 03-13 18:06:02.842: DEBUG/PackageParser(52): Scanning package: /data/
 app/vmdl24072.tmp
 03-13 18:06:02.992: DEBUG/PackageManager(52): Removing package
 dev.funnyrss
 03-13 18:06:02.992: DEBUG/PackageManager(52):   Activities:
 dev.funnyrss.FRSS dev.funnyrss.FRSS2
 03-13 18:06:03.002: DEBUG/PackageManager(52): Scanning package
 dev.funnyrss
 03-13 18:06:03.012: INFO/PackageManager(52): /data/app/vmdl24072.tmp
 changed; unpacking
 03-13 18:06:03.022: DEBUG/installd(27): DexInv: --- BEGIN '/data/app/
 vmdl24072.tmp' ---
 03-13 18:06:03.252: DEBUG/dalvikvm(676): DexOpt: load 41ms, verify
 39ms, opt 1ms
 03-13 18:06:03.262: DEBUG/installd(27): DexInv: --- END '/data/app/
 vmdl24072.tmp' (success) ---
 03-13 18:06:03.272: DEBUG/PackageManager(52):   Activities:
 dev.funnyrss.FRSS dev.funnyrss.FRSS2
 03-13 18:06:03.442: INFO/installd(27): move /data/dalvik-cache/
 d...@app@vmdl24072@classes.dex - /data/dalvik-cache/
 d...@app@dev.funnyrss@classes.dex
 03-13 18:06:03.453: DEBUG/PackageManager(52): New package installed
 in /data/app/dev.funnyrss.apk
 03-13 18:06:03.672: DEBUG/AndroidRuntime(670): Shutting down VM
 03-13 18:06:03.672: DEBUG/dalvikvm(670): DestroyJavaVM waiting for non-
 daemon threads to exit
 03-13 18:06:03.683: DEBUG/ActivityManager(52): Uninstalling process
 dev.funnyrss
 03-13 18:06:03.692: INFO/dalvikvm(670): DestroyJavaVM shutting VM down
 03-13 18:06:03.692: DEBUG/dalvikvm(670): HeapWorker thread shutting
 down
 03-13 18:06:03.692: DEBUG/dalvikvm(670): HeapWorker thread has shut
 down
 03-13 18:06:03.692: DEBUG/jdwp(670): JDWP shutting down net...
 03-13 18:06:03.692: DEBUG/jdwp(670): +++ peer disconnected
 03-13 18:06:03.692: INFO/dalvikvm(670): Debugger has detached; object
 registry had 1 entries
 03-13 18:06:03.712: DEBUG/dalvikvm(670): VM cleaning up
 03-13 18:06:03.762: DEBUG/dalvikvm(670): LinearAlloc 0x0 used 529708
 of 4194304 (12%)
 03-13 18:06:04.062: DEBUG/dalvikvm(92): GC freed 1173 objects / 60968
 bytes in 351ms
 03-13 18:06:04.363: DEBUG/dalvikvm(52): GC freed 4225 objects / 220864
 bytes in 353ms
 03-13 18:06:04.483: DEBUG/AndroidRuntime(681): 
 AndroidRuntime START 
 03-13 18:06:04.503: DEBUG/AndroidRuntime(681): CheckJNI is ON
 03-13 18:06:04.872: DEBUG/AndroidRuntime(681): --- registering native
 functions ---
 03-13 18:06:04.892: INFO/jdwp(681): received file descriptor 19 from
 ADB
 03-13 18:06:06.132: DEBUG/ActivityManager(52): Uninstalling process
 dev.funnyrss
 03-13 18:06:06.132: INFO/ActivityManager(52): Starting activity:
 Intent { flags=0x1000 comp={dev.funnyrss/dev.funnyrss.FRSS} }
 03-13 18:06:06.132: WARN/ActivityManager(52): Permission Denial:

[android-beginners] Re: Defining dialogs in layout files?

2009-03-15 Thread Ralf

If you extend AlertDialog you can call setView() when you create it, e.g.:

public class SomeDialog extends AlertDialog {

protected SomeDialog(Context context) {
super(context);

View content =
getLayoutInflater().inflate(R.layout.percent_alert, null/* root */);
setView(content);
...
   }
}

HTH
R/

On Sun, Mar 15, 2009 at 5:50 AM, Hermes Pique hermespi...@gmail.com wrote:

 Is there a native way of defining dialogs (icon, title, content,
 buttons, etc.) in layout (xml) files?

 All examples I've found create dialogs through code.

 Thank you.

 H.
 


--~--~-~--~~~---~--~~
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 read specific part in a string

2009-03-15 Thread Ralf

Or the equivalent:

public String takeit(String input, String tag) {
Pattern p = Pattern.compile(.*?( + tag + )([^]*)/\\1);
Matcher m = p.matcher(input);
return m.matches() ? m.group(2) : null;
}

R/

On Thu, Mar 12, 2009 at 1:34 PM, EECOLOR eeco...@gmail.com wrote:
 I think that would be something like this:

 public String takeit(String str, String tag)
 {
  return str.replace(.*? + tag + (.*?)/ + tag + .*, $1);
 }

 Greetz Erik

 On Thu, Mar 12, 2009 at 7:14 PM, guruk ilovesi...@gmail.com wrote:

 Hi,
 i have a long String and need to capture some text in between of some
 tags.

 for example:

 myString=Hello, this is a test start12345/start and here i like
 to say markioioidddad/marki what is that opxmarknotwise/
 opxmark and now i close;

 How would you do in java regex or any short thing like:

 starttag = takeit(myString,start);          //result = 12345
 marktag =takeit(myString,marki);         //result = oioidddad
 opxmark=takeit(myString,opxmark);    //result == notwise

 thanks a lot from your java newbie :)

 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] Re: Can Java dynamically reference an object?

2008-12-30 Thread Ralf

You can't do that in Java. R is not a hash but a static java file
pre-generated. It contains a bunch of integer constants to reference
your resources.

If you really need to access your resources dynamically, there's a way
using strings but it's slower so it's not recommended.
R/

On Tue, Dec 30, 2008 at 8:17 AM, myIP marckas...@gmail.com wrote:

 As being a programmer from ActionScript, I am trying to use brackets
 ( [  ] ) to reference an Object.  In ActionScript the following is
 syntactically correct:


 //ActionScript
 var currentIcon:Drawable = getResources().getDrawable(  R
 [drawable].icon  );

 //attempt in Java
 Drawable currentIcon   = getResources().getDrawable(  R
 [drawable].icon  );
 


--~--~-~--~~~---~--~~
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: Help reqd: Dalvikvm crashing while starting WiFi Service

2008-12-30 Thread Ralf

You might want to post on the android-porting mailing list instead.

R/

On Tue, Dec 30, 2008 at 5:33 AM,  Jith911 jithuja...@gmail.com wrote:

 Hi all,

 Could some one help me with the below error logs.. I am running
 Android on a PXA platform with a custom wifi driver. when I try to
 invoke Wifi Manager from settings, the GUI crashes. I am attaching the
 logs below..

 Thanks in Advance..
 --

  I/ActivityManager(  713): Starting activity: Intent {

 action=android.intent.action.MAIN comp=

 {com.android.settings/com.android.settings.wifi.WifiSettings} }
 V/WifiMonitor(  713): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
 V/WifiStateTracker(  713): Changing supplicant state: INACTIVE ==
 SCANNING
 D/SettingsWifiEnabler(  882): Received wifi state changed from
 Enabling to

 Enabled
 I/ActivityManager(  713): Displayed activity

 com.android.settings/.wifi.WifiSettings: 369 ms
 V/WifiMonitor(  713): Event [CTRL-EVENT-SCAN-RESULTS  Ready]
 D/LocationManagerService(  713): NetworkStateBroadcastReceiver: WiFi
 debug

 point 1
 W/dalvikvm(  713): threadid=15: thread exiting with uncaught
 exception

 (group=0x40013e28)
 E/AndroidRuntime(  713): Uncaught handler: thread
 android.server.ServerThread

 exiting due to uncaught exception
 E/AndroidRuntime(  713): *** EXCEPTION IN SYSTEM PROCESS.  System will
 crash.
 E/AndroidRuntime(  713): java.lang.RuntimeException: Error receiving
 broadcast

 Intent { action=android.net.wifi.SCAN_RESULTS } in

 com.android.server.LocationManagerService
 $networkstatebroadcastrecei...@435c8a

 90
 E/AndroidRuntime(  713):at

 android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

 (ActivityThread.java:667)
 E/AndroidRuntime(  713):at android.os.Handler.handleCallback

 (Handler.java:542)
 E/AndroidRuntime(  713):at android.os.Handler.dispatchMessage

 (Handler.java:86)
 E/AndroidRuntime(  713):at android.os.Looper.loop(Looper.java:
 123)
 E/AndroidRuntime(  713):at com.android.server.ServerThread.run

 (SystemServer.java:313)
 E/AndroidRuntime(  713): Caused by:
 java.lang.IllegalArgumentException:

 key.length  31
 E/AndroidRuntime(  713):at android.os.SystemProperties.get

 (SystemProperties.java:42)
 E/AndroidRuntime(  713):at

 com.android.internal.location.LocationCollector.isCollectionEnabled

 (LocationCollector.java:360)
 E/AndroidRuntime(  713):at

 com.android.internal.location.LocationCollector.updateWifiScanResults

 (LocationCollector.java:259)
 E/AndroidRuntime(  713):at

 com.android.server.LocationManagerService
 $NetworkStateBroadcastReceiver.onRece

 ive(LocationManagerService.java:1540)
 E/AndroidRuntime(  713):at

 android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

 (ActivityThread.java:656)
 E/AndroidRuntime(  713):... 4 more
 I/Process (  713): Sending signal. PID: 713 SIG: 9
 I/ServiceManager(  652): service 'SurfaceFlinger' died
 I/ActivityThread(  863): Removing dead content provider: settings
 I/ActivityThread(  781): Removing dead content provider: settings
 I/ActivityThread(  773): Removing dead content provider: settings
 I/ServiceManager(  652): service 'power' died
 I/ServiceManager(  652): service 'telephony.registry' died
 I/ServiceManager(  652): service 'package' died
 I/ServiceManager(  652): service 'activity' died
 I/ServiceManager(  652): service 'batteryinfo' died
 I/ServiceManager(  652): service 'meminfo' died
 I/ServiceManager(  652): service 'content' died
 I/ServiceManager(  652): service 'cpuinfo' died
 I/ServiceManager(  652): service 'activity.broadcasts' died
 I/ServiceManager(  652): service 'activity.services' died
 I/ServiceManager(  652): service 'activity.senders' died
 I/ServiceManager(  652): service 'activity.providers' died
 I/ServiceManager(  652): service 'permission' died
 I/ServiceManager(  652): service 'battery' died
 I/ServiceManager(  652): service 'alarm' died
 I/ServiceManager(  652): service 'sensor' died
 I/ServiceManager(  652): service 'window' died
 I/ServiceManager(  652): service 'bluetooth' died
 I/ServiceManager(  652): service 'audio' died
 I/ServiceManager(  652): service 'wifi' died
 I/ServiceManager(  652): service 'connectivity' died
 I/ServiceManager(  652): service 'notification' died
 I/ServiceManager(  652): service 'mount' died
 I/ServiceManager(  652): service 'devicememorymonitor' died
 I/ServiceManager(  652): service 'statusbar' died
 I/ServiceManager(  652): service 'hardware' died
 I/ServiceManager(  652): service 'netstat' died
 I/ServiceManager(  652): service 'location' died
 I/ServiceManager(  652): service 'search' died
 I/ServiceManager(  652): service 'clipboard' died
 I/ServiceManager(  652): service 'checkin' died
 I/ServiceManager(  652): service 'wallpaper' died
 I/ActivityThread(  882): Removing dead content provider: settings
 E/installd(  662): eof
 E/installd(  662): 

[android-beginners] Re: Device not found

2008-12-30 Thread Ralf

Is this on Windows? Which version?

Can you check in the Device Manager that the USB device appears? If it
doesn't appear at all, it would be an USB issue unrelated to android.
If it appears as unknown, try re-installing the android usb driver
from 1.0_r2.

R/

On Mon, Dec 29, 2008 at 3:56 PM, Naren mv.naren...@gmail.com wrote:

 Hi,

 I am trying to run adb shell command in the command prompt. I am
 getting Device not found error. I have installed the USB drivers too.

 Can you please help me out...

 Thanks,
 Naren

 


--~--~-~--~~~---~--~~
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: Folders on the Main Menu

2008-12-30 Thread Ralf

If you mean the Home screen on the G1, you can already create folders.
Simply long-press and select New Folder.

R/

On Mon, Dec 29, 2008 at 1:09 PM, Sharmine mella.almon...@gmail.com wrote:

 I would like to organize my main menu by categories (by putting them
 in folders) e.g. Games in the Games folder.
 Is there an application that allows me to do that yet?

 


--~--~-~--~~~---~--~~
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: my application wont even appear in the emulator

2008-12-30 Thread Ralf

In your AndroidManifest.xml) make sure you defined an intent filter
with a MAIN category:

activity ...
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

If you don't, the activity cannot be started.

R/

On Mon, Dec 29, 2008 at 9:06 AM, Fender cmglassm...@gmail.com wrote:

 i think i found the problem.

 when i boot up a hello android program, i get this:


 [2008-12-29 09:02:21 - Copy of HelloAndroid] Installing Copy of
 HelloAndroid.apk...
 [2008-12-29 09:02:23 - Copy of HelloAndroid] Success!
 [2008-12-29 09:02:23 - Copy of HelloAndroid] Starting activity
 com.android.hello.HelloAndroid on device
 [2008-12-29 09:02:25 - Copy of HelloAndroid] ActivityManager:
 Starting: Intent { comp={com.android.hello/
 com.android.hello.HelloAndroid} }

 when i boot up the app im writing, i get this:

 [2008-12-29 09:02:30 - Copy of Sudoku] Uploading Copy of Sudoku.apk
 onto device 'emulator-5554'
 [2008-12-29 09:02:30 - Copy of Sudoku] Installing Copy of
 Sudoku.apk...
 [2008-12-29 09:02:32 - Copy of Sudoku] Application already exists.
 Attempting to re-install instead...
 [2008-12-29 09:02:33 - Copy of Sudoku] Success!
 [2008-12-29 09:02:33 - Copy of Sudoku] \Copy of Sudoku\bin\Copy of
 Sudoku.apk installed on device
 [2008-12-29 09:02:33 - Copy of Sudoku] Done!


 its not starting the activity. any idea why???

 


--~--~-~--~~~---~--~~
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 two questions

2008-12-30 Thread Ralf

On Sat, Dec 27, 2008 at 2:31 AM, Fathi fathi.el3ash...@gmail.com wrote:

 Dear all
 how are you?
 i am android begineer and i have two questions, I appreciate if any
 one guide me answer me or at least a send me a reference.

 - the first question is that i want to get the width of a text
 (Characters) in pixels when drawing to TextView i am using a TTF font?

You can use one of the Paint.getTextBounds variations:

http://code.google.com/android/reference/android/graphics/Paint.html#getTextBounds(char[],
int, int, android.graphics.Rect)

R/


 - Second, i displayed a textview with fill_parent for both width and
 height and when the text exceeds the screen the top text not appear
 and no scroll appears

 regards,

 


--~--~-~--~~~---~--~~
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: Fix reboot on G1 connect?

2008-12-30 Thread Ralf

Are you using Windows XP SP1 or SP2 by any chance? If yes, you
probably need to update the *windows* base USB driver (not the android
one).

The G1 works fine with a USB 1.0/1.1 port.

R/

On Thu, Dec 25, 2008 at 3:32 PM, otto888 all...@gmail.com wrote:

 I'm trying to connect my G1 to the SDK tools and my PC reboots every
 time i plug my G1 in...I used the drivers from the SDK...can anyone
 help?

 


--~--~-~--~~~---~--~~
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: ADP problem

2008-12-23 Thread Ralf

What's your operating system? XP, Vista, 32 or 64 bits?
R/

On Mon, Dec 22, 2008 at 6:35 AM, cbowley...@gmail.com
cbowley...@gmail.com wrote:

   When I try to run ADP.EXE I get an error saying This application
 has failed to start because AdpWinApi.dll was not found. Re-installing
 the application may fix this problem.


  AdpWinApi.dll is right below in the same folder (tools)



   Anyone know?

 


--~--~-~--~~~---~--~~
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: Cannot create a new project

2008-12-23 Thread Ralf

Huh, what version of ADT is that? What version of Eclipse are you
using, 3.3 or 3.4?

You should find a file called .metadata/.log in your workspace folder,
could you give me the full stack trace of the relevant error? (should
be at the end of the file).
Eventually I'd suggest your remove and reinstall the ADT plugin.

R/

On Sat, Dec 20, 2008 at 5:53 PM, Bear34238 bear123434...@comcast.net wrote:

 When I try to create a new Android project, I receive the following
 error:
 Plug-in com.android.ide.eclipse.adt was unable to load class
 com.android.ide.eclipse.adt.project.internal.NewProjectWizard.


 Please help.

 


--~--~-~--~~~---~--~~
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: hi, i'm new here.and i have a question about how to draw on the surfaceview

2008-12-23 Thread Ralf

On Mon, Dec 22, 2008 at 12:15 AM, quill quill...@163.com wrote:

 anyone who can tell me when i draw on a surfaceview, how can i know
 when(which point) the pen touch on the screen, and when the pen has

Did you try SurfaceView.setOnClickListener and SurfaceView.onTouchLEvent ?
R/

 distouched. i 'm writing a program about storke collection,and i know
 how to draw strokes(with the APIdemo touchpaint.java).

 


--~--~-~--~~~---~--~~
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: Best way to present a Loading.. screen

2008-12-23 Thread Ralf

On Sun, Dec 21, 2008 at 8:05 AM, craiget crai...@gmail.com wrote:

 Hello,

 In my application there is a data structure that must be loaded from a
 file when the application starts. Until this structure is loaded, the
 application cannot be interacted with in any meaningful way. Loading
 this static structure typically takes 1-2 seconds on the G1. My
 concern is that different devices may have different load times, so I
 planned to use a ProgressBar to show the loading.

 What is the best way to do pre-loading without annoying/confusing the
 user?

 1) Create an Alert.Dialog to contain a progress bar that cannot be
 dismissed until the loading is complete?

That seems the most sensible choice. You should try to handle nicely
the case where the user wants to leave by just pressing home or back.

Would it make sense to store part of this in an Application object so
that you don't have to loose it immediately when switching activities?
R/

 2) Create full-screen Loading View and reject keystrokes? Then
 replace the view with the Main view when loading is complete?

 3) Other ideas?

 (Certainly there are Lots Of Ways to force a loading screen - I'm
 trying to find a Good Way! =)

 Thank you for any suggestions.

 CT

 


--~--~-~--~~~---~--~~
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 on Eclipse Error

2008-12-23 Thread Ralf

Did you try Project  Clean... followed by  Project  Build Project
(or activate Build Automatically)?

R/

On Sun, Dec 21, 2008 at 10:38 AM, Casey caseyryba...@gmail.com wrote:

 Hello,

  I'm trying to get the Hello, World application up and running in
 Eclipse (3.4 Ganymede).  It is a fresh installation of 3.4, and when I
 created the hello, world application, I got the following errors:

 Description ResourcePathLocationType
 The project was not built since its build path is incomplete. Cannot
 find the class file for java.lang.Object. Fix the build path then try
 building this project   HelloAndroidUnknown Java Problem

 Description ResourcePathLocationType
 The type java.lang.Object cannot be resolved. It is indirectly
 referenced from required .class files   HelloAndroid.java   HelloAndroid/
 src/com/android/hello   line 1  Java Problem

 A search on google yielded this note:
 http://groups.google.com/group/android-developers/browse_thread/thread/9f6ed055ae53ac3f/df2f30c2a5a93860?show_docid=df2f30c2a5a93860

 However, there was no resolution posted.

 I checked the Android SDK path, and realized that the path of the SDK
 was not supplied.  I have since supplied it, but the error has not
 gone away.

 I have since installed the latest version of Java, and I'm running
 this on XP.  I'm hesitant to keep going through the tutorial until I
 get this resolved.  Any ideas?

 Casey

 


--~--~-~--~~~---~--~~
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: Hello Android Doesn't Work For Me

2008-12-23 Thread Ralf

Look at the logcat output (adb logcat or Eclipse  Windows 
Perspective  DDMS or standalone DDMS app). You should see the output
of the running emulated device and maybe an error of why your app is
not starting.

R/

On Sun, Dec 21, 2008 at 6:39 AM, marioca...@gmail.com
marioca...@gmail.com wrote:

 I've followed the tutorial step by step (on 2 different PC's):
 When I run the app, the emulator comes up and only says Android on
 it. None of the code I edit in the app affects the emulator's output.
 Any pointers on where I should start looking?

 


--~--~-~--~~~---~--~~
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 about ddms

2008-12-20 Thread Ralf

In the Logcat view, click on the edit filter icon -- it's the second
one, between the green + and red - ones. Then edit the pid value or
remove it.

R/

On Mon, Dec 15, 2008 at 12:53 AM, Ring lorin...@gmail.com wrote:

 a simple problem from rookie

 one day, i opened ddms and created a filter in logcat,

 however, i fill a string into by pid column by mistake, and after
 pressed ok, logcat can not start any longer.

 Would you please tell me how to delete the wrong record. Thanks a
 lot!!


 


--~--~-~--~~~---~--~~
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: beat generator

2008-12-20 Thread Ralf

javax.sound has never been in the Android SDK.

Currently you can't generate a wave and play it immediately. As the
MediaPlayer API says, you best best is to generate a sample wave,
store it for example on the sdcard and play it.

R/

On Mon, Dec 15, 2008 at 8:28 AM, harrisonbr...@gmail.com
harrisonbr...@gmail.com wrote:

 Hello,

 Am looking to make a small beat generator. I have did this before with
 javax.sound, but this has been removed from android so am not sure
 where to start. Could someone help 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: Where are the emulator files?

2008-12-20 Thread Ralf

To debug, use the android.util.Log facility from the android API. It's
output will be available in the logcat view in DDMS (Eclipse 
Windows  Perspective  DDMS). You can also use the Eclipse debugger
to trace your program.

As for where things are located, the emulator emulates a full machine
with its own memory. Use adb shell from a command line to connect to
the emulator if you want. DDMS also has a file explorer tab that lets
you see the files on the emulated device.

R/


On Wed, Dec 10, 2008 at 10:47 AM, Keith Wiley kbwi...@gmail.com wrote:

 Simple question, I've searched the web, I've searched the groups, and
 I simply can't figure this one out.

 Where are the emulator files located?  In particular, when an app is
 installed on the emulator, say by running it from Eclipse, or
 alternatively, when an app running on the emulator creates a data file
 (in its private Android file system space for example), where do these
 files go?  Where can I see them on my computer so I can debug the file
 output and make sure it's correct?

 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 do I close a dialog box?

2008-12-20 Thread Ralf

On Thu, Dec 18, 2008 at 7:30 PM, Josh joshdo...@gmail.com wrote:

 I have the following code that works fine to display a dialog box
 using an xml layout file.

 code
 dialog = new Dialog(this);
 dialog.setContentView(R.layout.settings);

 dialog.show();
 /code


 How do i add event listeners to the button widgets that i placed in
 the xml layout?

Button b = (Button) dialog.findViewById(R.id);
b.setOnClickListener(...);

R/

 Is there a default button or event rather that is used to close dialog
 boxes in android applications?




 


--~--~-~--~~~---~--~~
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 include eclipse

2008-12-20 Thread Ralf

EasyEclipse 1.2.2.2 is based on Eclipse 3.2.2 which is a not
officially supported by the Android ADT plugin.
EasyEclipse 1.3.1 should work, as it's based on Eclipse 3.3.1 but I
don't know about the different flavors (probably the basic Java or RCP
one are good).

However I'd recommend you simply get the original Eclipse distrib.
Ganymede (3.4.x) is the latest version and the Java edition would be
just good enough. http://www.eclipse.org/downloads/

HTH
R/

On Tue, Dec 16, 2008 at 1:22 AM, sis abcshi...@gmail.com wrote:

 hi

 every one , i am very excited to learn development related to android
 i am totally new about it .actually i am using easyeclipse-mobile-
 java-1.2.2.2.exe for j2me application develpment but in android
 develment shows some eclipse europe version so aonly plz tell me we
 develop android application on easyeclipse-mobile-java-1.2.2.2.exe or
 not.if yes then how?

 


--~--~-~--~~~---~--~~
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 run on eclipse issue

2008-12-18 Thread Ralf

Look at the logcat output (windows  perspectives  ddms) to see if
you see any error when your application runs.

R/

On Thu, Dec 18, 2008 at 4:06 AM, Bernie garden...@gmail.com wrote:

 Hi all,
 I use eclipse to develop the android application.
 I follow the docs step by step to set up my enviroment and everythin
 looks fine.
 but when I run it first time it will show error at console window as
 below.
  emulator-5554 disconnected! Cancelling 'com.android.bernie.ImBernie'
 launch!

 The emulator 5554 can open but the screen on the phone shows that it's
 locked and when I unlocked it to run my application directly, it will
 show that my application has stopped unexpectedly.

 After I searched this issue at google for days, I felt that it should
 not be my problem, casue many people is in the same situation as me.

 I don't close the emulator 5554 and press run again, the console shows
 that it launch a new emulator 5556.
 And then everything is works fine.

 Why should I need to run it twice to get the correct result?
 Does anyone know how to fix this 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: what is Europa and Ganymede?

2008-12-14 Thread Ralf

They are 2 versions of Eclipse. 3.3 is older and 3.4 is newer. They
are both supported.
In doubt, use the latest one.

R/

On Sat, Dec 13, 2008 at 1:31 AM, Sadashiv Nayak sadash...@yahoo.com wrote:
 What are the differences between
   Eclipse 3.3 (Europa) and Eclipse 3.4 (Ganymede) ?

 I am planning to install Android SDK on vista.  Which one of these IDEs is
 reqeuired?
 
 Add more friends to your messenger and enjoy! Invite them now.
 


--~--~-~--~~~---~--~~
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: Eclipse or Netbeans

2008-12-14 Thread Ralf

You can use Netbeans if you want. Just use activitycreator to create
a build.xml-based project and tell Netbeans to call the default ant
target. You can use the standalone DDMS app to select your app and
then connect to it using Netbeans' debugger.

Eclipse provides several wizards, integrated debugging out of the box
and the various XML editors to help you.

R/

On Thu, Dec 11, 2008 at 2:46 PM, CreativeGene mata...@gmail.com wrote:

 I have never used Eclipse.  I did most of my JAVA dev in Netbeans, but
 I see that netbeans is not listed for the requirments.  Is Eclispe the
 way to go?

 Thanks,
 CreativeGene

 


--~--~-~--~~~---~--~~
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: Cannot unzip Android 1.0 SDK, Release 2

2008-12-14 Thread Ralf

Worked just fine for me. Might be an issue with your download or your
version of winzip.

R/

On Thu, Dec 11, 2008 at 9:52 PM, Vladimir Kelman vkel...@gmail.com wrote:

 Did anyone experience the following?
 I downloaded latest a href=http://code.google.com/android/
 download_list.htmlAndroid 1.0 SDK, Release 2/a and tried to unzip
 it using WinZip 12.0 on WinXP machine. WinZip did not display any
 error; I even checked an archive and no error was found. However,
 every time I try to unzip Android zip file, WinZip suddenly crashes in
 the middle of the process (on different places, I guess). So, I cannot
 unzip the whole bundle. Event Viewer does not display any related info.

 


--~--~-~--~~~---~--~~
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: :: BackGround Service..!!Help

2008-12-14 Thread Ralf

You don't need a service to play sounds during a game. Just use the
MediaPlayer API.
http://code.google.com/intl/fr/android/toolbox/apis/media.html

R/

On Sun, Dec 14, 2008 at 9:25 PM, Imran imran...@gmail.com wrote:

  Hi All

   i am developing a small game, now i need to write  a service
 for playing sounds.. the problem is i am new  to Service's concept..

  can i write a service tat  runs in background when  the game is
 started. and also all my activities should able to communicate with it
 ( i.e the service should not stop when  i  switch from one activity to
 another ) \

  please  give me sample code  if possible

 Thanks in Advance for any replays...

 Cheers
 Imran
 


--~--~-~--~~~---~--~~
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: :: BackGround Service..!!Help

2008-12-14 Thread Ralf

Out of curiosity why do you need several activities for a small game?
R/

On Sun, Dec 14, 2008 at 11:42 PM, Imran imran...@gmail.com wrote:

  Hey Ralf...!!
  Actually my requirement is  playing the sound continuously, even
 i shift form one activity to another the sound should  be played
 continously
At present i am using Media player, but if i move form one
 activity to  other activity  i am getting  some Gap...

 so i  am thinking   of writing a service which will play the
 sound , this service should run independently,, this service should
 not get effected even  i move from one activity to another. and i
 should be able to communicate with this service form any activity in
 my App. i dont know is it possible to write this kind of service

  please tell me is it possible to write this kind of service

 Thanks in advance for any Replays...!!!

 Cheers
 Imran

 On Dec 15, 12:14 pm, Ralf ralfo...@gmail.com wrote:
 You don't need a service to play sounds during a game. Just use the
 MediaPlayer 
 API.http://code.google.com/intl/fr/android/toolbox/apis/media.html

 R/

 On Sun, Dec 14, 2008 at 9:25 PM, Imran imran...@gmail.com wrote:

   Hi All

i am developing a small game, now i need to write  a service
  for playing sounds.. the problem is i am new  to Service's concept..

   can i write a service tat  runs in background when  the game is
  started. and also all my activities should able to communicate with it
  ( i.e the service should not stop when  i  switch from one activity to
  another ) \

   please  give me sample code  if possible

  Thanks in Advance for any replays...

  Cheers
  Imran
 


--~--~-~--~~~---~--~~
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: The use of Eclipse for android development

2008-12-09 Thread Ralf

Eclipse + ADT provides with a comfortable  customizable IDE with
integrated debugging. There are wizards to create new projects, export
apks and automatic deployment to your emulator or devices. There's a
specific ddms view to view log output and other debug properties.

You can do all of this using command-line tools. To compile using the
command line you need to use ant, which means other Java IDEs can
invoke the ant target out of the box.

Some people program using Emacs or VI, so really anything goes.

Some say you could even use real player, although it might be easier
with some skills to use dd and a magnet.

R/

On Mon, Dec 8, 2008 at 12:12 PM, Brad Fuller [EMAIL PROTECTED] wrote:

 I'm beginning to investigate the android development env and see that
 Eclipse is heavily promoted for both editing and debugging. How
 integrated, or how important, is the use of Eclipse for android
 development? Will I be losing out by using another editor (I use vi)?
 And what about debugging? From experience, I know that some companies
 heavily promote one tool and focus their help in that one area --
 often ignoring the rest. Often times developers end up with
 insufficient assistance if they don't go along with the status quo
 since documentation is concentrated around their tool(s) of choice.
 Anyone NOT using Eclipse? what are your (horror) stories for android
 development? Those using Eclipse, how well did you adapt to Eclipse
 and the android plugin?

 thanks much,

 --
 Brad Fuller

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Complete Basics

2008-12-09 Thread Ralf

Did you try the getting started guide at
http://code.google.com/android/intro/index.html ?
See the section on eclipse install and the hello world one.

R/

On Mon, Dec 8, 2008 at 12:22 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Well, I am completely new to the whole android coding scene. In fact,
 I'm completely new to coding Java I believe it is. Worse than that, I
 really want to know. Call that better or worse, I just can't wait to
 dive into coding this.

 http://www.youtube.com/watch?v=I6ObTqIiYfE
 I started out by trying to watch this video. I followed his
 instructions in Eclipse (like he used) until around 2:41 into the
 video. He uses some keyboard shortcuts, and I was unable to follow
 through with what he was doing, at all. Basically, I lost my first and
 pretty much only grip on starting out on the coding. So, I came here.

 My first project is trying to code a basic app that does this:
 It is a slideshow application, that cycles through images you select
 from specific albums (can be any one, and can be interchangeable) and
 can be accessed through a sub-menu in the app itself.
 Basically this: slideshow application, selects images, can play them
 through your own button, with a user-set title.

 If anyone can show me anything at all, point me in any direction, or
 help me out with parts of the code so that I can study them, I am a
 student who would love to get started in this, but doesn't know which
 way to go, or who to ask for help.

 Thanks to any and all who help out!

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to debug on an actual device?

2008-12-09 Thread Ralf

On your device:
- home  settings  applications  development  enable usb debugging
- using windows ? search this forum for a link to the usb driver
- plug your device
- in eclipse, select your project, right click and select debug as 
android application

HTH
R/

On Mon, Dec 8, 2008 at 1:30 PM, Doughy [EMAIL PROTECTED] wrote:

 Can someone either tell me here, or point me to a link, that explains
 how to debug applications on an actual android device?  I just got a
 G1, I have written a simple program using the Eclipse plugin, and now
 I would like to debug it on my actual phone.  I can't seem to find any
 documentation on this.  Obviously, it would be really nice if I could
 just run the program right through the USB cable connected to the
 computer.

 Any help?

 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to track the changes in the EditField

2008-12-09 Thread Ralf

On Sun, Dec 7, 2008 at 11:07 PM, selva [EMAIL PROTECTED] wrote:

 Hi,

 How can  i trap any text chage event in the editFiled.

http://code.google.com/android/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher)

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Develop android on openSolaris

2008-12-09 Thread Ralf

Which SDK did you use, the Linux ones or did you rebuild your tools for Solaris?

R/

On Fri, Dec 5, 2008 at 12:25 PM, Claudio [EMAIL PROTECTED] wrote:

 Hi...Today I see that exist a netbeans plugin for develop android so I
 try to write a very difficult application HELLO WORLD but when I try
 to compile it this is the result:

 Created dir: /export/home/prez/NetBeansProjects/AndroidApplication2/
 build/classes
 Compiling 1 source file to /export/home/prez/NetBeansProjects/
 AndroidApplication2/build/classes
 compile:
 Created dir: /export/home/prez/NetBeansProjects/AndroidApplication2/
 dist
 /export/home/prez/NetBeansProjects/AndroidApplication2/nbproject/build-
 impl.xml:403: exec returned: 9
 BUILD FAILED (total time: 1 second)

 Someone can help me??
 Is possible to use the netbeans plugin under openSolaris???

 Thank you!! CIAO CIAO

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to debug on an actual device?

2008-12-09 Thread Ralf
Run adb devices from a command line. If you don't see the device listed,
you probably need to setup udev (at least under ubuntu) to have the usb
recognize.

Anyone knows a good link to the udev config needed for the g1? (There should
be one in the forum)

On Dec 9, 2008 8:12 AM, Doughy [EMAIL PROTECTED] wrote:


Thanks Ralf.  I'm using Linux, not windows though.  I tried your
instructions and it still continues to load in the emmulator.  Any
ideas?

On Dec 9, 1:27 am, Ralf [EMAIL PROTECTED] wrote:  On your device:  -
home  settings  applica...

 On Mon, Dec 8, 2008 at 1:30 PM, Doughy [EMAIL PROTECTED] wrote:  
 Can someone either te...

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: dynamic control creation

2008-12-06 Thread Ralf

If you're new to Java, one of the interesting patterns is that
non-static inner classes have access to the outer class. Example:

class MyActivity extends Activity {
  private int someField;

  private class Listener someListener implementers Listener {
 public void someMethod() {
// this method can access fields from the outer MyActivity
instance that created it
doSomething(someField);
 }
   }

  private void setupListeners() {
 mMyListener = new someListener();
 button1.setListener(mMyListener);
  }
}


Implementation-wise, if the inner class is not marked static, it
literally has a hidden reference to the outer class instance when it
is created (check in the debugger, you'll see what I mean). This way,
the code is a bit easier to understand than when declaring the method
as an anonymous.

R/


On Sat, Dec 6, 2008 at 8:55 AM, Mark Murphy [EMAIL PROTECTED] wrote:

 Josh Dobbs wrote:
 This is what i have
 that seems to work but i have to create a new listener for each
 button(currently i only have one as you see below)
 I couldnt get your method to work. can you tell me what im doing wrong?

 snip

   btn1.setOnClickListener(new View.OnClickListener() {
   public void onClick(View view) {
  
   }
  
   });

 Here, you are creating an anonymous inner class (the new
 View.OnClickListener() stuff). That's fine, but if you want to use the
 same anonymous inner class instance, you'll need to hang onto it.

 One approach for this is to assign it to a member variable in the outer
 class:

 View.OnClickListener hitMe=new View.OnClickListener() {
public void onClick(View view) {
// something
}
 };

 Then, you can use that same listener object for each of your buttons:

 btn1.setOnClickListener(hitMe);
 btn2.setOnClickListener(hitMe);

 Another approach is to make the inner class not anonymous, making it a
 named inner class:

 public class PegLites extends Activity {
// other stuff here

class ButtonListener implements View.OnClickListener {
public void onClick(View view) {
// something
}
}
 }

 Then, you can create new listener objects per button, but they would
 share the same implementation of onClick():

 btn1.setOnClickListener(new ButtonListener());
 btn2.setOnClickListener(new ButtonListener());

 For a pure listener implementing an interface, as in this case, either
 approach should work and be safe, since the listener holds no state. If
 there is a chance the listener will hold some state, though, you are
 better served going with the named inner class approach, so each button
 can have its own listener with its own state.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 Published!

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Open /android-sdk-windows-1.0_r1/tools/emulator.exe failed

2008-12-04 Thread Ralf

On Thu, Dec 4, 2008 at 7:22 PM, Simon He [EMAIL PROTECTED] wrote:
 But, I was waiting it more than 1 hour,
 does it download something from your site when initialize?

No it does not.

Did you use any older SDK such as a M3, M5 or 0.9? You might have a
stale userdata.img
Under XP, go to C:\Documents and Settings\username\Local
Settings\Application Data\Android and remove everything, then start
the emulator again. Let us know if that helps.


R/



 2008/12/4 Mark Murphy [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  I downloaded the file android-sdk-windows-1.0_r1.zip, and unpacked
  it. and already added SDK tools directory to my enviroment path.
  But I can not sucessfully open the emulator /android-sdk-
  windows-1.0_r1/tools/emulator.exe.
  The emulator still stop at android_ screen when I double-click
  the .exe file.
 
  PC:
  Window XP
  jdk1.5.0_06

 The first time you run the emulator, it will take a few minutes to
 initialize the disk images. Let it run for a while, and it should
 eventually get past the stage you're describing.

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

 Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: cant not run ant the default project generate by activitycreator.bat

2008-12-02 Thread Ralf

Hi,

Are you really using the old m3 SDK?
If so, please update to the 1.0 SDK and let us know if you still have
the same issue.
http://code.google.com/android/download.html

R/

On Mon, Oct 27, 2008 at 1:09 AM, cdxueq [EMAIL PROTECTED] wrote:

 windows XP sp2

 android_sdk_windows_m3-rc37a
^^


 apache-ant-1.7.1
 jdk1.6.0_04

 first, I open a command line and redirect to D:\test
 then, create a android app project with the activitycreator.bat
 next,redirect to D:\test\f2app,
 next, run ant

 I get a error :
 BUILD FAILED
 D:\test\f2app\build.xml:80: exec returned: 1

 how to fix it??? help

  following is  full stack trace:

 D:\testactivitycreator.bat -o f2app com.mscn.f2app.F2APP
 package: com.mscn.f2app
 out_dir: f2app
 activity_name: F2APP
 Created directory f2app\src\com\mscn\f2app
 Added file f2app\src\com\mscn\f2app\F2APP.java
 Created directory f2app\bin
 Created directory f2app\res\values
 Added file f2app\res\values\strings.xml
 Created directory f2app\res\layout
 Added file f2app\res\layout\main.xml
 Added file f2app\AndroidManifest.xml
 Added file f2app\build.xml


 D:\testcd f2app

 D:\test\f2appant
 Buildfile: build.xml

 dirs:
[mkdir] Created dir: D:\test\f2app\bin\classes

 resource-src:
 [echo] Generating R.java...

 aidl:

 compile:
[javac] Compiling 2 source files to D:\test\f2app\bin\classes

 dex:
 [exec] Unable to access jarfile ..\framework\dx.jar

 BUILD FAILED
 D:\test\f2app\build.xml:80: exec returned: 1

 Total time: 4 seconds
 D:\test\f2app

 the content of build.xml:80 line is
exec executable=${dx} failonerror=true
arg value=--dex /
arg value=--output=${basedir}\${intermediate-dex} /
arg value=--locals=full /
arg value=--positions=lines /
arg path=${basedir}\${outdir-classes} /
/exec
/target

 I instead with
 android-sdk-windows-1.0_r1
 apache-ant-1.7.1
 jdk1.6.0_07

 get the same error too:

 following is stack trace:

 D:\test\f1appant
 Buildfile: build.xml

 dirs:
 [echo] Creating output directories if needed...

 resource-src:
 [echo] Generating R.java / Manifest.java from the resources...

 aidl:
 [echo] Compiling aidl files into Java classes...

 compile:
[javac] Compiling 2 source files to D:\test\f1app\bin\classes

 dex:
 [echo] Converting compiled files and external libraries into bin/
 classes.
 x...

 package-res:

 package-res-no-assets:
 [echo] Packaging resources...

 debug:
 [echo] Packaging bin/F1APP-debug.apk, and signing it with a debug
 key...
 [exec] Unable to access jarfile ..\framework\apkbuilder.jar

 BUILD FAILED
 D:\test\f1app\build.xml:210: exec returned: 1

 Total time: 6 seconds
 D:\test\f1app

 the content of build.xml:210 line is
  exec executable=${apk-builder} failonerror=true
arg value=${out-debug-package-ospath} /
arg value=-z /
arg value=${resources-package-ospath} /
arg value=-f /
arg value=${intermediate-dex-ospath} /
arg value=-rf /
arg value=${srcdir-ospath} /
arg value=-rj /
arg value=${external-libs-ospath} /
/exec
/target



 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Basic Java Problem..

2008-12-02 Thread Ralf

Glad you found it. Just for you information, you should have seen a
NullPointerException or something similar in logcat (adb logcat in
command line or Eclipse Windows  Perspectives  Other  DDMS).

When something doesn't work, always check logcat and post this info here.

R/

On Tue, Dec 2, 2008 at 11:30 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Actually I just realized that I was trying to use those objects before
 creating them.. Sorry about that.  Thank's for the reply though.

 On Dec 2, 11:00 am, Ralf [EMAIL PROTECTED] wrote:
 Would you like to elaborate?
 - What exactly happens when it doesn't work.
 - Can we see the surrounding code? From your extract it's not clear
 what kind of classes are involved nor where the piece variable is
 allocated and used. The full activity and view source would be useful.

 R/

 On Mon, Dec 1, 2008 at 6:16 PM, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:

  I know this is probably a simple question but I'm not sure why this
  doesn't work.

  private Bitmap mSphere;
  private puzzlePiece[][] pieces = new puzzlePiece[5][7];

  mSphere = BitmapFactory.decodeResource(mContext.getResources(),
  R.drawable.sphere);

  for(int i = 0; i  5; i++)
  {
  for(int j = 0; j  7; j++)
  {
 pieces[i][j] = new puzzlePiece(mSphere);
  }
  }

  -

  public class puzzlePiece {
 public Bitmap mImage;
 public boolean is_selected;

 public puzzlePiece(Bitmap mImage_)
 {
 this.mImage = mImage_;
 this.is_selected = false;
 }
  }

  

  This is where the code will break...

  for(int i = 0; i  5; i++)
  {
   for(int j = 0; j  7; j++)
   {
 canvas.drawBitmap(pieces[i][j].mImage, i*64, j*64+32, new
  Paint());
   }
  }

  If I just draw mSphere itself, the code will work fine.. What exactly
  am I doing wrong here?

  - 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem with configuring ADT (failed to get the required adt version from sdk)

2008-11-30 Thread Ralf

Eclipse 2.2 is not supported. You must use Eclipse 3.3 or Eclipse 3.4
(aka ganymede).

R/

On Sat, Nov 29, 2008 at 3:27 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hello!
 I installed Eclipse 2.2 along with JWT and JST, then I installed ADT
 plug-in.
 I reached the step where I should specify ADT path (Window-
Preferences-Android) and when I do so, I get the following error
 messeges:
 Android SDK Location: Failed to get the required ADT version number
 from the SDK
 Preference Page Creation Problems: Plug-in
 com.android.ide.eclipse.adt was unable to load class
 com.android.ide.eclipse.adt.preferences.AndroidPreferencePage.
 An error has occurred when creating this preference page.

 I tried reinstalling the plugin and similiar things, and it doesn't
 help.

 What's wrong?


 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Ping website

2008-11-30 Thread Ralf

Did you add the internet access permission?
  
http://code.google.com/android/reference/android/Manifest.permission.html#INTERNET

To aid in debugging:
- In your catch setText, you might want to print e.getDescription()
- Look in logcat (ddms perspective or $ adb logcat) to view a full
description of the error.

R/

On Sun, Nov 30, 2008 at 12:08 PM, Karnius [EMAIL PROTECTED] wrote:

 Hi guys,

 I'm trying to ping my website but all i get is a IOException.

 I suppose i'm missing something?

 Java:
 try {
 InetAddress address = InetAddress.getByName(www.google.com);
 ServerSide.setText(Name:  + address.getHostName()+  Addr: +
 address.getHostAddress()+  Reach:  + address.isReachable(3000));

 }
 catch (UnknownHostException e) {
 ServerSide.setText(colis);
 }
 catch (IOException e) {
 ServerSide.setText(Unable to reach );
 }

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: I'm Trying To Learn.......

2008-11-30 Thread Ralf

As you indicated, you need to create an activity. The class referenced
in the activity tag must derive from Activity, not from a TextView.

The structure you want is:
- your own activity. It must do a setContent(name-of-layout).
- a res/layout XML file that describes the UI, this is where you
insert your custom text view
- your own custom text view class.

Look at the sample/HelloWorld and sample/LunarLander in the SDK.

R/

On Sat, Nov 29, 2008 at 9:43 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 I have an  issue with the basic structure that I can't seem to get
 past.  I am using Eclipse and trying to run through the examples iin
 Professional Android Application Development.  Here is my issue:

 I have a project i setup in Eclipse.  Under it have have the usual
 default setup.  I compile and run the default code just fine.  When I
 try to edit the TodoListItemView source file I get an error in the
 AndroidManifest.xml file in the project root.  Here is that file and
 the X  in the code below is the issue. The error message is
 TDLIV.com.TodoListItemView does not extend android.app.Activity

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=(deleted the http)schemas.android.com/apk/res/
 android
  package=TDLIV.com
  android:versionCode=1
  android:versionName=1.0.0
application android:icon=@drawable/icon android:label=@string/
 app_name
activity android:name=.TodoListItemView
 Xandroid:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
 /manifest

 So far, I am trying to do is start an example from the book.  That
 code is as follows and shows no errors.
 --
 package TDLIV.com;

 import android.content.Context;
 import android.content.res.Resources;
 import android.graphics.Canvas;
 import android.graphics.Paint;
 import android.util.AttributeSet;
 import android.widget.TextView;
 import android.app.Activity;
 import android.os.Bundle;

 public class TodoListItemView extends TextView {

  /** Constructors. Each should call init() */
  public TodoListItemView (Context context, AttributeSet attrs,
 int defStyle) {
super(context, attrs, defStyle);
init();
  }

  public TodoListItemView (Context context) {
super(context);
init();
  }

  public TodoListItemView (Context context, AttributeSet attrs) {
super(context, attrs);
init();
  }

  private void init() {
  }

 }
 ___

 I am obviously a novice and would really appreciate anyones comments
 greatly.  I used to do some java coding for fun but was not using
 Eclipse.

 Thanks in advance for any help.

 Fred

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Unable to download Eclipse plugin?

2008-11-29 Thread Ralf

Try using http instead of https. Lots of people have this issue.

R/

On Fri, Nov 28, 2008 at 10:06 AM, Jesper Lundgren [EMAIL PROTECTED] wrote:
 Hi, i am unable to download the ADT plugin for eclipse from

 https://dl-ssl.google.com/android/eclipse/


 I was wondering if there was anyone else with this problem? the site seems
 down to 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Error reading jdwp list:EOF error trying to run HelloAndroid

2008-11-27 Thread Ralf

If you are using Eclipse, go to the DDMS perspective (if not using
Eclipse, launch the standalone DDMS). In both cases, do you see the
emulator listed in the device list?

R/

On Thu, Nov 27, 2008 at 11:30 AM, Mungbeans [EMAIL PROTECTED] wrote:

 Hi

 Downloaded the SDK and source and built, and following the tutorial
 for HelloAndroid.
 When trying to run it in Eclipse the emulator launches but Hello
 Android isn't displayed and I get the error message

 Device Monitor] Error reading jdwp list:EOF
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Make a clickable invisible button.

2008-11-26 Thread Ralf

Did you try to just use a View, set it clickable and attach your listener to it?
R/

On Tue, Nov 25, 2008 at 10:36 PM, Paul [EMAIL PROTECTED] wrote:

 Hi,

 I was wondering how to make a button invisible but still clickable.
 When the Visibility attribute of the button is set to Invisible the
 button becomes unclickable. I'm assuming this is a design feature, but
 I was wondering if it was possible to make the button fully
 transparent but still register clicks.

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: ActivityCreator

2008-09-08 Thread Ralf

Thanks for reporting this.
I entered a bug to have the documentation updated accordingly.

R/

On Wed, Sep 3, 2008 at 1:31 PM, JK [EMAIL PROTECTED] wrote:

 There seems to be an error on the online-tutorial:
 http://code.google.com/android/intro/hello-android.html#upgrading
 Section: Creating the Project without Eclipse

 activitycreator.py --out HelloAndroid com.android.hello.HelloAndroid

 For 0.9-beta it seems to be working with:
 activitycreator.bat --out HelloAndroid com.android.hello.HelloAndroid

 for m5 with:
 activitycreator.exe --out HelloAndroid com.android.hello.HelloAndroid

 Can somebody confirm ?

 Is this going to be corrected ?

 JK

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem installing apk files into emulator

2008-08-27 Thread Ralf

Is this by any chance a package compiled for M3 or M5 that you're
trying to deploy on the 0.9 SDK?

R/

On Wed, Aug 27, 2008 at 1:10 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 On Wed, Aug 27, 2008 at 8:11 AM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:

 W/PackageParser(   48): /data/app/vmdl21575.tmp (at Binary XML file
 line #5): activity does not specify android:name

 This looks like your problem.

 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/

2008-08-26 Thread Ralf

If you can't access https://dl-ssl.google.com/android/eclipse/ simply
try to use http:// instead of https://.

R/

On Tue, Aug 26, 2008 at 8:35 AM, Gies,Brad [EMAIL PROTECTED] wrote:
 I'm also had the same problem a couple of times (I installed Android on 2
 work machines and 2 home machines). In both of the cases where it didn't
 work properly the first time, trying again a couple of minutes later worked.
 Maybe the repository is just very busy??



 Sincerely,

 Brad Gies
 -
 NLM Software
 Southfield, MI, USA
 -

 If you get today's work done today, but do it in a way that you can't
 possibly get tomorrow's work done tomorrow, then you lose.

 

 From: android-beginners@googlegroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of ???
 Sent: Tuesday, August 26, 2008 10:58 AM
 To: android-beginners@googlegroups.com
 Subject: [android-beginners] Re: No repository found at
 https://dl-ssl.google.com/android/eclipse/



 if you can send the picture about what you discrible,I think I need it

 This e-mail or communication, including any attachments, is intended only
 for the person or entity to which it is addressed and may contain
 confidential and/or legally privileged material. Any review,retransmission,
 dissemination or other use of, or taking of any action in reliance upon,
 this information by persons or entities other than the intended recipient is
 prohibited. If you received this message in error, please contact the sender
 immediately and permanently delete all copies, electronic or other, you may
 have or from your computer. Any disclosure, copying, distribution, reliance
 or use of the contents or information received in error is strictly
 prohibited. The foregoing applies even if this notice is imbedded in a
 message that is forwarded or attached.

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Required minimum version of adb

2008-08-21 Thread Ralf

you may have adb from M5 still running (that's 1.0.18).
try adb kill-server then adb start-server from the 0.9-sdk tools directory.
R/

On Thu, Aug 21, 2008 at 5:02 PM, Bourke Floyd IV [EMAIL PROTECTED] wrote:

 [2008-08-21 19:53:59 - adb]Required minimum version of adb:
 1.0.20.Current version is 1.0.18


 from my console.

 I just put the new SDK and followed the
 http://code.google.com/android/intro/upgrading.html
 steps.

 Did they somehow not include the adb 1.0.20 in the new SDK but my
 updated ADT requires it somehow?

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---