[android-beginners] Re: How to I use touch screen to draw a straight line
A couple suggestions: - don't make your x/y fields static. - in onTouch, test that MotionEvent.getAction() is ACTION_DOWN. - to draw you should create a custom View class and override the onDraw method. See ApiDemos or the LunarLander samples for a start. R/ On Mon, Apr 13, 2009 at 5:14 PM, gandor gand...@gmail.com wrote: Hi, Want to draw a line when I touch screen at two points. I can see OnTouch been invoked but after than everything breaks looks, the application crashes I am using drawLine in Canvas. Please let me know what I am doing wrong package .DrawPoints; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.TextView; public class DrawPoints extends Activity implements OnTouchListener{ static int i = 0; static float static_x = 0; static float static_y = 0; static float static_x1 = 0; static float static_y1 = 0; /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); View topLayout = this.findViewById(R.id.layout_id); // register for events for the view, previously topLayout.setOnTouchListener((OnTouchListener) this); } // the following callback is called when touch event on screen happens �...@override public boolean onTouch(View v, MotionEvent event) { String tag = null; if(i == 0) { static_x = event.getX(); static_y = event.getY(); i = 1; } else { static_x1 = event.getX(); static_y1 = event.getY(); } if(i == 1) { Paint p = new Paint(); p.setColor(Color.WHITE); p.setStyle(Paint.Style.STROKE); Canvas canvas = new Canvas(); canvas.drawColor(Color.BLUE); canvas.drawLine(static_x, static_y, static_x1, static_y1, p); i = 0; } return false; } } ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/layout_id android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout --~--~-~--~~~---~--~~ 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: this site in not available android plug in for Eclipse
These URLs are not browsable directly. Trying to load them in a web browser will always say that the page does not exist. Try them solely from the Eclipse update UI. Note that only ADT 0.8 (for the SDK 1.1_r1) is available at these locations. R/ On Wed, Apr 15, 2009 at 11:03 AM, goodboyx sud...@gmail.com wrote: Can someone tell me where I can find the android plug in for Eclipse. This site is not available anymore and I can't find a more newer site https://dl-ssl.google.com/android/eclipse/ and http://dl-ssl.google.com/android/eclipse/ i want android plug in fo eclipse 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: this site in not available android plug in for Eclipse
Oh and btw I checed *from* Eclipse and http://dl-ssl.google.com/android/eclipse/ works fine (https doesn't work for me.) R/ On Thu, Apr 16, 2009 at 5:16 PM, Raphael r...@android.com wrote: These URLs are not browsable directly. Trying to load them in a web browser will always say that the page does not exist. Try them solely from the Eclipse update UI. Note that only ADT 0.8 (for the SDK 1.1_r1) is available at these locations. R/ On Wed, Apr 15, 2009 at 11:03 AM, goodboyx sud...@gmail.com wrote: Can someone tell me where I can find the android plug in for Eclipse. This site is not available anymore and I can't find a more newer site https://dl-ssl.google.com/android/eclipse/ and http://dl-ssl.google.com/android/eclipse/ i want android plug in fo eclipse 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: get speed
On Wed, Apr 22, 2009 at 10:56 PM, gandor gand...@gmail.com wrote: If I want to simulate getspeed using emulator how do I do it. I used the following code and it gives me 04-23 05:39:18.485: ERROR/AndroidRuntime(292): Caused by: java.lang.SecurityException: Requires ACCESS_FINE_LOCATION permission You need to add the android.permission.INTERNET permission to your manifest. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: get speed
Actually I think the GPS uses the net to initialize data to find satellites, to provide faster start times. R/ On Wed, Apr 22, 2009 at 6:22 PM, Mark Murphy mmur...@commonsware.com wrote: gandor wrote: Hi, I want to getspeed of android device through Gps receiver. Not rely on triangulation. Does tmobile G1 provide this functionality if somebody dosent have the 3G plan. Neither the carrier nor 3G has anything to do with GPS, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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: get speed
On Wed, Apr 22, 2009 at 11:24 PM, Raphael r...@android.com wrote: On Wed, Apr 22, 2009 at 10:56 PM, gandor gand...@gmail.com wrote: If I want to simulate getspeed using emulator how do I do it. I used the following code and it gives me 04-23 05:39:18.485: ERROR/AndroidRuntime(292): Caused by: java.lang.SecurityException: Requires ACCESS_FINE_LOCATION permission You need to add the android.permission.INTERNET permission to your manifest. Sorry, I didnt copy-paste the right line. I meant you need the android.permission.ACCESS_FINE_LOCATION permission. http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_FINE_LOCATION There are 2 location providers: fine location is GPS and coarse location is cell-id. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Eclipse android setup, cannot for the life of me!
Could you start by telling us: - what OS are you using? - which version of Eclipse? - which exact version is your JDK? To install ADT in Eclipse, you check the download site URL in the Available Software tab and click Install on the upper left. When the install complete, does Eclipse ask you to restart Eclipse? R/ On Thu, Apr 23, 2009 at 11:49 AM, chrisfg...@gmail.com chrisfg...@gmail.com wrote: I have unzipped eclipse, installed android tools through add site (they are listed in the installed tab) and have installed JDK and JRE that came with netbeans. I have the installations to date. I cannot for the life of me find out why Android is not showing up in the last step for installation (The part of going to menu in eclipse: Windows-preferences and select Android on the left). It simply is not listed here! I have uninstalled all java installations and folders, and reinstalled with the latest copy, and have reinstalled android for eclipse. What am I doing wrong? I have looked around the web and the only help I saw was about getting the right Java JRE installed. My copy is JDK with netbeans, but I saw EE and Jfx bundles to download. I am so confused why it does not show up in preferences, yet it says it is installed in the Software Updates section...Any help would be much appreciated! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Could not find AVD file
Can you give us some more details, which might help us to help you? - the output of android list avds from the command line - the android target you selected for your android project (e.g. 1.1, 1.5 or maps?) - how did you create your Android JUnit Test project? Thanks in advance, R/ On Wed, Apr 29, 2009 at 7:37 AM, lei eirst...@gmail.com wrote: Hi, I am using eclipse with ADT plugin to develop an Android app, the problem is I could not find a AVD file in the run configuration - Android application-target. I've created a AVD following the steps on the Android website which is located in the default directory C: \Documents and Settings\xxx\.android\avd, but it can find the AVD file in the run configuration - Android JUnit Test - target, could you explain it? 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: Downloading Android
Actually as indicated in http://developer.android.com/sdk/1.5_r1/installing.html : A Java or RCP version of Eclipse is recommended. But you make a good point. When looking at the feature matrix at http://www.eclipse.org/downloads/packages/compare-packages I see that Classic lacks GEF (needed for the layout editor) and WebTools (for the XML editor). I'll file a bug to have the install notes to be updated. R/ On Wed, Apr 29, 2009 at 9:51 AM, jtaylor jatto@gmail.com wrote: I just had serious problems in downloading the Android Plugin as well as the Google Apps Engine Plugin for Eclipse using Eclipse Classic 3.4.2 (152 MB). I think there's an issue with WST, but it's not clear how to download it to get that dependency. It's really messed up. I downloaded Eclipse IDE for Java Developers (85 MB) with all the dependencies installed and everything including Android installed quickly and cleanly. Perhaps Eclipse IDE for Java Developers (85 MB) should be the recommended version. The other one may be a brick wall for some people. - juan T. --~--~-~--~~~---~--~~ 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: java.net.UnknownHostException
Do you have uses-permission android:name=android.permission.INTERNET in the application that tries to bind to your service too? What does its manifest look like? R/ On Wed, Apr 29, 2009 at 2:14 AM, Explore Android explore.andr...@googlemail.com wrote: Hi, I am working on a implementing IM (yahoo) application in Android. I want to create a service which handles all the core part i.e., creating a socket, logining into the IM server etc., and I want to use this service from a 'Separate' IM application. The manifest file of service apk is as follows, == ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.sharp_eu.ste.imservice android:versionCode=1 android:versionName=1.0.0 application android:icon=@drawable/icon android:label=@string/app_name service android:label=@string/app_name android:process=:remote android:name=IMServicesManager android:enabled=true android:exported=true android:permission=android.permission.INTERNET intent-filter action android:name=com.sharp_eu.ste.imservice.START_IM_SERVICE/action action android:name=com.sharp_eu.ste.imservice.BIND_YAHOO_SERVICE/action /intent-filter /service /application uses-permission android:name=android.permission.INTERNET /uses-permission /manifest I have installed this APK into the emulator using 'Run-Run Configuration...' and selecting 'Do Nothing' option for Launch Option in Eclipse. I have checked that this apk is installed in the emulator by going to adb shell. Now I have created a new separate application which starts the above service and bind to that for using it's services. This application calls the login method in the service for logging into yahoo IM server. But I see 'java.net.UnknownHostException' and login is not successful. Why am I getting this error even though I have given permission to access internet both in services manifest and application manifest files. Note: if I make that service as part of my application there is no problem and the login process is successful. But I can not have that service as part of my application that is my requirement. I have to have that service separately existing somewhere in the phone and any application in the phone which wants to use it's service can just bind to it. Any clue why I am getting that error if make service put in different apk file. 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: Problem running emulator on SDK 1.5
Could you run the emulator manually in verbose mode, like this: $ emulator @my_avd -debug all and post the result? R/ On Tue, Apr 28, 2009 at 10:49 PM, alexmat alex...@gmail.com wrote: I get the following error from eclipse 3.4, with adt 0.9 and sdk 1.5: Launching a new emulator with Virtual Device 'my_avd' NAND: could not write file /tools/android-sdk-linux_x86-1.5_r1/ platforms/android-1.5/images//system.img, File exists --~--~-~--~~~---~--~~ 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: distributing an app packaged with just emulator
Are you using the final 1.5 SDK or the 1.5 preview one? I just tried installing an app on the emulator using the web browser and it installed fine. R/ 2009/4/28 tansaku tans...@gmail.com: Hi Jack, Many thanks for that suggestion, however even after sudo killall adb the emulator does not show up in the list of devices. The web download idea is also a good one, and I thought I had got it to work after creating an sdcard image for the emulator, but when I tried to run the downloaded app, I got a message: Install blocked. For security, your phone is set to block installations of applications not sourced in Android Market. With two buttons: Settings and Cancel - clicking on Settings causes an error. I did some web searching, but can't immediately see any way round this ... Many thanks again CHEERS SAM On Apr 23, 3:35 pm, Jack Ha (T-Mobile USA) jack...@t-mobile.com wrote: If adb is not able to connect to the emulator, try sudo killall adb first and then rerun you sudo adb ... command. One suggestion is that you can place you app on a web server and your friends should be able to download/install it via the emulator browser. Of course doing this might expose your app to the outside world. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Apr 23, 5:25 pm, Samuel Joseph tans...@gmail.com wrote: Hi All, [Tried posting this through web interface but didn't show up ... here goes via email ...] I was wondering if anyone has ever been able to distribute their app in a bundle with an emulator? The reason I want to do this is that I have some friends who don't have android phones, but I'd like them to be able to play with my app so that they can give me feedback. I've previously sent them screen casts, but I'd really like them to be able to get interactive with the app. Now I could ask them to get all installed with the whole android framework, eclipse etc,. but some of them are not so technical. Ideally what I'd like to be able to do is create a package that is the android emulator with my app and perhaps 1 or 2 other related apps pre-installed, so that they can download it, open it and run it interactively on their computers? Has anyone ever tried this? So far I found that I can run the emulator standalone, and I assume I could probably send them just that and it would run. However the adb tool is needed to install apps. I could send them that too, and ask the to run an 'adb install myapp.apk' from the command line, but at the moment I can't even seem to do that myself. Running the emulator standalone, the adb tool can't seem to see it: samuel-josephs-computer-2:tools samueljoseph$ sudo ./adb devices List of devices attached I just get no list of devices ... I have previously used the adb tool to install apk files, but that is after I had started the emulator from eclipse - of course even then I always have to restart eclipse and the emulator two or three times before I can get the connection (I am on OSX 10.5.6., eclipse 3.4.1) ... Any suggestions greatly appreciated. CHEERS SAM --~--~-~--~~~---~--~~ 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: Adding onClickListener and OnTouchListener to a Button
When you override methods, make sure to call their super. Anyway, why do you want to use a touch listener on a button? You're going to get tons of motion events each time the user touches the button or simply slide its finger on it. R/ On Sat, May 2, 2009 at 4:12 AM, Mariam Rady mariam.r...@gmail.com wrote: Hi everyone, I'm trying to add an OnClickListener and an OnTouchListener on a button. However when I add the OnClickListener on the button it works. Whenever I add the OnTouchListener to the button with the OnCLickListener, none of them works. Here is the code: final Button a=new Button(this); a.setLayoutParams(new AbsoluteLayout.LayoutParams (-2,-2,lastxposition,lastyposition)); a.setText(Button); a.setOnClickListener(new View.OnClickListener() { �...@override public void onClick(View v) { openFiles (); } }); a.setOnTouchListener(new View.OnTouchListener() { �...@override public boolean onTouch(View v, MotionEvent event) { String tagname=(String) a.getText(); findID(tagname); return true; } }); Can anybody tell me what I do wrong here? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: android.bat - NullPointerException for making AVD file !
Thanks, this is fixed and will be in the next version (and no, I do not know when that is.) R/ On Tue, Apr 28, 2009 at 11:56 PM, notox merci...@gmail.com wrote: Hello, I used to be able to properly make AVD files using android.bat file Now, I don't really know what I've changed, but I always get this : D:\android-sdk-windows-1.5_r1\toolsandroid.bat create avd -t 3 -n myAVD Exception in thread main java.lang.NullPointerException at java.util.Collections$UnmodifiableMap.init(Unknown Source) at java.util.Collections.unmodifiableMap(Unknown Source) at com.android.sdklib.avd.AvdManager$AvdInfo.init (AvdManager.java:196) Any ideas ? Thanks a lot for your help ! PS : I've done some reboots + I reinstalled many times the SDK - same results... --~--~-~--~~~---~--~~ 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: Snake on Image
Simply use android:background=@drawable/some_image and put your image in res/drawable. R/ On Tue, Apr 28, 2009 at 9:46 PM, Ragavendra ragavendra...@gmail.com wrote: Hi Folks, I am new here. I need to add a background image of the Snake sample game. I could change the color by adding android:background=# as shown below FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=# -- 'A Problem is first solved in the mind and then on paper' Thanks Regards, LinuxFlavour.co.in --~--~-~--~~~---~--~~ 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: Porting 1.5 to Nokia N810
You should use the android-porting mailing list for that kind of purpose. And if you browse the archives you'll probably find your answer. http://groups.google.com/group/android-porting/ R/ On Mon, Apr 27, 2009 at 7:36 PM, SliSparky slispa...@gmail.com wrote: Everyone please forgive me, as i know absolutley nothing about programming, all i know is just a little tid-bits in the hardware and graphics areas. I would like to port the Android 1.5 OS to my Nokia N810. My main concern is performance, and using the hardware, things like wifi(must-have), GPS, Audio(must-have), Touchscreen(must-have), Bluetooth, and the keyboard. A Step-By-Step would be really nice, but as i understand, there are MANY steps and processes to getting the OS successfully running on any device. Im not sure where i would find the drivers for all those things, but this would be my first project to do programming of anykind, and i think it would be a great accomplishment. Any help is very much appreciated, thanks for your time! --~--~-~--~~~---~--~~ 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 installing ADT 0.9.0
Are you using Eclipse Classic version? If so please install Eclipse IDE for Java Developers or Eclipse RCP instead from http://www.eclipse.org/downloads/ R/ On Sun, May 3, 2009 at 10:54 PM, Ragavendra ragavendra...@gmail.com wrote: Me too getting Cannot complete the request. See the details. Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.gef/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.gef/0.0.0 Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 0.9.0.v200904221248-147402] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0 for both remote and local plugin installGoogled but found no solutions.. Thanks Regards, LinuxFlavour.co.in --~--~-~--~~~---~--~~ 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: Fullscreen in Custom View
On Sun, May 3, 2009 at 11:19 PM, ayush ayushv2...@gmail.com wrote: is there any method by which a custom view (eg a game screen) can occupy the full screen of the device? i.e. the menu bar at the top showing the application title, battery level, network strength etc is covered? You mean something like this http://www.google.com/search?q=android+fullscreen ? There are two ways to do that: - in code: getWindow().setFlags(...) (see javadoc) - in resources, by creating a custom res/values/style.xml with something like style name=WhiteTheme parent=@android:style/Theme.NoTitleBar.Fullscreen / and using it in your activity as android:theme attribute. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Snake on Image
On Mon, May 4, 2009 at 12:45 AM, vineeth Desai vineeth.desa...@gmail.com wrote: Raphael, This already I tried. It didnt work for me. I am trying this for smaple game snake in Android SDK. Please let us know the solution. I am blocked with other developments. I don't know about snake specifically but I'm pretty sure ApiDemo should have an example of setting a bitmap as background. For sure LunarLander does that, doesn't it? There are many ways to achieve that: via an activity theme, via the window, by placing an imageview in a framelayout (oops, did I say that? don't do that, it's ugly :-)) Maybe something like this could help you: http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Please Help! I Can't get the ADT Plugin to Install
Are you using Eclipse Classic? It doesn't have all the libraries needed. Please use Eclipse for Java Developers or Eclipse RCP from http://eclipse.org. R/ On Tue, May 5, 2009 at 6:34 PM, J justinssh...@gmail.com wrote: I get this error no matter which of the 3 methods I try. What should I do? An error occurred while collecting items to be installed No repository found containing: org.eclipse.draw2d/osgi.bundle/ 3.4.1.v20080910-1351 No repository found containing: org.eclipse.emf.common/osgi.bundle/ 2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.change/ osgi.bundle/2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore.edit/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.xmi/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.edit/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.wst.common.emf/ osgi.bundle/1.1.202.v200809111955 No repository found containing: org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/ 1.1.201.v200808071700 No repository found containing: org.eclipse.wst.common.frameworks/ osgi.bundle/1.1.200.v200805140020 No repository found containing: org.eclipse.wst.common.project.facet.core/osgi.bundle/ 1.3.3.v200809102124 No repository found containing: org.eclipse.wst.common.ui/ osgi.bundle/1.1.301.v200805140415 No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/ 1.1.302.v200808260045 No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/ 1.1.2.v200809120159 No repository found containing: org.eclipse.wst.validation/ osgi.bundle/1.2.2.v200809050219 No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/ 1.1.305.v200809120354 No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/ 1.0.410.v200809120143 --~--~-~--~~~---~--~~ 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] Update: new ADT Eclipse plugin 0.9.1 available
Hi all, We just updated the ADT Eclipse plugin to 0.9.1. The new plugin provides the following changes: - Added an AVD creation wizard to ADT. It is automatically displayed during a launch if no compatible AVDs are found. - Fixed issue with libs/ folder where files with no extension would prevent the build from finishing. - Improved error handling during the final steps of the build to mark the project if an unexpected error prevent the build from finishing. - Fixed issue when launching ADT on a clean install would trigger org.eclipse.swt.SWTError: Not implemented [multiple displays]. - Improved error handling when parsing manifest when the uses-sdk node is present with no (valid) minSdkVersion attribute (error shown would say null) To update from Eclipse, simply use Help Software Update as usual or visit the download page at http://developer.android.com/sdk/adt_download.html Hope this helps, Raphael. --~--~-~--~~~---~--~~ 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 override onDraw of view.
Please look at SDK/platform/android-1.5/samples/LunarLander -- it does that and should be easy to understand. There are also various custom View in the ApiDemoes sample code. R/ On Thu, May 7, 2009 at 11:31 AM, Vinay vinay@gmail.com wrote: Hi All, I want to override onDraw fuction of a view object which is declared in the XML file in my XML file i have created a relative layout with in that i created a view for that view i want to override ondraw ... because i want to draw on that view. can i override the ondraw yes means how can i Thanks in advance Regards, Vinay --~--~-~--~~~---~--~~ 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 override onDraw of view.
Since you are a beginner, a tip to easily view the samples in Eclipse: - open File New Android Project wizard - select the platform Android 1.5 - select Use existing source then Browse next to it. - select the sample's directory. - The wizard fills all the settings for you. R/ On Fri, May 8, 2009 at 9:30 PM, Raphael r...@android.com wrote: Please look at SDK/platform/android-1.5/samples/LunarLander -- it does that and should be easy to understand. There are also various custom View in the ApiDemoes sample code. R/ On Thu, May 7, 2009 at 11:31 AM, Vinay vinay@gmail.com wrote: Hi All, I want to override onDraw fuction of a view object which is declared in the XML file in my XML file i have created a relative layout with in that i created a view for that view i want to override ondraw ... because i want to draw on that view. can i override the ondraw yes means how can i Thanks in advance Regards, Vinay --~--~-~--~~~---~--~~ 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 Project Wizard
Doofus, did that solve your issue? If you have installed ADT via Eclipse and still don't see the Android Project wizard, try this: 1- File New Other. You should see a category Android Android Project 2- Window Customize Perspective. In the Shortcut tab, make sure Android is checked. On some of my eclipse installs, this is not checked after I install ADT and the wizard don't appear in the File New menu. Checking that solves it. R/ On Fri, May 1, 2009 at 9:24 AM, Doofuss jkmcge...@gmail.com wrote: I seem to have followed all the steps correctly, dowloaded, unzipped android sdk 1.5, set enviornment variable with path to the tools directory, installed eclipse and have the android development tools installed there. However, I am not getting anything that actually has the word Android from anywhere in the File-- New Project-- It just has type filter text in the Wizards box, and then under that says project... Am I supposed to type Android in there? That is not what the directions in the Dev Guide under Creating an Android Project indicate. I do have the DDMS stuff showing up...and at one point was able to see the emulater stuff, but can't seem to get back there now Any advice out there for 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: Force alarm sound
On Sat, May 9, 2009 at 12:31 PM, kaloer mkal...@gmail.com wrote: Hi, Is it possible to force the volume up? I have an alarm that should wake the user even if the phone is on silent mode.. Is that possible? AudioManager manager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); int max = manager.getStreamMaxVolume(AudioManager.STREAM_RING); manager.setStreamVolume(AudioManager.STREAM_RING, new_volume, 0 /*flags*/); See the AudioManager API for more details, especially which stream to use and of course you might have to change the ringer mode, cf manager.setRingerMode(AudioManager.RINGER_MODE_NORMAL). Please be nice to the user: only do so if the user checks a pref to allow your app to modify his/her settings and remember to revert the volume to what it was before ;-) R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Layout gravity - bug in portrait mode?
On Sun, May 10, 2009 at 4:43 AM, Anna PS annapowellsm...@googlemail.com wrote: On May 10, 6:45 am, Romain Guy romain...@google.com wrote: fill_parent means be as big as your parent, not take the remaining space. Hi Romain - yes, but in this case the parent is a LinearLayout, which also has layout_width set to fill_parent, and is filling the whole screen. So I assumed the image would be as wide as the screen. But I guess it's limited by the number of pixels in the image. Do you set the android:scaleType? See ImageView.ScaleType: http://developer.android.com/reference/android/widget/ImageView.ScaleType.html R/ That's fair enough. But I still think it would make sense for an image wider than 320px to sit at the bottom of the portrait screen, rather than being pushed up! cheers Anna --~--~-~--~~~---~--~~ 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: Running as Android application in Eclipse
What I generally do is use Windows Preference Run/Debug Launching and select the Always launch the previously launched application at the bottom. Once you do that, running will reuse the same launch configuration till you select another one. You can use the grenn icons debug and run in the toolbar to quickly launch the same project. The little arrows next to it let you select the previously launched app easily. R/ On Sat, May 9, 2009 at 3:41 AM, anggo oceanb...@gmail.com wrote: Hi all, I'm new to Eclipse and Android development, so this question might sound dumb. :$ So when I run an application in Eclipse, I want to run it as Android Application, of course. When the package explorer is highlighted and I choose Run Run, the application runs as Android Application by default, which is good. But the thing is that when I was editing a java source file in which case the editing window had focus and I choose Run Run, a dialog box pops up and I have to choose between Android Application, Java Application, Java Applet an so on. This is uncomfortable, I want to run it as Android Application by default no matter which window had focus. Is there a way to do this? Or do you guys always put up with the discomfort? 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: Error when setting the android preferences in eclipse.
The structure of the SDK has changed to be able to handle multiple platforms. You must use the Android SDK 1.5 with ADT 0.9x. Note that this SDK includes an android 1.1 image which is *exactly* the same as the one you had in the SDK 1.1_r1. R/ On Tue, May 12, 2009 at 12:52 AM, andersg anders.gjett...@gmail.com wrote: Hi, I can't get the android sdk working in eclipse. I followed the installation guide, but when I point android preferences to my android sdk lib under Window preferences android I get the following error. Error loading the SDK Error: Error parsing the SDK. /home/anders/opt/android-sdk-linux_x86-1.1_r1/plartforms is missing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installing the android SDK on my new PC
On Tue, May 12, 2009 at 2:38 PM, Johan Degraeve johan.degra...@gmail.com wrote: I'm having the same problem on a Mac : when trying to create a new android project there's an error message on top 'An SDK Target must be specified'. The project wizard should have a list with 3 SDK targets to choose from: android 1.1, 1.5 and google apis. Click one of the checkboxes. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: help compiling Android sourcecode apps
The apps that come in the Android source code are not built using the SDK. They are built using the Android platform (e.g. the make files) and may or may not be using internal APIs which are not part of the SDK. Questions on building the platform should go to http://groups.google.com/group/android-platform. HTH R/ On Thu, May 14, 2009 at 1:37 AM, darren minof...@gmail.com wrote: Hi everyone I have a project where I need to modify one of the native apps on android, the MMS client. I have a working setup going, using 1.5 SDK. Next, I've checked out the MMS app from the Android sourcecode repository git. Loading the MMS source code base into eclipse as an Android project results in many compilation errors and I'm having trouble moving on from here. It appears that a lot of the import statements in the MMS Classes are referencing files that don't exist. for example there is no android.provider.Calendar class in the SDK, but the MMS sourcecode seems to think there is. I was under the impression that Android native apps were no different than any other developer apps, so shouldn't their sourcecode compile like any other? I thought it may also be an SDK version thing, but it doesn't seem to compile under v1.1 or 1.5 of the SDK. Any help would be much appreciated. 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: XML : eclipse, layout problem
Ah yeah, it's a known issue: the TabHost (or more exactly TabWidget) generates an internal NullPointerException when used in the layout editor. It should render fine on the emulator or a device though. Hopefully this should be fixed in the next version of android, whenever that is. R/ On Thu, May 14, 2009 at 2:38 AM, Michaël Gerber mic.ger...@gmail.com wrote: Hi, I have done a XML file but I can't see it in the the Eclipse Layout, there is an error : NullPointerException: null... Here is the XML file : ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:id=@+id/layoutTop android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content / FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/general android:layout_width=fill_parent android:layout_height=fill_parent android:text=general option : work in progress / LinearLayout android:id=@+id/xtraZone android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Phone number :/ EditText android:id=@+id/txtUsername android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=top android:phoneNumber=true/ TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Password :/ EditText android:id=@+id/txtPassword android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=top android:password=true/ /LinearLayout LinearLayout android:id=@+id/about android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/appName android:layout_width=fill_parent android:layout_height=wrap_content android:text=MonkeySMS/ TextView android:id=@+id/year android:layout_width=fill_parent android:layout_height=wrap_content android:text=2009/ TextView android:id=@+id/visit android:layout_width=fill_parent android:layout_height=wrap_content android:text=Visit :/ TextView android:id=@+id/link android:layout_width=fill_parent android:layout_height=wrap_content android:text=http://subversion.assembla.com/svn/MonkeySMS; android:autoLink=web/ /LinearLayout /FrameLayout /LinearLayout LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:layout_gravity=bottom android:orientation=horizontal Button android:id=@+id/save android:layout_width=wrap_content android:layout_height=wrap_content android:text=Save/ Button android:id=@+id/close android:layout_width=wrap_content android:layout_height=wrap_content android:text=Close/ /LinearLayout /TabHost I don't know if the error comes from the XML code or from eclipse, because I can see the other XML in the Layout... Thank you for your help Michaël --~--~-~--~~~---~--~~ 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: about .dex files
On Thu, May 14, 2009 at 2:44 AM, ja...@work jamai5...@gmail.com wrote: Hi guys, I'm new to Android and i don't understand very well how dex files work. When I create an application, I do in in java (isn't it?). Then, with the eclipse adt, this file is converted in a dex file and the DVM can receive it. In a nutshell: - Eclipse compiles your .java into .class - dx converts the various .class into bin/classes.dex. - aapt compiles your resources in a compact binary form. - the manifest, the compiled resources and the classes.dex get combined in your apk file, which is just a zile file. Unzip the apk to have a look at it. You can find many tutorials out there and youtube videos on android that explain that. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android plugins not appearing in Eclipse (XP)
Which version of Eclipse are you using? You need Eclipse RCP or Eclise for Java developers. The Classic version doesn't work. R/ On Thu, May 14, 2009 at 3:29 AM, khendar khen...@gmail.com wrote: I have followed the instructions on this page (http:// developer.android.com/sdk/1.5_r1/installing.html) and it all goes smoothly with no errors. But when I restart Eclipse and go to Preferences, there is no Android tab and there's no Android Project open in the new projects menu. I am running Version 3.4.2 of Eclipse and android-sdk-windows-1.5_r1 on XP SP3. The ADT and DMMS jar files appear in the Eclipse/plugins directory, but the program doesn't appear to be registering them. I've tried downloading ADT plugin and installing manually but that didn't work either. Any thoughts ? Cheers --~--~-~--~~~---~--~~ 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 plugins not appearing in Eclipse (XP)
On Thu, May 14, 2009 at 4:59 PM, khendar khen...@gmail.com wrote: Thanks Raphael. I was running Classic. I installed the Java version and that fixed it. Maybe that needs to be made clearer in the documentation ? :) It is in the system requirements: http://d.android.com/sdk/1.5_r1/requirements.html Out of curiosity, is it possible at all to get it to work in Classic ? Are there perhaps additional packages that can be installed to allow the Android stuff to work properly ? I tried a while ago and failed. With P2 (the new installer in Eclipse 3.4) I didn't manage to get it to install the missing plugins. The old one at least complained some stuff was missing, the new one seems to just let you install something that doesn't work. According to the feature matrix at http://www.eclipse.org/downloads/packages/compare-packages, Classic lacks GEF (for the layout editor) and XML Tools (for the XML editor). Yet Classic manages to be twice bigger than the Java version that has more plugin, so really what's the point? Sure it has sources bundled but quite frankly who ues them and it's easier to get plugins sources from CVS anyway. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: import an existing project
I fail to understand your point. Have directories as src/com/company/project is the right way to organize the sources. Am I missing something? R/ On Thu, May 14, 2009 at 7:40 PM, Xian Chen hoganx...@gmail.com wrote: Hello, This would be silly question... When I trying to import an existing project into Eclipse, the package structure is totally mess up. For eg. the package structure looks like this: com.company.project and the folders are: src/com/company/project The src in Eclipse would be these: com, com.company, com.company.project. In another way, the Eclipse treat com, com.company as sepearte packages instead of folders. Any ideas? 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: Emulator invalid command-line parameter: HVGA
Check in your Run/Debug Launch Config in the Emulator tab if you have any extra options for the emulator. If you do, clear them. That can happen when you upgrade from SDK 1.1 Also check Window Prefs Android Launch extra emulator options. R/ On Thu, May 14, 2009 at 9:52 PM, yaocl charley@gmail.com wrote: When I use Eclipse ADT to run a HelloWorld sample, i got the error output: [2009-05-15 12:44:26 - HelloWorld] -- [2009-05-15 12:44:26 - HelloWorld] Android Launch! [2009-05-15 12:44:26 - HelloWorld] adb is running normally. [2009-05-15 12:44:26 - HelloWorld] Performing helloworld.HelloWorld activity launch [2009-05-15 12:44:26 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'avd2' [2009-05-15 12:44:26 - HelloWorld] Launching a new emulator with Virtual Device 'avd2' [2009-05-15 12:44:26 - Emulator] invalid command-line parameter: HVGA. [2009-05-15 12:44:26 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'. [2009-05-15 12:44:26 - Emulator] please use -help for more information How to resolve this problem? Eclipse Platform Version: 3.4.2 Build id: M20090211-1700 ADT version 0.9.1.v200905011822-1621 And I had created an avd with the command line in the following: android create avd -t 2 -n avd2 --~--~-~--~~~---~--~~ 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: ADT Plugin
On Fri, May 15, 2009 at 5:33 AM, medelin mede...@gmail.com wrote: I coudn't fetch the ADT Eclipse plugin using the address provided by doc: https://dl-ssl.google.com/android/eclipse/ Try with http (no s), lots of problem have https problems with Eclipse: http://dl-ssl.google.com/android/eclipse/ Note that this URL above works only for Eclipse, it will NOT work for your web browser. If you really want to use your browser, explicitely add index.html like this: https://dl-ssl.google.com/android/eclipse/index.html (and this URL will not work for Eclipse) R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: TabWidget problem
This is a know issue in the layout editor. Test it on the emulator or a device. R/ On Sat, May 16, 2009 at 6:44 AM, Michaël Gerber mic.ger...@gmail.com wrote: Hi, I have implemented a tabWidget layout but when I launch it, I obtain those errors : ActivityManager: Warning: Activity not started, its current task has been brought to the front java.lang.NullPointerException at android.widget.TabWidget.dispatchDraw(TabWidget.java:105) at android.view.ViewGroup.drawChild(ViewGroup.java:1434) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) at android.view.ViewGroup.drawChild(ViewGroup.java:1434) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) at android.view.ViewGroup.drawChild(ViewGroup.java:1434) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) at android.view.View.draw(View.java:5465) at android.widget.FrameLayout.draw(FrameLayout.java:324) at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:338) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.computeLayout(Unknown Source) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.recomputeLayout(Unknown Source) at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.activated(Unknown Source) at com.android.ide.eclipse.editors.layout.LayoutEditor.pageChange(Unknown Source) at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:973) at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:627) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:314) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:363) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:603) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at
[android-beginners] Re: import an existing project
Oh I see. That's just how Eclipse displays it. Right on top of the tree find the little triangle icon, in the menu change the view to Package Representation Hierarchical. HTH R/ On Sat, May 16, 2009 at 3:26 PM, Xian Chen hoganx...@gmail.com wrote: My question is com, com.company are also resolved as packages as shown in the attachment. How can I avoid this problem? Thanks, On Sat, May 16, 2009 at 5:45 PM, Raphael r...@android.com wrote: I fail to understand your point. Have directories as src/com/company/project is the right way to organize the sources. Am I missing something? R/ On Thu, May 14, 2009 at 7:40 PM, Xian Chen hoganx...@gmail.com wrote: Hello, This would be silly question... When I trying to import an existing project into Eclipse, the package structure is totally mess up. For eg. the package structure looks like this: com.company.project and the folders are: src/com/company/project The src in Eclipse would be these: com, com.company, com.company.project. In another way, the Eclipse treat com, com.company as sepearte packages instead of folders. Any ideas? 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: Help with layout views and Canvas'
If you want a linear set of buttons use a LinearLayout. If you want a grid, simply put a TableLayout in your XML with several TableRow inside. You can use ImageButton to have a button with an image in the middle (use the src attribute). All the widgets derive from View, which has a background attribute so you can change the background to an image or a gradient on any of your widgets. R/ On Sat, May 16, 2009 at 7:17 AM, erykthege...@googlemail.com erykthege...@googlemail.com wrote: Hi, I'm pretty new to the whole app developing scene and i've never coded in Java before, however it doesn't seem that different to c# so I figured i'd give it a go. I've been making reasonable process on the app I'm working on, I've figured out using the main.xml to create a relative layout for my UI. In the UI I've managed to create an imageview that i've been able to update to scroll through a bunch of images by pressing a button. Pretty simple stuff so far. Now, here comes my problem. I want to create an area seperate of this imageview that will also display a background image, and then, multiple images atop that background image at specific locations. I will eventually want these images to be clickable. From reading many an article it seems that the way to display an image at a specific location and do all sorts of fancy stuff with it is by using a canvas. but this doesnt appear to be a valid viewtype in the layout xml. I found a basic tutorial that created a drawview class, which I managed to work in, but it only allows me to have either that layout, or the one in my xml file. I've tried inserting this class into my main.xml by following this tut http://www.anddev.org/creating_custom_views_-_the_togglebutton-t310.html but it doesnt seem to work. I think i'm probably overcomplicating the issue, but if anyone could point me at some resources that could show me how to acheive this, or could offer any help on it, I would be most appreciative. In Summary :- I have a ui layout that I want to use. I want to add in a canvas area in this layout (can't figure out how) with the canvas I want to be able to place multiple images at specific locations I want these images to be clickable. --~--~-~--~~~---~--~~ 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: Running Android applications on Linux
You should read the android-porting mailing list. R/ On Sat, May 16, 2009 at 8:16 PM, Vaidya vaidya...@gmail.com wrote: Hi.. Is there anybody who has tried running an Android application on any linux OS (without the emulator)? Is it enough if we cross-compile Dalvik VM and Java VM for Linux? What else (if any) would be required to run the application? On Thu, May 14, 2009 at 9:19 AM, Dhananjay Joshi dhananjayingr...@gmail.com wrote: On Thu, May 14, 2009 at 9:12 AM, Vaidya vaidya...@gmail.com wrote: Dear Mark, Thanks for the reply. I am using Ubuntu Linux OS and wanted to develop an Android application, that runs on my OS. Is there any way I can run that Android application on my Linux OS? (If I have the Java and Dalvik VMs running) Regards, Vaidya On Wed, May 13, 2009 at 11:30 PM, Mark Murphy mmur...@commonsware.com wrote: Can you please let me know if Android applications can be run on Linux OS, if the Java and Dalvik Virtual machines are installed. I am not aware of a Dalvik VM ported to run on ordinary Linux. I am also not aware of the Android frameworks and class libraries being ported to run on ordinary Linux. You can run Android in an ARM emulator running on Linux, if that helps. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! Hi It is possible to run Android application on ubuntu linux.only the thing is you need to cross compile dalvikvm and java libraries for ubunto .thats it Regards, DJ --~--~-~--~~~---~--~~ 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: import an existing project
There's also an option in the little menu at the top of the tree to hide empty packages. However when you do that you can't anymore right click on an empty package to make a class in it. That's not too much of any issue though, just invoke the class wizard from another wizard and then change the package line manually. R/ On Sat, May 16, 2009 at 4:05 PM, Sean Hodges seanhodge...@googlemail.com wrote: This confused me the first time I used eclipse, but yes, empty packages (including tld's) are shown in the package view. I believe this is partly to allow easy copy/move refactoring of classes across the entire namespace. On May 16, 2009 11:28 PM, Raphael r...@android.com wrote: Oh I see. That's just how Eclipse displays it. Right on top of the tree find the little triangle icon, in the menu change the view to Package Representation Hierarchical. HTH R/ On Sat, May 16, 2009 at 3:26 PM, Xian Chen hoganx...@gmail.com wrote: My question is com, co... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problem with tutorials.
If by W7 you mean Windows 7, it's not supported yet and nobody actually even tried so you're a bit on your own here. The first thing you should try is to change the preference Android Build to verbose to get a better idea of where things go wrong. The second thing is to file a bug at b.android.com -- we probably won't support Windows 7 till it gets official, whenever that is, but at least we'll have an issue to track. R/ On Sun, May 17, 2009 at 1:06 PM, Gabriel from Argentina gaz...@gmail.com wrote: Hi. I'm running Eclipse 3.4 on W7 and when creating a project using the files present in the samples directory, i'm getting constantly these two errors: Example, on NotesList: [2009-05-17 16:55:08 - NotesList] no classfiles specified [2009-05-17 16:55:08 - NotesList] Conversion to Dalvik format failed with error 1 Example, on HelloActivity: [2009-05-17 17:04:23 - HelloActivity] no classfiles specified [2009-05-17 17:04:23 - HelloActivity] Conversion to Dalvik format failed with error 1 Tried the fix tool, did not work. Any quicktips? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
Hi there, We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. - Did you *ever* install an android USB driver before? SDK 1.0/1.1 had one and it has been updated in 1.5. - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? - Did Windows ever prompt you about installing a driver for an unknown device? Sorry if some of the questions are generic, I'm trying to get broad enough before drilling in specifics. R/ On Mon, May 18, 2009 at 7:49 AM, John Burton john.bur...@jbmail.com wrote: Nicholas Radford wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Is there anywhere to get further support on this as I really need it to work? The fact that it doesn't work on my main machine or my laptop, and I've seen several other reports of this makes me believe this isn't simply a problem on my development machine but some more fundemental problem. I'm willing to wipe and reinstall vista on my development machine if there is no other way to make this work but I'm reluctant to do so if it's likely the problem will reoccur. I'm wondering if it's because I used the phone first on that machine without usb debugging set and that if the first time it was connected it had it set it would have worked? --~--~-~--~~~---~--~~ 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 Port Forwarding?
On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so you can set up breakpoints in your code in your IDE) http://developer.android.com/guide/developing/debug-tasks.html http://lmgtfy.com/?q=Wikipedia+Port+Forwardingl=1 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Where is source code for Dev Tools?
On Mon, May 18, 2009 at 11:39 AM, Lewis Z. lzh...@gmail.com wrote: Could someone please tell me where I can find the source code for Dev Tools (i.e., Sync, Media Browser, and etc)? Or are they under different names in the source code? iirc it's apps/Development in development.git http://android.git.kernel.org/?p=platform/development.git;a=tree;f=apps/Development;h=90aa0d214eacca5410e0b5170e0b65dcac3b6b52;hb=HEAD R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cannot create AVD in window XP
Thanks for catching this. I filed a bug for that: http://b.android.com/2697 R/ On Sun, May 17, 2009 at 6:44 AM, Steve steve.ma...@gmail.com wrote: This is because the Android HelloWorld example: http://developer.android.com/guide/tutorials/hello-world.html ...points to the download page of the 1.1 SDK, whereas you need the 1.5 SDK to be able to use the 'android' command from the same example! Download the 1.5 SDK here: http://developer.android.com/sdk/1.5_r1/index.html On May 12, 4:19 am, minht...@gmail.com minht...@gmail.com wrote: Hi everyone, When I try to create AVD, I got the message 'android' is notrecognized as an internal or external command,operable program or batch file. Even I typed create command from SDK\tools directory, I got that message. And I also have Java Home in Environment Variable and add java path to path of the system. I would appreciate any suggestion. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cannot create AVD in window XP
If you are under Windows there should be SDK/tools/android.bat and android.sh for linux/mac. If SDK/tools is not on your path, add it. The only android.jar you can find is SDK/platforms/android-1.[15]/android.jar which is the API for ant/eclipse. It has nothing to do with the android command-line tool. R/ On Sun, May 17, 2009 at 5:30 AM, Steve steve.ma...@gmail.com wrote: I have the same problem as this. There is no 'android' executable in the tools directory - should there be? I only have an android.jar file in the tools' parent folder, but this is not part of my path, and I'm not sure if this is what is meant to be running. On May 12, 4:19 am, minht...@gmail.com minht...@gmail.com wrote: Hi everyone, When I try to create AVD, I got the message 'android' is not recognized as an internal or external command,operable program or batch file. Even I typed create command from SDK\tools directory, I got that message. And I also have Java Home in Environment Variable and add java path to path of the system. I would appreciate any suggestion. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Corrupt XML binary file error when adding a PNG to res/drawable
What is the name of the png you are adding and where and how are you referring it to? R/ On Sat, May 16, 2009 at 11:28 PM, Steve Smith tarkast...@gmail.com wrote: Hi, I'm seeing an odd error when adding a PNG file to the res/drawable directory in an otherwise working app: I/ActivityManager( 565): Start proc net.haltcondition.android.ex for activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237 uid=10018 gids={3003} W/ResourceType( 1237): Bad XML block: header size 18254 or total size 169478669 is larger than data size 635 D/AndroidRuntime( 1237): Shutting down VM W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.haltcondition.android.ex/ net.haltcondition.android.ex.ThreadedXmlList}: android.content.res.Resources$NotFoundException: File res/drawable/ androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) E/AndroidRuntime( 1237): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 1237): at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 1237): at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 1237): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 1237): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1237): at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 1237): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 1237): Caused by: android.content.res.Resources $NotFoundException: File res/drawable/androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1843) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1798) E/AndroidRuntime( 1237): at android.content.res.Resources.getLayout (Resources.java:685) E/AndroidRuntime( 1237): at android.view.LayoutInflater.inflate (LayoutInflater.java:318) E/AndroidRuntime( 1237): at androidview.LayoutInflater.inflate (LayoutInflater.java:276) E/AndroidRuntime( 1237): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:309) E/AndroidRuntime( 1237): at android.app.Activity.setContentView (Activity.java:1626) E/AndroidRuntime( 1237): at net.haltcondition.android.ex.ThreadedXmlList.onCreate (ThreadedXmlList.java:34) E/AndroidRuntime( 1237): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 1237): ... 11 more E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException: Corrupt XML binary file E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlAssetNative(Native Method) E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java: 471) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1825) E/AndroidRuntime( 1237): ... 20 more No other changes have been made to the app; removing the file makes the problem go away. This is on 1.5_r1. Any suggestions on what I'm missing here? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
On Sun, May 17, 2009 at 9:55 AM, Nicholas Radford nikradf...@googlemail.com wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Hi. I'm still investigating this. I'm trying to make it not work under Windows :-) Anyhow, you said it doesn't work for you under Windows but it works on Linux. Can you tell me which Linux distro you use and if it's an udev-based what udev rule you added to make it work? Basically I'm trying to guess if maybe the device id is different or something. If you can please try that: - unplug device from linux box - run sudo udevmonitor --environment - plug your device on your linux box - give me output Thanks in advance, R/ On May 17, 2009 5:20 PM, John Burton john.bur...@jbmail.com wrote: plugin your phone with debugging enabled. On you windows pc goto device manager. In there, there... No there isn't so I can't do that. It seems to work fine as a stoage device but there is no sign at all that it even wants a driver for the other thing. ANd yes, USB debugging is on on the phone. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
One more question: when you fail to get ADB discovered by Windows, do you see a Other Device Unknown Device entry in the Device Manager? I got into this situation under Vista: - removed old ADB driver, rebooted - upon reboot Windows told me a new device had been found and prompted me for a driver. I asked to select the location and selected SDK/usb_driver - windows tried to install a driver to finally give up by saying it was not compatible with my platform. - once it did that, it won't prompt me again However I can: - select the Other Device Unknow Device in Device Manager - right click and get properties - it's hardware id (3rd tab) is USB\VID_0BB4PID_0C02MI_01 (0BB4 and 0C02 denote an HTC/Magic iirc) - in the general tab of the properties Reinstall driver - correctly select the sdk\android-sdk-windows-1.5_r1\usb_driver\x86 location this time R/ On Mon, May 18, 2009 at 12:24 PM, Nicholas Radford nikradf...@googlemail.com wrote: Lol, no worries for me... We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. XP Service pack 3, 32 bit - Did you *ever* install an android USB driver before? No, My HTC Magic is my first android phone, It runs 1.5 so I only tried the 1.5 drivers, windows doesn't recognize the device nor that the drivers are for it. However, windows does detect the storage capabilities of the device - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? Neither, HTC android phone USB and Generic Volume are the two things added to the device list when I plug my phone in. The first appearing under Disk Drives the second appearing under Storage volumes - Did Windows ever prompt you about installing a driver for an unknown device? Nope, never. On Mon, May 18, 2009 at 8:14 PM, Raphael r...@android.com wrote: Hi there, We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. - Did you *ever* install an android USB driver before? SDK 1.0/1.1 had one and it has been updated in 1.5. - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? - Did Windows ever prompt you about installing a driver for an unknown device? Sorry if some of the questions are generic, I'm trying to get broad enough before drilling in specifics. R/ On Mon, May 18, 2009 at 7:49 AM, John Burton john.bur...@jbmail.com wrote: Nicholas Radford wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Is there anywhere to get further support on this as I really need it to work? The fact that it doesn't work on my main machine or my laptop, and I've seen several other reports of this makes me believe this isn't simply a problem on my development machine but some more fundemental problem. I'm willing to wipe and reinstall vista on my development machine if there is no other way to make this work but I'm reluctant to do so if it's likely the problem will reoccur. I'm wondering if it's because I used the phone first on that machine without usb debugging set and that if the first time it was connected it had it set it would have worked? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
On Mon, May 18, 2009 at 5:22 PM, Nicholas Radford nikradf...@googlemail.com wrote: Will do in the morning Forget the linux question. It became totally irrelevant. We found the issue: it happens when the device is plugged in Windows with USB Debugging turned off first. The current fix is: a) Make sure to enable USB Debugging before plugging the device under Windows the *very* first time. Of course in your case that's too late. b) Use regedit to find the string vid_0bb4pid_0c02 in keys or values. If you find in a value, delete the whole registry folder. Repeat till you find none. Then do step (a). Usual disclaimer: if you don't know what regedit is nor how to use it or fear you will screw up your config, please don't do it :-) The issue is that Windows recorded an invalid driver entry associated to your device (G1 or Magic) when it has been first connected without the USB Debugging flag. You want to trash those entries so that Windows can prompt you. Please let me know if that works for you. On May 18, 2009 11:19 PM, Raphael r...@android.com wrote: On Sun, May 17, 2009 at 9:55 AM, Nicholas Radford nikradf...@googlemail.com wrote: Then you've ... Hi. I'm still investigating this. I'm trying to make it not work under Windows :-) Anyhow, you said it doesn't work for you under Windows but it works on Linux. Can you tell me which Linux distro you use and if it's an udev-based what udev rule you added to make it work? Basically I'm trying to guess if maybe the device id is different or something. If you can please try that: - unplug device from linux box - run sudo udevmonitor --environment - plug your device on your linux box - give me output Thanks in advance, R/ On May 17, 2009 5:20 PM, John Burton john.bur...@jbmail.com wrote: plugin your phone w... You received this message because you are subscribed to the Google Groups Android Beginners group --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to solve G1/HTC Magic not recognized by ADB under Windows
If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic *before* you plug it in Windows the very first time. If you read this after the fact, googling why adb doesn't recognize my device under Windows, here are the steps to fix it: This concerns both the G1 and HTC Magic and all flavors of Windows. 1- Remove existing drivers: 1a- Plug your phone 1b- Open the Device Manager 1c- Remove any driver for [ADB Interface HTC Composite ADB Interface] and [Disk Drives HTC Android Phone USB Device] if you see them 1d- Unplug phone 2- Edit the registry 2a- Disclaimer: be careful what you do in regedit. If you're not sure, don't use it :-) 2b- Open the Registry Editor (Start search/run regedit) 2c- You *may* need to be administrator to do that 2d- Search for vid_0bb4pid_0c02 in keys or values. It makes take a while. If you find in a value, delete the whole key folder. 2e- Some keys might be locked: right-click them and add everyone: full control to the permissions. Then delete the key folder. 2f- Repeat the search till no more instances are found. 2g- Close regedit. 3- Before your plug in your phone: 3a- Make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic 3b- Plug the phone in. Windows should now ask you for a driver 3c- Do NOT selected to search the Windows Update. Instead select I will choose a driver or the equivalent. 3d- Make sure to give the *full* path to the x86 or x86_64 driver, e.g: SDK/usb_driver/x86/ or SDK/usb_driver/x86_64/ If you just select SDK/usb_driver, Windows might take the wrong architecture and complain the driver can't be installed. Thanks for those who reported the issue and helped me solve it. Relevant threads: http://groups.google.com/group/android-beginners/browse_thread/thread/8f99c245c78af3ab/54f9bf343ada8cfd http://groups.google.com/group/android-developers/browse_thread/thread/ab6e89c4b51cd905/36d3f4a8dcc0e144 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to start android emulator in landscape mode?
Create an AVD with landscape skin. $ android create avd --name somename --skin HVGA-L (or use the AVD Manager in Eclise ADT 0.9.1) If you omit the parameter, --skin will display the valid choices. R/ On Tue, May 19, 2009 at 5:33 PM, lucius lucius.fo...@gmail.com wrote: I find this thread about switching to landscape mode: http://groups.google.com/group/android-beginners/browse_thread/thread/197be6ee6e7485af But how can I start in landscape mode without switching it from portrait? --~--~-~--~~~---~--~~ 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 is source code for Dev Tools?
On Mon, May 18, 2009 at 2:53 PM, Lewis Z. lzh...@gmail.com wrote: Raphael, thanks for the link. Quickly browsing through the code, I didn't see code for Sync and Terminal Emulator tools. Are these tools deprecated? Sorry I don't know. Do the same than I did: download the git repos and grep the various AndroidManifest.xml for the app package you're looking for :) R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Corrupt XML binary file error when adding a PNG to res/drawable
Can you file a bug at b.android.com with the zip file and your steps below? Thanks in advance. R/ On Mon, May 18, 2009 at 3:46 PM, Steve Smith tarkast...@gmail.com wrote: Hi, I've recreated this with a clean project. To reproduce: * android create project -k net.haltcondition.ex.Hello -a Hello -t 2 -p hello * ant install * App runs OK * mkdir res/drawable * cp /tmp/androidmarker.png res/drawable * ant reinstall * App fails with exceptions in log I've attached the resulting project. Cheers, Steve 2009/5/19 Steve Smith tarkast...@gmail.com: Hi, The file is res/drawable/androidmarker.png (taken from a tutorial). I'm not referring to it at all; I'm merely placing it in the drawable directory. Removing it removes the error. Thanks, Steve 2009/5/19 Raphael r...@android.com: What is the name of the png you are adding and where and how are you referring it to? R/ On Sat, May 16, 2009 at 11:28 PM, Steve Smith tarkast...@gmail.com wrote: Hi, I'm seeing an odd error when adding a PNG file to the res/drawable directory in an otherwise working app: I/ActivityManager( 565): Start proc net.haltcondition.android.ex for activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237 uid=10018 gids={3003} W/ResourceType( 1237): Bad XML block: header size 18254 or total size 169478669 is larger than data size 635 D/AndroidRuntime( 1237): Shutting down VM W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.haltcondition.android.ex/ net.haltcondition.android.ex.ThreadedXmlList}: android.content.res.Resources$NotFoundException: File res/drawable/ androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) E/AndroidRuntime( 1237): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 1237): at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 1237): at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 1237): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 1237): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1237): at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 1237): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 1237): Caused by: android.content.res.Resources $NotFoundException: File res/drawable/androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1843) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1798) E/AndroidRuntime( 1237): at android.content.res.Resources.getLayout (Resources.java:685) E/AndroidRuntime( 1237): at android.view.LayoutInflater.inflate (LayoutInflater.java:318) E/AndroidRuntime( 1237): at androidview.LayoutInflater.inflate (LayoutInflater.java:276) E/AndroidRuntime( 1237): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:309) E/AndroidRuntime( 1237): at android.app.Activity.setContentView (Activity.java:1626) E/AndroidRuntime( 1237): at net.haltcondition.android.ex.ThreadedXmlList.onCreate (ThreadedXmlList.java:34) E/AndroidRuntime( 1237): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 1237): ... 11 more E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException: Corrupt XML binary file E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlAssetNative(Native Method) E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java: 471) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1825) E/AndroidRuntime( 1237): ... 20 more No other changes have been made to the app; removing the file makes the problem go away. This is on 1.5_r1. Any suggestions on what I'm missing here
[android-beginners] Re: Cannot create AVD in window XP
On Tue, May 19, 2009 at 3:22 PM, Norfeldt norfe...@gmail.com wrote: I still don't get it.. here is what I done.. downloaded the SDK zip. extracted it to the desktop opened the folder at moved to content to this dir: C:\Android opened run and typed cmd typed emulator and hit ENTER The emulator runs fine... Close it down.. run - cmd [ENTER] I type: cd \ [ENTER] cd Android [ENTER] cd [tools] android create avd --target 2 --name my_avd AND BM Nothing happens but an error.. there is no android.bat file in by tools folder. If you type dir in that folder, what is the output? R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: storing values of an array
Simply serialize your ints to a string and write in a simple sqlite database. It's rather inexpensive and compact. You don't need a provider or things like that, just use the database helper (there's one in some sample) to create the db and a couple of query/select commands to store and restore. Alternatively you can do even simpler by storing the string as an app preference: prefs = PreferenceManager.getDefaultSharedPreferences(context); prefs.edit().putString(name, value).commit(); prefs.getString(name); R/ On Tue, May 19, 2009 at 11:24 PM, ayush ayushv2...@gmail.com wrote: i'm designing a simple board game, where the positions and states of pieces are stored in two separate (single dimension) int arrays. i want to give the user the option to save the game and reload the same at a future time. is there anyway that these two arrays can be stored on the device and accessed later? the option of using SQL seemed a little to extensive since the data is just a simple array. ~ayush --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Error when setting the android preferences in eclipse.
On Thu, May 21, 2009 at 4:04 AM, byroneekh...@gmail.com byroneekh...@gmail.com wrote: Hi, I have the same problem, I work with: Eclipse Platform Version: 3.4.2 I have downloaded android-sdk-windows-1.5_r1 but when I set the location to: D:\Android\android-sdk-windows-1.1_r1 If you downloaded android-sdk-windows-1.5_r1, why would you set android-sdk-windows-1.1_r1 in the Eclipse preferences? In case you missed the memo: if you can *only* use android-sdk-windows-1.5_r1 with ADT 0.9, not the old sdk-1.1 HTH R/ I get the same error: Error loading the SDK Error: Error parsing the SDK. D:\Android\android-sdk-windows-1.1_r1/plartforms is missing While using 1.5 SDK! please help... :), thnx Byron On May 14, 5:59 pm, Raphael r...@android.com wrote: The structure of the SDK has changed to be able to handle multiple platforms. You must use the Android SDK 1.5 with ADT 0.9x. Note that this SDK includes an android 1.1 image which is *exactly* the same as the one you had in the SDK 1.1_r1. R/ On Tue, May 12, 2009 at 12:52 AM, andersg anders.gjett...@gmail.com wrote: Hi, I can't get the android sdk working in eclipse. I followed the installation guide, but when I point android preferences to my android sdk lib under Window preferences android I get the following error. Error loading the SDK Error: Error parsing the SDK. /home/anders/opt/android-sdk-linux_x86-1.1_r1/plartformsismissing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: SDK USB driver for Vista SP1 won't install - Solution?
What driver do you want to install? 1- For transfering files from the SD Card, you do not need any driver. 2- For using ADB to debug, you need the driver that comes with the SDK. If you have trouble with that one please read this thread first: http://groups.google.com/group/android-beginners/browse_thread/thread/ff713181959c48ee/98dbfe1887d671c0 R/ On Thu, May 21, 2009 at 1:39 PM, Tony Su ton...@su-networking.com wrote: Howdy, When I connect a G1 to Vista SP1, the phone is automatically recognized and Vista's own USB driver (WpdFs.dll and WUDFRd.sys) is installed, but that driver doesn't work. Nothing I try seems to update or change the USB driver to the one supplied by the SDK... Have tried uninstalling the device and re-scanning Updating the driver in the Device Properties When I try to force updating by manually pointing to the SDK driver, Vista says it's not even a driver. Of course, with Vista's improved security I can't disable/rename the Microsoft driver (permissions even an Admin can't touch). Any ideas? TIA, Tony Full deatils on the Vista SP1 driver... Provider: Microsoft Corporation File Version: 6.0.60001.18000(longhorn_rtm.080118-1840 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: latest adt broken?
Hi, I'm trying to reproduce this and hmm well I don't manage to get this error. Could you help me a bit? - Which version of Eclipse are you using? - Which OS platform? - Which SDK? - Does that happen on any XML file or just some of them? - Does it break anywhere in the XML file or in some specific context? (between elements, inside an element, on an attribute name or attribute value?) - Can you try to reproduce that using one of the SDK samples XML files? I'm trying to narrow the issue. Thanks in advance. R/ On Mon, May 25, 2009 at 8:29 PM, solid young...@gmail.com wrote: I just upgraded to the latest adt (0.9.1) and now I am getting null pointer in eclipse when I try to invoke the content assistant (ctrl +space) on andoid xml files such as the layout files. Also the outline does not appear to be linked to the XML files any more. Below is the log from eclipse when I hit ctrl+space. Is there any way I can fix adt??? !ENTRY org.eclipse.ui 4 0 2009-05-25 23:18:47.253 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at com.android.ide.eclipse.editors.AndroidContentAssist.computeCompletionProposals (Unknown Source) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals (CompoundContentAssistProcessor.java:300) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals (ContentAssistant.java:1836) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals (CompletionProposalPopup.java:555) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access $16(CompletionProposalPopup.java:552) at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run (CompletionProposalPopup.java:487) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java: 70) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals (CompletionProposalPopup.java:481) at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions (ContentAssistant.java:1664) at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation (StructuredTextViewer.java:437) at org.eclipse.ui.texteditor.TextOperationAction$1.run (TextOperationAction.java:131) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java: 70) at org.eclipse.ui.texteditor.TextOperationAction.run (TextOperationAction.java:129) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java: 185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute (LegacyHandlerWrapper.java:109) at org.eclipse.core.commands.Command.executeWithChecks(Command.java: 476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks (ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand (HandlerService.java:169) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand (WorkbenchKeyboard.java:472) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press (WorkbenchKeyboard.java:824) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent (WorkbenchKeyboard.java:882) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings (WorkbenchKeyboard.java:571) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3 (WorkbenchKeyboard.java:512) at org.eclipse.ui.internal.keys.WorkbenchKeyboard $KeyDownFilter.handleEvent(WorkbenchKeyboard.java:127) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1436) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1157) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1167) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1194) at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java: 698) at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java: 2765) at org.eclipse.swt.widgets.Composite.gtk_key_press_event (Composite.java:702) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1543) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4506) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4099) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5792) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1177) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at
[android-beginners] Re: Android on Mac question
Weird. Could you please look in your workspace directory, you will find a text file a workspace/.metdata/.log and at the bottom of the file you should see the full error matching the one you reported, with a stack trace. Please send it to us. Thanks in advance, R/ On Thu, May 21, 2009 at 2:34 PM, GuyD guy.dil...@gmail.com wrote: I installed Eclipse v3.4.2 and latest version of Android SDK 1.5_r1. My Eclipse works but when trying to change the Preferences - Android I get the following error messages: Problem Occurred 'Android SDK Content Loader' has encountered a problem. An internal error occurred during: Android SDK Content Loader. java.lang.NullPointerException Android SDK Location Failed to get the required ADT version number from the SDK. The Android Developer Toolkit may not work properly. Anyone any idea the reason of this? Thanks. Guy --~--~-~--~~~---~--~~ 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 SDK
The list of targets in the New Android Project Wizard should be the same as in the Windows Pref Android. I mean really it's the same code. Are you sure that in the same session, you open the pref you see the 3 targets then close that, go to the project wizard and the list is empty? If that's the case, can you look into the workspace/.metadata/.log file (or Windows View Error Log) to see if there's any unexpected error listed? R/ On Fri, May 22, 2009 at 2:25 PM, rickbarke...@googlemail.com rickbarke...@googlemail.com wrote: Right. Linux (Xandros eeepc) running eclipse ganymede with the ADT plugin. I've selected the android sdk directory in Windows-preferences- android and I get the 3 entries in the list box (android v1.1, v1.5 and google api's). so far so good. next I got to the android project wizard but there are no build targets in the box below the project name - as soon as I begin typing a project name, i get a new error at the top saying An SDK Target must be specified. I've read the previous post about creating AVD's but not really sure as to how this will 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 android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re:
On Sun, May 31, 2009 at 2:31 AM, Jackie Singh jacqueline.si...@gmail.com wrote: Yeah, we don't want you either. Any idiot who can't RTFM is generally unwelcome in this type of community. HAVE A NICE DAY, ASSHOLE! There's no need to be rude. R/ On Sun, May 31, 2009 at 08:33, SONIH MANSOUR bevno...@verizon.net wrote: i want to unsubscribe from every google android group i want no emails from you guys or alerts or any updates!! Thank You !! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Best way to add 100.000 words to database
This begs to a different kind of question: do you really need to store this data in an sqlite3 database? There are other alternatives, it all depends on your data and how you want to use it so you might want to help us here. Example: you mention words, just not any string, so your data might be a dictionary. Then in this case you could simply use a binary file, in your own format, packaged in your project/res/raw directory, which you can retrieve with http://d.android.com/reference/android/content/res/Resources.html#openRawResource(int) -- the file is added uncompressed to your APK but the APK itself is a zip file, which is why you get an input stream. That also means if you need direct random access you'll probably want to write it somewhere, such as on the sdcard. Make sure to write an index for fast lookup, for example the offset of words starting by A, by B, etc. You will probably need to experiment a bit to get a tradeof between simplicity of the index and lookup time, e.g. a tree will have faster lookup times but is more tricky to get right, etc. R/ On Sun, May 31, 2009 at 6:11 AM, kaloer mkal...@gmail.com wrote: Okay, I'll look at it.. Thank you very much for your help On 31 Maj, 14:59, Mark Murphy mmur...@commonsware.com wrote: kaloer wrote: Well, of course I shouldn't. This only adds one line when it's called. Should I call it before the while-loop begins? You're right -- I skimmed it too quickly. It's actually a bit more complicated than that. The flow is: begin-transaction insert 100 rows worth of stuff set-transaction-successful and do that whole block 1000 times for 100,000 words. So you're probably going to wind up with something like: while ((line=input.readLine())!=null) { DB.beginTransaction(); DB.execSQL(...); for (int i=0;i99 (line=input.readLine())!=null; i++) { DB.execSQL(...); } DB.setTransactionSuccessful(); } plus an appropriate try/catch in there. However, bear in mind that this will still take a very long time, so unless you're trying this for educational purposes, I'd move along to one of the other options. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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: Game Programming in Android Using LunarLander
On Sun, May 31, 2009 at 1:29 PM, weird0 amiredi...@gmail.com wrote: Hi guys, I am interested in learning game programming and want to develop games using the Android Platform. I found LunarLander game as a resource. I would really like to know how to run the application in Debug Mode so I can understand the flow of the application and the game. After right-clicking on Debug As - Android Application. The game did not work in Android mode. Can you be a bit more explicit on did not work? What happened? Did you have an emulator running, did it ask for you, or did you have a device attached? How to run the application in Debug mode? By doing Debug As - Android Application and setting breakpoints in the code. I would like to know if there any more resources to learn game programming. There was a conf an Google I/O on game programming, so check the google i/o web site, it should be available on youtube at some point. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to solve G1/HTC Magic not recognized by ADB under Windows
I suggest you look at the replies on the original thread. Some people had the same issue and indicated how they solved it (sorry I don't quite remember the exact solution). This might help: http://groups.google.com/group/android-beginners/search?group=android-beginnersq=regeditqt_g=Search+this+group and http://groups.google.com/group/android-developers/browse_thread/thread/48e92dcc0a8a9a23/bbff8436bfd23ce0?lnk=gstq=G1%2FHTC+Magic+not+recognized+by+ADB+under+Windows#bbff8436bfd23ce0 Instead of replying directly to me, please make sure to reply to the group. Someone else than me might be able to help you. Hope this helps, R/ On Sat, Jun 6, 2009 at 12:06 AM, siegelinisiegel...@gmail.com wrote: Thank you for this most useful post. While in regedit I can't seem to add everyone full control in permissions. It tells me its unable to save the permissions and access is denied. Is there something other than just checking the box by full control? I wonder if you could help me in this area and let me know what I might do that I'm missing. Thanks in advance, Adam On May 19, 2:57 pm, Raphael r...@android.com wrote: If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic *before* you plug it in Windows the very first time. If you read this after the fact, googling why adb doesn't recognize my device under Windows, here are the steps to fix it: This concerns both the G1 and HTC Magic and all flavors of Windows. 1- Remove existing drivers: 1a- Plug your phone 1b- Open the Device Manager 1c- Remove any driver for [ADB Interface HTC Composite ADB Interface] and [Disk Drives HTC Android Phone USB Device] if you see them 1d- Unplug phone 2- Edit the registry 2a- Disclaimer: be careful what you do in regedit. If you're not sure, don't use it :-) 2b- Open the Registry Editor (Start search/run regedit) 2c- You *may* need to be administrator to do that 2d- Search for vid_0bb4pid_0c02 in keys or values. It makes take a while. If you find in a value, delete the whole key folder. 2e- Some keys might be locked: right-click them and add everyone: full control to the permissions. Then delete the key folder. 2f- Repeat the search till no more instances are found. 2g- Close regedit. 3- Before your plug in your phone: 3a- Make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic 3b- Plug the phone in. Windows should now ask you for a driver 3c- Do NOT selected to search the Windows Update. Instead select I will choose a driver or the equivalent. 3d- Make sure to give the *full* path to the x86 or x86_64 driver, e.g: SDK/usb_driver/x86/ or SDK/usb_driver/x86_64/ If you just select SDK/usb_driver, Windows might take the wrong architecture and complain the driver can't be installed. Thanks for those who reported the issue and helped me solve it. Relevant threads:http://groups.google.com/group/android-beginners/browse_thread/thread...http://groups.google.com/group/android-developers/browse_thread/threa... R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to create AVD ?
If you have the ADT 0.9.1 plugin for Eclipse, you can also create a new AVD using Window AVD Manager. R/ On Thu, Jun 4, 2009 at 6:21 AM, muhammadaliqa...@gmail.commuhammadaliqa...@gmail.com wrote: Hi, I am using Vista. I have installed android-sdk-windows-1.5_r2, inserted the path of sdk in system variables and installed Eclipse IDE. I have also intstalled the android plug in for Eclipse. How ever I am facing difficulties in creating an AVD. Though I tried the following command on command prompt but it didn't work :( android create avd --target 2 --name my_avd (http://developer.android.com/guide/developing/tools/avd.html#options) The location of my sdk is: C:\android-sdk-windows-1.5_r2 I am not familiar with the cmd prompt instructions. So, kindly help me out! 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: Problem with Hello World
On Sat, Jun 6, 2009 at 7:35 AM, maurizio.bellemomaurizio.bell...@gmail.com wrote: Hi all I'm rookie I tried to run the hello app in Android developers... (after having installed the SDK, Eclipse and the plugin for Android) There are two problems 1 - When creating a project it appears an error like classfile error dalvik machine error 1 Did you get past this point? If your app does not compile, it won't install. 2 - When I run the application, the android phone appears, but there is no hello world app... there is simply this android phone with all the widgets inside the google search bar but no app Do you see any error in the logcat view of the DDMS perspective? R/ Can u help me? thks Bye Maurizio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: TOOLS.JAR
There's no tools.jar. What are you trying to achieve? R/ On Thu, Jun 18, 2009 at 4:14 PM, Rc3375rcobb3...@gmail.com wrote: I'm using winXP. Installed Android 1.5 as well as Eclipse. However, not sure if it's ANDROID or ECLIPSE that can't find the file TOOLS.JAR. Searched the ENTIRE hd, but can't find it. PATHS are correct(as far as I tell), but no luck. Any help would be appreciatedThanks in advance.rc3...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to create an Eclipse Project for Apps-For-Android
On Thu, Jun 18, 2009 at 7:39 AM, Balwinder Kaur (T-Mobile)balwinder.k...@t-mobile.com wrote: I would suggest you just create new Eclipse Projects for each of the apps. [ I assume you are referring to the source code downloaded from http://code.google.com/p/apps-for-android/source/checkout ] Here are the steps to do it. Eclipse-File-New Android Project. Within the Contents section, Select Create project from existing source and set the Location to the root of your app directory. e.g. your_path_to_apps_for_android/ projectname This is the way to do it. To be exact, select the directory that contains the AndroidManifest.xml file. You need to do that for each project. I also noticed that some of these have R.java in their source tree. You may have to delete that file and just use the one that gets auto- generated under the gen folder in your eclipse project. Yes. ADT does not clean an existing R.java unless it generated itself, so you have to do it manually. R/ Hope this helps, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 18, 12:43 am, Tony S. toni.subir...@gmail.com wrote: Hello, I checked out the source code of Apps-For-Android from the repository, but I can't load it up / import to Eclipse. I noticed the source code haven't got the .project file (and maybe some other would be missing). So, I'd like to know how to create a project, or the missing files for Eclipse to recognize it. Does anybody know how to do it? Thanks! Tony S. --~--~-~--~~~---~--~~ 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: TOOLS.JAR
I don't know that book so I can't help with it. However you might want to start by using the official installation instructions here: http://d.android.com/sdk/1.5_r2/installing.html R/ On Fri, Jun 19, 2009 at 5:57 AM, Rc3375rcobb3...@gmail.com wrote: To be honest, I'm not quite sure. I'm VERY new with this. I don't have access to my computer at this time, I'm in the transportation business. Whenever there is time, I usually use VisualBasic. I'm starting to figure out that using android can be complex. Trying the example from the ANDROID BEGINNERS BOOK(NOT SURE OF THE TITLE), running from the command prompt is when these errors occurred. So, I'm not sure if I should completely uninstall and remove everything, the directories,files and folders, leaving no trace of android/eclipse ever being there, and starting over. I'm sure that I followed steps correctly, i.e. got the latest ver of android, installed it, got the java info,installed that and rebooted, and got eclipse and rebooted, and tried hello world. From this, is there anything done wrong, or in the wrong order? And, using android, are these mostly functions? I really appreciate the time and effort for all help, Best Wishes and Regards, RCobb3375 On Jun 18, 10:53 pm, Raphael r...@android.com wrote: Please explain in more details what you're doing just before you get this error. R/ On Thu, Jun 18, 2009 at 9:37 PM, Rc3375rcobb3...@gmail.com wrote: I installed android and eclipse and did the Hello World deal. Tried again, that's when I starting getting error: can't find tools.jar. either I overlooked something OR didn't install something. Think I need to reinstall?? THANK YOU FOR YOUR MUCH NEEDED helprcobb3...@gmail.com On Jun 18, 10:03 pm, Raphael r...@android.com wrote: There's no tools.jar. What are you trying to achieve? R/ On Thu, Jun 18, 2009 at 4:14 PM, Rc3375rcobb3...@gmail.com wrote: I'm using winXP. Installed Android 1.5 as well as Eclipse. However, not sure if it's ANDROID or ECLIPSE that can't find the file TOOLS.JAR. Searched the ENTIRE hd, but can't find it. PATHS are correct(as far as I tell), but no luck. Any help would be appreciatedThanks in advance.rc3...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Please Help! I Can't get the ADT Plugin to Install
On Thu, Jun 18, 2009 at 12:19 PM, rahulpalr...@gmail.com wrote: I did nothing to resolve this ! started working after sometime on its own But yeah looks like all these issue have been seen on the Classic version of Eclipse We updated the http://d.android.com/sdk/1.5_r2/installing.html page to clearly state that Java or RCP are recommended. Classic is know to not work. R/ On May 21, 9:10 am, Mridul mridul.gu...@gmail.com wrote: I faced this same problem for full half day. After reading all the posts on the issue and trying everything I could, I got this feeling that this issue has something to do with network connectivity/cache. Thought of trying after clearing Firefox cache. And yes, it worked (dont ask me how, why etc). Mridul On May 8, 12:27 am, Raphael r...@android.com wrote: Are you using Eclipse Classic? It doesn't have all the libraries needed. Please use Eclipse for Java Developers or Eclipse RCP fromhttp://eclipse.org. R/ On Tue, May 5, 2009 at 6:34 PM, J justinssh...@gmail.com wrote: I get this error no matter which of the 3 methods I try. What should I do? An error occurred while collecting items to be installed No repository found containing:org.eclipse.draw2d/osgi.bundle/ 3.4.1.v20080910-1351 No repository found containing: org.eclipse.emf.common/osgi.bundle/ 2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.change/ osgi.bundle/2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore.edit/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.xmi/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.edit/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.wst.common.emf/ osgi.bundle/1.1.202.v200809111955 No repository found containing: org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/ 1.1.201.v200808071700 No repository found containing: org.eclipse.wst.common.frameworks/ osgi.bundle/1.1.200.v200805140020 No repository found containing: org.eclipse.wst.common.project.facet.core/osgi.bundle/ 1.3.3.v200809102124 No repository found containing: org.eclipse.wst.common.ui/ osgi.bundle/1.1.301.v200805140415 No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/ 1.1.302.v200808260045 No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/ 1.1.2.v200809120159 No repository found containing: org.eclipse.wst.validation/ osgi.bundle/1.2.2.v200809050219 No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/ 1.1.305.v200809120354 No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/ 1.0.410.v200809120143 --~--~-~--~~~---~--~~ 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: Please Help! I Can't get the ADT Plugin to Install
On Wed, Jun 24, 2009 at 3:52 AM, Pamplemousse Mk2pamplemousse@gmail.com wrote: Hello, ADT 0.9.1 worked fine with Eclipse 3.4 until today. Eclipse asks me for updates. So I accept the updates and now ADT can't open the XML res files of my current projects. Is ADT not compatible with updated Eclipse 3.4.2? ADT should work just fine with Eclipse 3.4.2 R/ On 22 juin, 16:25, Sander sanderpos...@yahoo.com wrote: It did not work for me either when I used the update site. And I do not have a classic but the WTP version of Ganymede. In the end I downloaded the archive fromhttp://developer.android.com/sdk/adt_download.html and I installed from a local archive. This worked without problems. Would be nice if the SDK had an eclipse directory with this ZIP archive inside. On May 6, 3:34 am, J justinssh...@gmail.com wrote: I get this error no matter which of the 3 methods I try. What should I do? An error occurred while collecting items to be installed No repository found containing: org.eclipse.draw2d/osgi.bundle/ 3.4.1.v20080910-1351 No repository found containing: org.eclipse.emf.common/osgi.bundle/ 2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.change/ osgi.bundle/2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore.edit/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.xmi/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.edit/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.wst.common.emf/ osgi.bundle/1.1.202.v200809111955 No repository found containing: org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/ 1.1.201.v200808071700 No repository found containing: org.eclipse.wst.common.frameworks/ osgi.bundle/1.1.200.v200805140020 No repository found containing: org.eclipse.wst.common.project.facet.core/osgi.bundle/ 1.3.3.v200809102124 No repository found containing: org.eclipse.wst.common.ui/ osgi.bundle/1.1.301.v200805140415 No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/ 1.1.302.v200808260045 No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/ 1.1.2.v200809120159 No repository found containing: org.eclipse.wst.validation/ osgi.bundle/1.2.2.v200809050219 No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/ 1.1.305.v200809120354 No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/ 1.0.410.v200809120143 --~--~-~--~~~---~--~~ 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: Please Help! I Can't get the ADT Plugin to Install
On Fri, Jun 26, 2009 at 8:53 PM, Jose Ayerdisjoseayer...@gmail.com wrote: Well i experience a problem creation Android XMl so i create just an XMl close it and Reopen and got it just fine. What is an XMI ? R/ 2009/6/26 Raphael r...@android.com On Wed, Jun 24, 2009 at 3:52 AM, Pamplemousse Mk2pamplemousse@gmail.com wrote: Hello, ADT 0.9.1 worked fine with Eclipse 3.4 until today. Eclipse asks me for updates. So I accept the updates and now ADT can't open the XML res files of my current projects. Is ADT not compatible with updated Eclipse 3.4.2? ADT should work just fine with Eclipse 3.4.2 R/ On 22 juin, 16:25, Sander sanderpos...@yahoo.com wrote: It did not work for me either when I used the update site. And I do not have a classic but the WTP version of Ganymede. In the end I downloaded the archive fromhttp://developer.android.com/sdk/adt_download.html and I installed from a local archive. This worked without problems. Would be nice if the SDK had an eclipse directory with this ZIP archive inside. On May 6, 3:34 am, J justinssh...@gmail.com wrote: I get this error no matter which of the 3 methods I try. What should I do? An error occurred while collecting items to be installed No repository found containing: org.eclipse.draw2d/osgi.bundle/ 3.4.1.v20080910-1351 No repository found containing: org.eclipse.emf.common/osgi.bundle/ 2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.change/ osgi.bundle/2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore.edit/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.xmi/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.edit/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.wst.common.emf/ osgi.bundle/1.1.202.v200809111955 No repository found containing: org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/ 1.1.201.v200808071700 No repository found containing: org.eclipse.wst.common.frameworks/ osgi.bundle/1.1.200.v200805140020 No repository found containing: org.eclipse.wst.common.project.facet.core/osgi.bundle/ 1.3.3.v200809102124 No repository found containing: org.eclipse.wst.common.ui/ osgi.bundle/1.1.301.v200805140415 No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/ 1.1.302.v200808260045 No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/ 1.1.2.v200809120159 No repository found containing: org.eclipse.wst.validation/ osgi.bundle/1.2.2.v200809050219 No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/ 1.1.305.v200809120354 No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/ 1.0.410.v200809120143 -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Please Help! I Can't get the ADT Plugin to Install
On Mon, Jun 29, 2009 at 1:44 AM, Pamplemousse Mk2pamplemousse@gmail.com wrote: Jose, you are right: ADT plugin works with Galileo. Mehdi, I think the plugin does not work with Eclipse Ganimede 3.4.2. The plugin *officially* works with Ganimede 3.4.2, there is no doubt about it :-) Make sure you have a the Eclipse Java or RCP editions, not the Classic one. And yes, it works with Eclipse Galileo 3.5 too. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Map Application is not running in emulator
On Sat, Jun 27, 2009 at 2:00 AM, moonmoonmoon...@gmail.com wrote: I am working on a map application which can be access by android emulator in eclipse and java. please tell the code for the eclipse3.3 and android 1.5 and adt0.8 plz help me You need to update to the latest ADT (0.9.2) to use Android 1.5. Follow the instructions here: http://d.android.com/sdk/1.5_r2/installing.html R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic and Eclipse
On Mon, Jun 29, 2009 at 3:31 AM, Crocoluciano.brous...@gmail.com wrote: Hi all, I've followed the procedure to install my HTC Magic to launch my apps on. the procedure seams went well since now i've this output when i prompt adb devices : List of devices attached HT93WKF03753 device The procedure on Android developper says after to launch run as usual and i will be able to see my real device + my previous emulator BUT i'm not proposed with my Device :( it still always only the emulator visible. I don't understand your issue: the list you gave above shows your device. R/ Thank you for your helps. Croco --~--~-~--~~~---~--~~ 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 Project Wizard
Looks like the ADT plugin is not correctly installed on your Eclipse install. Make sure you are using a compatible version of Eclipse (3.3 or 3.4, Java or RCP flavors, *not* Classic) and try to remove and reinstall the latest ADT 0.9.2 R/ On Tue, Jun 30, 2009 at 2:16 AM, PlaceboKidplaacebo...@gmail.com wrote: This doesn't help, cause I don't have Android option in Window Customize Perspective :( On May 9, 4:36 am, Raphael r...@android.com wrote: Doofus, did that solve your issue? If you have installed ADT via Eclipse and still don't see the Android Project wizard, try this: 1- File New Other. You should see a category Android Android Project 2- Window Customize Perspective. In the Shortcut tab, make sure Android is checked. On some of my eclipse installs, this is not checked after I install ADT and the wizard don't appear in the File New menu. Checking that solves it. R/ On Fri, May 1, 2009 at 9:24 AM, Doofuss jkmcge...@gmail.com wrote: I seem to have followed all the steps correctly, dowloaded, unzipped android sdk 1.5, set enviornment variable with path to the tools directory, installed eclipse and have the android development tools installed there. However, I am not getting anything that actually has the word Android from anywhere in the File-- New Project-- It just has type filter text in the Wizards box, and then under that says project... Am I supposed to type Android in there? That is not what the directions in the Dev Guide under Creating an Android Project indicate. I do have the DDMS stuff showing up...and at one point was able to see the emulater stuff, but can't seem to get back there now Any advice out there for 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: Android in Eclipse - package name problem - please help
First check that you're not using the Navigator view instead (which shows files, not Java namespaces). In the package explorer, click on the View Menu (a little triangle just above the scrollbar in the explorer view. Select Package Presentation and change it from flat to hierarchical, or the reverse. R/ On Tue, Sep 15, 2009 at 4:06 PM, Mimi mimik...@gmail.com wrote: As I was coding, building and testing my Android App merrily along, it seemed all of a sudden, the parsing/compile failed. Error is on the Manifest complaining that a file could not be found in the package mimi.package.newApp. What I found out under the Ecplise Explorer was that the com.mimi.package package name was no longer a string but got fragmented as folders i.e. src/com/mimi/package. Same with gen/com/ mimi/package. I must have done something unintentionally to cause this but what is it? Any ideas and suggestions would be greatly appreciated. Many Thanks...Mimi --~--~-~--~~~---~--~~ 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: aapt is present - Hello, World application.
Can you do a ls -l /home/haze/android/platforms/android-1.1/tools/ to see the file attributes? The old SDK used a zip for linux, and some unzip binaires sometimes did not preserve file attributes. If ls -l doesn't show the files as +x, you can try: chmod -v +x /home/haze/android/platforms/android-1.1/tools/* Let us know if that helps. R/ On Sat, Sep 12, 2009 at 3:46 PM, Lee Jarvis ljjar...@googlemail.com wrote: Hey guys, I'm trying to run the hello world application from the documentation example, but to no avail.. This is my error: Error executing aapt. Please check aapt is present at /home/haze/ android/platforms/android-1.1/tools/aapt $ ls /home/haze/android/platforms/android-1.1/tools/ aapt aidl dexdump dx lib aapt is also executable, so I'm not quite sure what the problem is. I realize this question has been asked many times before, but even with that I was unable to resolve it. Thanks, Lee --~--~-~--~~~---~--~~ 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
You're mixing a few things: - the id of a view (i.e. R.id.calculate_id) is just that: an identifier that lets you *find* the object in question. - you can't assign to that id, it's just a constant integer Instead you should do: - find the view based on the id: EditText myEditField = (EditText) findViewById(R.id.calculate_id); - use some of the EditText methods to change the text: http://developer.android.com/reference/android/widget/EditText.html e.g: myEditField.setText(42); I *strongly* suggest you get an introductory book on Android or look at some of the samples under SDK/platform-1.6/samples/ HTH R/ On Wed, Sep 16, 2009 at 8:39 PM, Rc3375 rcobb3...@gmail.com wrote: i have a file that was created in eclipse. the screen has been designed with one field that the user would enter a value such as 123.45, and the rest of the fields are calculated from the 123.45. all the EDITTEXT fields have their default values(public static final int calculate_id=0x7f050006).(from the R.java file. they are assigned a value from the calculation(R.id.calculate_id = xx;). all the values in the R.java file seem the default to public static final int calculate_id=xx. the R.id.calculate_id = XX fails. it does not matter if XX is an integer,double or float. is there a way to convert the R.id.calculate_id(EditText) field to either float or double? i have tried to parse it and cast it. but everytime that is done and you recompile the file, the R.java file will revert to the orginal settings. literally driving me nuts...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: When does one start to develop for 1.6?
On Wed, Sep 16, 2009 at 5:59 PM, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: that's fine if you want your app to not be available on most devices for some time. the date when 1.6 devices start appearing in one thing, the date when most devices will have been updated is another. that's really what you should be targeting. What Balwinder meant is that you want to start using the SDK 1.6 to make sure your apps are compatible with Android 1.6. You should keep your minSdkVersion to whatever is the minimum API supported by your app -- simply test them using an AVD based on the API level 4 to run the emulator using Android 1.6 . However, yes, if you try to publish an app using minSdkVersion=4 today on Market, nobody will be able to download it. R/ i'd say target your 1.6 app release for ~1 month after the last provider makes their OTA 1.6 update available. On 9/16/09 3:31 PM, Balwinder Kaur (T-Mobile USA) wrote: Now would be a time as good as any to start developing apps with the SDK 1.6 and new Level 4 APIs. As per the Google official blog, devices with 1.6 will start appearing in October. http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here.html. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 16, 5:27 am, MrChaz mrchazmob...@googlemail.com wrote: It takes them a while to push the update to peoples phone so there is no need to rush anything out. It's a good idea to try your apps out on an 1.6 version of the emulator to make sure everything works smoothly though. On Sep 16, 1:12 pm, Michael Dorin bsddo...@gmail.com wrote: I see 1.6 has been released...when is the right time to upgrade to it? -Mike -- --~--~-~--~~~---~--~~ 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 in Eclipse - package name problem - please help
On Wed, Sep 16, 2009 at 6:31 AM, Mimi mimik...@gmail.com wrote: Thank you so much for your response and info, Raphael. How can I change the Navigotor view to Java namespaces? You can't. The navigator displays files from your disk. It doesn't know about namespaces. Under the package explorer, View Menu/Package Presentation, I changed the selection from flat to hierarchical and the reverse. It did not have an impact on the presenation of com.mimi.App. It is still That's because your top namespace has no other things into it. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Screen orientation
On Wed, Sep 16, 2009 at 5:06 AM, Mark Murphy mmur...@commonsware.com wrote: Windows/Linux: Ctrl-F12 Mac with numeric keypad: 5 on the numeric keypad and $ ~/sdk/tools/emulator.exe -help-keys When running the emulator, use the following keypresses: HOMEHome button F2, PAGEUP Menu (Soft-Left) button Shift-F2, PAGEDOWN Star (Soft-Right) button ESCAPE Back button F3 Call/Dial button F4 Hangup/EndCall button F7 Power button F5 Search button KEYPAD_PLUS, Ctrl-F5Volume up button KEYPAD_MINUS, Ctrl-F6 Volume down button Ctrl-KEYPAD_5, Ctrl-F3 Camera button KEYPAD_7, Ctrl-F11 switch to previous layout KEYPAD_9, Ctrl-F12 switch to next layout F8 toggle cell network on/off F9 toggle code profiling Alt-ENTER toggle fullscreen mode F6 toggle trackball mode DELETE show trackball KEYPAD_5DPad center KEYPAD_4DPad left KEYPAD_6DPad right KEYPAD_8DPad up KEYPAD_2DPad down KEYPAD_MULTIPLY increase onion alpha KEYPAD_DIVIDE decrease onion alpha note that NumLock must be deactivated for keypad keys to work R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Must have missed something...1.5-1.6
Please send the workspace/.metadata/.log file to Xavier by private mail to help us understand the issue. R/ On Wed, Sep 16, 2009 at 8:47 AM, Xavier Ducrohet x...@android.com wrote: Hmm this shouldn't have been needed. I'll try to reproduce it here. Xav On Wed, Sep 16, 2009 at 8:43 AM, Michael Dorin bsddo...@gmail.com wrote: Found it. I didn't re-do the run configuration for my project. Once I did that it started to work. -Mike On Wed, Sep 16, 2009 at 10:34 AM, Xavier Ducrohet x...@android.com wrote: I'm guessing this is Eclipse showing you that? If so, can you post your .log file (located in your workspace in the .metadata folder) (it may be big, try to only post the end of it, or whatever part contain the error) thanks xav On Wed, Sep 16, 2009 at 5:51 AM, Michael Dorin bsddo...@gmail.com wrote: I thought I followed all the instructions to update the SDK. I have updated a couple projects and no errors are shown. When I attempt to launch though, I get: 'Launching ...' has encountered a problem. An internal error occurred during: Launching ... java.lang.NullPointerException I am running on vista. Any ideas as to what I may have done wrong? -Mike -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ 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: Screen orientation
On Wed, Sep 16, 2009 at 8:21 PM, kirti kaul kirti.k...@wipro.com wrote: You can also set the parameter in the manifest file as activity android:screenOrientation=landscape or portrait,which anyway is by default This will not help him test orientation changes. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: AVD Not starting no Output
Can you give us the output of the command: $ android list avds Thanks in advance, R/ On Thu, Sep 17, 2009 at 9:06 AM, praveen spraveenit...@gmail.com wrote: Hi I am getting the following error while trying to start the AVD via Eclipse. emulator: ERROR: unknown virtual device name: 'my_avd' emulator: could not find virtual device named 'my_avd' Also running the hello world as an Android app doesnt give any output. Thanks Praveen --~--~-~--~~~---~--~~ 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: Free and Paid apps with same code-base???
Not yet. You can get around by extracting as much application logic as possible in a java lib, but you still need basically two projects for the android parts resources. If you're using Linux or a source control system like SVN you can share or symlink your res dir however. It's far from ideal though. R/ On Thu, Sep 17, 2009 at 1:39 AM, MagouyaWare magouyaw...@gmail.com wrote: Is there an easy way to have both free and paid applications that use the same code-base? I have just published my first application, which has both a free and paid version. However, in order to do that I had to make lots of manual changes to my package. Is there any way around this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Error : No embedded stylesheet instruction for file
You're not giving enough information to help you: are you using Eclipse? how did you build and run? That doesn't look like you're running an android app on an emulator at all. R/ On Mon, Sep 14, 2009 at 8:52 PM, Mabel mabelj.fin...@gmail.com wrote: Hi, I am trying to build a simple application that prints a hello world While trying to run I get the following error. Also a new file named Strings.out.xml is formed. Kindly let me what would be the problem. 23:47:52,968 INFO [main] Main - javax.xml.transform.TransformerFactory=null 23:47:52,971 INFO [main] Main - java.endorsed.dirs=C:\Program Files \Java\jre6\lib\endorsed 23:47:52,983 INFO [main] Main - launchFile: C:\Mabel_Drive\Projects \Android_workspace\.metadata\.plugins \org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml 23:47:53,062 FATAL [main] Main - No embedded stylesheet instruction for file: file:/C:/Mabel_Drive/Projects/Android_workspace/Sudoku/res/ values/strings.xml org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Mabel_Drive/ Projects/Android_workspace/Sudoku/res/values/strings.xml at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform (JAXPSAXProcessorInvoker.java:225) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform (JAXPSAXProcessorInvoker.java:186) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main (Main.java:73) Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Mabel_Drive/ Projects/Android_workspace/Sudoku/res/values/strings.xml at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform (JAXPSAXProcessorInvoker.java:214) ... 2 more --~--~-~--~~~---~--~~ 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: Sockets with Android.
Look for the actual error in the logcat view (Eclipse) or adb logcat (command line). Also make sure you declared the INTERNET permission in your manifest. R/ On Fri, Oct 2, 2009 at 8:58 AM, Android_n00b nikhil...@gmail.com wrote: Hi I'm implementing a program which uses sockets to communicate between the client and server. I am getting this to work fine with just a message. However, I want to have an EditText field in my application, which when I hit a 'Send' button, sends the text from the field to my server and logs it. I am trying to implement this, but my program always crashes. Any help would be appreciated. Here is my code: Android Client: public class SocketTest extends Activity { /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Thread sThread = new Thread(new TCPServer()); Thread cThread = new Thread(new TCPClient()); sThread.start(); try { Thread.sleep(1000); } catch (InterruptedException e) { } cThread.start(); } } TCP Server: public class TCPServer implements Runnable{ public static final String SERVERIP = 127.0.0.1; public static final int SERVERPORT = ; public void run() { try { Log.d(TCP, S: Connecting...); ServerSocket serverSocket = new ServerSocket (SERVERPORT); while (true) { Socket client = serverSocket.accept(); Log.d(TCP, S: Receiving...); try { BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream())); String str = in.readLine(); Log.d(TCP, S: Received: ' + str + '); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { client.close(); Log.d(TCP, S: Done.); } } } catch (Exception e) { Log.e(TCP, S: Error, e); } } } TCP Client: public class TCPClient extends Activity implements Runnable { final EditText msg = (EditText) findViewById(R.id.message); final Button sendButton = (Button) findViewById(R.id.sendserver); public void run() { sendButton.setOnClickListener(new OnClickListener() { �...@override public void onClick(View v) { // TODO Auto-generated method stub try { InetAddress serverAddr = InetAddress.getLocalHost(); Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, TCPServer.SERVERPORT); String message = msg.toString(); try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(socket.getOutputStream ())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (Exception e) { Log.e(TCP, C: Error, e); } } }) ; } } --~--~-~--~~~---~--~~ 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: Icon and text on button
Try using this one: http://d.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable) or directly in xml: Button android:text=@+id/Button01 android:id=@+id/Button01 android:drawableLeft=@drawable/icon android:layout_width=wrap_content android:layout_height=wrap_content /Button R/ On Sun, Oct 4, 2009 at 3:26 PM, erisa baw...@ucdavis.edu wrote: I cann ot seem to get an icon and text on a button using set drawables. The following code displays just the text; no icon. Any ideas? package com.example.hellodrawable; import android.app.Activity; import android.os.Bundle; import android.widget.Button; public class HelloDrawable extends Activity { /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button = (Button) findViewById(R.id.Button01); button.setCompoundDrawables(getResources().getDrawable (R.drawable.icon), null, null, null); button.setText(Hello); } } main.xml is simply ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Button android:text=@+id/Button01 android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content /Button /LinearLayout --~--~-~--~~~---~--~~ 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 Utilizing Already Existing Code
What are your errors? R/ On Oct 11, 2009 11:48 AM, benjamin.grant.du benjamin.grant...@gmail.com wrote: http://code.google.com/p/jjil/source/checkout I want to use this code(the face detect part) in the emulator utilizing eclipse. I import the code as a new android project and get hundreds of errors. However, the code clearly works for the designers, so I'm confused what I'm doing wrong. Any idea what I'm doing wrong here? Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: SDK Setup on Windows
All SDK Setup does is execute tools\android.bat for you. Please help me understand what's going on by doing the following: - open a command prompt - cd to the android-sdk-windows folder - execute tools\android.bat from here - give me the output please :-) Also, an important question: Do you have Java installed on your machine? R/ On Tue, Oct 27, 2009 at 3:50 PM, mellery451 mellery...@gmail.com wrote: I'm refreshing my android SDKs as I had some very old versions on my Windows XP machine. I grabbed the latest package for the windows tools - specifically: http://developer.android.com/sdk/download.html?v=android-sdk_r3-windows.zip I unpack it and put the tools directory in my path. When I try to run SDK Setup.exe, it does nothing. No output, nothing. Anyone else had this problem? How should I start diagnosing the issue? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android RSS Reader, Please Help
I don't think posting up up every 2 hours is going to help any... M3 is a seriously obsolete release, which dates before Android had any kind of stable API in place. If you really want help porting your code, you might as well start by listing the compilation errors you get. I also noticed you mentioned you were using the 1.5 SDK -- you might want to switch to the latest 2.0 SDK. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: listen for when my app is installed
Out of curiosity, why do you want to copy your assets on the sdcard anyway? They are already nicely zipped in your APK. R/ On Wed, Oct 28, 2009 at 9:45 AM, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: i would like to copy some files from assets to the SD card when my app is installed. i see the PACKAGE* intents, but i'm unclear which one (or set) i should be listening for. i am sure this is a common pattern, can someone point me to a page that describe the proper way to do this? thanks. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Issue with Android Debug Bridge
So you're trying to see an emulator, right, not a physical device? Can you tell us a bit more: - the version of adb: adb version - the version of your emulator: emulator -version (give the full first line, including build_id) - is the emulator fully booted when you try to see it in adb? does it have network? - what AVD platform are you trying to run in your emulator? R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: taking a screenshot...of whatever is drawn on the view
I don't know about the DrawingCache. However if all you want is to draw your view to a bitmap, that's pretty easy: create a new bitmap, wrap it in a new Canvas(theBitmap) and call your view.onDraw with this canvas. R/ On Wed, Oct 28, 2009 at 3:04 AM, Samuh samuh.va...@gmail.com wrote: I am trying to take a screen shot of whatever is drawn on my custom view's canvas. I use the following lines for the same: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
Re: [android-beginners] Re: SDK Setup on Windows
On Thu, Oct 29, 2009 at 10:20 AM, mellery451 mellery...@gmail.com wrote: sorry for the delay in responding. Here is the output: C:\android\android-sdk-windowstools\android.bat Starting Android SDK and AVD Manager Error: Error parsing the sdk. Error: C:\android\android-sdk-windows\platforms is missing. Error: Unable to parse SDK content. Thanks. It looks like you don't have a platforms folder in your SDK folder. The SDK requires 3 folders there: tools, add-ons and platforms. Do you have them there? If you create them, does that make the SDK Setup.exe work? R/ -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en