[android-developers] Best way to drawing custom Bitmaps?

2009-10-05 Thread Moto
I'm very new to the concept of creating custom drawings. I'm trying to figure out how to draw somethings from scratch. Like patters shapes and at the end have a bitmap... As of now I use: Bitmap.createBitmap(int[] colors, int width, int height, Bitmap.Config config) Using some random numbers

[android-developers] Re: Update to 1.6 stops some ADC2 apps from working

2009-10-05 Thread Maps.Huge.Info (Maps API Guru)
To me, the right thing to do would be to stop the first phase of this contest now, select the to 200 apps, figure out which ones bomb from 1.6 and give the developer a change to only change the bits that are causing the problems. There would have to be some controls to prevent upgrades and

[android-developers] Re: relocating webview cache using softlinks

2009-10-05 Thread Jayesh Salvi
Why aren't you caching the data yourself, so you can control the location, size, and retention policies of the cache? Conversely, why are you electing to have those functions -- which are essential to the operation of your product -- be delegated to a component (WebView's cache) over which

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Tom Gibara
I just read your post. Looks like I hit the same problem about 6 months ago. I even managed to create a mostly-reproducible test case so that I could file an issue: http://code.google.com/p/android/issues/detail?id=1956 (I can only think that it's some sort of fairness issue with monitors)

[android-developers] Make different instances of a widget behave different based on their appWidgetId

2009-10-05 Thread Pablo
I am developing a simple widget which has a couple of buttons in its layout. Before the widget gets added, the configuration activity is displayed, where the user can choose if the widget makes any sounds when the buttons get pressed or not. Thus, a user can put two instances of the widget, one

[android-developers] Audio Routing in 1.6

2009-10-05 Thread Doug
My application uses a MediaPlayer object to play MP3 files. Up until v1.6 came out I was doing the following: 1. Create the player 2. Get (and save) the current Audio Routing for AudioManager.MODE_NORMAL (i.e. Media playback) -- so I can restore it later when I'm done 3. Prepare Stream 4. Set

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Jeremy Slade
I'm trying to convert from using RENDERMODE_CONTINUOUSLY to RENDERMODE_WHEN_DIRTY, to reduce overall system load -- the game view is static a fair % of the time. It hasn't been working reliably, probably for the reasons you describe in that post. My input handling is essentially the same as

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Jeremy Slade
The issue you filed focuses on touch event handling, but I see flickering just as much with trackball events. If it is a fundamental thread scheduling issue, I guess it wouldn't matter the type or even frequency of events being generated. On Oct 5, 2:01 pm, Tom Gibara m...@tomgibara.com wrote:

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Robert Green
Jeremy, I just gotta ask. Is there any possibility that through an optimization or any other way, there is a case where you're not clearing and not drawing sometimes when a frame is drawn? I'm just imagining a piece of code that says, Did anything change? No? Then just return. That would

[android-developers] Re: relocating webview cache using softlinks

2009-10-05 Thread Mark Murphy
Now that I have implemented a new caching mechanism for ReaderScope that is independent of WebView, the added control looks like a big advantage. Thanks for the advice. You're very welcome. Best of luck, um, scoping your readers, or whatever. ;-) -- Mark Murphy (a Commons Guy)

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Tom Gibara
Warning, pure speculation follows: Touching the screen generates events very rapidly, and using the trackball probably does too. Anecdotally, I encountered the bug with increasing frequency as the work done within the synchronized block lengthened (I think - it was a while ago and I can't recall

[android-developers] Re: Integrating G729 codec in mjsip

2009-10-05 Thread Roman ( T-Mobile USA)
SipDroid has right now implemented the G711 on Java level. You can use the current implementation as a guideline for your G729 codec implementation (how to pass the raw audio to the convert API). First you should answer the question whether you want to implement your codec on Java or on native

[android-developers] Re: VOIP Media Stack

2009-10-05 Thread Roman ( T-Mobile USA)
If you cannot wait doing Voip on Android, play around with SipDroid. The application does some basic support Voip support (SIP, RTP and G711 codec). Most of the functionality is right now implemented on Java level. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The

[android-developers] Emulator is extremely slow after upgrade to SDK 1.6

2009-10-05 Thread Paul Drummond
Hi all, Has anyone else had problems upgrading to SDK 1.6? When I did it, I ran my app just as normal but all of a sudden everything takes forever to load! When the emulator eventually boots (after over 5 minutes - no exaggeration!), all the standard apps display ANR messages and everything runs

[android-developers] Deployment best practice for trial / full version of an app

2009-10-05 Thread onoelle
Given the following scenario a) I want to deploy two versions of an app: a free trial version with somehow limited functionality and a full version b) during trial period, users may enter data into my app (stored into a database, but also some preferences) that should be available when upgrading

