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

[android-beginners] Re: Android 2.0 Exchange support

2009-11-04 Thread Ralf
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

[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

[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

[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

[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

[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

[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

[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

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

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

[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)

[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 */);

[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

[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,

[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

[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,

[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

[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 /

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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,

[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/

[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

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

2008-12-09 Thread Ralf
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

[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() { //

[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

[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

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

2008-12-02 Thread Ralf
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

[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

[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

[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

[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

[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

[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

[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

[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):

[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

[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