[android-developers] Re: Can I use OpenGL to make Bitmap without GLSurfaceView

2010-05-02 Thread Robert Green
Awesome that you worked that out - but man... that sure isn't lightweight! I bet you could get substantial performance gains doing that conversion natively and passing the processed array up to java. On May 2, 4:34 pm, Streets Of Boston wrote: > Below is a snippet of code that turns a buffer fro

[android-developers] Re: Communicating from Android Service to an Activity

2010-05-02 Thread madmax
Thanks a lot Mark! This is exactly what i was looking for.. It works.. Regards, Prafull. On May 1, 6:25 pm, Mark Murphy wrote: > madmaxwrote: > >              I have an AndroidServicethat runs indefinitely > > That's not possible and is not a good idea in general: > > http://www.andro

[android-developers] Re: Notification icon from a different package

2010-05-02 Thread Menny
I can only specify the icon resource ID. I can not use Drawable objects. I need some way to (maybe) create a notification of a different Context, or some how USE a Drawable object with Notification On Apr 29, 11:18 pm, Nerdrow wrote: > I can't remember it exactly off-hand, but if you can get a Re

Re: [android-developers] Activity Not coming to foreground

2010-05-02 Thread Anurag Singh
This is typo mistake, I want to say that we can't use intent.getIntent(), This method is depricated now. So, please choose another option like onNewIntent() or sendbrodcast. On Mon, May 3, 2010 at 10:58 AM, Anurag Singh wrote: > intent.getAction() , This method is depricated now. So, please c

[android-developers] Re: Some users are not finding our app in Android Market

2010-05-02 Thread AusR
So this goes against the documented defaults then? On Apr 8, 1:01 pm, Yahel wrote: > It happened to my app for htcTatoo. > > The reason was that the screen resolution was lower than what I > specified in the manifest. > In this case, the AndroidMarketwon't show the app because > downscaling do

[android-developers] Re: Activity Not coming to foreground

2010-05-02 Thread Kumar Bibek
You cannot ... On May 2, 6:22 pm, mike wrote: > hi guys, > > i'm getting the outgoing number using BroadCastReceiver and then > starts a Activity. > but my activity runs in the background???  how can i bring it to > foreground?? > >         public void onReceive(Context context, Intent intent) {

Re: [android-developers] Activity Not coming to foreground

2010-05-02 Thread Anurag Singh
intent.getAction() , This method is depricated now. So, please choose another option like onNewIntent() or brodcast. - Anurag Singh On Sun, May 2, 2010 at 6:52 PM, mike wrote: > hi guys, > > i'm getting the outgoing number using BroadCastReceiver and then > starts a Activity. > but my activity

[android-developers] JIT compiler explanation

2010-05-02 Thread Justin King
Hello everyone, Is anyone able to explain to me exactly what the upcoming JIT compiler will provide? For example, I have Java programs that generate bytecode at runtime which I would like to port to android. Will the JIT compiler make this possible by converting the runtime generated Java byte cod

Re: [android-developers] How to close all activities in a app

2010-05-02 Thread Saurav
well there is a function called .finish() this wud suffice ur needs i guess. hope this helps. Regards, Saurav Mukherjee. On Mon, May 3, 2010 at 8:52 AM, CMF wrote: > I have two activities,A ,B > A will start activity B > When I press "back"button in B, I want to close A also > But how can

[android-developers] how to draw objects in openGl with delay

2010-05-02 Thread kirti kaul
Hi, I want to draw say some squares after delay,ie if i need to draw 3 squares,i should get the square1 first,then after some delay square 2 second and so on.I used thread.sleep(msec),but what I get is , i get all the three squares after the delay specified,i use something like this:

[android-developers] Re: widget doesn't fresh on verizon droid, but works fine on HTC eris.

2010-05-02 Thread JP
Actually a small addition. It's not only your service that's "in jeopardy". I have a similar problem and find that the Widget is being killed by the OS almost immediately out of the gate. From far looks like what you describe. There's a way to start Services in the foreground (through startForegrou

Re: [android-developers] Re: Change the playback rate of a track in real time

