[android-developers] Re: logcat behavior

2009-07-14 Thread Till
Hi -d- directs command to the only connected USB device returns an error if more than one USB device is present. -e- directs command to the only running emulator. returns an

[android-developers] Re: Can Any body give the suggestions for this...

2009-07-14 Thread Desu Vinod Kumar
On Wed, Jul 15, 2009 at 12:16 PM, android.vinny wrote: > > HI > > I have pasted one screen shot > how can i do when i click the image i need to see the title bar with > buttons and image buttons > view is in the below pasted image... > > > thanks a lot in advance. > > > -- Regards -

[android-developers] Can Any body give the suggestions for this...

2009-07-14 Thread android.vinny
HI I have pasted one screen shot how can i do when i click the image i need to see the title bar with buttons and image buttons view is in the below pasted image... thanks a lot in advance. --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Re: getView from CustomizedAdapter called several times

2009-07-14 Thread Mika
Hi, I'm having the same problem. Did you find any solutions?? -Mika On Jun 24, 7:39 pm, jabu wrote: > Hi Everyone, > > I am implementing my ownadapterthat inherits from BaseAdapter (this > is something very classic). > Then when I start the activity that owns the listView binded to thisadapter

[android-developers] Android Camera IntentFilter from Manifest

2009-07-14 Thread ivan
Can someone post the exact code of Android's Camera App's IntentFilter from the manifest? thanks. --~--~-~--~~~---~--~~ 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] Re: SQLite DROP Database

2009-07-14 Thread john
uninstall the application On 7月15日, 下午1時07分, Saurav Mukherjee wrote: > if have rights to the shell, then u can jus try this: > rm > > On Wed, Jul 15, 2009 at 2:44 AM, Kumaravel Kandasami < > > > > kumaravel.kandas...@gmail.com> wrote: > >  How to drop a database in Android SDK? > > > Did not se

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-14 Thread Desu Vinod Kumar
HI Sujay Krishna Suresh Thanks for ur response. I need to zooming by using the touch not by using keys if it touch the image it need zoom in & out the image is there any tutorials or examples regarding this... plz help i need it urgently i done this by using key events image.setBounds((get

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-14 Thread Sujay Krishna Suresh
desu, u shd get d zoom controls on tap... if u want ur own zoom in & zoom out jus make use of the bitmap functions for scaling. On Wed, Jul 15, 2009 at 11:12 AM, Desu Vinod Kumar wrote: > > HI > > I am not getting this .. > > how the image vl zoom in and zoom out here.. > On 7/15/09, hang

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-14 Thread Desu Vinod Kumar
HI I am not getting this .. how the image vl zoom in and zoom out here.. On 7/15/09, hanged_man wrote: > > Intent intent = new Intent(); > intent.setAction(android.content.Intent.ACTION_VIEW); > //imageFilePath is a path to a file located on the sd card > such "/sdca

[android-developers] how install webapp on emulator?

2009-07-14 Thread fatima
Hi...how I can install a webapp on emulator? regards --~--~-~--~~~---~--~~ 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

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Saurav Mukherjee
if have rights to the shell, then u can jus try this: rm On Wed, Jul 15, 2009 at 2:44 AM, Kumaravel Kandasami < kumaravel.kandas...@gmail.com> wrote: > How to drop a database in Android SDK? > > > Did not see any methods in android.database.sqlite.SQLiteOpenHelper or > android.database.sqlite.S

[android-developers] Re: How to build a appliication with the camera preview but not fullscreen?

2009-07-14 Thread Coder J
my friend made a camera widget. get the light version and feel free to contact him for help i think he should be able to. On Jun 29, 10:52 pm, will wrote: > I see the ApiDemos src. > But it is fullscreen, i try to build one but it crashed. > > java file: > > public class CameraRec2 extends Activ

[android-developers] Re: "android:scrollbars" in programmatic way

2009-07-14 Thread Romain Guy
You can: http://developer.android.com/reference/android/view/View.html#setHorizontalScrollBarEnabled(boolean) http://developer.android.com/reference/android/view/View.html#setVerticalScrollBarEnabled(boolean) On Tue, Jul 14, 2009 at 6:32 PM, Tim wrote: > > Hi, "android:scrollbars" are used in XM

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Craig
http://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase%28java.lang.String%29 On Jul 15, 7:14 am, Kumaravel Kandasami wrote: >  How to drop a database in Android SDK? > > Did not see any methods in android.database.sqlite.SQLiteOpenHelper or > android.database.s

[android-developers] Re: matching prebuilt kernel sources

2009-07-14 Thread Brian Manning
On Tue, Jul 14, 2009 at 5:37 PM, Tim Newsham wrote: > >>    I have a recent "repo" copy of the platform tree and I noticed that >> the kernel sources included in it are incomplete. > Can anyone push me in the right direction? http://source.android.com/discuss Specifically, http://groups.google

[android-developers] Re: OpenGL ES, How to rotate a cube?(3D Rotation)

2009-07-14 Thread quill
I have read the API Demo code. I have come up an idea to do it like this: 1)Map the touch point to 3D coordinates, and we can get a line when touch point moved, as Line1; 2)Also we can get another line which is vertical to the screen. Signed as Line2: gluunproject(x,y,0)-->gluunproject(x,y,1); 3)L

