[android-developers] Has anyone written a 2D scene graph yet?

2010-01-01 Thread scastria
I am struggling with drawing on my custom View. I can make it all work but just not very efficiently. I am using invalidate causing the entire screen to be redrawn. I only need to redraw a small portion of the screen. I tried calling invalidate with a rectangle but that left everything else black.

[android-developers] Android and VOIP

2010-01-01 Thread soft buzz
Hi, do u have idea on Android/VOIP working? share here thanks buzz -- 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

Re: [android-developers] Android and VOIP

2010-01-01 Thread datoudatou
hi, guys: i have done some test. it really worked in a very first step... android can support playing and recording the speach at the same time (the attachment is my test code, head phone is necessary or it will become noisy soon). i believe the next step is to use amr_nb/gsm/g.729 (jni modules

Re: [android-developers] Android and VOIP

2010-01-01 Thread soft buzz
Hi datoudatou, Thanks for your response...i have very less information on VOIP and dats why i am trying to get some good notes from our experts here. Guys please give your inputsafter getting appropriate information i want to provide a one stop information and solution to those who are

Re: [android-developers] Re: When the new activity starts, the data of previous activity is gone.

2010-01-01 Thread Rui Wu
Hi Pranav, I didn't catch the point for your second problem. Do you want to pass the value of edittext in first activity to second activity, then show the strings in the edittext of second activiy. If so, you can try in the similar way as the first problem. BRs, Rui 2010/1/1 android09

[android-developers] Re: AppWidget changes id after reboot

2010-01-01 Thread Kaj Bjurman
I just found this thread that also confirms that it's a Sprint Hero bug: http://groups.google.com/group/android-developers/browse_thread/thread/554f72f397a8539f/722034a5aca418c6?lnk=gstq=AppWidget#722034a5aca418c6 On 31 Dec 2009, 23:37, Kaj Bjurman kaj.bjur...@gmail.com wrote: Hi, I have a

[android-developers] Re: What is the Sprint Hero AppWidget problem?

2010-01-01 Thread Kaj Bjurman
Did you find a workaround? On 4 Nov 2009, 06:20, btm...@gmail.com btm...@gmail.com wrote: Hello all, I wrote a widget that has been working fine for most folks. However, I started getting bug reports about how the widget would be blank on reboot (not receive an update?), and it seemed that

[android-developers] Custom Layout

2010-01-01 Thread Business Talk
What's the deal with the custom layouts? I implemented a custom layout class and began defining xml layout using my new class. Than I realized that I can't just add the child views that way one can add views to the predefined layouts. I had to do it manually modifing the xml. Than I found out

[android-developers] Re: Android and VOIP

2010-01-01 Thread JP
SIP is commonly used to control a call. Keep in mind that Google's supposed to come out with VoIP for Google Voice on Android. Then everybody will want Google Voice, noone will want your solution, no matter how well implemented, and that was that then. JP On Jan 1, 1:52 am, datoudatou

[android-developers] Lat Long Problem in Broadcast Receiver

2010-01-01 Thread Nishant
Hello All, I have developed application which runs when SMS is received. At that time I have started thread and passed the object of the Context in thread. In thread, I am accessing Lat-long by implementing LocationListner and also set : LocationManager locationManager = (LocationManager)

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2010-01-01 Thread Alok Kulkarni
@Swapnil, when you say that you cant call Alert Dialog from non ui thread , you can do that using a Handler as i said.Did u try that out ? It works in my case where i do an an AsyncTask (seperate thread)in which i communicate with the server and based on response i decide which screen to show. For

[android-developers] Query on releasing to sony app store

2010-01-01 Thread karthikr
Hi Guys, I am planning to submit my application in sony app market. Is there anything that I can do to make sure that my application is not backed up and pirated from the phone? Or is there an alternate way to make sure that my app runs only on sony devices? Regaards, R.Karthik -- You

[android-developers] How can I rotate an Image in different angles?

2010-01-01 Thread Martin
HI! I have a png-picture in ImageView rotatedimage = new ImageView () Is there a better way to rotate it in changing directions than the following way? There I have to create a new picture for every new rotating angle and add it to the layout: Bitmap bitmap =

[android-developers] Re: How can I minimize the stuttering of the graphics?

2010-01-01 Thread Martin
Thank you, I will try it :-) Martin On 31 Dez. 2009, 16:16, skink psk...@gmail.com wrote: On Dec 31, 3:13 pm, Martin google-gro...@digle.de wrote: Hi! How can I minimize the stuttering of my graphics? I am using MANY ImageView's in my program (and JUST ImageView's). I change their