2010-05-02 Thread yakura y
Mario I have solved all the problems with Eclipse. I have just set up my application and it works flawlessly using your jni wrappers. Thanks a lot and congratulations for your project. 2010/5/3 yakura y > >ffmpeg and mpg123 are the ones that I know of for MP3, don't know of > >any for OGG. I do

[android-developers] Re: Market

2010-05-02 Thread Lance Nanek
>I'm not even quite sure why it would be necessary. This ability would be great for any application that has a free version and a paid version. Often the free version wants to offer a button to open the market details page for the paid version. There's no good way to tell if the paid version is av

[android-developers] Listening for Bluetooth events and AVRCP profile

2010-05-02 Thread Moto
I need to find out the following information or guidance to achieve a solution: 1. I want to be able to capture bluetooth state changes, particularly when it's paired and when it's not. I do see I can possibly catch the intent "android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED" but how reli

[android-developers] How to close all activities in a app

2010-05-02 Thread CMF
I have two activities,A ,B A will start activity B When I press "back"button in B, I want to close A also But how can I close A here? -- 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@go

[android-developers] Re: widget doesn't fresh on verizon droid, but works fine on HTC eris.

2010-05-02 Thread JP
What you should look for: If you use a background service, check Logcat for something like "Process (pid <...>) has died" to see if the OS is pulling the plug on your widget's background service. On May 2, 3:40 pm, billconan wrote: > hello guys, > > I'm developing a widget based on this tutori

Re: [android-developers] Re: Change the playback rate of a track in real time

2010-05-02 Thread yakura y
>ffmpeg and mpg123 are the ones that I know of for MP3, don't know of >any for OGG. I don't think you're going to find a Java decoder, and >certainly not in real time. Thank you for the info, Peter >i have written jni wrappers around mpg123 and libvorbis for android. >you can find them included i

[android-developers] user mode build and dexpreopt

2010-05-02 Thread truth4u
In building the image with the user variant, dexpreopt failed with following error. 30:37.267647 dexpreopt: WaitForString: "#", 20.0 30:57.287851 dexpreopt: Timeout expired after 20.0 seconds 30:57.287922 dexpreopt: Killing emulator It seems emulator is not working. Please suggest me some poin

[android-developers] Re: Maximum Texture Units

2010-05-02 Thread Lance Nanek
It wouldn't surprise me if the Droid has that little. Its graphics solution breaks the scene up into tiles, which results in less data being needed at any one time. It also performs depth testing before doing the texturing, so uses less texture data due to that as well. Isn't OpenGL supposed to tr

[android-developers] Re: Can't upload my .apk to the market - minSdkVersion error every time.

2010-05-02 Thread Lance Nanek
>'No resource identifier found for attribute 'targetSdkVersion' in package >'android' This sort of error is usually from having a project build target lower than when a feature was introduced. I think targetSdkVersion was added in Android 1.6, for example, so you'd have to increase the project bu

Re: [android-developers] Activity and view inflation

2010-05-02 Thread TreKing
On Sun, May 2, 2010 at 2:39 PM, Michael Scott wrote: > I have an Acitivity and I would like to fiddle with the views upon creation > Can't you just findViewById(int) for whichever view you want to fiddle with and set whatever properties you want on if after you get it? After calling setContentVi

[android-developers] Re: Can't upload my .apk to the market - minSdkVersion error every time.

2010-05-02 Thread Savgrr
I tried to add the android:targetSdkVersion attribute and I got an error msg that said 'No resource identifier found for attribute 'targetSdkVersion' in package 'android' Does that make sense? I am so frustrated. The app works great it just won't upload onto the Market. Is there a way to just by

[android-developers] Is there a way to view app memory usage in Nexus One while in authoring mode?

2010-05-02 Thread Agus
Dear all, Is there a way to view app memory usage, threads on Nexus One while in authoring mode? Is it even supported since I am not sure Nexus One is a dev phone or not. Agus. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: "unable to open database file" after OS upgrade

2010-05-02 Thread Emmanuel
hello all, Just to let you know, I included this code in my version of my games 'Word Prospector' and 'Chasseur de mots', and I don't have any more bug report with this issue ! Emmanuel http://androidblogger.blogspot.com/ http://www.alocaly.com/ On Apr 28, 2:01 am, Emmanuel wrote: > Hello all

