[android-developers] Re: Android Physics Engine

2009-03-31 Thread Anton
OK, for anyone interested in my simple physics demo, check out: http://www.antonstoys.com/android/BallPit.apk It's pretty basic, but it shows that you can do some amount of physics on the G-phone at a reasonable rate. And as always, there are many improvements to be made. :) -

[android-developers] Android input devices

2009-03-31 Thread chen.ju...@zte.com.cn
Who knows how many kinds of input device android can support? Touchscreen,keyboard are known,about else,e.g. mouse etc? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Passing a 2 dimensional array to an Activity

2009-03-31 Thread Zhubham
Hi, I need to pass a 2 dimensional array to an ACTIVITY from a SERVICE. How can I achieve this in minimum number of statements (as in avoiding putExtras for each and every string stored in the array)?? Please help me with this. Thanks. Best Regards, Zhubham --~--~-~--~~---

[android-developers] Re: SyncML on android

2009-03-31 Thread Zhihong GUO
http://www.funambol.com/news/pressrelease_2007.11.14.php it works 2009/4/1 Gulfam > > Hi all, > >I want to implement SyncML on android. I want to sync my contacts > and calendar on my server.Is it possible in android ? > if yes then how ?. I am waiting your response. > > Thanks, > Gulfam > >

[android-developers] Re: Why drawing in View.onDraw not take effect, but does in ViewGroup.dispatchDraw

2009-03-31 Thread FBear
Got it! Thank you! On 3月31日, 下午11时35分, Romain Guy wrote: > For efficiency, layouts do not get their onDraw() method called. To > enable it, call setWillNotDrawEnabled(false) (or set the equivalent > XML attribute to false.) > > > > On Tue, Mar 31, 2009 at 7:15 AM, FBear wrote: > > > HI buddies,

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-03-31 Thread Michael MacDonald
Michael MacDonald wrote: Sorry - meant to say that developer phones can't see copy-protected apps in the market. > Developer phones can't see paid apps in the market. This is because > the root access available on the developer > phones breaks the Market copy-protection model. > > The Market cop

[android-developers] SyncML on android

2009-03-31 Thread Gulfam
Hi all, I want to implement SyncML on android. I want to sync my contacts and calendar on my server.Is it possible in android ? if yes then how ?. I am waiting your response. Thanks, Gulfam --~--~-~--~~~---~--~~ You received this message because you are subscr

[android-developers] Re: how to get driving direction info from maps application?

2009-03-31 Thread jj
Actually he developed his own code for calculating distance and direction, What I mean is, I launch the new activity with, this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps? f=d&saddr=37.4,-121.9"+ "&da

[android-developers] Problem on ImageSwitcher.setImageURI