[android-developers] Re: onTap display toast or message

2009-07-14 Thread alexdonnini
Thanks. Good point. I have seen the behavior described in the thread you pointed to. Alex On Jul 14, 3:37 pm, skink wrote: > On Jul 14, 7:35 pm, Mark Murphy > > > > > Just pass in the activity to your ItemizedOverlay's subclass' > > constructor, and use it to create your Toast. > > be careful t

[android-developers] How to get attributes of KeyboardView?

2009-07-14 Thread Alger, Lin
I wanna write my own keyboard view, which extends from android.inputmethodservice.KeyboardView, and I need to get attributes of this keyboard view. I try to override the constructor with parameters (Context, AttributeSet, int ), and parse the attribute by the inputed AttributeSet. However I meet

[android-developers] Re: Lock screen feature does not work

2009-07-14 Thread Dianne Hackborn
These are the lists: http://source.android.com/discuss On Tue, Jul 14, 2009 at 7:04 PM, Jerry Wang wrote: > > Sorry, I don't see any android-porting Group in the Application > developer mailing lists. Could you kindly tell me where to look for. > > And I don't know what is happened. I just buil

[android-developers] Re: Lock screen feature does not work

2009-07-14 Thread Jerry Wang
Sorry, I don't see any android-porting Group in the Application developer mailing lists. Could you kindly tell me where to look for. And I don't know what is happened. I just built those souce code into PC emulator. And run them on the PC. Why this feature does not work, but it works on the offic

[android-developers] Re: How to kill background applications?

2009-07-14 Thread Dianne Hackborn
This is what the system's manage applications "force stop" button uses: http://developer.android.com/reference/android/app/ActivityManager.html#restartPackage%28java.lang.String%29 On Tue, Jul 14, 2009 at 5:26 PM, sychee wrote: > > Hi, I am currently writing a program to kill processes that the

[android-developers] Re: ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-14 Thread Mark Murphy
Dimitris wrote: > Why is noone ever responding here? Thousands of messages appear on this list every week. Not all get answered. In some cases, those who read the question may not know the answer. For example, I have no idea about your second one, and I only happened to look at the first one thi

[android-developers] "android:scrollbars" in programmatic way

2009-07-14 Thread Tim
Hi, "android:scrollbars" are used in XML layout file to declare whether a view having scrollbar. I would like do it programmatic. Anyone know how? Btw, according to api doc, there seems no direct peer method. Should I have to read a attr xml file? http://developer.android.com/reference/android/vie

[android-developers] Re: URL commands when calling Youtube through Intent

2009-07-14 Thread dsurround
Jonathan, yes, I am using the G1 application natively. I pass the intent the youtube HTTP URL and youtube come up and begins playing the requested video. dsurround On Jul 14, 5:47 pm, Jonapin wrote: > Hi, > as the intent to use application that works natively on youtube? > thanks > Jonathan >