[android-developers] Re: Wake Locks and the Cellular antenna...

2009-10-05 Thread Richard Schilling
I believe the antenna does in fact stay on. I fully expect, too that the phone state listener won't get notified of changes if the CPU is asleep. It just appears that the telephony listener is not informed of telephony changes unless there is at least a dim wake lock. Partial wake lock isn't

[android-developers] access to data from the rtsp stream

2009-10-05 Thread Swisti
Hi, The android.hardware package contains two methods: onPictureTaken http://developer.android.com/reference/android/hardware/Camera.PictureCallback.html and onPreviewFrame http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html Is it possible similar access to data

[android-developers] Android Game Framework ?

2009-10-05 Thread vetch
Me, and I think, many other developers, always tried to write some game. Problem with a game, is a complexity of technic stuff. Complexity, means learning. Learning is great, but takes time. I think, Android needs a game framework. Something like SDL or more, XNA from Microsoft. Of course, we

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-05 Thread Richard Schilling
Thanks Yusuf. That's helpful - I am very familiar with that documentation. I was looking for something more though. I'm hoping to see a more comprehensive discussion about this behavior. I need to put together something for QA testers. No state can be left un- described for what I need. And

[android-developers] Re: Android Game Framework ?

2009-10-05 Thread Dan Sherman
http://lmgtfy.com/?q=android+game+framework On Mon, Oct 5, 2009 at 5:17 PM, vetch oldpete...@gmail.com wrote: Me, and I think, many other developers, always tried to write some game. Problem with a game, is a complexity of technic stuff. Complexity, means learning. Learning is great, but

[android-developers] Re: Android Game Framework ?

2009-10-05 Thread vetch
very funny :) but I think, you did not understand my point. I think about game engine framework embedded in SDK. Google done great job with UI framework, hardware interfaces and others, so I think, creating another high level framework for games, should not be a problem for them. On 5 Paź,

[android-developers] Re: why is my app asking to access phone calls and storage?

2009-10-05 Thread Jarcikon
Chris, I am having this same problem. I am assuming you are compiling on Android 1.6 SDK? These permissions are granted by default for older apps, but need to be specifically requested for apps targeting 1.6. If you change android:targetSdkVersion to 4 then you shouldn't see these permissions

[android-developers] set default APN programmatically

2009-10-05 Thread Fernando
Is there a way to set the default APN through code? I'm trying with this snippet: String id = null; Uri contentUri = Uri.parse(content://telephony/carriers/ preferapn); Cursor cursor = null;

[android-developers] Re: why is my app asking to access phone calls and storage?

2009-10-05 Thread Jarcikon
Chris, I am having the same problem. This is due to the update to Donut (1.6 SDK). According to the docs, if you set targetSdkVersion in your manifest file to 4 these permissions should not appear unless specifically requested. However, I have tried this and it is not working for me. Does

[android-developers] Re: Android Game Framework ?

2009-10-05 Thread Dan Sherman
But its a community effort... The guy from Rokon was on here looking for help on his (very well designed) game engine, could be very neat if it got some power behind it. Look at the iphone (as hopefully a decent example), theres not much there in terms of game frameworks. Someone ported cocos2d

[android-developers] Hello

2009-10-05 Thread purvi
I am an android developer and want to join this group to learn as well as contribute. Thanks. Regards, Purvi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] When Softkeyboard in emulator appears, EditText view donot scroll up

2009-10-05 Thread purvi
Hi, I have a query. With SDK 1.5, I have a editText box at the very end of the screen in potrait mode. So when I click on this edittext box, the soft keyboard appears and the view should scroll up so that the user can see the cursor in editbox to type in. But with me as the view donot scroll up.

[android-developers] Re: How to set button background color?