2009-03-31 Thread guishenl...@gmail.com
Hi all, I tried to show a picture in local file system in a imageswitcher. But I could see nothing but a black screen in fact. Here is my code: public void onItemSelected(AdapterView parent, View v, int position, long id) { Uri imageUri = Uri.fromFile(imageFileDir.listFiles()[po

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-03-31 Thread Dan Morrill
If you have the "holiday devphone" build, it's either an actual Google-employee holiday phone, or you've flashed a third-party system image on some other device. The latter case is an unsupported configuration, and it would not surprise me at all if the Market client in that build simply pre-dates

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-03-31 Thread Dan Morrill
This is not true. Devices that are identified as root-enabled, whether an ADP1 or a rooted retail G1, cannot access copy-protected apps. They can still access both paid and free apps that are not copy-protected, however. - Dan On Tue, Mar 31, 2009 at 2:09 PM, Michael MacDonald < googlec...@antle

[android-developers] Re: can i add a click listener to a drawable?

2009-03-31 Thread Josh Dobbs
I am using in ImageButton Now and am using the following code to ad the button to the surfaceview.. myImgTest.setBackgroundDrawable(mBalloon1); myImgTest.draw(canvas); This seems to work as I do not get any errors however i don't see the button. What is the proper way to add the button to the sur

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread kbeal10
Thank you for your suggestions, however according to the API, there is no way to pause or resume threads. Only start them, then join them (which eventually kills it). All related methods for pausing and resuming have been deprecated it seems. On Mar 31, 11:07 pm, Streets Of Boston wrote: > I hav

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-03-31 Thread mawei1981
faint,perhaps FirmWare 1.1 disable paid app features for android dev phone??? On Mar 31, 11:11 pm, Eric Schott wrote: > Here's the specs: > > Model Number:AndroidDevPhone1 > Firmware Version: 1.1 > Kernel Version: 2.6.25-01845-g85d4f0dandroid-bu...@apa27 #27 > Build number: holiday_devphone_user

[android-developers] How to run apk file on SDcard?

2009-03-31 Thread Stephen Le
Hi all, How to run one or more apk programmess base on Emulator's SDcard? Thanks! -- Sincerely! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread Streets Of Boston
I haven't read through all your code, but you should not call thread.start() in your surfaceCreated method. Instead, create and start your thread asap and have it paused when necessary. When 'onPause()' or when surfaceDestroyed is called, pause your thread (CupThread). When 'onResume()' or surfac

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-31 Thread Noam
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-develop

[android-developers] How to get the account infomation from user

2009-03-31 Thread salyer
Hi, I configured the username and pwd from DevTools->Google Service Login successfully on the 1.0r2 emulator and i found the account infomation is stored in the \data\data\com.google.android.googleapps\databases\accounts.db, but i did not find the " Googleapps " package in the open soucecod

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread kbeal10
This is the CupView Class. package my.package; import org.openintents.hardware.SensorManagerSimulator; import org.openintents.provider.Hardware; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread kbeal10
This is the main Activity of my app. The one holding a CupView. package my.package; import my.package.CupView.CupThread; import org.openintents.hardware.SensorManagerSimulator; import org.openintents.provider.Hardware; import android.app.Activity; import android.content.Intent; import android.

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread kbeal10
This is where the thread variable is declared. private Context mContext; /** The thread that actually draws teh animations. */ private CupThread thread; private TextView mStatusText; public CupView(Context context, AttributeSet attrs){ supe

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread Dianne Hackborn
I don't think you've included enough code. Where is this 'thread' variable defined? Where do you clear it after finishing the thread? I am also confused by the comment saying you "exiting" the activity in rollDice -- you aren't calling finish, you are just starting another activity, so the origi

[android-developers] Re: Error on adb push

2009-03-31 Thread guishenl...@gmail.com
Thanks for your help! On Mar 31, 7:46 pm, Mark Murphy wrote: > guishenl...@gmail.com wrote: > > Hi all, > >     When I tried to copy a file in my PC to the Android Emulator, I > > used the command > > "C:\Documents and Settings\Alioth>adb push D:\Data\Android\1.jpg \data > > \data\". > > But the

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-31 Thread Eric Chen
Hi Cupcake today build version seems has same sdcard mount problem Best Regards Eric Chen On Thu, Mar 26, 2009 at 9:05 AM, Anonymous Anonymous < firewallbr...@googlemail.com> wrote: > Sorry i coundt find mmcblk0 but i can see mtdblock0 mtdblock1 and > mtdblock2 > *and btw this will not hel

[android-developers] Troubles with SurfaceView's surfaceCreated/Destroyed

2009-03-31 Thread kbeal10
I'm writing a game using two different SurfaceView's (RollView and CupView) in two different activities. Both SurfaceView's heavily resemble the LunarLander demo. The RollView SurfaceView is working fine. When leaving the Activity, RollView's surfaceDestroyed() is called, killing the thread. If I

[android-developers] Re: Why does Android use Binder for IPC?

2009-03-31 Thread bai.luo
OK,because no body answer this question on the other forum,so i have to change another forum to ask the same question,since somebody may be answer this question And,i search this topic by google, and get some info like this: As one of the key infrustructure, Android Binder provide one of the IPC

[android-developers] Am I leaking bitmaps from adapter's getView ?

2009-03-31 Thread Alexey
Hi All , I definitely have a memory leak problem and i'm trying to figure out there. After 6-10 config changes i'm getting out of memory in regards to BitmapFactory. I'm kind of suspect that this is going on within adapter. I have a listview . ListItems are an thumbnail image ( ImageView ) and

回复: [android-developers] Re: How to display a horizontal bar

2009-03-31 Thread Jiang
It works, thanks a lot. -Jiang --- 09年3月31日,周二, Jon Colverson 写道: 发件人: Jon Colverson 主题: [android-developers] Re: How to display a horizontal bar 收件人: "Android Developers" 日期: 2009,331,周二,7:36下午 On Mar 31, 11:25燼m, Jiang wrote: > I want to display a horizontal bar in the view, just like th

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread focuser
good point. Thanks Romain. :) On Mar 31, 5:37 pm, Romain Guy wrote: > No because the issue is in VelocityTracker :) > > > > On Tue, Mar 31, 2009 at 4:39 PM, focuser wrote: > > > Great! > > > Will it fix the problem in my app if I pull GestureDetector.java from > > Cupcake and include/use it in

[android-developers] Re: Color.colorToHSV bug

2009-03-31 Thread thesquib
Bugs and issues can be added and tracked at http://code.google.com/p/android/issues/list On Apr 1, 12:44 pm, Keith Wiley wrote: > I believe there is a bug in Android's implementation of > Color.colorToHSV().  If you pass it fully desaturated color, it > assigns all three HSV components to the

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread Romain Guy
No because the issue is in VelocityTracker :) On Tue, Mar 31, 2009 at 4:39 PM, focuser wrote: > > Great! > > Will it fix the problem in my app if I pull GestureDetector.java from > Cupcake and include/use it in my code? > > On Mar 31, 4:05 pm, Romain Guy wrote: >> The problem comes from the Vel

[android-developers] MediaPlayer sluggish to play sounds

2009-03-31 Thread Eric M. Burke
I have an Activity that plays a brief OGG "pop" sound effect when bubbles pop. To keep it fast and to ensure I can play several pops, I create four MediaPlayer instances. I synchronize access to a pool of instances, so I can play up to four pops at once. Once a sound completes, I call seekTo(0) an

[android-developers] Color.colorToHSV bug

2009-03-31 Thread Keith Wiley
I believe there is a bug in Android's implementation of Color.colorToHSV(). If you pass it fully desaturated color, it assigns all three HSV components to the same value, that value being the "value" component of the color. While hue is arguably arbitrary in such an instance could be assigned an

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread focuser
Great! Will it fix the problem in my app if I pull GestureDetector.java from Cupcake and include/use it in my code? On Mar 31, 4:05 pm, Romain Guy wrote: > The problem comes from the VelocityTracker used by the > GestureDetector. The tracker has a pool of 1 instance but there's a > bug in the p

[android-developers] Re: Discussion on localizing-android-apps-draft

2009-03-31 Thread Xavier Le Vourch
Matthias wrote: > Setting the locale in /data/locale as described here doesn't work for > me in 1.1 R1. Has the process changed? This used to work for me in > pre-1.1 releases. I've just posted an article on my blog detailing the steps I'm using to test my applications. Basically, you need to mo

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-31 Thread Noam
Craig - None of your responses are valid because I am using the two PreferenceScreens in the same .java file, so that wouldn't help. Peli - No, I do not use onPreferenceTreeClick(PreferenceScreen, Preference). This is my code: @Override public void onCreate(Bundle icicle) { super.on

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread Romain Guy
The problem comes from the VelocityTracker used by the GestureDetector. The tracker has a pool of 1 instance but there's a bug in the pool management which causes both your GestureDetector and ListView to use the *same* VelocityTracker. This means the tracker receives most events twice. I just fi

[android-developers] Re: Saving a picture not in the Camera folder?

2009-03-31 Thread BoD
Anyone? BoD On Mar 29, 5:48 pm, BoD wrote: > > It works fine, except when doing this, the picture is written in the > "Camera" folder (/sdcard/dcim/Camera). > Since the picture was not taken with the camera, this is not > desirable. > > Is there any way to put it directly in dcim? > --~--~---

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread focuser
OK, but could you explain briefly why the GestureDetector would have such side effect? In the code above I don't see any events being stolen nor any new events being created. Original events are just passed to FrameLayout.dispatchTouchEvent as if there's no GestureDetector used. I even tried th

[android-developers] Re: Managing Views programmatically

2009-03-31 Thread LambergaR
Hope you wont be mad because I'm giving this discussion a bump ... but I'd really need an answer =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] WebView.clearHistory()

