[android-beginners] Porting Qt applications on Android
Hi, Is it possible to port an application (C/C++ platform) developed using Qt on Android? Can the C shared libraries (.so files) be loaded in Android? Regards, Vaidya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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 Qt applications on Android
no On Mon, May 18, 2009 at 11:05 AM, Vaidya vaidya...@gmail.com wrote: Hi, Is it possible to port an application (C/C++ platform) developed using Qt on Android? Can the C shared libraries (.so files) be loaded in Android? Regards, Vaidya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sprite imaging for 2D game programming
there is no Sprite class available like the one in J2ME. like nicholas suggests - u might want to write your own custom sprite class with the same functionality. i managed to avoid it on my current project, but i guess sooner or later i'll have to write my own game API. here is what i have in mind: 1) the basic Sprite class will extend the BitmapDrawable class in the android.graphics.drawables package 2) the new extended class will have a Rect or a RectF member variable to keep track of its position on screen. The Rect and RectF classes already have useful methods that can be used for detecting collisions 3) the BitmapDrawable class has an existing setBounds() method which contains the actual position to draw the screen the methods for translating / scaling a bitmap within its bounds are not very useful especially when you have a number of frames in your sprite. perhaps u'll need to have an array of bitmaps where each bitmap represents one frame in the animation. again - this will be specific to the game at hand. actually, ALL of the above tasks, including the animation functionality can be implemented using the AnimationDrawable class that is part of the same graphics package as BitmapDrawable. however, despite many attempts i was unable to get it to work in my program. the animation never moved beyond the first frame. apparently other people have faced the same problem ... but i am yet to receive a response to my query posted a few weeks ago. after extensive googling on the subject i came across some complicated solutions, but i never got round to implementing them coz i really didnt need animation in my current project. i managed to create a workaround using static images instead. i'd suggest u try AnimationDrawable once ... if it works then it will solve all your problems. ~ayush. On May 17, 8:31 pm, Nicholas Radford nikradf...@googlemail.com wrote: Take a look at http://developer.android.com/reference/android/graphics/Canvas.html#d..., android.graphics.Rect, android.graphics.RectF, android.graphics.Paint)http://developer.android.com/reference/android/graphics/Canvas.html drawBitmap calls, (if your using the Android graphics and not the OpenGl graphics libs) You'll see this one in particular drawBitmaphttp://developer.android.com/reference/android/graphics/Canvas.html#d..., android.graphics.Rect, android.graphics.RectF, android.graphics.Paint)( Bitmap http://developer.android.com/reference/android/graphics/Bitmap.html bitmap, Recthttp://developer.android.com/reference/android/graphics/Rect.html src, RectFhttp://developer.android.com/reference/android/graphics/RectF.html dst, Painthttp://developer.android.com/reference/android/graphics/Paint.html paint)Draw the specified bitmap, scaling/translating automatically to fill the destination rectangle. Where Bitmap is your Sprite sheet, src is a rectangle on your sprite sheet (just the section you want to draw) and dst is a destination rectangle on the canvas (where you want to draw it), and paint is your paint object. I'd give example code, but I've not actually written anything for android yet, so my example code would not be the best to learn from. Hopefully though, that function will show you the way. Nik 2009/5/17 G. Murat Taşbaşı gmt...@gmail.com Hi guys, For a 2D game programming, I'm trying to learn about loading an image file for all states of a game character (simply a walking soldier lets say) and simply animate it. I think this classic method is called as sprite imaging that you load whole image of all states of the character that you want to animate. Is there anyone that can provide some sample code about this or at least can you tell me which classes to use, how to refer some 'part of' whole image file and animate it etc. Your help is much appreciated. Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: setBuiltInZoomControls and debugging problems
Ok, I've found out that the only method to actually debug code outside of your project is with a try catch. By doing this I found that mapView is null. But why? The R.id.mapview exists in the autocomplete. why doesn't it give me the MapView? On 10 mei, 18:58, Tim t...@q42.nl wrote: Hi! I've started a new google android project and I want to add zoom controls to my map. Supposedly that should work like this: mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); Unfortunately that doesn't work. I do have the mapView, but when I try to set the defaulzoomcontrols it gives me errors. When I try to debug Eclipse tell me: Source not found. I can't see what's going wrong and I don't know how to fix that Source not found error. I've tried adding some seemingly relevant directories and/or namespaces via Edit source lookup path, but that's mostly guesswork and doens't work anyway. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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.
Hola Gabriel, I was/am having the same problem. Xavier gave me this not and link to follow: Make sure you've followed all the steps at http://developer.android.com/sdk/1.5_r1/upgrading.html#UpdateYourProjects; Which worked. The other thing that worked was to revert the sdk back to 1.1. I am still confused, though, if I create a brand new project, why do I have to update it? Anyway, hope that helps. -Mike On Sun, May 17, 2009 at 3:06 PM, Gabriel from Argentina gaz...@gmail.com wrote: Hi. I'm running Eclipse 3.4 on W7 and when creating a project using the files present in the samples directory, i'm getting constantly these two errors: Example, on NotesList: [2009-05-17 16:55:08 - NotesList] no classfiles specified [2009-05-17 16:55:08 - NotesList] Conversion to Dalvik format failed with error 1 Example, on HelloActivity: [2009-05-17 17:04:23 - HelloActivity] no classfiles specified [2009-05-17 17:04:23 - HelloActivity] Conversion to Dalvik format failed with error 1 Tried the fix tool, did not work. Any quicktips? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Want to display a rapidly changing graph. Can someone explain the API demo please?
I want to display rapidly changing data from the accelerometer as a graph in my app. Very similar to the way it is done in the API demo OS - sensors. However I've looked over that code and I am just not getting anywhere. I was hoping someone could just go over the code in the demo and add some comments to make it a bit easier for me to see what is going on? It would be greatly appreciated as I just seem to be beating my head against a brick wall with it at the moment. Here is the code from the API demo /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.example.android.apis.os; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.View; import android.hardware.SensorManager; import android.hardware.SensorListener; import android.util.Log; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.RectF; /** * h3Application that displays the values of the acceleration sensor graphically./h3 pThis demonstrates the {...@link android.hardware.SensorManager android.hardware.SensorManager} class. h4Demo/h4 OS / Sensors h4Source files/h4 * table class=LinkTable * tr * td src/com.example.android.apis/os/Sensors.java/td * td Sensors/td * /tr * /table */ public class Sensors extends Activity { /** Tag string for our debug logs */ private static final String TAG = Sensors; private SensorManager mSensorManager; private GraphView mGraphView; private class GraphView extends View implements SensorListener { private Bitmap mBitmap; private Paint mPaint = new Paint(); private Canvas mCanvas = new Canvas(); private PathmPath = new Path(); private RectF mRect = new RectF(); private float mLastValues[] = new float[3*2]; private float mOrientationValues[] = new float[3]; private int mColors[] = new int[3*2]; private float mLastX; private float mScale[] = new float[2]; private float mYOffset; private float mMaxX; private float mSpeed = 1.0f; private float mWidth; private float mHeight; public GraphView(Context context) { super(context); mColors[0] = Color.argb(192, 255, 64, 64); mColors[1] = Color.argb(192, 64, 128, 64); mColors[2] = Color.argb(192, 64, 64, 255); mColors[3] = Color.argb(192, 64, 255, 255); mColors[4] = Color.argb(192, 128, 64, 128); mColors[5] = Color.argb(192, 255, 255, 64); mPaint.setFlags(Paint.ANTI_ALIAS_FLAG); mRect.set(-0.5f, -0.5f, 0.5f, 0.5f); mPath.arcTo(mRect, 0, 180); } @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { mBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.RGB_565); mCanvas.setBitmap(mBitmap); mCanvas.drawColor(0x); mYOffset = h * 0.5f; mScale[0] = - (h * 0.5f * (1.0f / (SensorManager.STANDARD_GRAVITY * 2))); mScale[1] = - (h * 0.5f * (1.0f / (SensorManager.MAGNETIC_FIELD_EARTH_MAX))); mWidth = w; mHeight = h; if (mWidth mHeight) { mMaxX = w; } else { mMaxX = w-50; } mLastX = mMaxX; super.onSizeChanged(w, h, oldw, oldh); } @Override protected void onDraw(Canvas canvas) { synchronized (this) { if (mBitmap != null) { final Paint paint = mPaint; final Path path = mPath; final int outer = 0xFFC0C0C0; final int inner = 0xFFff7010; if (mLastX = mMaxX) { mLastX = 0; final Canvas cavas = mCanvas; final float yoffset = mYOffset; final float maxx = mMaxX; final float oneG = SensorManager.STANDARD_GRAVITY * mScale[0]; paint.setColor(0xFFAA); cavas.drawColor(0x); cavas.drawLine(0, yoffset, maxx, yoffset,
[android-beginners] Re: Moving files to phone
On May 15, 5:41 pm, Jerret Halter jeeha...@gmail.com wrote: Are you trying to install an apk? If so the command is adb install file.apk. Use the -r flag to reinstall an app The Eclipse SDK appears to have installed the app for me. It is now on the phone, the icon is where I expect it, and it launches and attempts to run (sans data files). All that *seems* to remain is to transfer my data files over to the phone, into the folder that should be under the app. [BTW, the app builds and saves one file when it runs. That is obviously working, since the app can reload the file the next time it runs.] With the emulator, I simply used file explorer under Eclipse and just cut/paste the files into the appropriate folder. Task complete. But with the phone, while I can see tons of app files, none of them appear to be mine! ? Hence the confusion/problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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
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
Honestly I have no idea. have you tried contacting Htc about the matter? On May 18, 2009 3:49 PM, John Burton john.bur...@jbmail.com wrote: Nicholas Radford wrote: Then you've hit the same problem as me. As I said, I dont think the phone... Is 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 subs... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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 Message
Hmm, I'm not too familiar with the OpenGL ES implementation in Android, so running out of ideas if the DDMS log isn't spitting out anything useful. If you are able to isolate the problem to a self-contained test it will definitely help. From what you've explained it sounds likely to be the model and not the code that is producing the error, but I'm just not sure without some code to look at. On Sun, May 17, 2009 at 12:40 AM, Julius Spencer jul...@msa.co.nz wrote: Thanks for the quick response. I guess that's the trouble I'm having, with a smaller model (eg. cube or triangular based pyramid) I have no problems. I wouldn't know which part of the code to post as there is no Exception it just drops back to the previous Activity. Maybe I need to look at the memory usage or something else while it is drawing the frame. On 17/05/2009, at 11:23 AM, Sean Hodges wrote: Well there is really no way of telling from the error dump you've given, it essentially points to a memory fault of some kind, but more likely something like attempting to access a released resource. Can you post up some of the offending code? On May 17, 2009 12:15 AM, Julius Spencer jul...@msa.co.nz wrote: Hi, I am trying to render an OpenGL model and my Activity dies. I think it might be running out of memory or something. Can anyone help me understand the following error message? Thanks for any help. 05-17 10:23:58.436: INFO/DEBUG(539): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 05-17 10:23:58.442: INFO/DEBUG(539): Build fingerprint: 'generic/sdk/ generic/:1.5/CUPCAKE/147336:eng/test-keys' 05-17 10:23:58.442: INFO/DEBUG(539): pid: 4686, tid: 4843 edu.union 05-17 10:23:58.452: INFO/DEBUG(539): signal 11 (SIGSEGV), fault addr 001cc000 05-17 10:23:58.452: INFO/DEBUG(539): r0 r1 008e r2 8000 r3 05-17 10:23:58.452: INFO/DEBUG(539): r4 001cbff8 r5 456a1ce0 r6 001ca620 r7 001c4d50 05-17 10:23:58.462: INFO/DEBUG(539): r8 098e r9 000c 10 fp 001c7240 05-17 10:23:58.462: INFO/DEBUG(539): ip 456a1cf0 sp 456a1c60 lr acc081a0 pc acc081a4 cpsr 4010 05-17 10:23:58.562: INFO/DEBUG(539): #00 pc 81a4 / system/lib/libagl.so 05-17 10:23:58.562: INFO/DEBUG(539): #01 pc b420 / system/lib/libagl.so 05-17 10:23:58.572: INFO/DEBUG(539): #02 pc fa9c / system/lib/libagl.so 05-17 10:23:58.582: INFO/DEBUG(539): #03 pc 000118e0 / system/lib/libagl.so 05-17 10:23:58.582: INFO/DEBUG(539): #04 pc 78cc / system/lib/libagl.so 05-17 10:23:58.592: INFO/DEBUG(539): #05 pc 9068 / system/lib/libagl.so 05-17 10:23:58.602: INFO/DEBUG(539): #06 pc e3b4 / system/lib/libdvm.so 05-17 10:23:58.612: INFO/DEBUG(539): stack: 05-17 10:23:58.622: INFO/DEBUG(539): 456a1c20 456a1d00 05-17 10:23:58.622: INFO/DEBUG(539): 456a1c24 05-17 10:23:58.622: INFO/DEBUG(539): 456a1c28 001ca4b0 [heap] 05-17 10:23:58.632: INFO/DEBUG(539): 456a1c2c 000c 05-17 10:23:58.632: INFO/DEBUG(539): 456a1c30 001c8344 [heap] 05-17 10:23:58.642: INFO/DEBUG(539): 456a1c34 acc10c70 /system/ lib/libagl.so 05-17 10:23:58.642: INFO/DEBUG(539): 456a1c38 d7c4 [heap] 05-17 10:23:58.642: INFO/DEBUG(539): 456a1c3c 05-17 10:23:58.642: INFO/DEBUG(539): 456a1c40 0001 05-17 10:23:58.642: INFO/DEBUG(539): 456a1c44 0203 05-17 10:23:58.652: INFO/DEBUG(539): 456a1c48 1120 05-17 10:23:58.652: INFO/DEBUG(539): 456a1c4c 001ca520 [heap] 05-17 10:23:58.652: INFO/DEBUG(539): 456a1c50 001ca420 [heap] 05-17 10:23:58.652: INFO/DEBUG(539): 456a1c54 001ca4a0 [heap] 05-17 10:23:58.652: INFO/DEBUG(539): 456a1c58 df002777 05-17 10:23:58.652: INFO/DEBUG(539): 456a1c5c e3a070ad 05-17 10:23:58.663: INFO/DEBUG(539): #00 456a1c60 fef7 05-17 10:23:58.672: INFO/DEBUG(539): 456a1c64 456a1ce0 05-17 10:23:58.672: INFO/DEBUG(539): 456a1c68 001ca520 [heap] 05-17 10:23:58.682: INFO/DEBUG(539): 456a1c6c acc0b424 /system/ lib/libagl.so 05-17 10:23:58.682: INFO/DEBUG(539): #01 456a1c70 999a 05-17 10:23:58.682: INFO/DEBUG(539): 456a1c74 4ccd 05-17 10:23:58.682: INFO/DEBUG(539): 456a1c78 05-17 10:23:58.692: INFO/DEBUG(539): 456a1c7c 0978 05-17 10:23:58.692: INFO/DEBUG(539): 456a1c80 acf19ec4 05-17 10:23:58.692: INFO/DEBUG(539): 456a1c84 00e6 05-17 10:23:58.702: INFO/DEBUG(539): 456a1c88 0002 05-17 10:23:58.712: INFO/DEBUG(539): 456a1c8c 05-17 10:23:58.712: INFO/DEBUG(539): 456a1c90 001ca5a0 [heap] 05-17 10:23:58.722: INFO/DEBUG(539): 456a1c94 0e68 05-17 10:23:58.733: INFO/DEBUG(539): 456a1c98 0001 05-17 10:23:58.733: INFO/DEBUG(539): 456a1c9c 05-17 10:23:58.733: INFO/DEBUG(539): 456a1ca0 00de1401 05-17 10:23:58.742:
[android-beginners] Re: Unable to get adb to work with my Htc Magic
I finally got it working on ubuntu myself. I had used the wrong rule. Its just windows now that I need to solve. On May 18, 2009 5:37 PM, Sean Hodges seanhodge...@googlemail.com wrote: In Ubuntu/Kubuntu, you need to add a rule to the USB config so that debugging will work: http://telyas.com/wordpress2/2009/04/29/ubuntu-jaunty-and-android-adb/ If you haven't found it already, see this section in the development guide for info on how to set up device debugging: http://developer.android.com/guide/developing/device.html On Sat, May 16, 2009 at 2:10 PM, Nicholas Radford nikradf...@googlemail.com wrote: Hi guys, ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Java Swing/AWT class on Android
Hi.. I googled and found that Android does not support the Java AWT and Java Swing packages. I am developing an application using Java swing for running on Ubuntu Linux. I require the same application to be able to run on Android OS also (After converting to Dex format and getting the .apk package). Is it possible to integrate the Java Swings package in Android (Dalvik VM)? Has anybody tried this out? Regards, Vaidya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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 Swing/AWT class on Android
Swing requires a lot of native code that Android does not provide. It's also a huge library and porting it to Android might not be a simple feat. You will need AWT first :) On Mon, May 18, 2009 at 9:51 AM, Vaidya vaidya...@gmail.com wrote: Hi.. I googled and found that Android does not support the Java AWT and Java Swing packages. I am developing an application using Java swing for running on Ubuntu Linux. I require the same application to be able to run on Android OS also (After converting to Dex format and getting the .apk package). Is it possible to integrate the Java Swings package in Android (Dalvik VM)? Has anybody tried this out? Regards, Vaidya -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] [android-beginners]'system.out.println' dumpage
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... Thanks -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Errors in VideoPlayer
That code is very old and based on a pre-release SDK. Try looking at the code here: http://developer.android.com/guide/topics/media/index.html On May 14, 7:18 pm, weird0 amiredi...@gmail.com wrote: Hi guys, I have implemented the VideoPlayer example from the following link: http://davanum.wordpress.com/2007/12/29/android-videomusic-player-sam... I have two errors with the code:- 1. the return type is incompatible with MediaPlayer.OnErrorListener (MediaPlayer,int,int) public void onError(MediaPlayer mediaPlayer, int what, int extra) { Log.e(TAG, onError--- what: + what + extra: + extra); if (mediaPlayer != null) { mediaPlayer.stop(); mediaPlayer.release(); } } 2. the return type is incompatible with SurfaceHolder.Callback.surfaceCreated(SurfaceHolder) public boolean surfaceCreated(SurfaceHolder surfaceholder) { Log.d(TAG, surfaceCreated called); return true; } The return type is underlined with red. Any idea how to resolve the errors to get the VideoPlayer playing. Regards, 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] Spinner hint
Hello, I want do have spinner with initially selected Select one item, but this item shouldn't be visible when user clicks on spinner. I've tried to catch onClick event in spinner, but it seems to be impossible. How can i solve this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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 Qt applications on Android
I realy don't think so.. Have a look at the architecture: http://developer.android.com/guide/basics/what-is-android.html On 18 мај, 11:05, Vaidya vaidya...@gmail.com wrote: Hi, Is it possible to port an application (C/C++ platform) developed using Qt on Android? Can the C shared libraries (.so files) be loaded in Android? Regards, Vaidya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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
This is because the Android HelloWorld example: http://developer.android.com/guide/tutorials/hello-world.html ...points to the download page of the 1.1 SDK, whereas you need the 1.5 SDK to be able to use the 'android' command from the same example! Download the 1.5 SDK here: http://developer.android.com/sdk/1.5_r1/index.html On May 12, 4:19 am, minht...@gmail.com minht...@gmail.com wrote: Hi everyone, When I try to create AVD, I got the message 'android' is notrecognized as an internal or external command,operable program or batch file. Even I typed create command from SDK\tools directory, I got that message. And I also have Java Home in Environment Variable and add java path to path of the system. I would appreciate any suggestion. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Corrupt XML binary file error when adding a PNG to res/drawable
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] Missing setListAdapter() Method?
I am working through the Notepad tutorial and notice that my project will not compile on account of a missing setListAdapter() method call in the Notepadv1.java. In that java file there is a method called fillData() which make the call to the missing method setListAdapter (notes). Can someone tell me where that method should be? The tutorial appears to be silent on the issue. 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] Is there an easy way to make EditText look like TextView but still behave like EditText?
Hello there, I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this: EditText android:id=@+id/lipsum android:text=Lorem ipsum android:style=@android:style/Widget_TextView / ..but I get an error within xml editor: Error: No resource found that matches the given name (at 'style' with value '@android:style/ Widget_TextView'). It is strange because @android:style/ Widget_TextView definitively exists - I double checked it in code via android.R.style.Widget_TextView. Another strange thing is that I don't get android:style offered in the xml editor while typing? There is android:id, android:text and everything else.. but not android:style?! Note: I consider the hard way (making EditText look like TextView) to be: extending EditText and overriding it's onDraw method. Nikolar PS: Check out http://developer.android.com/guide/topics/ui/themes.html#styles. Why are id and style written without android: namespace? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Multiline text input
Hi, I have an AlertDialog with an EditText for text input. The AlertDialog is created using AlertDialog.Builder and the EditText is set as a view on the dialog using setView(). I would like to be able to specify if the EditText should be single or multiline. How would I go about doing that? Thanks in advance, Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Upgraded SDK, now can't do helloAndroid project
i also have the same problem please do 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] Android instrumentation class : what is the concept ?
Hi, what is the android instrumentation class? what is the concept behind it? how it uses junit in android? regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] AChartEngine - a charting library for the Android platform
Hello, If you need any charting feature in your Android projects, you might want to consider using the AChartEngine framework. It currently supports the following chart types: * line chart * area chart * scatter chart * time chart * bar chart * pie chart The above supported chart types can contain multiple series, can have the X axis rendered horizontally (default) or vertically and support a high level of customization. Any chart can be built as a view that can be added to a view group or as an intent for starting an activity. New chart types will be added in the following releases of the library. Please send any kind of feedback that you have related to this library. You can visit the project website at: http://www.achartengine.org Suggestions, comments and feedback can be posted on the project forum at: http://www.achartengine.org/forum Instructions on how to download and import a demo project with source code included can be found here: http://www.achartengine.org/content/goodies.html The library, the javadocs and a demo source code project can be downloaded from http://code.google.com/p/achartengine Regards, Dan http://www.4viewsoft.com http://www.achartengine.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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
I have the same problem as this. There is no 'android' executable in the tools directory - should there be? I only have an android.jar file in the tools' parent folder, but this is not part of my path, and I'm not sure if this is what is meant to be running. On May 12, 4:19 am, minht...@gmail.com minht...@gmail.com wrote: Hi everyone, When I try to create AVD, I got the message 'android' is not recognized as an internal or external command,operable program or batch file. Even I typed create command from SDK\tools directory, I got that message. And I also have Java Home in Environment Variable and add java path to path of the system. I would appreciate any suggestion. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] To Do List Example Crashed Eclipse
I have been progressing through the To Do List example from the book Professional Android Application Development. At each stage of the example I would run the app without any major problems. Then after the final stage I ran the App. At first it worked including the remove item feature. Then it crashed a few times. After reloading it worked but not the remove item feature. Then I restarted my computer. Now Eclipse won't load it or even load another test app that I had written. The name of my app is mmc2android4. When I try to run it in eclipse I get the following messages- [2009-05-18 21:34:02 - mmc2android4] WARNING: Unknown device API version! [2009-05-18 21:34:02 - mmc2android4] Failed to upload mmc2android4.apk on device 'emulator-5554': Unable to open sync connection! Help please 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] Is there an easy way to make EditText look like TextView but still behave like EditText?
Hello there, I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this: EditText android:id=@+id/lipsum android:text=Lorem ipsum android:style=@android:style/Widget_TextView / ..but I get an error within xml editor: Error: No resource found that matches the given name (at 'style' with value '@android:style/ Widget_TextView'). It is strange because @android:style/ Widget_TextView definitively exists - I double checked it in code via android.R.style.Widget_TextView. Another strange thing is that I don't get android:style offered in the xml editor while typing? There is android:id, android:text and everything else.. but not android:style?! Note: I consider the hard way (making EditText look like TextView) to be: extending EditText and overriding it's onDraw method. Nikolar PS: Check out http://developer.android.com/guide/topics/ui/themes.html#styles. Why are id and style written without android: namespace? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] AChartEngine - a charting library for the Android platform
Hello, If you need any charting feature in your Android projects, you might want to consider using the AChartEngine framework. It currently supports the following chart types: * line chart * area chart * scatter chart * time chart * bar chart * pie chart The above supported chart types can contain multiple series, can have the X axis rendered horizontally (default) or vertically and support a high level of customization. Any chart can be built as a view that can be added to a view group or as an intent for starting an activity. New chart types will be added in the following releases of the library. Please send any kind of feedback that you have related to this library. You can visit the project website at: http://www.achartengine.org Suggestions, comments and feedback can be posted on the project forum at: http://www.achartengine.org/forum Instructions on how to download and import a demo project with source code included can be found here: http://www.achartengine.org/content/goodies.html The library, the javadocs and a demo source code project can be downloaded from http://code.google.com/p/achartengine Regards, Dan http://www.4viewsoft.com http://www.achartengine.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email 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 can I install Hello world project to G1 phone? How can I install using Eclipse with ADT??
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] Android instrumentation class : what is the concept ?
Hi, what is the android instrumentation class? what is the concept behind it? how it uses junit in android? regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Notepad tutorial and the case of the missing setListAdapter() method
I am working through the Notepad tutorial and am noticing my project will not compile. The last line of the fillData() method in the Notepadv1.java file references this method. I have searched unsuccessfully to find it. Can someone provide me insight about where this method is so I can get my project to compile? 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
Log.d(YourAppName, this is a debug message); On Mon, May 18, 2009 at 1:35 PM, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 10:17 AM, Rafa Perfeito rafa.perfe...@gmail.com 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: Sprite imaging for 2D game programming
Guys, I have tried to use AnimationDrawable and could never get to make it work. This is what I've tried to do: http://groups.google.com/group/android-beginners/browse_thread/thread/12b1af591d8dfbf0?hl=en Grateful for any insights from any of you. Cheers Cass On May 18, 11:36 am, ayush ayushv2...@gmail.com wrote: there is no Sprite class available like the one in J2ME. like nicholas suggests - u might want to write your own custom sprite class with the same functionality. i managed to avoid it on my current project, but i guess sooner or later i'll have to write my own game API. here is what i have in mind: 1) the basic Sprite class will extend the BitmapDrawable class in the android.graphics.drawables package 2) the new extended class will have a Rect or a RectF member variable to keep track of its position on screen. The Rect and RectF classes already have useful methods that can be used for detecting collisions 3) the BitmapDrawable class has an existing setBounds() method which contains the actual position to draw the screen the methods for translating / scaling a bitmap within its bounds are not very useful especially when you have a number of frames in your sprite. perhaps u'll need to have an array of bitmaps where each bitmap represents one frame in the animation. again - this will be specific to the game at hand. actually, ALL of the above tasks, including the animation functionality can be implemented using the AnimationDrawable class that is part of the same graphics package as BitmapDrawable. however, despite many attempts i was unable to get it to work in my program. the animation never moved beyond the first frame. apparently other people have faced the same problem ... but i am yet to receive a response to my query posted a few weeks ago. after extensive googling on the subject i came across some complicated solutions, but i never got round to implementing them coz i really didnt need animation in my current project. i managed to create a workaround using static images instead. i'd suggest u try AnimationDrawable once ... if it works then it will solve all your problems. ~ayush. On May 17, 8:31 pm, Nicholas Radford nikradf...@googlemail.com wrote: Take a look at http://developer.android.com/reference/android/graphics/Canvas.html#d..., android.graphics.Rect, android.graphics.RectF, android.graphics.Paint)http://developer.android.com/reference/android/graphics/Canvas.html drawBitmap calls, (if your using the Android graphics and not the OpenGl graphics libs) You'll see this one in particular drawBitmaphttp://developer.android.com/reference/android/graphics/Canvas.html#d..., android.graphics.Rect, android.graphics.RectF, android.graphics.Paint)( Bitmap http://developer.android.com/reference/android/graphics/Bitmap.html bitmap, Recthttp://developer.android.com/reference/android/graphics/Rect.html src, RectFhttp://developer.android.com/reference/android/graphics/RectF.html dst, Painthttp://developer.android.com/reference/android/graphics/Paint.html paint)Draw the specified bitmap, scaling/translating automatically to fill the destination rectangle. Where Bitmap is your Sprite sheet, src is a rectangle on your sprite sheet (just the section you want to draw) and dst is a destination rectangle on the canvas (where you want to draw it), and paint is your paint object. I'd give example code, but I've not actually written anything for android yet, so my example code would not be the best to learn from. Hopefully though, that function will show you the way. Nik 2009/5/17 G. Murat Taşbaşı gmt...@gmail.com Hi guys, For a 2D game programming, I'm trying to learn about loading an image file for all states of a game character (simply a walking soldier lets say) and simply animate it. I think this classic method is called as sprite imaging that you load whole image of all states of the character that you want to animate. Is there anyone that can provide some sample code about this or at least can you tell me which classes to use, how to refer some 'part of' whole image file and animate it etc. Your help is much appreciated. Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Where is source code for Dev Tools?
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? 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: HTC Magic - Can't install driver on development PCs
Hi there, We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. - Did you *ever* install an android USB driver before? SDK 1.0/1.1 had one and it has been updated in 1.5. - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? - Did Windows ever prompt you about installing a driver for an unknown device? Sorry if some of the questions are generic, I'm trying to get broad enough before drilling in specifics. R/ On Mon, May 18, 2009 at 7:49 AM, John Burton john.bur...@jbmail.com wrote: Nicholas Radford wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Is there anywhere to get further support on this as I really need it to work? The fact that it doesn't work on my main machine or my laptop, and I've seen several other reports of this makes me believe this isn't simply a problem on my development machine but some more fundemental problem. I'm willing to wipe and reinstall vista on my development machine if there is no other way to make this work but I'm reluctant to do so if it's likely the problem will reoccur. I'm wondering if it's because I used the phone first on that machine without usb debugging set and that if the first time it was connected it had it set it would have worked? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Moving files to phone
On May 18, 8:15 am, jknox jk...@trisoft.com wrote: With the emulator, I simply used file explorer under Eclipse and just cut/paste the files into the appropriate folder. Task complete. But with the phone, while I can see tons of app files, none of them appear to be mine! ? Hence the confusion/problem. Slight progress... using ADB, I can see my app in /data/app, and apparently a related structure in /data/data (ls -l shows the application name in both). Still can't *push* to either. And with Eclipse or DDMS, can't even find the data directory. Strange... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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
Lol, no worries for me... We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. XP Service pack 3, 32 bit - Did you *ever* install an android USB driver before? No, My HTC Magic is my first android phone, It runs 1.5 so I only tried the 1.5 drivers, windows doesn't recognize the device nor that the drivers are for it. However, windows does detect the storage capabilities of the device - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? Neither, HTC android phone USB and Generic Volume are the two things added to the device list when I plug my phone in. The first appearing under Disk Drives the second appearing under Storage volumes - Did Windows ever prompt you about installing a driver for an unknown device? Nope, never. On Mon, May 18, 2009 at 8:14 PM, Raphael r...@android.com wrote: Hi there, We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. - Did you *ever* install an android USB driver before? SDK 1.0/1.1 had one and it has been updated in 1.5. - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? - Did Windows ever prompt you about installing a driver for an unknown device? Sorry if some of the questions are generic, I'm trying to get broad enough before drilling in specifics. R/ On Mon, May 18, 2009 at 7:49 AM, John Burton john.bur...@jbmail.com wrote: Nicholas Radford wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Is there anywhere to get further support on this as I really need it to work? The fact that it doesn't work on my main machine or my laptop, and I've seen several other reports of this makes me believe this isn't simply a problem on my development machine but some more fundemental problem. I'm willing to wipe and reinstall vista on my development machine if there is no other way to make this work but I'm reluctant to do so if it's likely the problem will reoccur. I'm wondering if it's because I used the phone first on that machine without usb debugging set and that if the first time it was connected it had it set it would have worked? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: [android-beginners]'system.out.println' dumpage
On May 18, 10:35 am, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 10:17 AM, Rafa Perfeito rafa.perfe...@gmail.com 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. Actually, System.out and System.err should get redirected to the log file. See frameworks/base/core/java/com/android/internal/os/ RuntimeInit.java, zygoteInit(), where it does: System.setOut(new AndroidPrintStream(Log.INFO, System.out)); System.setErr(new AndroidPrintStream(Log.WARN, System.err)); The stdin/stdout/stderr file descriptors are redirected to /dev/null during app framework startup, so a printf() from native code won't do anything. The android.util.Log calls are preferred, since you can tag the messages from your app and filter them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is Port Forwarding?
On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so you can set up breakpoints in your code in your IDE) http://developer.android.com/guide/developing/debug-tasks.html http://lmgtfy.com/?q=Wikipedia+Port+Forwardingl=1 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Where is source code for Dev Tools?
On Mon, May 18, 2009 at 11:39 AM, Lewis Z. lzh...@gmail.com wrote: Could someone please tell me where I can find the source code for Dev Tools (i.e., Sync, Media Browser, and etc)? Or are they under different names in the source code? iirc it's apps/Development in development.git http://android.git.kernel.org/?p=platform/development.git;a=tree;f=apps/Development;h=90aa0d214eacca5410e0b5170e0b65dcac3b6b52;hb=HEAD R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cannot create AVD in window XP
Thanks for catching this. I filed a bug for that: http://b.android.com/2697 R/ On Sun, May 17, 2009 at 6:44 AM, Steve steve.ma...@gmail.com wrote: This is because the Android HelloWorld example: http://developer.android.com/guide/tutorials/hello-world.html ...points to the download page of the 1.1 SDK, whereas you need the 1.5 SDK to be able to use the 'android' command from the same example! Download the 1.5 SDK here: http://developer.android.com/sdk/1.5_r1/index.html On May 12, 4:19 am, minht...@gmail.com minht...@gmail.com wrote: Hi everyone, When I try to create AVD, I got the message 'android' is notrecognized as an internal or external command,operable program or batch file. Even I typed create command from SDK\tools directory, I got that message. And I also have Java Home in Environment Variable and add java path to path of the system. I would appreciate any suggestion. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cannot create AVD in window XP
If you are under Windows there should be SDK/tools/android.bat and android.sh for linux/mac. If SDK/tools is not on your path, add it. The only android.jar you can find is SDK/platforms/android-1.[15]/android.jar which is the API for ant/eclipse. It has nothing to do with the android command-line tool. R/ On Sun, May 17, 2009 at 5:30 AM, Steve steve.ma...@gmail.com wrote: I have the same problem as this. There is no 'android' executable in the tools directory - should there be? I only have an android.jar file in the tools' parent folder, but this is not part of my path, and I'm not sure if this is what is meant to be running. On May 12, 4:19 am, minht...@gmail.com minht...@gmail.com wrote: Hi everyone, When I try to create AVD, I got the message 'android' is not recognized as an internal or external command,operable program or batch file. Even I typed create command from SDK\tools directory, I got that message. And I also have Java Home in Environment Variable and add java path to path of the system. I would appreciate any suggestion. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Corrupt XML binary file error when adding a PNG to res/drawable
What is the name of the png you are adding and where and how are you referring it to? R/ On Sat, May 16, 2009 at 11:28 PM, Steve Smith tarkast...@gmail.com wrote: Hi, I'm seeing an odd error when adding a PNG file to the res/drawable directory in an otherwise working app: I/ActivityManager( 565): Start proc net.haltcondition.android.ex for activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237 uid=10018 gids={3003} W/ResourceType( 1237): Bad XML block: header size 18254 or total size 169478669 is larger than data size 635 D/AndroidRuntime( 1237): Shutting down VM W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.haltcondition.android.ex/ net.haltcondition.android.ex.ThreadedXmlList}: android.content.res.Resources$NotFoundException: File res/drawable/ androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) E/AndroidRuntime( 1237): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 1237): at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 1237): at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 1237): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 1237): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1237): at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 1237): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 1237): Caused by: android.content.res.Resources $NotFoundException: File res/drawable/androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1843) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1798) E/AndroidRuntime( 1237): at android.content.res.Resources.getLayout (Resources.java:685) E/AndroidRuntime( 1237): at android.view.LayoutInflater.inflate (LayoutInflater.java:318) E/AndroidRuntime( 1237): at androidview.LayoutInflater.inflate (LayoutInflater.java:276) E/AndroidRuntime( 1237): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:309) E/AndroidRuntime( 1237): at android.app.Activity.setContentView (Activity.java:1626) E/AndroidRuntime( 1237): at net.haltcondition.android.ex.ThreadedXmlList.onCreate (ThreadedXmlList.java:34) E/AndroidRuntime( 1237): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 1237): ... 11 more E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException: Corrupt XML binary file E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlAssetNative(Native Method) E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java: 471) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1825) E/AndroidRuntime( 1237): ... 20 more No other changes have been made to the app; removing the file makes the problem go away. This is on 1.5_r1. Any suggestions on what I'm missing here? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Corrupt XML binary file error when adding a PNG to res/drawable
Hi, The file is res/drawable/androidmarker.png (taken from a tutorial). I'm not referring to it at all; I'm merely placing it in the drawable directory. Removing it removes the error. Thanks, Steve 2009/5/19 Raphael r...@android.com: What is the name of the png you are adding and where and how are you referring it to? R/ On Sat, May 16, 2009 at 11:28 PM, Steve Smith tarkast...@gmail.com wrote: Hi, I'm seeing an odd error when adding a PNG file to the res/drawable directory in an otherwise working app: I/ActivityManager( 565): Start proc net.haltcondition.android.ex for activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237 uid=10018 gids={3003} W/ResourceType( 1237): Bad XML block: header size 18254 or total size 169478669 is larger than data size 635 D/AndroidRuntime( 1237): Shutting down VM W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.haltcondition.android.ex/ net.haltcondition.android.ex.ThreadedXmlList}: android.content.res.Resources$NotFoundException: File res/drawable/ androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) E/AndroidRuntime( 1237): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 1237): at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 1237): at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 1237): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 1237): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1237): at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 1237): at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 1237): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 1237): Caused by: android.content.res.Resources $NotFoundException: File res/drawable/androidmarker.png from xml type layout resource ID #0x7f02 E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1843) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1798) E/AndroidRuntime( 1237): at android.content.res.Resources.getLayout (Resources.java:685) E/AndroidRuntime( 1237): at android.view.LayoutInflater.inflate (LayoutInflater.java:318) E/AndroidRuntime( 1237): at androidview.LayoutInflater.inflate (LayoutInflater.java:276) E/AndroidRuntime( 1237): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:309) E/AndroidRuntime( 1237): at android.app.Activity.setContentView (Activity.java:1626) E/AndroidRuntime( 1237): at net.haltcondition.android.ex.ThreadedXmlList.onCreate (ThreadedXmlList.java:34) E/AndroidRuntime( 1237): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 1237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 1237): ... 11 more E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException: Corrupt XML binary file E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlAssetNative(Native Method) E/AndroidRuntime( 1237): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java: 471) E/AndroidRuntime( 1237): at android.content.res.Resources.loadXmlResourceParser(Resources.java: 1825) E/AndroidRuntime( 1237): ... 20 more No other changes have been made to the app; removing the file makes the problem go away. This is on 1.5_r1. Any suggestions on what I'm missing here? 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: What is Port Forwarding?
lol Yeah, but I still don't understand what Port Forwarding is and especially in the context of DDMS, and in the context of debugging. What I need is a one-liner. .. so you can set up breakpoints - this must be outside of eclipse to enable debugging? + Juan On May 18, 4:50 pm, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so you can set up breakpoints in your code in your IDE) http://developer.android.com/guide/developing/debug-tasks.html http://lmgtfy.com/?q=Wikipedia+Port+Forwardingl=1 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is Port Forwarding?
I actually asked this question in January but there was no answer. + Juan On May 18, 5:37 pm, jtaylor jatto@gmail.com wrote: lol Yeah, but I still don't understand what Port Forwarding is and especially in the context of DDMS, and in the context of debugging. What I need is a one-liner. .. so you can set up breakpoints - this must be outside of eclipse to enable debugging? + Juan On May 18, 4:50 pm, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so you can set up breakpoints in your code in your IDE) http://developer.android.com/guide/developing/debug-tasks.html http://lmgtfy.com/?q=Wikipedia+Port+Forwardingl=1 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is Port Forwarding?
Port forwarding is when something, typically a router, but anything that routes connections, recieves incoming data on a given port then forwards it to a preset destination. On May 18, 2009 10:37 PM, jtaylor jatto@gmail.com wrote: lol Yeah, but I still don't understand what Port Forwarding is and especially in the context of DDMS, and in the context of debugging. What I need is a one-liner. .. so you can set up breakpoints - this must be outside of eclipse to enable debugging? + Juan On May 18, 4:50 pm, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so y... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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?
I asked this in January but didn't get an answer. I don't think it's clear for people who don't know Networking. + Juan On May 18, 5:37 pm, jtaylor jatto@gmail.com wrote: lol Yeah, but I still don't understand what Port Forwarding is and especially in the context of DDMS, and in the context of debugging. What I need is a one-liner. .. so you can set up breakpoints - this must be outside of eclipse to enable debugging? + Juan On May 18, 4:50 pm, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so you can set up breakpoints in your code in your IDE) http://developer.android.com/guide/developing/debug-tasks.html http://lmgtfy.com/?q=Wikipedia+Port+Forwardingl=1 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is Port Forwarding?
On May 18, 5:39 pm, Nicholas Radford nikradf...@googlemail.com wrote: Port forwarding is when something, typically a router, but anything that routes connections, recieves incoming data on a given port then forwards it to a preset destination. So I would use that in DDMS to just hook into an IDE for Debugging purposes? + Juan On May 18, 2009 10:37 PM, jtaylor jatto@gmail.com wrote: lol Yeah, but I still don't understand what Port Forwarding is and especially in the context of DDMS, and in the context of debugging. What I need is a one-liner. .. so you can set up breakpoints - this must be outside of eclipse to enable debugging? + Juan On May 18, 4:50 pm, Raphael r...@android.com wrote: On Mon, May 18, 2009 at 1:45 PM, jtaylor jatto@gmail.com wrote: ..port forwarding (so y... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to 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?
Yes, must be just for debugging. Something I don't need to get into if I'm using Eclipse I'm sure. For more information on port-forwarding with DDMS, read Configuring your IDE to attach to port 8700 for debugging. http://developer.android.com/guide/developing/tools/ddms.html + Juan On May 18, 5:46 pm, Nicholas Radford nikradf...@googlemail.com wrote: Probably not, I only know of it because I often have to setup rules when people need to get to things hoated in my network On May 18, 2009 10:40 PM, jtaylor jatto@gmail.com wrote: I asked this in January but didn't get an answer. I don't think it's clear for people who don't know Networking. + Juan On May 18, 5:37 pm, jtaylor jatto@gmail.com wrote: lol Yeah, but I still don't understand w... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
On Sun, May 17, 2009 at 9:55 AM, Nicholas Radford nikradf...@googlemail.com wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Hi. I'm still investigating this. I'm trying to make it not work under Windows :-) Anyhow, you said it doesn't work for you under Windows but it works on Linux. Can you tell me which Linux distro you use and if it's an udev-based what udev rule you added to make it work? Basically I'm trying to guess if maybe the device id is different or something. If you can please try that: - unplug device from linux box - run sudo udevmonitor --environment - plug your device on your linux box - give me output Thanks in advance, R/ On May 17, 2009 5:20 PM, John Burton john.bur...@jbmail.com wrote: plugin your phone with debugging enabled. On you windows pc goto device manager. In there, there... No there isn't so I can't do that. It seems to work fine as a stoage device but there is no sign at all that it even wants a driver for the other thing. ANd yes, USB debugging is on on the phone. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
One more question: when you fail to get ADB discovered by Windows, do you see a Other Device Unknown Device entry in the Device Manager? I got into this situation under Vista: - removed old ADB driver, rebooted - upon reboot Windows told me a new device had been found and prompted me for a driver. I asked to select the location and selected SDK/usb_driver - windows tried to install a driver to finally give up by saying it was not compatible with my platform. - once it did that, it won't prompt me again However I can: - select the Other Device Unknow Device in Device Manager - right click and get properties - it's hardware id (3rd tab) is USB\VID_0BB4PID_0C02MI_01 (0BB4 and 0C02 denote an HTC/Magic iirc) - in the general tab of the properties Reinstall driver - correctly select the sdk\android-sdk-windows-1.5_r1\usb_driver\x86 location this time R/ On Mon, May 18, 2009 at 12:24 PM, Nicholas Radford nikradf...@googlemail.com wrote: Lol, no worries for me... We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. XP Service pack 3, 32 bit - Did you *ever* install an android USB driver before? No, My HTC Magic is my first android phone, It runs 1.5 so I only tried the 1.5 drivers, windows doesn't recognize the device nor that the drivers are for it. However, windows does detect the storage capabilities of the device - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? Neither, HTC android phone USB and Generic Volume are the two things added to the device list when I plug my phone in. The first appearing under Disk Drives the second appearing under Storage volumes - Did Windows ever prompt you about installing a driver for an unknown device? Nope, never. On Mon, May 18, 2009 at 8:14 PM, Raphael r...@android.com wrote: Hi there, We're trying to reproduce the issue. I have a few questions: - Which version of Windows are you using? XP, Vista, W7, 32 or 64bit. - Did you *ever* install an android USB driver before? SDK 1.0/1.1 had one and it has been updated in 1.5. - When you plug the device and go to the Device Manager, is it listed as unknown or as an adb device? - Did Windows ever prompt you about installing a driver for an unknown device? Sorry if some of the questions are generic, I'm trying to get broad enough before drilling in specifics. R/ On Mon, May 18, 2009 at 7:49 AM, John Burton john.bur...@jbmail.com wrote: Nicholas Radford wrote: Then you've hit the same problem as me. As I said, I dont think the phone is the problem, as I got it working on linux. Is there anywhere to get further support on this as I really need it to work? The fact that it doesn't work on my main machine or my laptop, and I've seen several other reports of this makes me believe this isn't simply a problem on my development machine but some more fundemental problem. I'm willing to wipe and reinstall vista on my development machine if there is no other way to make this work but I'm reluctant to do so if it's likely the problem will reoccur. I'm wondering if it's because I used the phone first on that machine without usb debugging set and that if the first time it was connected it had it set it would have worked? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] how to run sdk sample activities?
What is the URL to instructions on how to run the sample activities included in the Android 1.5 SDK? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTC Magic - Can't install driver on development PCs
On Mon, May 18, 2009 at 5:22 PM, Nicholas Radford nikradf...@googlemail.com wrote: Will do in the morning Forget the linux question. It became totally irrelevant. We found the issue: it happens when the device is plugged in Windows with USB Debugging turned off first. The current fix is: a) Make sure to enable USB Debugging before plugging the device under Windows the *very* first time. Of course in your case that's too late. b) Use regedit to find the string vid_0bb4pid_0c02 in keys or values. If you find in a value, delete the whole registry folder. Repeat till you find none. Then do step (a). Usual disclaimer: if you don't know what regedit is nor how to use it or fear you will screw up your config, please don't do it :-) The issue is that Windows recorded an invalid driver entry associated to your device (G1 or Magic) when it has been first connected without the USB Debugging flag. You want to trash those entries so that Windows can prompt you. Please let me know if that works for you. On May 18, 2009 11:19 PM, Raphael r...@android.com wrote: On Sun, May 17, 2009 at 9:55 AM, Nicholas Radford nikradf...@googlemail.com wrote: Then you've ... Hi. I'm still investigating this. I'm trying to make it not work under Windows :-) Anyhow, you said it doesn't work for you under Windows but it works on Linux. Can you tell me which Linux distro you use and if it's an udev-based what udev rule you added to make it work? Basically I'm trying to guess if maybe the device id is different or something. If you can please try that: - unplug device from linux box - run sudo udevmonitor --environment - plug your device on your linux box - give me output Thanks in advance, R/ On May 17, 2009 5:20 PM, John Burton john.bur...@jbmail.com wrote: plugin your phone w... You received this message because you are subscribed to the Google Groups Android Beginners group --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---