2009-10-05 Thread Nicholas Key
I'd give it a try :) Thanks! On Oct 5, 6:20 am, Mark Murphy mmur...@commonsware.com wrote: On Oct 4, 8:40 pm, Mark Murphy mmur...@commonsware.com wrote: I have a question about setting thebackgroundcolorfor buttons. When I am using btn.setBackgroundColor(Color.RED), the entire button

[android-developers] Re: Android Game Framework ?

2009-10-05 Thread vetch
I do not know if Rokon is good or great. I looked through his code - for me it looks like early alpha stage. Besides, it has licensing issues, so I prefer to writing my own, that I really understand. I hope Google knows how badly Android needs embedded game framework. On 5 Paź, 23:43, Dan

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Jeremy Slade
I do the if anything updated check in the game logic thread. If something is changed, I post the requestRender() to the renderer. For continuous-mode rendering, that shouldn't have any effect, as the renderer will update regardless. And as I explained in the original post, it is not the full

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Jeremy Slade
I do sleep between touch events in the UI thread, after posting the event to the logic thread. On Oct 5, 10:19 am, RichardC richard.crit...@googlemail.com wrote: Have you tried adding sleep(32) (or sleep(16), you need to experiment with the values) to your on onTouchEvent handler?  There is a

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread David Minor
I notice in your article the issue you describe seems to be synchronization fairness, i.e. Java doesn't make any fairness guarantees about serving threads in the order they are waiting (though I believe many Java implementations do). Have you tried the Semaphore class? It allows you to specify

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread David Minor
Is there any synchronization between the rendering thread and the game logic thread? On Oct 5, 7:27 am, Jeremy Slade jeremy.g.sl...@gmail.com wrote: I'm definitely not getting anywhere close to that limit (GL_MAX_ELEMENTS_VERTICES). I'm pretty close to a root cause for at least a large

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-05 Thread Dianne Hackborn
Hi Richard, sorry I really don't have time to go into detail on this stuff at this point (and don't personally know enough to cover everything anyway). Ultimately the source code -- in particular PowerManagerService and the keyguard interactions as start in PhoneWindowManager -- is the ultimate

[android-developers] Re: Update to 1.6 stops some ADC2 apps from working

2009-10-05 Thread bellapariah
Hi John, Our app is using a documented API (coded as specified in documentation) and it is still not working correctly. Even if the former wasn't the case, I disagree with your assertion that if your apps are failing because you used undocumented options in the SDK, then you only have yourself

[android-developers] Editing Strings.xml from inside .java

2009-10-05 Thread JasonMP
Is it possible to edit a string in my strings.xml from within my java code? I'd like my app_name to be changed dynamically based off of user input. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Editing Strings.xml from inside .java

2009-10-05 Thread Dianne Hackborn
Not at all, sorry. On Mon, Oct 5, 2009 at 4:11 PM, JasonMP hyperje...@gmail.com wrote: Is it possible to edit a string in my strings.xml from within my java code? I'd like my app_name to be changed dynamically based off of user input. -- Dianne Hackborn Android framework engineer

[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-10-05 Thread jotobjects
Thanks for those clarifications - this is very helpful. Two more questions: I created a jar file in my project lib directory and used some classes in the jar file. It works when I install it, but when I look at the apk file (with jar -t) I don't see the lib directory. When I look on the

[android-developers] Few random question about the android mechanics.

2009-10-05 Thread pro
Hi All, I'm trying to figure out few, perhaps easy!, things - 1) How do I figure out what event(s) triggered invocation of onDraw() method of a view?. I've a canvas with a button, std. app menu, and I seem to get 3 calls to onDraw() without even touching ( meaning clicking the mouse) on

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-05 Thread Richard Schilling
O.K. I'll dive into PowerManagerService then - that's a good place to look more into. I agree this should be discussed on Android Porting as well. I'm just more worried about how applications are affected for the moment. But, I'll keep an eye on porting in the meantime. I imagine someone

[android-developers] mount other usb devices to android gphone

2009-10-05 Thread jonathan
is it possible to mount another usb device x to gphone and then create a program that communites to x on the usb port? X is used for capturing data and gphone will be used for analysis/display. thanks --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] localization of settings application

2009-10-05 Thread Dan Raaka
The strings displayed under Settings - Locale text - Select locale - Locale list doesn't seem to display the in the locale selected, even after making sure that the all the strings under frameworks/base/core/res/res/ are properly translated. Any ideas what is going wrong here? or is this app