[android-developers] Package of R.java

2010-01-01 Thread Marek Urbaniak
Is it possible to instruct Eclipse and Ant to have a R.java file generated in the package com.example whilst the package declared in an AndroidManifest.xml file is com.example.d? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Downloader activity

2010-01-01 Thread Steve
Hi there, I have integrated the downloader activity (Google provided) into my application.. On the whole a very straight forward process. A problem I have though, is, after the downloader has completed the window disappears and nothing happens. If I hold down the HOME key I see my app and if I

[android-developers] Re: com.android.camera replaced by com.motorola.camera

2010-01-01 Thread jotobjects
Thanks very much. This best practice outline is worthy of an official Android blog. Otherwise developers are going to come up with their own misunderstandings (like assuming the com.android.camera component will always be there - not a terribly unreasonable assumption although it violated the

[android-developers] Re: Package of R.java

2010-01-01 Thread jotobjects
I don't know (probably not?) but what is your objective for wanting that capability? On Jan 1, 11:01 am, Marek Urbaniak marek.urban...@gmail.com wrote: Is it possible to instruct Eclipse and Ant to have a R.java file generated in the package com.example whilst the package declared in an

[android-developers] Re: aapt and using shared images

2010-01-01 Thread Walt Armour
I hadn't thought too much about that but had briefly considered it. I'm trying to use these images directly as resources so putting them in assets would require a fair bit more code to get everything loaded up into drawables for use as icons as such (at least, best I can tell it would take more

[android-developers] Re: Android and VOIP

2010-01-01 Thread jotobjects
Where was the announcement or rumor on VOIP for google voice on android? Also, there are VOIP products using sipdroid that supposedly do this now. -- 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: Google Analytics

2010-01-01 Thread MarcoAndroid
Hi, My guess is that you have to call tracker.start() for each Activity, as it says this in the example: Then call its start() method, passing the web property ID *and activity being tracked*. But that's just a guess... So I've posted those questions in the maybe more appropriate discussiongroup

[android-developers] Re: aapt and using shared images

2010-01-01 Thread jotobjects
On Dec 30 2009, 11:32 pm, Walt Armour waltarm...@gmail.com wrote: may be some hiccup in the identifier numbering but hopefully that can be handled. The resource ID's (R.*) potentially change on every build and are inlined because the Java compiler is not expecting static finals to change.

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2010-01-01 Thread Dianne Hackborn
On Thu, Dec 31, 2009 at 2:39 AM, swapnil kamble swap.kam...@gmail.comwrote: Have you used MessageBox.show() API in Windows ? If yes then you can understand it easily what I am saying. This is API is not really blocking the thread -- it is running a nested event loop, until the user responds

[android-developers] Re: Package of R.java

2010-01-01 Thread Marek Urbaniak
To share code for a normal and a demo version of an application. On Jan 1, 8:27 pm, jotobjects jotobje...@gmail.com wrote: I don't know (probably not?)  but what is your objective for wanting that capability? On Jan 1, 11:01 am, Marek Urbaniak marek.urban...@gmail.com wrote: Is it possible

[android-developers] Re: Best HTTP Request Method

2010-01-01 Thread SizzlingSkizzorsProgrammer
Yes, I've tried logging and the HTTP execute definitely takes the largest chunk of time, but how can I speed it up? Is there another protocol/method? On Dec 31 2009, 6:07 pm, jotobjects jotobje...@gmail.com wrote: On Dec 31, 12:52 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com wrote: It

Re: [android-developers] Re: Best HTTP Request Method

2010-01-01 Thread Frank Weiss
Considering that the execute method's latency includes network and server times, on what basis do you think it's taking too long? What latency are you observing, less than one second, more than one minute? On Fri, Jan 1, 2010 at 1:19 PM, SizzlingSkizzorsProgrammer cbo...@gmail.com wrote: Yes,

Re: [android-developers] Re: Package of R.java

2010-01-01 Thread Frank Weiss
You've posed an important software engineering question. I think you might find some answers by googling for: android project dependency Here's another thread that goes into it: http://groups.google.com/group/android-developers/browse_thread/thread/5a3570fe3b87b62e On Fri, Jan 1, 2010 at 1:14

[android-developers] Re: Lat Long Problem in Broadcast Receiver

2010-01-01 Thread Kumar Bibek
Do you have the correct permissions ?? I little bit og Logcat output will help us a lot... :) Thanks and Regards, Kumar Bibek On Jan 1, 9:13 pm, Nishant nish...@saltriver.com wrote: Hello All, I have developed application which runs when SMS is received. At that time I have started thread

[android-developers] Re: Best HTTP Request Method

2010-01-01 Thread Kumar Bibek
I guess, the default Android's way is the best. Of course, you can add more libraries, but then that would be redundant. I hope Google has already taken care of the performance part. Thanks and Regards, Kumar Bibek On Jan 2, 3:15 am, Frank Weiss fewe...@gmail.com wrote: Considering that the

[android-developers] Posts to this Android Dev group hacked/intercepted/moved !?!

2010-01-01 Thread RoryD
I posted a message to this group several days ago - now when I check my Google Groups profile the message in question is appearing under a completely different Google Group (http://groups.google.com/group/ world_wide_with_god_minstry) - this group is filled with other apparently misdirected

[android-developers] Re: Best HTTP Request Method

2010-01-01 Thread SizzlingSkizzorsProgrammer
About 5 seconds, which isn't unbearable, but considering my app needs frequent requests some kind of optimization must be possible. Look at the android market...it seems to load everything pretty fast (much faster than my app at least!) On Jan 1, 3:15 pm, Frank Weiss fewe...@gmail.com wrote:

Re: [android-developers] Re: Best HTTP Request Method

2010-01-01 Thread Frank Weiss
I've seen 5 sec occasionally getting an rss feed of about 28 KB using java.net.URL.openConnection().getInputStream() and then parsing it with SAXParser. It looks like you're doing a POST to send form data(?) so you may have to stick with HTTPClient. If you're doing frequent requests, you can

[android-developers] onContextMenuClosed() not called under 2.x?

2010-01-01 Thread Jonas Petersson
Dear Experts, In one of my applications I programmatically open the context menu when something is clicked in my MapActivity overlay. This works perfectly under 1.x as well as on my 2.0 Milestone. I've used showContextMenuForChild() historically, but openContextMenu() does that same thing. As

[android-developers] how do you draw a new line?!

2010-01-01 Thread schwiz
This is really frustrating, I am trying to get a carriage return drawn in my custom view and nothing is working. I have tried 'System.getProperty(line.separator)' but that makes it say null and I have tried '\r' and '\n' and those just both draw a little square. I am using the canvas.drawText

[android-developers] Re: Touch handling sleep not helping enough on 1.5/1.6

2010-01-01 Thread Robert Green
I just tried the thread priority hacks but they didn't seem to offer any kind of big improvement. Any other ideas? On Dec 31 2009, 12:27 am, Robert Green rbgrn@gmail.com wrote: Cool, I'll give it a shot.  I was thinking about bumping up my rendering thread.  I'll report the results I get.

[android-developers] How can I get the highest framerate with this quellcode?

2010-01-01 Thread Martin
Hi! I am programming a game with the following quellcode. I am just using ImageView's which I move around and I have to handle some touch events. What do I have to change to have the highest framerate? If I remove this block try

[android-developers] Re: Posts to this Android Dev group hacked/intercepted/moved !?!

2010-01-01 Thread Martin
Hey, you are true! I also see my posts there: http://groups.google.com/group/world_wide_with_god_minstry/browse_thread/thread/c359df2ca1264536/d44bb834318705e3#d44bb834318705e3

[android-developers] Re: Best HTTP Request Method

2010-01-01 Thread theSmith
You might also want to run a method trace around your network activity to see where the most processing time is spent. The results you get wont be in actual time, but a relative time just because method tracing is slow. Just wrap you code with a start and stop calls, and make sure to have the

[android-developers] Updating a unique AppWidgetProvider from a Service

2010-01-01 Thread theSmith
Here is my issue, I want to be able to update a specific AppWidgetProvider (home screen widget) from a custom service class. I have to build the remote view in the service because I'm also doing some networking in there, which takes some time. The problem is that I can't figure out how to update

Re: [android-developers] Re: Touch handling sleep not helping enough on 1.5/1.6

2010-01-01 Thread SoftwareForMe.com SoftwareForMe.com
Hi, Just off the top of my head... * Research event propagation order and catch the event as early as possible (view before activity?) * Be sure to return true to stop propagation from your handler * Look into other methods to catch the event stream besides the onTouchEvent override My

Re: [android-developers] Re: Transparent Button

2010-01-01 Thread Sasikumar.S
Thank U On Thu, Dec 31, 2009 at 7:56 PM, Wouter wouterg...@gmail.com wrote: use this as your background for your button android:background=@android:color/transparent On Dec 31, 7:55 am, Fei Zhang getid...@gmail.com wrote: use a transparent image as background 2009/12/31

[android-developers] Re: Any Tips for implementing free versions of applications?

2010-01-01 Thread schwiz
upload a paid version too, and in the free version keep track of how many times they play or how long they play with preferences and then don't allow them to start a new game and also give them a button to take them directly to the market with your paid version. On Dec 31 2009, 10:49 am,

[android-developers] Re: When the new activity starts, the data of previous activity is gone.

2010-01-01 Thread android09
Hi Rui Wu, I got the solution of the second problem. Actually, i have used the same string value for the both fields. It means i have used the same string value for the edittext in the first activity as well as in second activity which has also one edittext. When i press next button it takes the

[android-developers] Re: Lat Long Problem in Broadcast Receiver

2010-01-01 Thread Nishant
Thanks for the reply. Yes, I have set this 2 permissions: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission I am testing this application on device (HTC Tatto) having 1.6

[android-developers] Re: Best HTTP Request Method

2010-01-01 Thread SizzlingSkizzorsProgrammer
Thanks a lot! Just wondering: how do you set the keep-alive setting? I just can't seem to get it! Thanks for all your help! On Jan 1, 5:08 pm, Frank Weiss fewe...@gmail.com wrote: I've seen 5 sec occasionally getting an rss feed of about 28 KB using

[android-developers] Re: Touch handling sleep not helping enough on 1.5/1.6

2010-01-01 Thread Robert Green
Were your results of 95% achieved while you were really pushing the GPU? I've found that if I do absolutely nothing but sleep for 16ms and return true, I STILL get massive slowdown. It has nothing to do with my architecture. I'm pushing the GPU down to about 30FPS with a 6ms update and so it

[android-developers] a prabable bug in android.bat

2010-01-01 Thread Raja Nagendra Kumar
Hi, We are trying to create avd though ant using the android bat.. When we execute [echo] Creating avd profile: foo1.5 [exec] Current OS is Windows XP [exec] Executing 'cmd' with arguments: [exec] '/c' [exec] 'android' [exec] 'create' [exec] 'avd' [exec]

[android-developers] Facing serious problem with static objects

2010-01-01 Thread Alok Kulkarni
Hi guys, I am facing a problem in my application. I have a few static arrays and Hashmaps in my app which i fill in when my Activity starts.Then this activity later launches another Activity. Now user presses Home button of Back button and again restarts the app, even then the static objects

[android-developers] Re: Any Tips for implementing free versions of applications?

2010-01-01 Thread dan.x.sheph...@googlemail.com
Thanks, I've just uploaded a trail version. Because it was a puzzle game that takes a certain length of time to do I just made it time out after 2 minutes. They can still keep using it, but only for 2 minutes at a time, which is enough to do puzzle in easy level, but not in medium or hard unless

[android-developers] Re: Best HTTP Request Method

2010-01-01 Thread Brion Emde
I think that it is automatic. Just be sure to keep your HttpClient object around for as long as you're going to be using it. For example: create the HttpClient in your onCreate() and close it in onDestroy() for your activity. On Jan 1, 10:45 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com wrote:

[android-developers] Re: Facing serious problem with static objects

2010-01-01 Thread Brion Emde
What is the reason that your HashMap and arrays are static? Perhaps they are a component of each instance of your Activity, rather than having a single HashMap and arrays for all instances? On Jan 2, 12:27 am, Alok Kulkarni kulsu...@gmail.com wrote: Hi guys, I am facing a problem in my