[android-developers] Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread joshbeck
Hello all, I can construct an Activity that utilized OpenGL to draw a square, set properties, and make it rotate around a fixed point by implementing android.opengl.GLSurfaceView,Renderer and configuring: public void onSurfaceCreated(GL10 gl, EGLConfig config) {} public void onDrawFrame(GL10

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-02-14 Thread Menion
Hi mot12, i was fighting with similar problem few days ago and succesfully solved. so my solution which may help you too ... String lang = Settings.getLanguage(); Resources res = activity.getResources(); DisplayMetrics dm = res.getDisplayMetrics(); Configuration config = res.getConfiguration();

[android-developers] Nexus 1 opengl driver problem

2010-02-14 Thread Carlo
Hi, We are facing 2 issues on the nexus 1 using opengl ( under NDK ) : 1) glNormalPointer(GL_BYTE, x , y); does no work, there no lighting done on any model using normals stored using byte, the same code is working properly on a motorola droid/milestone. 2) Changine Lighting

[android-developers] Re: Nexus 1 opengl driver problem

2010-02-14 Thread Carlo
Btw glNormalPointer(GL_SHORT, x , y); too is broken, just GL_FLOAT are working, that's not helping the bandwidth saving for the nexus 1 On Feb 14, 5:16 pm, Carlo ca...@hyperdevbox.com wrote: Hi, We are facing 2 issues on the nexus 1 using opengl  ( under NDK ) : 1)      

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Lance Nanek
http://groups.google.com/group/android-developers/browse_thread/thread/9677b73c0b571f5a/20b06ff6e135adec On Feb 14, 3:06 am, joshbeck josh.beck2...@gmail.com wrote: Hello all, I can construct an Activity that utilized OpenGL to draw a square, set properties, and make it rotate around a fixed

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Dianne Hackborn
You can follow the same model we use for input methods, app widgets, live wallpapers, and other things (none of which are fundamentally kinds of things in the platform, but built on top of the fundamental generic activity, receiver, service, and provider components): 1. Pick the kind of component

[android-developers] Re: Picture while starting app

2010-02-14 Thread Hekki
Hi, I understand you want to show a splash screen. Here is how i do it. I have a relativelayout containing my UI in a framelayout. The background of the framelayout is set to the picture for the splash. I have an animation on the relativelayout from 0 alpha to 1 alpha with a startoffset of 2

Re: [android-developers] Nexus 1 opengl driver problem

2010-02-14 Thread Ralf Schneider
Hello Carlo, Im using the NDK, but I don't think this makes a difference 1) glNormalPointer(GL_BYTE, x , y); does no work, there no lighting done on any model using normals stored using byte, the same code is working properly on a motorola droid/milestone. GL_FLOAT seems to

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Menny
I'll look at the examples, and try that. Thanks. On Feb 14, 11:07 am, Dianne Hackborn hack...@android.com wrote: You can follow the same model we use for input methods, app widgets, live wallpapers, and other things (none of which are fundamentally kinds of things in the platform, but built

[android-developers] programatically press a button

2010-02-14 Thread saru
Hey i want to write a program in android to press menu button or end button or answer button automatically. Please help me if you can. though i got some links like http://davanum.wordpress.com/2007/12/19/android-simulate-key-strokes/ BUT i am getting error because of using import

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-02-14 Thread mot12
Hi Menion, Thank you so much for responding. You saved my weekend :). That's exactly what I was looking for. Martin -- 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

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread joshbeck
I was afraid you might say that: I've gone through and incorporated GLWallpaperService per his instructions, but specifically I'm getting hung up here: --QUOTE-- In your GLEngine subclass, instantiate your Renderer, configure it and set it using setRenderer(Renderer) and setRenderMode(int).

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-02-14 Thread mot12
Menion, Ok, now I feel silly because I thought I could figure it out from your post. 1) Settings.getLanguage() is from your own preference settings? It is no android.provider.Settings, right? 2) When my app loads, I read the language preference from my own app preference settings and set the

[android-developers] Re: How to get all the nodes content from strings.xml

2010-02-14 Thread CMF
How to do it at build time? On Feb 13, 12:52 am, Frank Weiss fewe...@gmail.com wrote: A fairly straight forward way do it at build time with xslt. Chances are the strings.xml is not available at run time. On Feb 12, 2010 8:23 AM, CMF manf...@gmail.com wrote: Hi all, I would like to write a