[android-developers] Re: ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-14 Thread Dimitris
Why is noone ever responding here? On Jul 13, 10:42 pm, Dimitris wrote: > Anyone? > > On Jul 13, 11:30 am, Dimitris wrote: > > > > > Hey all, > > > I have an expandable list with a custom adapter. Everything works > > great but there are two problems. > > > First whenever a group or chi

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
That affirms a lot for me. Thanks! Richard Schilling Root Wireless On Jul 14, 4:35 pm, Dianne Hackborn wrote: > No, it will never be true. > > The VM doesn't manage processes at all.  The system starts a process and > runs a VM inside of it when it needs to run any components of an > applicat

[android-developers] Re: How to kill background applications?

2009-07-14 Thread James
Hi! Generally speaking,We'd say that you can not kill other processes in you application,because you no dot hold the target permission; And one thing more the "kill" you refered above can not really kill the process,For in android OS,Killing a process just pop up it's stack to the previous state,H

[android-developers] Re: How to write async socket with Android?

2009-07-14 Thread Roman
I agree with the post from James that socket communication might be not the best approach when you work on Android SDK level. Android supports the intent and the aidl mechanism which you can use for IPC on the device. http://developer.android.com/guide/developing/tools/aidl.html Advantage of u

[android-developers] Re: handeling StartActivityForResult on back button

2009-07-14 Thread john
try setResult(RESULT_CANCELED); add if (resultCode==RESULT_OK) { . } in SporeAPI.onActivityResult On 7月15日, 上午5時46分, schwiz wrote: > ahh ok yeah it is showing an uncaught exception for not returning the > result along with more errors > > 07-14 21:42:54.501: INFO/ActivityManager(570): S

[android-developers] Re: matching prebuilt kernel sources

2009-07-14 Thread Tim Newsham
>    I have a recent "repo" copy of the platform tree and I noticed that > the kernel sources included in it are incomplete.  For example, the > arch/arm/mach-goldfish directory is not present, but devices from this > directory are present in the kernel that the emulator boots.  How can > I get a

[android-developers] How to kill background applications?

2009-07-14 Thread sychee
Hi, I am currently writing a program to kill processes that the users choose to end. From the logCat, I notice that a Signal 9 has been sent to the application but the process is still running. I am only able to kill my own process through the code below. I understand that the kernel only allow ki

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-14 Thread hanged_man
Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); //imageFilePath is a path to a file located on the sd card such "/sdcard/temp.jpg" intent.setDataAndType(Uri.fromFile(new File(imageFilePath)), "image/*"); startActivity(inte

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Dianne Hackborn
No, it will never be true. The VM doesn't manage processes at all. The system starts a process and runs a VM inside of it when it needs to run any components of an application. Unless you specify otherwise, all of your components run in the same VM, in the same process, sharing all of the same s

[android-developers] Re: How to run the program on the new SAMSUNG GALAXY under windows XP

2009-07-14 Thread dan raaka
what do you see ? have you enabled adb on the device in the settings ? -Dan On Fri, Jul 10, 2009 at 1:42 PM, da yang wrote: > > Hi > i got this new mobilephone this week in Germany, wanted to debug my > program on the device. but it doesn't work, "c:\> adb devices" lists > no device attached, t

[android-developers] logcat behavior

2009-07-14 Thread intbt
I have found that if I am trying to run Eclipse with the G1 connected (vis USB), logcat will only output info from programs running on the phone - not when I run code on the emulator. If I disconnect the phone and then run the emulator version, logcat provides the desired output. I also have now

[android-developers] Re: Wow. Why isn't the 1.5 emulator working...

2009-07-14 Thread Mark Murphy
dapaintballer331 wrote: > After weeks of trying to get my service to run on boot & an interval > via AlarmManager I finally found out the problem. Can anybody help me? > > If my workspace is for sdk 1.5, the service NEVER RUNS ONCE. > If my workspace is for sdk 1.0, USING THE 1.0 EMULATOR, NOT TH

[android-developers] Re: PhoneFactory.getDefaultPhone from apps other than PhoneApp