2009-03-31 Thread nEx.Software
I call WebView.clearHistory(), but I am still able to go back after doing so. I want to reuse a WebView, but I don't want the back button to allow the user to go back further than the current "session" of using the WebView. Anybody know what is the best way to handle this? I thought for sure that

[android-developers] Re: Photo Picker

2009-03-31 Thread Bobbie
No, I have nothing in onPause(). I guess I'll just have to keep playing with it. Bobbie On Mar 31, 4:05 pm, Streets Of Boston wrote: > Do you have code in your 'onPause()' method of your activity. > If so, it looks like this code is blocking (never returning). > > On Mar 31, 11:39 am, Bobbie

[android-developers] Re: SMS in android

2009-03-31 Thread mark . kahrl
You can receive an SMS mesage on the emulator by using emulator control, you'll need an actual device to fully test sending sms, the behavior is different on the emulator. M On Mar 30, 10:05 am, aglagla wrote: > Hello World! > I'm a beginner in android platform.I want to know how I

[android-developers] OOM errors during inflation

2009-03-31 Thread Ward Willats
All of sudden I am seeing oddball OMM errors when inflating view trees. The allocations are from really small (couple of K) to fairly large (couple of hundered K). But ddms says the heap is only half full and there's around 2MB available. The app does not appear to be leaking. What should I b