[android-developers] Re: [adb ddms] i can't see my samsung galaxy on windows seven 64 bits

2009-10-05 Thread dan raaka
Didn't the one in the CD work ? -Dan On Sun, Oct 4, 2009 at 9:57 PM, Raphael r...@android.com wrote: Is this for Windows? I believe you should ask Samsung for a driver. Si c'est pour Windows, je pense que tu devrais demander un pilote a Samsung. R/ On Sun, Oct 4, 2009 at 10:51 AM,

[android-developers] Re: Audio Routing in 1.6

2009-10-05 Thread Doug
Update... The android.jar (1.6) distributed as part of the Mac Eclipse bundle doesn't contain the WiredHeadset methods, but the source does seem to have it... is this just a distro issue? Doug On Oct 5, 1:20 pm, Doug dougforp...@gmail.com wrote: My application uses a MediaPlayer object to

[android-developers] Point Sprite support

2009-10-05 Thread Scott
Can someone confirm for me that point sprites are not currently supported in Android? Calling gl.glEnable(GL11.GL_POINT_SPRITE_OES) is triggering a GL_INVALID_ENUM error, so I assume this is the case, but I'd appreciate a confirmation before I proceed with an alternate design. Thank you, Scott

[android-developers] Create Bitmap from android.graphics.Path

2009-10-05 Thread Felix
Hi, I am banging my head against the wall trying to create a Bitmap from a Path object (android.graphics.Path). Is there any way to do this? I've browsed through most of the classes now but can't seem to find any way to do it. Actually, what I have is a Path that consists of many cubic Bezier

[android-developers] Switching Activity.

2009-10-05 Thread Chang
Hi group members. I have a question about activity switching. From menu, I launched a new application.(my test application). and first activity was shown. and I moved to second activity by clicking button in first activity. in second activity, I pressd back button. Normally, backed to first

[android-developers] Re: mapview key problems

2009-10-05 Thread ian
Now I had a trojan which I fixed with hijackthis, stinger and AVG, but even after a cleanup, my mapview problems continue. I was able to easily install and run hello MapView on another computer upstairs in 15 minutes. The two computers share the same internet line, I used my same Google login

[android-developers] Re: mapview key problems

2009-10-05 Thread Xavier Ducrohet
- You could do is copy the debug keystore (HOME/.android/debug.keystore) from the machine that works, and copy it in the machine that doesn't work, and then you can use the API keys associated with that working keystore. - How about your release certificate? does the app signed with it (and using

[android-developers] Re: How to take snapshots (Screen shots) of a web page

2009-10-05 Thread AJ
Cool :) On Oct 5, 10:02 pm, Umesh javaumesh-andr...@yahoo.co.in wrote: Hi Ajit, Thanks a lot, this proved to be really a worth while information. Umesh. From: AJ ajeet.invinci...@gmail.comTo: Android Developers android-developers@googlegroups.com Sent:

[android-developers] ScrollView child layout

2009-10-05 Thread aaron
I have several ListViews in a vertical LinearLayout. They extend beyond the screen so I wrapped the LinearLayout in a ScrollView. That works, but each of my ListViews in my LinearLayout shows with room for two entries, whether there are 0 or 3 entries in the list. Without the ScrollView, they

[android-developers] Re: is it possible to use JUnit4 for testing android apps ?

2009-10-05 Thread Brett Chabot
No, the Android 1.6 platform does not support JUnit4. 2009/10/3 Cyryl Płotnicki-Chudyk sharph...@gmail.com: I got 'no JUnit3 tests' info when trying to use JUnit4-only tests under android 1.6 --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: hangs on launching unit tests

2009-10-05 Thread Brett Chabot
Unfortunately, this sounds like a known problem that occurs intermittently. Does it work if you retry the 'run as android junit' step? Brett. 2009/10/3 Cyryl Płotnicki-Chudyk sharph...@gmail.com: Hi there ! I got a problem launching unit tests. I did: * new android project in eclipse, new

[android-developers] Re: mapview key problems

2009-10-05 Thread ian
I just retried it after deleting the old debug.keystore and running a couple of simple non-mapview apps until debug-keystore was regenerated. The new keytool result was different: Keystore type: JKS Keystore provider: SUN Your keystore contains 1 entry androiddebugkey, Oct 6, 2009,