2009-07-14 Thread Naveen K
PhoneFactory methods are only for PhoneApp. For any other apps to access services provided by Phone App or RIL, they need to post intents to TelephonyManager. Any functionality not exposed by TelephonyManager through intents are private to the Phone App. On Jul 4, 4:54 am, Thomas Baumgartner wro

[android-developers] EditTextPreference: Cannot edit text

2009-07-14 Thread Naveen K
Hi, I am writing an app which extends PreferenceActivity. One of the elements of the PreferenceScreen is a EditTextPreference. I have overridden OnPreferenceChange and OnPreferenceTreeClick methods in my class. When I select my EditTextPreference Item, the EditText box pops up. I can do "OK" and

[android-developers] Wow. Why isn't the 1.5 emulator working...

2009-07-14 Thread dapaintballer331
After weeks of trying to get my service to run on boot & an interval via AlarmManager I finally found out the problem. Can anybody help me? If my workspace is for sdk 1.5, the service NEVER RUNS ONCE. If my workspace is for sdk 1.0, USING THE 1.0 EMULATOR, NOT THE 1.5 EMULATOR, it works perfectly

[android-developers] Re: How to make EditText wrap lines of text / word wrap

2009-07-14 Thread schwiz
i would think it should do it automatically if you have the width to wrap_content On Jul 14, 4:44 pm, SR wrote: > Hi, > > How do I make multiline EditText within a RelativeLayout wrap the > lines of text that were entered? > > I want the user to enter one line of text without allowing line > bre

[android-developers] Background of Home Screen widget

2009-07-14 Thread NDev
Is there any way I can change the background of my Home Screen widget dynamically? Thanks, Ndev --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-

[android-developers] Re: Looper.LoopOnce?

2009-07-14 Thread Micah
I'm assuming you are referring to Handler.removeMessages? Unfortunately, from my understanding that will simply wipe the messages out of the queue. Need something that will let me process the messages currently in the queue so I can go back to rendering the next frame. On Jul 14, 3:07 pm, Ward W

[android-developers] Re: Looper.LoopOnce?

2009-07-14 Thread Ward Willats
Messages themselves have a method to remove all messages with id X from the queue, I seem to recall. This may or may not be inconvenient for you though. -- Ward At 2:30 PM -0700 7/14/09, Micah wrote: >I have a thread that does all my rendering code for a game (including >animations). I want t

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
Yes. I had read that, and I understand that the VM tries to stratify processes depending on their function and keep my process alive as long as possible. What I'm really interested in is detecting when the the VM (re)-instantiated and garbage collects my Activity class, and how that relates to t

[android-developers] Re: URL commands when calling Youtube through Intent

2009-07-14 Thread Jonapin
Hi, as the intent to use application that works natively on youtube? thanks Jonathan On 12 jul, 09:59, dsurround wrote: > The standard Youtube URL commands (&loop, &rel, etc) do not seem to > work when calling Youtube via an INTENT from inside the android > application.  The videos play fine, Yo

[android-developers] Re: handeling StartActivityForResult on back button

2009-07-14 Thread schwiz
ahh ok yeah it is showing an uncaught exception for not returning the result along with more errors 07-14 21:42:54.501: INFO/ActivityManager(570): Starting activity: Intent { comp={net.schwiz.sporedemo/net.schwiz.sporedemo.ChangeNumber} (has extras) } 07-14 21:42:54.551: DEBUG/SporeAPI(713): onPa

[android-developers] How to make EditText wrap lines of text / word wrap

2009-07-14 Thread SR
Hi, How do I make multiline EditText within a RelativeLayout wrap the lines of text that were entered? I want the user to enter one line of text without allowing line breaks, but show it broken up by words into multiple lines inside a rather smallish, square EditText window. Thanks for any clue

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Mark Murphy
Kumaravel Kandasami wrote: > my intention: > >1. Create a database > android.database.sqlite.SQLiteOpenHelper.getWritableDatabase > > () >2. Create tables and inser

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Kumaravel Kandasami
my intention: 1. Create a database android.database.sqlite.SQLiteOpenHelper.getWritableDatabase () 2. Create tables and insert rows. android.database.sqlite.SQLiteDatab

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Ronghui Zhu
Got it. Thanks all for the replies. 2009/7/15 Dianne Hackborn > No you would do this for each activity. Again, I am suggesting to not use > Application, or if you do use it to make your own version that will work > with whatever code is running in its process. > > > On Tue, Jul 14, 2009 at 1:4