[android-developers] Re: Advice for possibly paying someone to port app to iPhone

2009-03-31 Thread Hayden
Thanks for the tip, I will definitely write up a contract if this goes through! On Mar 30, 11:45 am, droozen wrote: > I take it, then, that you are not an iPhone developer. > > Not sure which way I would go on this one. If your friend already has > some iPhone experience, I assume he already has

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread Stoyan Damov
Dianne, I can't see why are you taking this personally. FWIW, you, Android engineers, are the only people we're getting *any* answers to all our non-development questions. Is it so hard to accept the fact that people can think that Google, the company, is for example bad or deaf, but at the same

[android-developers] Re: Android Physics Engine

2009-03-31 Thread Anton
I'll definitely post the app tonight for you guys to check out (at work now). I am an embedded systems programmer by trade. But I do physics toys for fun and am just getting into Java/Android optimizations. I will point out that optimizing for Java and optimizing for Android are very differ

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-03-31 Thread Michael MacDonald
Developer phones can't see paid apps in the market.  This is because the root access available on the developer phones breaks the Market copy-protection model. The Market copy-protection model ignores that there are many consumer phones that have been rooted... Eric Schott wrote: I have a

[android-developers] Re: http proxy and chunked encoding with emulator

2009-03-31 Thread David Turner
On Tue, Mar 31, 2009 at 5:38 PM, m5p3nc3r wrote: > > Any news on when we might be seeing a fix for this problem? > I have a pending patch, but only for the cupcake emulator (the 1.1 one is *way* older). I didn't find the time to test it properly, or more precisely, I searched a free or open-sou

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread Dianne Hackborn
On Tue, Mar 31, 2009 at 12:42 PM, Stoyan Damov wrote: > If the answer is yes, I then expect to hear what was that Google > couldn't agree on with Sun (although I don't expect to hear that from > Google Android engineers, but like I've said many times, Google is > f...@#ing DEAF, and you, Android e

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread Stoyan Damov
On Tue, Mar 31, 2009 at 11:36 PM, thesquib wrote: > > Stoyan - the optimisation from the Jazelle is apparently not that good > anyway, partially because a software JVM performs all sorts of > optimisations on the fly. > I wasn't comparing JVMs, I was comparing Dalvik's NON-optimizing VM to a har

[android-developers] How to change the canvas of a clickable view (LinearLayout) for few milliseconds when clicked?

