[android-beginners] Re: Running the Emulator on Early Look 1.5 SDK
On Mon, Apr 13, 2009 at 6:13 PM, Pd wrote: > > Hello, > > Noticed the emulator now needs a -avd parameter to run. I had a look at > the Early 1.5 docs but there's no mention of the -avd startup option as > yet. All you need to do is create a virtual device. > > cd to the tools directory. on my linux box this was: > android-sdk-linux_x86-1.5_pre/tools > > For version 1.1 use something like > > ./android create avd --target 1 --name NormalVM01 > > For version 1.5 ( Cupcake ) use > > ./android create avd --target 2 --name CupcakeVM01 > > the naming can be anything you like. Then run the emulator with ( on > linux atleast ): > > ./emulator -avd CupcakeVM01 You can also just write: ./emulator @CupcakeVM01 This is the syntax used in the document that Xavier pointed out. 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 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 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; > } > > > } > > > > 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" > > > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="@string/hello" > /> > > > > > > > --~--~-~--~~~---~--~~ 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 I use touch screen to draw a straight line
Note that if you want you can use your custom view directly in your XML file, without having to manually add it to the layout at runtime. To do that: - declare your view as a static class or in it's separate java file, let's say mypackage.DrawPoints.Mems - write something like this in your XML: < mypackage.DrawPoints.Mems android:layout_width="fill_parent" android:layout_height="fill_parent" /> Note that in the XML layout editor you can use Control-Space to trigger auto-completion on the attributes and values. It doesn't know your custom class name though. By the way, how do you get: package <>.DrawPoints; <> is not a valid package name in java. Is that some kind of unicode chars? R/ On Tue, Apr 14, 2009 at 6:53 PM, gandor wrote: > > Thanks. Yes now it works. Had to use event.getAction and draw > method. > > 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.LinearLayout; > import android.widget.TextView; > > public class DrawPoints extends Activity implements OnTouchListener{ > static int i = 0; > float x = 200; > float y = 200; > float x1 = 0; > float 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); > LinearLayout layMain = (LinearLayout)this.findViewById > (R.id.layout_id); > // register for events for the view, previously > //topLayout.setOnTouchListener((OnTouchListener) this); > layMain.setOnTouchListener((OnTouchListener) this); > layMain.addView(new Mens(this)); > > } > > // the following callback is called when touch event on screen > happens > �...@override > public boolean onTouch(View v, MotionEvent event) { > String tag = null; > > switch (event.getAction()) > { > case MotionEvent.ACTION_DOWN: > { > x = event.getX(); > y = event.getY(); > } > } > return false; > } > > public class Mens extends View { > > public Mens(Context context) > { > super(context); > > } > > protected void onDraw(Canvas canvas) > { > Paint p = new Paint(); > p.setColor(Color.RED); > > canvas.drawLine(15, 15, x , y, p); > invalidate(); > } > > } > > } > > On Apr 13, 10:33 pm, Raphael wrote: >> 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 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 activ
[android-beginners] Re: Build fails with Error 41
android-beginners is not the right group if you want to build your own OS -- this is for SDK users. Check the lists here: http://source.android.com/discuss R/ On Tue, Apr 14, 2009 at 9:01 AM, Chrigi wrote: > > Hello > > Since quite some time now, every time I try to build Android from the > latest source, it fails with the same error. I seem to do it very > wrong but at least it once worked > > Lilith:mydroid Chrigi$ repo sync > Fetching projects: 100% (116/116), done. > Syncing work tree: 100% (114/114), done. > Lilith:mydroid Chrigi$ make > build/core/product_config.mk:232: WARNING: adding test OTA key > > TARGET_PRODUCT=htc_dream > TARGET_BUILD_VARIANT=eng > TARGET_SIMULATOR= > TARGET_BUILD_TYPE=release > TARGET_ARCH=arm > HOST_ARCH=x86 > HOST_OS=darwin > HOST_BUILD_TYPE=release > BUILD_ID= > > build/core/copy_headers.mk:15: warning: overriding commands for target > `out/target/product/dream/obj/include/libpv/getactualaacconfig.h' > build/core/copy_headers.mk:15: warning: ignoring old commands for > target `out/target/product/dream/obj/include/libpv/ > getactualaacconfig.h' > build/core/Makefile:17: warning: overriding commands for target `out/ > target/product/dream/system/etc/apns-conf.xml' > build/core/Makefile:17: warning: ignoring old commands for target `out/ > target/product/dream/system/etc/apns-conf.xml' > build/core/Makefile:17: warning: overriding commands for target `out/ > target/product/dream/system/etc/vold.conf' > build/core/Makefile:17: warning: ignoring old commands for target `out/ > target/product/dream/system/etc/vold.conf' > build/core/Makefile:17: warning: overriding commands for target `out/ > target/product/dream/system/etc/wifi/tiwlan.ini' > build/core/base_rules.mk:384: warning: ignoring old commands for > target `out/target/product/dream/system/etc/wifi/tiwlan.ini' > No private recovery resources for TARGET_DEVICE dream > Compiling SDK Stubs: out/target/common/obj/JAVA_LIBRARIES/ > android_stubs_current_intermediates/classes.jar > out/target/common/obj/JAVA_LIBRARIES/ > android_stubs_current_intermediates/src/android/view/inputmethod/ > MutableInputConnectionWrapper.java:5: cannot find symbol > symbol : constructor InputConnectionWrapper > (android.view.inputmethod.InputConnection) > location: class android.view.inputmethod.InputConnectionWrapper > public MutableInputConnectionWrapper > (android.view.inputmethod.InputConnection base) { super > ((android.view.inputmethod.InputConnection)null); throw new > RuntimeException("Stub!"); } > > ^ > Note: Some input files use unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > 1 error > make: *** [out/target/common/obj/JAVA_LIBRARIES/ > android_stubs_current_intermediates/classes.jar] Error 41 > > Does anyone know how to fix 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: The method which operates android sample(Snake) with eclipse.
Using New> Android Project> Create project from existing source is the right way to do it. Make sure to select which Android target you want (1.1 or 1.5): the new project wizard will automatically select the right sample directory for you. Then select "Browse" and the Snake directory. It should then fill the properties at the bottom of the new android project wizard. However you should not put your workspace in %ANDROID_HOME%\samples. Leave it somewhere else (My Documents, whatever). I suspect you get a conflict because Eclipse tries to create a project and there's already a directory of the same name. In either case, can you look at your_workspace_dir/.metadata/.log for a more verbose error and post it? R/ On Tue, Apr 14, 2009 at 5:31 AM, urymunge wrote: > > Dear all. > I'm Android beginner. > > > 1. Set eclipse workspace in %ANDROID_HOME%\samples. > 2. New> Android Project> > 3. Create project from existing source. > Location: %ANDROID_HOME% \ samples \ Snake > 4. When selects Finish, " Invalid project description" Error occurs. > > Can anyone tell me if I can run Snake? > > Thanks. > urymunge > > > > --~--~-~--~~~---~--~~ 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" tool missing?
On Tue, Apr 14, 2009 at 1:00 PM, Xavier Ducrohet wrote: > > On Tue, Apr 14, 2009 at 12:41 PM, Pd wrote: >> for some reason, which is throwing some people, the instructions for >> creating and running the emulator is on the download page. Personally, >> I think the emulator documentation should have had its own section. >> Maybe in Android 1.5 Early Look SDK rc1 :-) > > This is because the developer.android.com is still reflecting the > official current version (1.1) and so we had a limited number of pages > to work on 1.5 > > The download page serves both as download an release/upgrade notes. > Once the final 1.5 SDK is release, the whole site will be updated, and > hopefully the doc will be easier to find :) It's also on gitweb so it is both easy to find and on a separate page :-p http://android.git.kernel.org/?p=platform/development.git;a=tree;f=docs;h=c6e4848df2195e072f3b916245c64479c5de4edd;hb=HEAD R/ > > Xav > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Could not open Selected VM debug port (8700).
Are you running two instances of Eclipse or did you launch the standalone version of DDMS? When you have that error, can you open a terminal and run "netstat"? It will list the ports currently in use. R/ On Tue, Apr 14, 2009 at 10:21 PM, Amal wrote: > > I have installed Eclipse 3.4 on my Ubuntu Linux 8.04 system. I create > a simple hello android project, but this is what I see when I open > eclipse- > > "Could not open Selected VM debug port (8700). Make sure you do not > have another instance of DDMS or of the eclipse plugin running. If > it's being used by something else, choose a new port number in the > preferences." > > I did telnet localhost 8700 and since it connected I figured out > something is using port 8700. > > I went to Windows>Preferences>Android>DDMS and changed the ADB > Debugger base port to 8600. But even then its not working. > > I am a beginner and don't know how to resolve this port issue. Does > anybody have any suggestions/pointers? Am I missing something? > > > > --~--~-~--~~~---~--~~ 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 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 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 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 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 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 wrote: > On Wed, Apr 22, 2009 at 10:56 PM, gandor 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: HelloSpinner Example!!
Could you give us the exact source code line where this error occurs, or maybe a short snippet function? That will allow us to understand the error in context. Thanks R/ On Sat, Apr 25, 2009 at 11:30 AM, weird0 wrote: > > I tried this simple example from HelloViews. > > But the eclipse IDE gets stuck on this little thing and it does not > recognize ArrayAdapter. It states:- > > "ArrayAdapter is a raw type. References to generic type > ArrayAdapter should be parameterized" > > For resolution on clicking the bulb:- > > 1. Add type parameters to 'ArrayAdapter' > 2. Infer Generic Type Arguments > > and two more. > > I have imported two more... but ArrayAdapter is the bug in the > example. Why? > > Android experts please suggest!! > > Reagrds, > Android Beginner > > > --~--~-~--~~~---~--~~ 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 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 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 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 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 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, > > == > > http://schemas.android.com/apk/res/android"; > package="com.sharp_eu.ste.imservice" > android:versionCode="1" > android:versionName="1.0.0"> > android:label="@string/app_name"> > > android:process=":remote" > android:name="IMServicesManager" > android:enabled="true" > android:exported="true" > android:permission="android.permission.INTERNET"> > > > android:name="com.sharp_eu.ste.imservice.START_IM_SERVICE"> > android:name="com.sharp_eu.ste.imservice.BIND_YAHOO_SERVICE"> > > > > > > > > > > > > > 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 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 : > > 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)" > 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 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 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 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\tools>android.bat create avd -t 3 -n > myAVD > Exception in thread "main" java.lang.NullPointerException > at java.util.Collections$UnmodifiableMap.(Unknown > Source) > at java.util.Collections.unmodifiableMap(Unknown Source) > at com.android.sdklib.avd.AvdManager$AvdInfo. > (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 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 > > > 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: How to publish application to own device without Android Market?
You can do this in 2 ways: - If you have adb debugging enabled on your device, use "adb install myapp.apk" to install it over USB. - Or upload it to any web server that you can access via the device web browser (if you're on a local network wifi, any local web server will do.) Browse the URL of the APK via the web browser, download it and install it. R/ On Tue, Apr 28, 2009 at 6:30 AM, swax.me wrote: > > is it possible to develop an application, package it and publish it > for testing with my local device? > > > > --~--~-~--~~~---~--~~ 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 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 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 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 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 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 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: Eclipse - error parsing the sdk
You need to use the new Android 1.5 SDK with the ADT 0.9.x plugin. You can get it here: http://developer.android.com/sdk/1.5_r1/index.html R/ On Thu, Apr 30, 2009 at 1:15 PM, adsidlc wrote: > > I receive the error message "error parsing the sdk" when I am > attempting to do the Hello World tutorial > I am using WindowsVistaHome, Eclipse Ganymeade version 3.4.2 Build Id: > M20090211-1700, Android 1.1, > and I did download and install the ADT plugin for Eclipse. > I have extensively read postings even remotely similar to this > problem, and have tried several things, including setting the path to > the Android tools using Environmental Variables. > I get the error message after succesfully completing step 1 of the > tutorial under the heading "Create the Project" > The problem occurs in the screen for step 2. I get a different screen > view than the one in the tutorial. > The one I see has a section called "Build Target" with no target > filled in. When I fill in the information called for in the tutorial, > I get the above error message. > Thanks in advance for any help on this > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] 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 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 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 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 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 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 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 wrote: > > On May 10, 6:45 am, Romain Guy 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 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 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 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 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 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 : > > > http://schemas.android.com/apk/res/android"; > android:id="@android:id/tabhost" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > android:id="@+id/layoutTop" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > android:id="@android:id/tabs" > android:layout_width="fill_parent" > android:layout_height="wrap_content" /> > android:id="@android:id/tabcontent" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > android:id="@+id/general" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:text="general option : work in progress" /> > android:id="@+id/xtraZone" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Phone number :"/> > android:id="@+id/txtUsername" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:gravity="top" > android:phoneNumber="true"/> > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Password :"/> > android:id="@+id/txtPassword" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:gravity="top" > android:password="true"/> > > android:id="@+id/about" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > android:id="@+id/appName" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="MonkeySMS"/> > android:id="@+id/year" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="2009"/> > android:id="@+id/visit" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Visit :"/> > 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"/> > > > > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_gravity="bottom" > android:orientation="horizontal"> > android:id="@+id/save" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Save"/> > android:id="@+id/close" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Close"/> > > > > 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 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 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 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 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 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 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 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.int
[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 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 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 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 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 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 > wrote: >> >> >> On Thu, May 14, 2009 at 9:12 AM, Vaidya 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 >>> 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 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" 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 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 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: [android-beginners]'system.out.println' dumpage
On Mon, May 18, 2009 at 10:17 AM, Rafa Perfeito wrote: > Here's a real beginner question: > Im using Eclipse IDE with the android SDK. Where does the > 'system.out.println' printing goes? to the console? 'cause it is not > going... It goes nowhere. Don't use it. Use android.utils.Log for all your logging needs, which will be available in logcat. 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 - 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 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 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+Forwarding&l=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. 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: How can I install Hello world project to G1 phone? How can I install using Eclipse with ADT??
Right click on your project in the package explorer and select Run As > Android. R/ On Sun, May 17, 2009 at 10:00 PM, zirubak wrote: > > Hello, > I download the 1.5r1 SDK and Eclipse with ADT. So I tried the > following tutorial: > http://developer.android.com/guide/tutorials/hello-world.html > > I try to install HelloAndroid.apk to G1 phone. > > How can I install it? > > If I see the Android development site, I can see this command that " > if you are using the Eclipse IDE and have the ADT plugin installed, > you do not need to use adb (or aapt) directly to install your > application on the emulator/device. " > > How can I install using Eclipse with ADT?? > > 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
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 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" 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 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" 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 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 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" 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_0BB4&PID_0C02&MI_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 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 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 >> 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
Just a quick follow up to indicate that we managed to reproduce that with one device. R/ On Mon, May 18, 2009 at 12:24 PM, Nicholas Radford 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 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 >> 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 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_0bb4&pid_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" wrote: > > On Sun, May 17, 2009 at 9:55 AM, Nicholas Radford > 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" 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_0bb4&pid_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 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. 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 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 > * > * mkdir res/drawable > * cp /tmp/androidmarker.png res/drawable > * ant reinstall > * > > I've attached the resulting project. > > Cheers, > Steve > > > 2009/5/19 Steve Smith : >> 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 : >>> >>> 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 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.in
[android-beginners] Re: Plz help me to retrieve contacts
Please look in logcat (command line: adb logcat ; or Eclipse > Windows > Perspective > DDMS) for the exact error that happens. R/ On Wed, May 20, 2009 at 5:50 AM, Jayanthi wrote: > > HI All, > plz find java file > > package net.learn.getContact; > > import android.app.Activity; > import android.content.ContentValues; > import android.database.Cursor; > import android.net.Uri; > import android.os.Bundle; > import android.provider.Contacts; > import android.provider.Contacts.People; > import android.util.Log; > > public class getContact extends Activity { > > �...@override > public void onCreate(Bundle icicle) { > super.onCreate(icicle); > this.setTitle("Contact Card"); > setContentView(R.layout.main); > Bundle bundle = getIntent().getExtras(); > // create a new name > ContentValues values = new ContentValues(); > values.put(Contacts.People.NAME, "Test Name"); > // add it to the database > Uri newPerson = getContentResolver().insert > (Contacts.People.CONTENT_URI, values); > } > } > I am getting error while running the application saying Sorry has > stopped expectely try again > > > > --~--~-~--~~~---~--~~ 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
On Tue, May 19, 2009 at 3:22 PM, Norfeldt 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 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 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 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 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 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 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)
[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 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 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 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 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 wrote: > > Okay, I'll look at it.. > Thank you very much for your help > > > On 31 Maj, 14:59, Mark Murphy 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;i<99 && (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 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-beginners&q=regedit&qt_g=Search+this+group and http://groups.google.com/group/android-developers/browse_thread/thread/48e92dcc0a8a9a23/bbff8436bfd23ce0?lnk=gst&q=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, siegelini 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 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_0bb4&pid_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.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.bellemo 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, Rc3375 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) 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. / > 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." 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
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, Rc3375 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 wrote: >> There's no tools.jar. What are you trying to achieve? >> R/ >> >> >> >> On Thu, Jun 18, 2009 at 4:14 PM, Rc3375 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: 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, Rc3375 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 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, Rc3375 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 wrote: >> >> There's no tools.jar. What are you trying to achieve? >> >> R/ >> >> >> On Thu, Jun 18, 2009 at 4:14 PM, Rc3375 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, rahul 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 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 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 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: Eclipse plugin vs. conversion to Dalvik
Hi Ben, long time no see :-) That's a frequent error that happens when no classes were properly generated. And yes in this case the JDK matters a lot. R/ On Wed, Jun 24, 2009 at 3:26 PM, Benjamin Herrenschmidt wrote: > > On Wed, 2009-06-24 at 15:24 +1000, Benjamin Herrenschmidt wrote: >> Hi ! >> >> I haven't seen this in a FAQ and while Google turned out some mentions >> of this problem, I didn't find an actual solution. >> >> So I'm new to Android, planning to try it out, and did the following >> >> - Machine is an x86/32 runnig ubuntu jaunty >> >> - JVM is IBM jre1.5 but the problem is identical using Sun OpenJDK 6 > > And that was the problem ! > > If I use Sun JDK 5, it works... > > Cheers, > 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: Please Help! I Can't get the ADT Plugin to Install
On Wed, Jun 24, 2009 at 3:52 AM, Pamplemousse Mk2 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 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 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 Ayerdis 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 >> >> On Wed, Jun 24, 2009 at 3:52 AM, Pamplemousse >> Mk2 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 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 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 Mk2 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, moon 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, Croco 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, PlaceboKid wrote: > > This doesn't help, cause I don't have Android option in Window > > Customize Perspective :( > > On May 9, 4:36 am, Raphael 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 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 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 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 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: CheckboxPreference vs. CheckBoxPreference
Yes indeed, ADT doesn't complain about this: your preference can use any custom class that you define. ADT doesn't currently support handling custom classes (one day we'll add it) so it doesn't know this class does not exist till runtime. R/ On Wed, Sep 16, 2009 at 8:31 PM, Tikoze wrote: > > I just ran into this and thought I would post this for anyone else who > might be struggling with the same problem. > > In creating preferences, I had the following code in res/xml to define > my preference activity: > > http://schemas.android.com/apk/res/ > android"> > android:key="App_Start_Notification" > android:title="Notify When AppSwipe Starts" > /> > android:key="Boot_Notification" > android:title="Notify On Boot" > /> > > > ADT did not complain about this (and is usually pretty good about > catching errors) so I thought everything was fine. However, when I > went to access my preference activity I got a crash and logcat gave a > ClassNotFoundException. > > Turns out it was a simple change: Checkbox should have been CheckBox! > > > --~--~-~--~~~---~--~~ 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 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 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 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 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 -~--~~~~--~~--~--~---