[android-developers] Looper.LoopOnce?

2009-07-14 Thread Micah
I have a thread that does all my rendering code for a game (including animations). I want to be able to communicate with that thread via Messages instead of locking / synchronization. This means that I need to both support a message queue and *also* support my own rendering loop. Normally I wou

[android-developers] Notification Manager Help

2009-07-14 Thread cvance383
Just trying to create a simple notification, but keep getting an illegalarguementexception "contentIntent required". Which is weird because I believe I am passing the content intent. Here is my code... { notification = new Notification(iconID, message, System.currentTimeMillis()

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Macarse
On Tue, Jul 14, 2009 at 6:17 PM, Mark Murphy wrote: > > Kumaravel Kandasami wrote: >>  How to drop a database in Android SDK? > > AFAIK, you don't drop a database. At most, you delete its file. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Waresc

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Mark Murphy
Kumaravel Kandasami wrote: > How to drop a database in Android SDK? AFAIK, you don't drop a database. At most, you delete its file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-

[android-developers] SQLite DROP Database

2009-07-14 Thread Kumaravel Kandasami
How to drop a database in Android SDK? Did not see any methods in android.database.sqlite.SQLiteOpenHelper or android.database.sqlite.SQLiteDatabase classes. Any suggestion is appreciated. Kumar_/|\_ www.saisk.com ku...@saisk.com "making a profound difference with knowledge and creativity.

[android-developers] video gallery

2009-07-14 Thread Christine
I let a user pick a video with the standard video gallery. But suppose I want to create my own video gallery, how do I get a thumbnail for the video from the Mediastore? For images there's a separate thumbnail thing, but I can't find a similar thing for videos, except for the mini_thumb_magic, fro

[android-developers] Re: handeling StartActivityForResult on back button

2009-07-14 Thread Dianne Hackborn
You said it was crashing. I'm not sure what you mean by crashing, because you didn't say a whole lot, but generally when an app crashes this is due to an uncaught exception and that exception will be found in the log. On Tue, Jul 14, 2009 at 1:41 PM, schwiz wrote: > > Im not sure what you mean

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Dianne Hackborn
No you would do this for each activity. Again, I am suggesting to not use Application, or if you do use it to make your own version that will work with whatever code is running in its process. On Tue, Jul 14, 2009 at 1:46 PM, Ronghui Zhu wrote: > Thanks. > > 2009/7/15 Dianne Hackborn > >> On T

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Ronghui Zhu
Thanks. 2009/7/15 Dianne Hackborn > On Tue, Jul 14, 2009 at 12:59 PM, magicpig wrote: > >> Can you provide the APIs to get the ActivityInfo? > > > > http://developer.android.com/reference/android/content/pm/PackageManager.html#getActivityInfo%28android.content.ComponentName,%20int%29 > > So, in

[android-developers] Re: handeling StartActivityForResult on back button

2009-07-14 Thread schwiz
Im not sure what you mean by the stack crawl when I press the button to load the new activity logcat says I 570 ActivityManager Starting activity:Intent {camp= {net.schwiz.sporedemo/net.schwiz.sporedemo.ChangeNumber} (has extras) } I 570 ActivitManager Displayed activity net.schwiz.sporedmeo/.Cha

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Dianne Hackborn
Yeah, the process lifetime, which is outlined here: http://developer.android.com/guide/topics/fundamentals.html#proclife On Tue, Jul 14, 2009 at 1:38 PM, Richard Schilling < richard.rootwirel...@gmail.com> wrote: > > Thanks Dianne. Very helpful indeed. > > For process lifetime, I don't think yo

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
Thanks Dianne. Very helpful indeed. For process lifetime, I don't think you're referring to the "entire lifetime" of an Activity as defined on the API reference page for Activity (http://developer.android.com/reference/android/app/ Activity.html): "The entire lifetime of an activity happens bet

[android-developers] html in button

2009-07-14 Thread jonathan
how do I use html in a Button? I tried the following, it's not working. XXYY --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Richard Schilling
If I'm understanding your intended application architecture correctly, it sounds like you want two things that are different but closely related: 1. you want a generic superclass for all of your activities. 2. you want to create and deploy more than one activity in your package to handle differen

[android-developers] Re: handeling StartActivityForResult on back button

2009-07-14 Thread Dianne Hackborn
What is the stack crawl on the log output? On Tue, Jul 14, 2009 at 1:07 PM, schwiz wrote: > > Ok so I am working on an app and I use startActivityForResult but > currently if you press the back button on the new activity it will > crash my app. In my new activity I have > >@Override >

[android-developers] Re: Android GUI testing

2009-07-14 Thread Dianne Hackborn
You can implement Instrumentation in a separate .apk; actually that is generally how you do it. As long as it is signed with the same certificate as the target .apk, when you run the instrumentation you will run the target app with your instrumentation loaded and running in it. I don't know of an

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Dianne Hackborn
Statics are statics -- they are global to the process. So their value will last for the lifetime of the process, which is usually much longer than an individual activity instance. On Tue, Jul 14, 2009 at 12:52 PM, Richard Schilling < richard.rootwirel...@gmail.com> wrote: > > I just ran into a s

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Dianne Hackborn
On Tue, Jul 14, 2009 at 12:59 PM, magicpig wrote: > Can you provide the APIs to get the ActivityInfo? http://developer.android.com/reference/android/content/pm/PackageManager.html#getActivityInfo%28android.content.ComponentName,%20int%29 > > really seems like a hack. Why not have a single Ap

[android-developers] Re: Multi-touch & My Touch Phone Questions

2009-07-14 Thread schwiz
I don't get it, multitouch does seem to work fine on hacked roms, and yes the new Hero phone released in europe does have full multitouch support. On Jul 14, 2:55 pm, Disconnect wrote: > On Mon, Jul 13, 2009 at 5:58 PM, Streets Of > > Boston wrote: > > > Some hackers have been able to enable mul

[android-developers] Re: Android GUI testing

2009-07-14 Thread AndroidAutoTest
By the way, can Instrumentation be used for black-box testing? I heard that Instrumentation is a service and part of an application. That means test code cannot be run on release mode. I would really appreciate if you post any link to show example for this. Thank you for your information. On Ju

[android-developers] Re: Mipmap Generation

2009-07-14 Thread Mike
Well I've come up with a solution, but I'd still like to hear from others if you have a better way of doing it. private int loadTexture(GL10 gl, Bitmap bmp) { int level = 0; int size = bmp.getHeight(); int[] textures = new int[1]; gl.glGenTextures(1, textures, 0);

[android-developers] handeling StartActivityForResult on back button

2009-07-14 Thread schwiz
Ok so I am working on an app and I use startActivityForResult but currently if you press the back button on the new activity it will crash my app. In my new activity I have @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated me

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
Thanks. On Jul 15, 3:34 am, Dianne Hackborn wrote: > You could retrieve the ActivityInfo for the current activity from the > package manager, and that will have the process it is running in.  But this Can you provide the APIs to get the ActivityInfo? > really seems like a hack.  Why not have a s

[android-developers] Re: Saving Dialog state - onStop not getting called?

2009-07-14 Thread Mark
I just double-checked this - if I call dismiss() on the Dialog, then onStop() is called. If I just change the orientation of the device, the dialog is still destroyed, but onStop() is not called. On Jul 14, 3:52 pm, Mark Wyszomierski wrote: > Hi, > > I'm saving the state of my activities for o

[android-developers] Re: Multi-touch & My Touch Phone Questions

2009-07-14 Thread Disconnect
On Mon, Jul 13, 2009 at 5:58 PM, Streets Of Boston wrote: > > Some hackers have been able to enable multi-touch on the G1. The > hardware is there, but because of legal issues, it has not been > enabled. The hardware is not there. Go read Luke's actual postings about it (the person who investigat

[android-developers] Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
I just ran into a situation where it looks like a static variable reference is persisted across activity sessions. I didn't expect that because I thought that when an activity exits, it's de-referenced and garbage collected. I am wondering if anyone can shed some (more) light on when the VM elim

[android-developers] Saving Dialog state - onStop not getting called?

2009-07-14 Thread Mark Wyszomierski
Hi, I'm saving the state of my activities for orientation change support, it works well. Sometimes I have a dialog open though and need to save its state as well. My dialog's onStop() method doesn't seem to get called when I change orientation. Where would get notified inside the Dialog that we'

[android-developers] Re: onTap display toast or message

2009-07-14 Thread skink
On Jul 14, 7:35 pm, Mark Murphy > > Just pass in the activity to your ItemizedOverlay's subclass' > constructor, and use it to create your Toast. > be careful though, since passing Activity context to Toast can in some situations be dangerous, see: http://groups.google.com/group/android-develo

[android-developers] Re: JNI_OnLoad (). Is it mandatory?

2009-07-14 Thread fadden
I'll add my usual pointer to dalvik/vm/jni-tips.html, in this case the "Native Libraries" section: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/jni-tips.html;hb=HEAD#Native_Libraries It says a few words about why having one is recommended, and has a link to the sec

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Dianne Hackborn
You could retrieve the ActivityInfo for the current activity from the package manager, and that will have the process it is running in. But this really seems like a hack. Why not have a single Application object, that allows others to register to receive the callbacks they are interested in? (An

[android-developers] setAdapter for ListView does not always work

2009-07-14 Thread MannyNS
Hello everyone, here is a simple example that drives me crazy. I have been debugging it for a few days now, with a limited success. If anyone can take a look, and tell me what I am doing wrong, I would be deliriously happy. I have got a TabActivity, and in onCreate I do this: LayoutInflater myI

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Dianne Hackborn
Don't do this in a static. Once the static is set, it will hold that value until your process is killed, and you have no way of knowing when that will be. On Tue, Jul 14, 2009 at 12:08 PM, Richard Schilling < richard.rootwirel...@gmail.com> wrote: > > Thanks everyone for your help. > > My bad.

[android-developers] Re: keeping screen on while activity active

2009-07-14 Thread Dianne Hackborn
You don't even need to clear it. This flag is associated with the window, and it will only keep the screen on while your window is displayed. I really can't explain the behavior you say you are seeing, if your window is not displayed this flag simply will not keep the screen on. On Tue, Jul 14,

[android-developers] Re: getDeviceId returns null

2009-07-14 Thread Al Sutton
I'm guessing you're running on the emulator in which case getting null is normal. Al. --- http://andappstore.com/ On Jul 14, 6:22 pm, MCON Dev wrote: > Hi, > I am running this piece of code > > myDevice = Globals.getInstance().getDevice(); >   this.deviceID = myDevice.getDeviceId() ; > with the

[android-developers] keeping screen on while activity active

2009-07-14 Thread Lex
Hi, I have a map activity for which I would like to have the screen turned on as long it's active (the app consists of one activity only). When the activity is paused or stopped I want to return to normal on/off mode. Keeping the screen on works fine while the app is running but when I exit the a

[android-developers] Re: Android BUG....

2009-07-14 Thread dotclick
This is EXACTLY the ridiculous type of response I'm talking about. If you would have actually read the post or taken the 2 seconds to click your own link and search "1583" you would have found that it was reported but has not been fixed. I like Google but this just just fell to a new low of stup

[android-developers] Re: Multi-touch & My Touch Phone Questions

2009-07-14 Thread dotclick
Multitouch has been used before Apple so I doubt their patent will survive. But I can understand why they might not want to get into a legal argument until its settled. On Jul 13, 4:58 pm, Streets Of Boston wrote: > Some hackers have been able to enable multi-touch on the G1. The > hardware is t

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
Thanks everyone for your help. My bad. I do register in the body of the program instead of in the manifest. So, scratch the part above about the manifest. I declare a static variable in the activity to keep track of whether or not the registration has already happened. Perhaps the receiver is

[android-developers] Re: Getting ESN number of a Phone

2009-07-14 Thread MCON Dev
Yusuf, Wont the following work ? globals.setDevice((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)); Globals { public void setDevice(TelephonyManager myDevice){this.myDevice = myDevice ;} public initialize(){ myDevice = Globals.getInstance().getDevice(); this.deviceID = myDevice.

[android-developers] Re: Some G1 phones getting "device not found" with adb...

2009-07-14 Thread Richard Schilling
Somehow I feel both relieved and scared at the same time knowing this is a possibility. :-) I wonder. My second phone started acting the same way last night. Richard On Jul 13, 7:24 pm, "nEx.Software" wrote: > This occasionally happens to me on both my G1 and my Ion. I think its > related t

[android-developers] Re: Cell Radio Info

2009-07-14 Thread Richard Schilling
I found good field test mode instructions at http://phoneftd.blogspot.com/2009/03/google-g1-phone-field-test.html Enter the Field Mode by typing (exactly) this into the Dailer app: *#*#7262626#*#* When the dialer sees the string it will start the field test application. I'm sure if you look at

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
On Tue, Jul 14, 2009 at 12:12 AM, magicpig wrote: Thanks Dianne for the quick reply. My two Application.java do some more things than having the statics: 1. own the ability to store current activity for use in all the activities in the same process. (In the former description, I

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-14 Thread Da Yang
OK. There is only one way to test my camera application. use any APK Installer install the apk, though it's not handy, it's the solution in the moment. But thank you for your answers. Maybe i want to write to SAMSUNG development group, and ask for a right adb if they do have one. On Tue, Jul 14, 2

[android-developers] Re: Test onUpgrade

2009-07-14 Thread Vyrak
I did that part. The problem I'm running into is trying to 'simulate' an application upgrade to test if my onUpgrade method works. However, it's still not being invoked when I try reinstalling the application to a new version. Is there a way to simulate an application upgrade without having to

[android-developers] Re: flag_fullscreen + windowNoTitle == button focus bug

2009-07-14 Thread Brady
Hi Dianne, thank you for your reply. I wonder if dynamically positioning the top buttons onscreen in the OnCreate would help this timing issue? For now I guess I lucked out because I don't use the IME in this screen, but thank you for pointing this out. I can see why this might be a problem consi

[android-developers] Re: Problem in running the android sky widget

2009-07-14 Thread n179911
On Tue, Jul 14, 2009 at 11:05 AM, Jeff Sharkey wrote: > > There have been previous threads about android.location.Geocoder not > entirely working in the SDK.  That app depends on responses from that > API, which is why it's not working. > > The geocoder works on actual devices, otherwise you could

[android-developers] Re: Problem in running the android sky widget

2009-07-14 Thread Jeff Sharkey
There have been previous threads about android.location.Geocoder not entirely working in the SDK. That app depends on responses from that API, which is why it's not working. The geocoder works on actual devices, otherwise you could hard-code values when debugging. j On Tue, Jul 14, 2009 at 5:

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
Thanks for the reply. I am trying hard to merge them together and the Application logic seems a little more than setting the globals, such performing differently on onLowMemory, onTerminate and onConfigurationChanged. So,is it possible to get the intent that starts the activity or the differen

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread magicpig
Thanks for the reply. I am trying hard to merge them together and the Application logic seems a little more than setting the globals, such performing differently on onLowMemory, onTerminate and onConfigurationChanged. So,is it possible to get the intent that starts the activity or the differen

[android-developers] Re: onTap display toast or message

2009-07-14 Thread Mark Murphy
alexdonnini wrote: > Thanks. What I meant is that I thought that in your example, > SitesOverlay is an inner class of the map activity "NooYawk". In my > case, the custom itemized overlay class is not an inner class of the > map activity. This means that an entry like NooYawk.this will not > work.

  1   2   >