[android-developers] Re: Broadcast Receiver without Activity.

2010-02-14 Thread askPrins
Rogerio, What do you mean by using a service instead? Should the service initiate the receiver, e.g. using registerreceiver() ? On Feb 12, 9:35 pm, Rogério de Souza Moraes rogerio.so...@gmail.com wrote: Hi askPrins, you can implement this using a service class instead of an activity class.

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Mark Murphy
Menny wrote: So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource) for creating the external keyboard. This sounds OK. The only problem is how to query for packages which have this resource? I'm not sure if there is

Re: [android-developers] programatically press a button

2010-02-14 Thread Mark Murphy
saru wrote: Hey i want to write a program in android to press menu button or end button or answer button automatically. You can't, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development:

[android-developers] LogCat filters: How can I specify wildcards?

2010-02-14 Thread Eurig Jones
I'm using the Eclipse plugin to view log output using LogCat. I want to use a filter all messages with the tag: com.whatever.blah.* But it doesn't work, how can I do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Menny Even Danan
OK, thanks. I'll try that. On Sun, Feb 14, 2010 at 14:15, Mark Murphy mmur...@commonsware.com wrote: Menny wrote: So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource) for creating the external keyboard. This

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Mark Murphy
Menny Even Danan wrote: OK, thanks. I'll try that. Actually, I hadn't seen Ms. Hackborn's response before replying -- definitely consider following her guidance in this area. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App

Re: [android-developers] LogCat filters: How can I specify wildcards?

2010-02-14 Thread Mark Murphy
Eurig Jones wrote: I'm using the Eclipse plugin to view log output using LogCat. I want to use a filter all messages with the tag: com.whatever.blah.* But it doesn't work, how can I do this? It doesn't look like log filtering supports prefixes or wildcards. You'll need to set up separate

[android-developers] Re: HttpPost, ssl and error 'Not trusted server certificate'

2010-02-14 Thread badzio
Thanks for reply, that's nice to know that problem with IOException is a bug, not my fault :) Regarding certificate - mentioned links shows how to get certificate from my server. Unfortunetly server which I connect with, it's not my server. On 11 Lut, 17:00, joebowbeer joe.bowb...@gmail.com

[android-developers] Re: Picture while starting app

2010-02-14 Thread Maps.Huge.Info (Maps API Guru)
Another way to have a start up image is to use a theme with a background image. The theme image loads first, and once the UI develops, the theme is covered. There are downsides to splash screens as they waste memory and resources but the upside is it keeps the user from wondering if the app

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread joshbeck
I'm going to post my entire source code as it stands right now in the hope that someone with more experience than I can get me pointed in the right direction. I've been trying lots of different things. Feel free to use caps lock when expressing discontent with my code :') /* * Copyright (C) 2009

[android-developers] Re: programatically press a button