2009-03-31 Thread 6real
Dear all, I have a custom view that draw a rounded rectangle. This view is clickable. I would like to change the color of the inner rectangle when the view is clicked (to act like a button) So I created a swapColor() method inside my custom view : public void swapColor() { innerPaint.setC

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread thesquib
Stoyan - the optimisation from the Jazelle is apparently not that good anyway, partially because a software JVM performs all sorts of optimisations on the fly. On Apr 1, 8:42 am, Stoyan Damov wrote: > Aha, maybe I wasn't clear enough. I very well understand that Android > runs Dalvik, and not Ja

[android-developers] Re: Photo Picker

2009-03-31 Thread Streets Of Boston
Do you have code in your 'onPause()' method of your activity. If so, it looks like this code is blocking (never returning). On Mar 31, 11:39 am, Bobbie wrote: > When I choose the image, this is what I get in the debug log: > > 03-31 11:34:36.055: INFO/ActivityManager(55): Displayed activity > co

[android-developers] Re: Getting Resources outside of an Activity

2009-03-31 Thread Kirk - Actual Metrics
Works like a charm. Now I just have to change all my static methods to accept a context object. Thanks! On Mar 31, 12:39 pm, Dianne Hackborn wrote: > You should pass the Resources object in.  Actually, you should generally > pass in Context so you get the theme and everything else as well. > >

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread Stoyan Damov
Aha, maybe I wasn't clear enough. I very well understand that Android runs Dalvik, and not Java bytecode, and from what I read on the net, this was done to avoid some licensing issues/arguments with Sun. Here I'll put my question as bluntly as possible: If Google were not forced by Sun because o

[android-developers] Re: Getting Resources outside of an Activity

2009-03-31 Thread Dianne Hackborn
You should pass the Resources object in. Actually, you should generally pass in Context so you get the theme and everything else as well. On Tue, Mar 31, 2009 at 12:28 PM, Kirk wrote: > > I currently have a few classes that are called by an activity (some > statically) in which I want to use a

[android-developers] Re: Crashed service restarted by system doesn't call onStart

2009-03-31 Thread Dianne Hackborn
That is working as intended. onStart() is called each time someone calls startService(); if nobody has called startService() since your last onStart(), then onStart() will not be called again. The Service class does not have the same lifecycle as Activity; it is unfortunate we used "start" for th

[android-developers] Re: How to disable 'Sorry! Activity YYY (in application XXXX) is not responding.

2009-03-31 Thread ying lcs
Thanks. I am trying to disable it so that it won't pop up while I am debugging via eclipse. Thank you for any tip. On Tue, Mar 31, 2009 at 12:13 PM, Tseng wrote: > > Don't do heavy work in the main thread and put tasks which require > much processing (or long loops) into a seperate backgroudn t

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread Romain Guy
It doesn't matter whether there's a chip with Java hardware acceleration in the G1 because Android does not use Java bytecode, but Dalvik bytecode. -- 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 pri

[android-developers] Crashed service restarted by system doesn't call onStart

2009-03-31 Thread Charles Harley
I have noticed that if my background service crashes the system will automatically restart the service after 5 seconds. This is great, but I have noticed that only the onCreate method gets called and not the onStart method. Does this mean the service is properly restarted or do I need to do someth

[android-developers] [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-03-31 Thread Stoyan Damov
(moving out of android-developers, but posted for the last time so those who are interested can join the conversation on android-discuss) Romain, can you confirm that the G1's Qualcomm MSM7201 CPU does not support java hardware acceleration? I'm reading here[1]: "528 MHz ARM11 Jazelle™[2] Java®

[android-developers] Getting Resources outside of an Activity

2009-03-31 Thread Kirk
I currently have a few classes that are called by an activity (some statically) in which I want to use a string resource. I tried: Resources.getSystem().getString(R.string.mystring), but am getting an error. It seems as though you can only use this within an activity. Is there anyway to use a pr

[android-developers] Re: Save an mp3 from a remote site

2009-03-31 Thread MrChaz
Good point, I forgot about the MediaScanner. One thing to note about using ACTION_VIEW is although you get the nice mediaplayer UI it doesn't keep playing when you change Activities e.g. go back to the home screen. On Mar 31, 3:57 pm, Jean-Baptiste Queru wrote: > No problem playing an MP3 from t

[android-developers] Re: resource into a string array

2009-03-31 Thread Brad Fuller
ah thanks for the class! On Tue, Mar 31, 2009 at 11:42 AM, deepdr...@googlemail.com wrote: > > private CharSequence[] strings; > > Resources res = getResources(); > strings = res.getTextArray(R.array.secondlines); > > res/values/array.xml : > > > >     >                ... >                ...

[android-developers] Re: New app update force closes immediately on startup!

2009-03-31 Thread MrChaz
I was under the impression that if you have an app installed without protection and then update to a version with protection you get force- closes. I have no idea if it's been confirmed though, sorry. On Mar 31, 7:43 pm, rcs wrote: > Hello all... > > This morning, we updated our app on AM; this

[android-developers] Re: How to disable 'Sorry! Activity YYY (in application XXXX) is not responding.

2009-03-31 Thread Tseng
Don't do heavy work in the main thread and put tasks which require much processing (or long loops) into a seperate backgroudn thread. http://developer.android.com/guide/practices/design/responsiveness.html#avoiding On Mar 30, 10:26 pm, ying lcs wrote: > Hi, > > Can you please tell me how can I

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-31 Thread Tseng
>From what i know, most of the Java/J2ME phones use the chipsets acceleration functions (some mobilephone CPUs are optimized for java accerlration in 2d/3d games). But since Android is not based on Java/ J2ME, it doesn't support this acceleration (even though the CPU used in the G1 supports Java O

[android-developers] Re: Android Physics Engine

2009-03-31 Thread Avraham Serour
seems that gc is a problem, just one of them at least, so can we please have a c++ sdk? On Tue, Mar 31, 2009 at 9:26 PM, shaun wrote: > > I started going down the path of Object pooling. It seemed the only > solution when taking an existing engine and making work on a resource > constrained sys

[android-developers] Re: Multiple alarms not being recognized

2009-03-31 Thread Rob Franz
Holy crap, thanks for posting this - was going out of my mind trying to figure out why I couldn't get two pending intents to fire off. Thanks Rob On Sat, Feb 21, 2009 at 4:10 AM, Juan David Trujillo C. < jdavidandr...@gmail.com> wrote: > > In case this is useful for someone: > When you are progra

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread Romain Guy
Unfortunately I don't see any possible workaround :( On Tue, Mar 31, 2009 at 11:40 AM, focuser wrote: > > Thanks Romain, > > I have just filed it http://code.google.com/p/android/issues/detail?id=2337. > > But before it's fixed in a new release, is there any workaround or I > will have to play w

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-31 Thread Romain Guy
Hi, You are mistaking two different things. Some Java ME phones have a dedicated chip used to interpret the Java bytecode. OpenGL acceleration is another thing entirely. The G1 has a dedicated GPU that can be used to accelerate OpenGL. Any Android OpenGL application benefits from that hardware ac

[android-developers] Re: Net monitor

2009-03-31 Thread strazzere
I think this code will answer your questions :) http://code.google.com/p/netsentry/ On Mar 31, 4:34 am, Skouti wrote: > Dears > Is there any Library and classes that enables writing a NetMonitor > application for 3G & Wifi like in Symbian phones ..? > > Android.net.wifi and android.net seems ha

[android-developers] Re: resource into a string array

2009-03-31 Thread deepdr...@googlemail.com
private CharSequence[] strings; Resources res = getResources(); strings = res.getTextArray(R.array.secondlines); res/values/array.xml : ... ... ... -- http://www.deepdroid.com On Mar 31, 4:40 pm, Brad wrote: > I've searched high and lo for this

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread focuser
Thanks Romain, I have just filed it http://code.google.com/p/android/issues/detail?id=2337. But before it's fixed in a new release, is there any workaround or I will have to play with the VelocityTracker myself? On Mar 31, 10:39 am, Romain Guy wrote: > Hi, > > It looks like a bug in the Veloci

[android-developers] New app update force closes immediately on startup!

2009-03-31 Thread rcs
Hello all... This morning, we updated our app on AM; this was our first update since release of Android 1.1. In testing, on the emulator and with the signed .apk installed on our handsets, everything appeared to be working fine; however, we uploaded to AM, selected the new CopyProtection option,

[android-developers] Re: dex failure

2009-03-31 Thread Bill Michaelson
OK, Dan, here are fragments of the output resulting from 'dx --dump bin/classes/net/from/apprise/Apprise.class' when gij is used. Results are similar for any class file. Unfortunately, it's not an outright crash with a stack dump and I suppose this only gives you an approximate idea of where it

[android-developers] Re: Android Physics Engine

2009-03-31 Thread shaun
I started going down the path of Object pooling. It seemed the only solution when taking an existing engine and making work on a resource constrained system like Android on a phone. Determining the strategy for returning objects to the pool proved quite tough for me. I have no doubt there are s

[android-developers] Re: dex failure

2009-03-31 Thread Bill Michaelson
Oh, and here is the result with the Sun JRE for comparison... b...@gizmo:~/android/Apprise$ dx --dump bin/classes/net/from/apprise/ Apprise.class reading bin/classes/net/from/apprise/Apprise.class... begin classfile magic: cafebabe minor_version: major_version: 0031 constant_pool_count: 007b

[android-developers] Re: dex failure

2009-03-31 Thread Bill Michaelson
Cartouche - for my system, it was simply a matter of changing a symbolic link so that the Sun runtime environment is use when the java command is invoked from a shell. On the Debian system I'm using, that link is in /etc/alternatives. And in my case I did this: cd /etc/alternatives ln -s -f /us

[android-developers] Re: dex failure

2009-03-31 Thread Bill Michaelson
Oh, hey, no problem. Sometimes it's not a matter of getting the right fix from someone, but rather, a sympathetic and intelligent correspondent. I work alone and that's, uh, lonely. And I can't blame you for wanting to double-check my assumptions. I would do the same. I'll try to get you more

[android-developers] Re: how to add "--core-library" to Eclipse ?

2009-03-31 Thread Dan Bornstein
On Mon, Mar 30, 2009 at 11:09 AM, Mark Murphy wrote: > When I tried putting src/java/beans/PropertyChangeEvent.java and > src/java/beans/PropertyChangeListener.java in my source tree, though, I > triggered the --core-library error message from dx. It seems like there's a lot of legacy code that

[android-developers] Re: setRequestedOrientation call flow

2009-03-31 Thread Max R.
Thanks! Got it now! On Mar 31, 10:32 am, Dianne Hackborn wrote: > This is ActivityManagerService, WindowManagerService, PhoneWindowManager. > > > > On Tue, Mar 31, 2009 at 9:10 AM, Max R. wrote: > > > I meant  SCREEN_ORIENTATION_LANDSCAPE for the parameter for > > setRequestedOrientation(). >

[android-developers] Re: Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread Romain Guy
Hi, It looks like a bug in the VelocityTracker. Can you please file it at b.android.com? Thanks On Tue, Mar 31, 2009 at 10:28 AM, focuser wrote: > > Hi, > > I'm trying to use a GestureDetector in a subclass of FrameLayout, > which has a child ListView. > But it seems the GestureDetector has som

[android-developers] Re: setRequestedOrientation call flow

2009-03-31 Thread Dianne Hackborn
This is ActivityManagerService, WindowManagerService, PhoneWindowManager. On Tue, Mar 31, 2009 at 9:10 AM, Max R. wrote: > > I meant SCREEN_ORIENTATION_LANDSCAPE for the parameter for > setRequestedOrientation(). > SCREEN_ORIENTATION_LANDSCAPE = Constant Value: 0 > > This request ends u

[android-developers] Re: Portrait/Landscape mode supporting

2009-03-31 Thread Dianne Hackborn
Sorry you are in the wrong group. You might want to look in android-framework, where there is already someone asking about this stuff. On Tue, Mar 31, 2009 at 3:17 AM, UJ wrote: > > Hello folks, > > When we try to implement orientation in AP layer, > we can set "android:screenOrientation" param

[android-developers] Re: GL View layered on top of a SurfaceView?

2009-03-31 Thread Dianne Hackborn
GLView is I believe also a SurfaceView, and SurfaceViews just can't be layered (actually I wouldn't recommend using more than one in a window, period). On Tue, Mar 31, 2009 at 9:46 AM, Taylor wrote: > > I have a SurfaceView upon which I'm making various ongoing Canvas draw > calls. I would like