[android-developers] widget doesn't fresh on verizon droid, but works fine on HTC eris.

2010-05-02 Thread billconan
hello guys, I'm developing a widget based on this tutorial. http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html the same code works fine on my HTC eris. but on the verizon droid, the widget doesn't refresh. the widget updates the time i add it on the home scr

[android-developers] Re: Can I use OpenGL to make Bitmap without GLSurfaceView

2010-05-02 Thread Streets Of Boston
Below is a snippet of code that turns a buffer from GL into a buffer that can be used by a Bitmap. I'm not sure if you can get a buffer from GL without been having showing it before or if this is what you're exactly looking for. But here goes anyway :-) public void savePixels

[android-developers] Double click on app widget

2010-05-02 Thread westmeadboy
Is it possible to listen for double click events on an app widget? Judging by the api, it appears not, but I think this would be really useful. I suppose a workaround would be to use an onClick pending intent to an activity that checks if its been started twice in quick succession - but this seem

[android-developers] Re: Change the playback rate of a track in real time

2010-05-02 Thread Mario Zechner
i have written jni wrappers around mpg123 and libvorbis for android. you can find them included in libgdx which is available at http://code.google.com/p/libgdx/. More info can be found at http://www.badlogicgames.com or you can email if you have any questions. writting to a wav file is not included

[android-developers] Activity and view inflation

2010-05-02 Thread Michael Scott
I have an Acitivity and I would like to fiddle with the views upon creation. I thought that the way to do this would be to hook in on onCreateView during inflation. But the method just doesn't get called, no matter if I use setContentView(id) or onCreateView(view) with a View I inflated with getLay

[android-developers] Can I use OpenGL to make Bitmap without GLSurfaceView

2010-05-02 Thread SChaser
I would like to be able to use OpenGL in the Android to render into a bitmap (or any other sort of buffer I can turn into one), without actually displaying a GLSurfaceView. The purpose is to dynamically create very complex images using OpenGL, and then drawing those images on the canvas of a MapVi

[android-developers] Re: some users getting package not signed correctly

2010-05-02 Thread Maps.Huge.Info (Maps API Guru)
Are you sure they are valid customers? Perhaps this is a scam. Just a thought. -John Coryat -- 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 g

[android-developers] some users getting package not signed correctly

2010-05-02 Thread Peter Jeffe
A small percentage of our users are getting a package not signed correctly error when installing our app that was downloaded from the Market. They can't re-download from the Market, so we are having to get them to download and install it from our site, which works fine. It seems to happen to maybe

[android-developers] Re: Change the playback rate of a track in real time

2010-05-02 Thread Peter Jeffe
On May 2, 6:36 am, yakura y wrote: > Is there any library out there that it allows to decode mp3/ogg to wav in > android in realtime? (not necessarily in realtime but it could be great). I > think I need to use the NDK but I would not like to have to manage with > that. ffmpeg and mpg123 are the

Re: [android-developers] SSL handshake logging in Android