[android-developers] Re: api key

2009-10-05 Thread ragavendran s
check whether u gave INTERNET permission or not.. On Mon, Oct 5, 2009 at 3:49 PM, android darioamor...@gmail.com wrote: I put the API key in the code and in XML but does not make me see the maps which could be the problem??? thanks

[android-developers] Re: mapview key problems

2009-10-05 Thread ian
That is a very good suggestion about copying the debug.keystore from the working machine and \i will try it in the morning when I have access to it again I didn't quite understand the second part; - How about your release certificate? does the app signed with it (and using the release api

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-05 Thread Robert Green
David, Thanks for the explanation. I think I just took fairness for granted and didn't realize that it was not guaranteed. I like the acquire()/ release() of semaphore. It's simple and sweet. I already do that with my world to synchronize the logic and renderer but stuck to a small

[android-developers] Re: Point Sprite support

2009-10-05 Thread Robert Green
Can I guess that you're trying that on the emulator? String extensions = gl.glGetString(GL10.GL_EXTENSIONS); Log.i(TAG, GL Extensions [ + extensions + ]); Add that into your Renderer.onSurfaceCreated() so that you can see what extensions are available on the platform you're developing for. I

[android-developers] Re: Switching Activity.

2009-10-05 Thread James Yum
Hi Chang, You can call finish() in the first activity after you've launched the second activity. Cheers, James On Mon, Oct 5, 2009 at 7:33 PM, Chang parkc...@gmail.com wrote: Hi group members. I have a question about activity switching. From menu, I launched a new application.(my test

[android-developers] ADC2 Submission List

2009-10-05 Thread Tom
Hello, Every since I submitted my app to the ADC I've been curious what other apps were submitted and what the competition looked like. Slogging through a bunch of apps through the judging application didn't seem like the most efficient way to do that. I've created a little app to add, view and

[android-developers] Re: Switching Activity.

2009-10-05 Thread Chang
Thank you! James!! By your help, I solved problem. BR Chang. On 10월6일, 오후1시09분, James Yum j...@google.com wrote: Hi Chang, You can call finish() in the first activity after you've launched the second activity. Cheers, James On Mon, Oct 5, 2009 at 7:33 PM, Chang parkc...@gmail.com

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-10-05 Thread Tom
Created a list we can all add to and comment on : http://www.cakeforcerberus.com On Sep 1, 10:41 am, Lout lout.r...@googlemail.com wrote: While you developers relax... would you mind sharing what apps to expect through this challenge.. and anything else you wish to share about ADC2

[android-developers] Re: Is it possible for me to create a custom window like android:windowNoTitle

2009-10-05 Thread Karthik P
Any idea on this? On Mon, Oct 5, 2009 at 7:05 PM, Karthik P karthi...@gmail.com wrote: Any idea how do I create a custom window like android:windowNoTitle or android:Dialog? Karthik --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Does anyone has the documentation of window manager?

2009-10-05 Thread Karthik P
Can someone point me where the documentation of window manager is present? Karthik --~--~-~--~~~---~--~~ 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: Status bar notifications only for touch screens ?

2009-10-05 Thread Android Development
All right. Thanks for the replies. It would be nice if this is documented somewhere. Instead of navigating to Home --Menu and then notifications, is it not possible to click on the Menu button in the current activity and then navigate to Notifications directly from the currently displayed activity

[android-developers] Some few ques about android browser?

2009-10-05 Thread AJ
Hi all group members, I had few questions about the android browser. 1- What is maximum page size supported in browser? 2- What is maximum URL length (in char) of browser? I looked in the browser code but did not answers for that. Any help would be useful. Thanks, AJ

[android-developers] Re: IP camera

2009-10-05 Thread N4Spd
http://hit-mob.com/forums/viewtopic.php?f=7t=18 On Oct 4, 1:41 am, Rana masud.h...@gmail.com wrote: I want know about IP camera in Android. Please mention details if known to you.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Relationship between Activities Dialogs: Recommended usage suggestions.

2009-10-05 Thread Android Development
Hello, I have a requirement for showing dialogs in my application. Alert dialogs fulfill by needs for now. I wish to discuss..and conceptually understand in the process, the exact relationship between the Activity that is being displayed at a given point of time...and the Dialog that pops up on

<    1   2