[android-developers] Strange GestureDetector side effect when used in a subclass of FrameLayout?

2009-03-31 Thread focuser
Hi, I'm trying to use a GestureDetector in a subclass of FrameLayout, which has a child ListView. But it seems the GestureDetector has some side effect which causes abnormal scrolling behaviors for the child ListView, e.g. sometime when flinging down, the list actually scrolls upwards; when the l

[android-developers] Re: ProgressDialog and sub activities

2009-03-31 Thread Dianne Hackborn
You just fundamentally shouldn't be taking a long time in onCreate() etc. If you are taking long enough in there to desire a progress dialog, you are taking too long. On Sun, Mar 29, 2009 at 8:40 AM, vincent.gann...@gmail.com < vincent.gann...@gmail.com> wrote: > > Hi all, > > I have a main activ

[android-developers] Re: input method app

2009-03-31 Thread Dianne Hackborn
The platform currently only supports HVGA screens, and input methods are not available until cupcake. On Tue, Mar 31, 2009 at 7:59 AM, bin wrote: > > Hi, everyone, > > Who can give me a input method application which can replace QWERTY > keypad and do not need a HVGA screen (that can also fit VG

[android-developers] Re: Improve scrolling speed

2009-03-31 Thread Dianne Hackborn
Surely it is not spending 91% of its time just in that function. Have you dug down into the functions it calls from within itself? On Tue, Mar 31, 2009 at 10:16 AM, AlCapwn wrote: > > On Mar 30, 11:13 pm, Romain Guy wrote: > > Well if your profiling shows 91% of the time spent in the > > Gestu

[android-developers] Re: Sound interfering with Accelerometer and Orientation sensors?

2009-03-31 Thread iconnary
Disregard this, it is a duplicate of an earlier post -- http://groups.google.com/group/android-developers/browse_thread/thread/e1a67f197173abb5# On Mar 30, 3:50 pm, iconnary wrote: > On my T-Mobile G1 (firmware 1.1, build PLAT-RC33), developing in > SDK1.1r1,  I am experiencing a problem where

[android-developers] Re: Improve scrolling speed

2009-03-31 Thread AlCapwn
On Mar 30, 11:13 pm, Romain Guy wrote: > Well if your profiling shows 91% of the time spent in the > GestureDectory, then you are probably doing something wrong. As far as I know, GestureDetector#onTouchEvent is something that should be called from the touch listener to make it check the motione

[android-developers] Re: ProgressDialog and sub activities

2009-03-31 Thread vincent.gann...@gmail.com
Any idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-devel

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-03-31 Thread Eric Schott
I have a developers phone running: 1.1 specifically holiday_devphone_userdebug 1.1 Kernel version is: 2.6.25-01845- g85d4f0d android-bu...@apa27 #27 and I can not see any paid apps. I still see lots of chatter about some who can see paid apps and some who can not. What the magic button to make

[android-developers] Net monitor

2009-03-31 Thread Skouti
Dears Is there any Library and classes that enables writing a NetMonitor application for 3G & Wifi like in Symbian phones ..? Android.net.wifi and android.net seems haven't enogh functions to do that Are Android Kernal developers willing to set such Network functionalities as Symbian & Windows M

[android-developers] Re: Failed to reopen debug port for Selected Client to:

2009-03-31 Thread suvasish
If you are being denied to change hosts file, one probable reason is the Security settings of the hosts file properties. To check or change permissions, go to C:\Windows\System32\drivers \etcopen Properties for 'hosts' file, click on 'Security' tab. Now select the 'Group or user names' you bel

[android-developers] input method app

2009-03-31 Thread bin
Hi, everyone, Who can give me a input method application which can replace QWERTY keypad and do not need a HVGA screen (that can also fit VGA / WQVGA / QVGA)? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] how to show yuv picture in android?

2009-03-31 Thread jiangchd
In cameraservice.cpp, it uses the following code to show picture in format yuv420. mSurface->registerBuffers(w,h,w,h, PIXEL_FORMAT_YCbCr_420_SP, mHardware->getPreviewHeap()); But there's no color shown on the screen. It seems as that

[android-developers] Re: content://sms/sent Read SMS

2009-03-31 Thread binklee
same interest for this part of the code. On Mar 19, 9:36 am, Martin wrote: > Hi, I'm having a problem reading theSMSmessages from the device. > When acquiring a content provider for the URI content://sms/inbox - > everything is fine, I read the "person" column to find the foreign key > into the

  1   2   >