2010-02-14 Thread JP
What I would try is to create a KeyEvent object and dispatch it to the UI thread. Something like this (I haven't tried this; code below only to sketch this up on the conceptual level): KeyEvent.Callback callbackReceiver = new KeyEvent.Callback(...) { // callback code }; KeyEvent.DispatcherState

[android-developers] Re: Text To Speech Android 1.6 with minsdk 3

2010-02-14 Thread DulcetTone
Ok, I definitely do not see how to make this work. I don't grasp how the wrapping method here in any way spares the 1.5 runtime environment from having references to text-to-speech things. A 1.5 user tried my test build and gets a force close. I redoubled my efforts to manually select a 1.5

[android-developers] Re: Text To Speech Android 1.6 with minsdk 3

2010-02-14 Thread DulcetTone
Of course, 2 minutes after posting this, I see the twisted path of how to specify the 1.5 target. I get, however, an exception (VerifyError) on a call to my TTS wrapper. I think this might be because I modified the nature of this slightly, and in a way that alters the delicate balance of the

[android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-02-14 Thread Anthoni
Hey Kevin, It's not just Motorola, HTC are playing the same game. I have a HTC Hero (UK on 3) that is still stuck at the 1.5 (cupcake is it called?) release. No clue when going to upgrade to the infamous 2.1 There is no information about this on either the HTC main site, their bulletin boards

[android-developers] Re: My 1st Android Program

2010-02-14 Thread Anthoni
Congratualtions, It's a great feeling isnt it, seeing your application up and running :D On Feb 12, 3:45 pm, didu didudeb2...@gmail.com wrote: Hey,     While I have started to work on android ,I have faced lots of problem on Eclipse IDE, Android SDK, but finally I have developed my 1st Hello

[android-developers] Smaller tabs, such as the Facebook official app

2010-02-14 Thread Juan David Trujillo C.
Hi all! I want to create an application that uses small tabs, such as the one the Android's facebook official app uses. Does anyone know how these kind of tabs can be created? Do I need to extend the TabHost class in order to customize it, or is there a more general easier approach? Thank you

Re: [android-developers] Smaller tabs, such as the Facebook official app

2010-02-14 Thread Mark Murphy
Juan David Trujillo C. wrote: I want to create an application that uses small tabs, such as the one the Android's facebook official app uses. Does anyone know how these kind of tabs can be created? Do I need to extend the TabHost class in order to customize it, or is there a more general

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Lance Nanek
public GLSurfaceView mGLSurfaceView; ... mGLSurfaceView = new GLSurfaceView(this); ... mGLSurfaceView = new GLSurfaceView(MyLiveWallpaper.this); Remove the lines above. Any use of GLSurfaceView in this is wrong. public Engine onCreateEngine() { return new GLEngine(); } You are supposed to

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-14 Thread OldSkoolMark
The strange thing in my case was that I had apparently been approved as I posted several times with minimal group display latency. Then everything started getting directed to /dev/null. Contacted the moderator, never heard back, but now its all good. I did change the email associated with my

[android-developers] MapView draw Overlays

2010-02-14 Thread Stefan
Hello, i have a problem with my mapView. my app reads some gps points out of a file and i want to draw a route (drawing lines between the gps point). If my file contains many gps points, my app works really slow. i think its working slow, because i draw all overlays. now i want to check, whether

[android-developers] Re: Text To Speech Android 1.6 with minsdk 3

2010-02-14 Thread DulcetTone
I think I got it working. Thanks for the direction. My mistake had been moving the boolean that reflected the availability of the TTS function INTO my wrapper class (where code design sort of suggests it would like to be) and this would cause me VerifyError exceptions. So there was indeed a

Re: [android-developers] Re: Broadcast Receiver without Activity.

2010-02-14 Thread Dianne Hackborn
Please don't keep a service running just to register a receiver...! Publish the receiver in your manifest, so that the system will launch your app when needed and not have to keep it running all of the time. On Sun, Feb 14, 2010 at 3:44 AM, askPrins askpr...@gmail.com wrote: Rogerio, What do

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-14 Thread Dianne Hackborn
G1, myTouch, and Passion use a Synaptics screen. Droid uses one from another company (I can't recall). Even for a particular company, there are a wide variety of screens you will encounter. For example here is what I found for Synaptics: http://www.synaptics.com/solutions/products/clearpad On

Re: [android-developers] MapView draw Overlays

2010-02-14 Thread TreKing
On Sun, Feb 14, 2010 at 1:00 PM, Stefan ebay-dah...@web.de wrote: so i have to get the mapCenter and Lat/lon span (getLatitudeSpan,..) !? Yes. how and where must i save my points and how can i check all my points (after my mapCenter has changed for example). Shall I save my points in a

[android-developers] Application already deployed. No need to reinstall.

2010-02-14 Thread Eurig Jones
I'm having an annoying issue when developing my app within Eclipse + ADT... Application already deployed. No need to reinstall. If I've changed my code it doesn't recognise the change unless I clean the project. It then uploads a new apk! I didn used to have to do this after a change!. Build

[android-developers] Re: crash in ListView.layoutChildren on display of onscreen keyboard

2010-02-14 Thread Tim
I also am getting a crash occasionally with this stack trace: 02-14 10:08:56.618: ERROR/AndroidRuntime(326): at android.widget.AbsListView.obtainView(AbsListView.java:1266) 02-14 10:08:56.618: ERROR/AndroidRuntime(326): at android.widget.ListView.makeAndAddView(ListView.java:1668) 02-14

[android-developers] Query the List of Favorite Contacts

2010-02-14 Thread Ali Chousein
Hi, I'm trying to query the list of favorite contacts. I use the line below: Cursor cur = this.getContentResolver().query(People.CONTENT_URI, null, People.STARRED + =?, new String[] { 1 }, null); However, this doesn't work because NULL data is returned, even though my list of favorite contacts

[android-developers] Re: Application already deployed. No need to reinstall.

2010-02-14 Thread OldSkoolMark
run adb uninstall package name in a shell. On Feb 14, 11:23 am, Eurig Jones eurigjo...@gmail.com wrote: I'm having an annoying issue when developing my app within Eclipse + ADT... Application already deployed. No need to reinstall. If I've changed my code it doesn't recognise the change

[android-developers] Re: Application already deployed. No need to reinstall.

2010-02-14 Thread Eurig Jones
But that will just uninstall my app! On Feb 14, 9:20 pm, OldSkoolMark m...@sublimeslime.com wrote: run adb uninstall package name in a shell. On Feb 14, 11:23 am, Eurig Jones eurigjo...@gmail.com wrote: I'm having an annoying issue when developing my app within Eclipse + ADT...

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Robert Green
I guess I really should have posted an example, huh? Here's the structure that works: public class MyWallpaperService extends GLWallpaperService { public MyWallpaperService() { super(); } public Engine onCreateEngine() { MyEngine engine = new MyEngine(); return engine; }

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Robert Green
The problem that you were having is that you weren't creating the engine in the right spot and then in the engine, you need to be setting the renderer in the constructor. The big difference between this and GLSurfaceView is that all of your traditional Activity or View code goes into your Engine,

[android-developers] Re: Application already deployed. No need to reinstall.

2010-02-14 Thread Eurig Jones
I fixed this by recreating my project for a freshly created android project in eclipse. This now seems to install the apk and recognise i modified something! On Feb 14, 9:59 pm, Eurig Jones eurigjo...@gmail.com wrote: But that will just uninstall my app! On Feb 14, 9:20 pm, OldSkoolMark

[android-developers] Re: Apps not appearing in market place on certain phones

2010-02-14 Thread TonyDoc
Bumpy de bump On Feb 3, 10:42 pm, TonyDoc tony...@gmail.com wrote: [ro.build.description]: [U8220-user 1.5 CRB17 20091126.110223 ota-rel- keys,relea se-keys] [ro.build.fingerprint]: [T-Mobile/U8220/U8220/U8220:1.5/ CRB17/20091126.110223:us er/ota-rel-keys,release-keys] On Jan 24, 9:13 pm,

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread joshbeck
I can see that now and I thank you for the response. Really, your directions were very clear and your GL service is incredible. I hope to see it incorporated in the official 2.2 API. You deserve it, and I thank you! Nancy, thanks also. --Your directions are what I was able to follow in order to

[android-developers] looking for CS , android ebooks???

2010-02-14 Thread Auguste Lunang
Check www.dealebooks.com -- 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-developers+unsubscr...@googlegroups.com

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Robert Green
Great! I'm glad you got it to work. I need to finish my submission to the platform. I actually worked out most everything including a few iterations of design and javadocs but never finished setting up my build environment so I can't do some of the final stuff to get it in. I'll try to get that

[android-developers] port forwarding

2010-02-14 Thread linux newbie
Hi, I am running mysql server (on remote machine) and I can able to connect to it from my host machine. I written a java code to connect and read some table values. Now I compiled the same java code in Android and on running it in emulator it is unable to connect to server. I believe I need to

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-14 Thread jotobjects
There were some times this past week when almost all messages were dropped even for long time members of the group - mst of the message gettinr through were from google employees. You could see the number of messages drop from a dozen an hour to a 1 an hour (or roughly that ratio). I tried

[android-developers] Re: Nexus 1 opengl driver problem

2010-02-14 Thread Carlo
Thanks for your feedback :) Do you push optimized triangle list indexed, triangle list or strip in your scene ? well, from our experience here, If you have a common setting that you do not change we do not see this problem, let's say you have 1 light set and keep it this way, however if you have

[android-developers] How do I recieve broadcast action in an Activity?

2010-02-14 Thread Indu
Can I receive a broadcast event in an activity? I've seen this done in broadcast receivers but not in an activity. In particular I would like to receive an event when a bluetooth device is found. ACTION_DISCOVERY_FINISHED. Do I need to declare that in the activity intent filters? Should I be

Re: [android-developers] How do I recieve broadcast action in an Activity?

2010-02-14 Thread Mark Murphy
Indu wrote: Can I receive a broadcast event in an activity? I've seen this done in broadcast receivers but not in an activity. In particular I would like to receive an event when a bluetooth device is found. ACTION_DISCOVERY_FINISHED. Do I need to declare that in the activity intent

[android-developers] Re: Smaller tabs, such as the Facebook official app

2010-02-14 Thread Bob Kerns
??? I use it on my Nexus One all the time. Perhaps it doesn't work on older devices? On Feb 14, 8:36 am, Mark Murphy mmur...@commonsware.com wrote: If you can find an APK with the smaller tabs, you can always toss that into an emulator and use hierarchyviewer to try to figure out how they

Re: [android-developers] Re: Smaller tabs, such as the Facebook official app

2010-02-14 Thread Mark Murphy
Bob Kerns wrote: ??? I use it on my Nexus One all the time. Perhaps it doesn't work on older devices? I just tried the Android 2.1 SDK hierarchyviewer on the Nexus One and DROID, and hierarchyviewer refuses to work with either of them. Romain Guy pointed out mid-2009 that hierarchyviewer does

Re: [android-developers] Re: Smaller tabs, such as the Facebook official app

2010-02-14 Thread Mark Murphy
Mark Murphy wrote: I just tried the Android 2.1 SDK hierarchyviewer on the Nexus One and DROID, and hierarchyviewer refuses to work with either of them. I should point out that I've tried these from a Linux host. Perhaps Windows works better for this. I never bothered trying another host, after

[android-developers] Re: Playing Video in App Widget

2010-02-14 Thread kirti kaul
ok guys..thanks for your responses... On Feb 10, 6:29 pm, Sean Hodges seanhodge...@googlemail.com wrote: You can't playvideoinside an AppWidget. On Wed, Feb 10, 2010 at 12:42 PM, Narendra Bagade bagadenaren...@gmail.com wrote: I want to playvideo,how can i achieve? I tried this code

[android-developers] Re: Nexus 1 opengl driver problem

2010-02-14 Thread Robert Green
If the snapdragon chip follows suit with the MSM7200, GL Lights will cause the CPU to be involved in calculations, which is why you'll see a big performance hit. Check out all of these brew whitepapers from Qualcomm. They talk about lots of that stuff:

[android-developers] paid app error

2010-02-14 Thread Andrei
All orders get this error Message sent to customer: Order canceled due to internal error in Market. Why is this? -- 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

[android-developers] Re: Switching between activities

2010-02-14 Thread uday kiran
Hi TreKing.. Thanks for the reply..sorry im using EditTexts to enter the data..the information is not retained. i will send both XML file and .java file and let me know the bug in my files. On Feb 11, 11:36 pm, TreKing treking...@gmail.com wrote: On Thu, Feb 11, 2010 at 2:55 AM, uday kiran

[android-developers] Re: Switching between activities

2010-02-14 Thread uday kiran
Hi jotobjects thanks for the reply.. actually im using EditTexts not TextView.. sorry for the wrong information. On Feb 13, 1:24 am, jotobjects jotobje...@gmail.com wrote: Possibly setting android:freeezesText resolves this issue?

[android-developers] Re: paid app error

2010-02-14 Thread Andrei
Why do i get this when i go to my Market page Failed to load application list. Try again later. Could somebody help please? On Feb 15, 1:49 am, Andrei gml...@gmail.com wrote: All orders get this error Message sent to customer: Order canceled due to internal error in Market. Why is this? --

Re: [android-developers] port forwarding

2010-02-14 Thread Kevin Duffey
Little confused.. are you trying to allow your mobile app connect across the network to your database? On Sun, Feb 14, 2010 at 4:12 PM, linux newbie linux.newbi...@gmail.comwrote: Hi, I am running mysql server (on remote machine) and I can able to connect to it from my host machine. I