2010-05-02 Thread Michael Rueger
On 5/1/10 7:20 PM, sandy8531 wrote: I am having trouble with my HttpsURLConnection client. I can make one request to the server using my keystore, however the second (and subsequent) requests in the same JVM fail. ( I initialize a SSLSocketFactory using my keystore and set it on my HttpsURLConn

Re: [android-developers] Re: Newb: Display URL Image

2010-05-02 Thread Mark Murphy
Jose Gomez wrote: > If you are just trying to make the ImageView display an image from a URL > use this function. > > private Bitmap decodeImage(String url) { > > URL aURL; > > try { > > aURL = new URL(url); > > URLConnection conn = aURL.openConnection(); > > conn

[android-developers] htc droid incredible

2010-05-02 Thread Simone
Just a couple of questions. If I buy the droid incredible, would I be able to: -use it in Italy -run my applications on it Thanks Simone -- 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: [android-developers] Re: Newb: Display URL Image

2010-05-02 Thread Jose Gomez
If you are just trying to make the ImageView display an image from a URL use this function. private Bitmap decodeImage(String url) { URL aURL; try { aURL = new URL(url); URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInp

[android-developers] resized window for clicking other window app

2010-05-02 Thread sleith
Hi, i want to ask is it possible to launch activity in resized window, so that we can still see behind activity screen, and we can click the behind activity screen button or something? (interact with behind activity screen) Thanks -- You received this message because you are subscribed to the Go

Re: [android-developers] Re: Android ANT compilation

2010-05-02 Thread Leigh McRae
I laughed when I read your first line. Fair enough on your part but you need to balance how much time you spend with making the most elegant, portable, manageable etc and just getting it done. On 5/1/2010 9:56 PM, Bob Kerns wrote: I stop just short of being dogmatic about #1! That is, I st

[android-developers] Activity Not coming to foreground

2010-05-02 Thread mike
hi guys, i'm getting the outgoing number using BroadCastReceiver and then starts a Activity. but my activity runs in the background??? how can i bring it to foreground?? public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub

Re: [android-developers] resize options menu + get icons centered ?

2010-05-02 Thread Mark Murphy
didi.yeah wrote: > Hi, > > I created a basic options menu, here an example of creating an element > of me menu : > > menu.add(0, MENU_BACKWARD, 0, "").setIcon(R.drawable.btn_backward); > > As you can see I don't want to show any text in this menu, just an > icon ! > But when the menu is showed,

[android-developers] resize options menu + get icons centered ?

2010-05-02 Thread didi.yeah
Hi, I created a basic options menu, here an example of creating an element of me menu : menu.add(0, MENU_BACKWARD, 0, "").setIcon(R.drawable.btn_backward); As you can see I don't want to show any text in this menu, just an icon ! But when the menu is showed, there is a "ugly" blank under the ico

[android-developers] Retrieve Current Dialing Number

2010-05-02 Thread mike
hi guys, currently i'm always getting the previously dialed number. but what i need is current dialed number. this is my code the method to retrieve number is quoted from a another developer who helped me but it always gives the previous number. need help urgently public class CallListener exten

Re: [android-developers] Change the playback rate of a track in real time

2010-05-02 Thread yakura y
Thanks Anurag, I have fixed the error. At the end, I have used an implementation with AudioTrack. It seems to be ideal for what I am trying to do, but I have another question: Is there any library out there that it allows to decode mp3/ogg to wav in android in realtime? (not necessarily in realti

[android-developers] Tab control in "News and weather" app (N1)?

2010-05-02 Thread Ilya Shinkarenko
hi all, does anybody know if the tab control used in the "News and weather" app (preinstalled on Nexus One) is a standard one and what is the name of if? thanks ilya -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Porting to Android Development Phones

2010-05-02 Thread arikh
Hello, Where can I get the Eclair source tree for G1? G2? Thanks, Arik Halperin -- 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

Re: [android-developers] Re: Market shows: "Localized to: unknown" - issue 5930 is still not fixed?

2010-05-02 Thread Evgeny V
Yes. I have res/values. 2010/5/2 Konstantin Vasilyev > We know it works, e.g. > > http://www.cyrket.com/p/android/org.kman.WifiManager/ > > (and countless others) > > Do you have a res/values, too (non-localized)? > > If not, can you try creating it? > > -- Kostya > > Evgeny V писал(а) в своё

[android-developers] Re: Maximum Texture Units

2010-05-02 Thread Robert Green
I remember reading that the MSM7200-based phones have 8mb of VRAM and so I have to imagine that you could count on at least that much for the better GPUs. What's weird though is that I keep finding things talking about how the PowerVR SGX530 has 2MB of VRAM which seems awfully low - unless that's

Re: [android-developers] BroadcastReceiver, Intent objects

2010-05-02 Thread Anurag Singh
Yeah, there's no fucntion available in intent class. But you can putExtra putExtra (String name, long value) to recongnize any kn

[android-developers] Re: vibrator and emulator

2010-05-02 Thread Simone
Ohhh ok thanks, at least I know now ;) Simone On 2 Mag, 06:32, David Turner wrote: > The emulator simply doesn't support vibrator emulation at this point, sorry. > > > > On Sat, May 1, 2010 at 9:54 PM, Simone wrote: > > I have a simple problem: I make a simple call to Vibrator.vibrate(long > > t