[android-developers] How to get source code out of a .apk file

2009-05-26 Thread narendrasingh.bi...@gmail.com
Hi Guys, Is there a way to get source code out of a .apk file in android? --~--~-~--~~~---~--~~ 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] How to find out if device is in sleep mode?

2009-05-26 Thread JP
I am sure it is buried in the SDK somewhere... but I couldn't find it. This is relevant to a service running in the background: How can I find out if the device is in sleep mode? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: EMMA Code coverage and JUnit

2009-05-26 Thread Deeps
Felipe, Atlast i am half way through in getting the coverage file. But..I dont see any required output in that file. I created a sdcard. Then i run my Instrumentation with the following command, # am instrument -e coverage true -w com.app.exam.tests/ android.test.InstrumentationTestRunner

[android-developers] drawable out of memory (urgent)

2009-05-26 Thread arnouf
Hi all, I'm trying to load 4Mb of png in a parcelable arraylist. When more than 1mb is loaded in my list I take an outofmemory exception. Is there a size limit for an arraylist, for. Drawable loaded in memory, or another. Thanks a lot for your answers.

[android-developers] Embedding custom text renderign

2009-05-26 Thread amit mishra
Hi All, I have a text rendering engine that uses bitmap/ TTF fonts and can render the unicode strings(Including Indian Languages). I want to integrate my rendering engine(Rasterizer) so that the android UI components uses my rendering engine instead of default for drawing text. How can i

[android-developers] Re: finding content providers

2009-05-26 Thread Sujay Krishna Suresh
i think u shd read this first... Querying a Content Provider You need three pieces of information to query a content provider: The URI that identifies the provider The names of the data fields you want to receive The data types for those fields this is frm

[android-developers] Re: Find whether any audio is currently playing

2009-05-26 Thread iDeveloper
Thanks a lot for the answers. I like the idea of a singleton class the best. Thanks again. On 23-May-09, at 12:58 PM, Doug wrote: Well, seems like you have a couple of issues. 1) Re-instantiation of your activity that contains the player... if you're going to put the mediaplayer in an

[android-developers] Re: Embedding custom text renderign

2009-05-26 Thread Dianne Hackborn
Not in the SDK -- you'd need to do all of your own drawing for TextView (which is basically the thing that draws text wherever there is a widget) wherever you use it. On Mon, May 25, 2009 at 11:39 PM, amit mishra amitmishr...@gmail.comwrote: Hi All, I have a text rendering engine that uses

[android-developers] finding content providers

2009-05-26 Thread Jason Proctor
sigh. if you don't understand the question, please leave it for someone else to answer. thanks. i think u shd read this first... Querying a Content Provider You need three pieces of information to query a content provider: The URI that identifies the provider The names of the data fields

[android-developers] How to realize cascading delete in sqlite?

2009-05-26 Thread quill
Hi guys, Can cascading delete be realized in sqlite? If can, how to realize it? Thanks! --~--~-~--~~~---~--~~ 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: finding content providers

2009-05-26 Thread Dianne Hackborn
This might be what you want: http://developer.android.com/reference/android/content/pm/PackageManager.html#queryContentProviders(java.lang.String,%20int,%20int) (Just noticed the stupid typo in the doc -- patching == matching. :p) On Mon, May 25, 2009 at 11:50 PM, Jason Proctor

[android-developers] Re: How to realize cascading delete in sqlite?

2009-05-26 Thread Matt Williams
AFAIK although you can set foreign key constraints in SQLite, they don't actually work. This is not an android issue, but an unimplemented feature of SQLite. On May 26, 8:07 am, quill quill...@163.com wrote: Hi guys, Can cascading delete be realized in sqlite? If can, how to realize it?

[android-developers] Can't intercept the OnTouch event of PopupWindow

2009-05-26 Thread Johnny Lee
Hi all, I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip: public class Demo extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Re: Embedding custom text renderign

2009-05-26 Thread amit mishra
Hi Dianne Thanks a lot for the quick reply. You mean to say that I have to extend the TextView class and override the OnDraw method. right? Doing this, i'll loose the actual look and feel of android widgets, which i don't want. As I know, Android can recognize the TTF fonts. I have supplied

[android-developers] finding content providers

2009-05-26 Thread Jason Proctor
that's it -- thanks! This might be what you want:

[android-developers] calloc probelm in Dalvik

2009-05-26 Thread profect
Hi all, I am learning Dalvik by debugging the code. I found some calloc invocations in allocateAuxStructures() function return NULL. I cound't trace into the calloc function, so I don't know if memory really runs out or due to other reasons. The following is my building environment:

[android-developers] Re: Can't intercept the OnTouch event of PopupWindow

2009-05-26 Thread Johnny Lee
Found the problem. After looking at the source code of PopupWindow, I found the TouchInteceptor will only be called if the background drawable is not null. Here is the snip: private void preparePopup(WindowManager.LayoutParams p) { if (mBackground != null) { //...

[android-developers] Gathering Usage Data - Any ideas welcome!

2009-05-26 Thread Gavin Aiken
Hi all, I'm currently working on a demo project and I'm about to try it out with some users. I'd like to automatically record the way they use the application, their navigation route, times spent in each section and duration using the application in general etc. I was wondering if there are any

[android-developers] Re: How to let Android create my activity within the process which the launcher activity lies in?

2009-05-26 Thread Oceanedge
Sorry, there are three separate applications. One is my Photo Editor application. The other two applications are the launcher applications, they emit android.intent.action.EDIT intent to launch my Photo Editor application. The Photo Editor application contains my photo editor activity which

[android-developers] Re: How to let Android create my activity within the process which the launcher activity lies in?

2009-05-26 Thread Oceanedge
Thanks, but I think singleton is a general pattern used generally. Why should we stop using it in Android? :( On May 26, 12:12 pm, Romain Guy romain...@google.com wrote: Hi, You cannot do this, if only for security reasons. Running arbitrary code in the Home process would be very bad :)

[android-developers] image not appearing in the sd card

2009-05-26 Thread Sukitha Udugamasooriya
Hi all, Sorry if this is a re-post. I tried to find the solution here but failed. I made a small app which downloads an image(jpg) and saves it on the sd card. It works fine. I could pull the image down in to my computer and could see it. But i couldnt see it in the emulator. (not appearing in

[android-developers] Re: How to let Android create my activity within the process which the launcher activity lies in?

2009-05-26 Thread Romain Guy
The singleton is a perfectly valid pattern with Android, but if you need to use two instances of your singleton, then the problem is that you are using a singleton in the first place. On Tue, May 26, 2009 at 12:58 AM, Oceanedge newsforhar...@gmail.com wrote: Thanks, but I think singleton is a

[android-developers] Sending sms via intents launches only the compose window

2009-05-26 Thread Vignesh
hi, I am trying to send an sms by using android native messaging application as follows Uri smsToUri = Uri.parse(smsto://5556); Intent i = new Intent(Intent.ACTION_SENDTO, smsToUri); i.putExtra(sms_body, This must get sent);

[android-developers] Re: Intent to handle files opened in browser ending .droid.txt

2009-05-26 Thread Alec
Hi, Here's what i ended up using hopefully it will help you. This intent only matches on the file name, not on the mimetype. Let me know how you got on. intent-filter action android:name=android.intent.action.VIEW/action

[android-developers] Re: Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-05-26 Thread Lex
The built-in map application (and browser) work fine, and as I said before, firewall is fine - at least as much as I can see. I have exactly the same code running on a different machine (Vista) and it works just fine! On May 26, 2:11 am, Mark Murphy mmur...@commonsware.com wrote: Lex wrote: I

[android-developers] Re: How to get the KeguardScreenCallback object in my own Activity

2009-05-26 Thread andrew
I have looked into the source code,and found that the class of KeyguardScreenCallback is a interface. And the inferface only be implemented in LockPatternKeyguardView.there has a instance of LockPatternKeyguardView and only gived the default access popedom,so I have no way to get the object that

[android-developers] Re: Hide the virtual keyboard

2009-05-26 Thread AusR
Hi, I'm trying to close the soft keyboard once a search button is clicked with: // close soft keyboard InputMethodManager inputManager = (InputMethodManager) ShowSearchQuery.this.getSystemService(Context.INPUT_METHOD_SERVICE);

[android-developers] Re: Hide the virtual keyboard

2009-05-26 Thread AusR
Ah it worked with HIDE_NOT_ALWAYS ! On May 26, 9:53 am, AusR austinjr...@gmail.com wrote: Hi, I'm trying to close the soft keyboard once a search button is clicked with: // close soft keyboard InputMethodManager inputManager = (InputMethodManager)

[android-developers] OpenGL - glLineWidthx, glLineWidth bug

2009-05-26 Thread Alistair.
Can anyone confirm that the OpenGL methods glLineWidthx, glLineWidth do not work. That is, setting these to anything about 1 has no effect when running on the phone. They appear to work on the emulator okay but not the phone. Al. --~--~-~--~~~---~--~~ You

[android-developers] Building android core for custom hardware

2009-05-26 Thread Sushrut Bidwai
Hi, I will be soon working on porting Android OS to some custom hardware. Has any one in the group done this before? If yes, what are typical guidelines, roadblocks to watch out for? Thanks in advance. Best Regards, Sushrut http://androidcompetencycenter.com/

[android-developers] Re: Animated Sprites For Games

2009-05-26 Thread Alekh
Hi Robert, Thanks for the quick reply. I understand the way it is done in other java games. But given an AnimationDrawable class to show animated drawables, I wanted to know how to use that class to render frames on a canvas. If that is possible, then it will reduce the number of lines of code.

[android-developers] Differentia bussiness contacts and personnel contacts

2009-05-26 Thread Kamal Hasan
Hi , Can anyone tell me how to differentiate Business Contacts and Personnel Contacts ? I am able to access contacts(using Content_URI) but , not able to get all details of a contact. I want to join the cursors to get one record per person / contact.Please help me joining the cursors. Thanks

[android-developers] Re: Building android core for custom hardware

2009-05-26 Thread Mark Murphy
Sushrut Bidwai wrote: Hi, I will be soon working on porting Android OS to some custom hardware. Has any one in the group done this before? If yes, what are typical guidelines, roadblocks to watch out for? Guideline #1: Ask questions about Android porting on a list that pertains to Android

[android-developers] Re: How to find out if device is in sleep mode?

2009-05-26 Thread Mark Murphy
JP wrote: I am sure it is buried in the SDK somewhere... but I couldn't find it. This is relevant to a service running in the background: How can I find out if the device is in sleep mode? If your code is in position to ask the question, you're not in sleep mode... ;-) -- Mark Murphy (a

[android-developers] Re: How to get source code out of a .apk file

2009-05-26 Thread Mark Murphy
narendrasingh.bi...@gmail.com wrote: Hi Guys, Is there a way to get source code out of a .apk file in android? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year

[android-developers] Put WebView and EditText together

2009-05-26 Thread Tony Wu
While I put the WebView and EditText in the same page, I encounter a problem. The EditText will hold the focus and I can't input word into WebView, so that I can't do login or search in the WebView. If I take off EditText, the WebView can be edit again and I can do login and search. Do anyone

[android-developers] Re: calloc probelm in Dalvik

2009-05-26 Thread David Turner
It looks like you're building the simulator build. In this case, your host C library will be used, so whatever calloc() returns really depends on it. Do you know what sizes the program is trying to allocate? I assume you can add a simple trace in case of failure. Hope this helps On Tue, May 26,

[android-developers] Android Rasterizer Class

2009-05-26 Thread Amit
Hi All, I would like to understand the use of Rasterizer class provided in Android. Any code example will be a great help. Is it possible to extend the Rasterizer, and tell it to use custom rendering logic for text than the default one? Regards Amit

[android-developers] Re: image not appearing in the sd card

2009-05-26 Thread Saurav Mukherjee
make sure that the emulator is loaded with the sdcard emulator -sdcard name of the card On Tue, May 26, 2009 at 1:31 PM, Sukitha Udugamasooriya suk...@gmail.comwrote: Hi all, Sorry if this is a re-post. I tried to find the solution here but failed. I made a small app which downloads an

[android-developers] Re: image not appearing in the sd card

2009-05-26 Thread Sukitha Udugamasooriya
Yes. It s loaded. I pushed few images from my computer to the emulator using the command line. I could watch those from the gallery. In the previous case It downloads images (they are not visible in the gallery but I could pull them from the command line).

[android-developers] Issue with VideoView for different resolution streams

2009-05-26 Thread vrukesh
Hi, We are playing MP4 files on ARM-based target with VGA display (640 x 480). Playback is done for following resolutions using the sample applications Music+Camera: 1. stream res.: 640 x 480 Observation: Plays as 640 x 480 2. stream res.: 400 x 240 Observation: Plays as 640 x 384 3. stream

[android-developers] disabling scrolbar in ListView

2009-05-26 Thread joby
Hi all, anybody can tell me how to disable or remove the scrollbar property of a ListView. I created a ListView like 1) ListView listview = new listView(context); and i add an adapter in to the list 2) listview .setAdapter(listAdapter);

[android-developers] Re: Can't change MediaPlayer data source

2009-05-26 Thread Moons
So what you say is that's it's impossible to have a FileDescriptor pointing to my raw sound ... But when you call MediaPlayer.create() it does kinda localize the sound in the APK. I'm sure there must be a way to load a sound located in the APK :) On 26 mai, 02:28, Marco Nelissen

[android-developers] Re: ant and eclipse builds don't play nice

2009-05-26 Thread Zero
from my experience, eclipse never used the build.xml for it's internal builds - how did you do that ? you can omit the android_rules file if you paste the needed targets into your build file (or if you had them working in an older version) then afaik just a few additions are needed (see below)

[android-developers] How to get ID from created Drawable?

2009-05-26 Thread guruk
Hi, I created a new Drawable with: Drawable dx = resources.getDrawable(R.drawable.mydaysminipic_ov); dx.setColorFilter(0xff00ff00, Mode.SRC_ATOP); and for: updateViews.setImageViewResource(predefinedDraw, -- ID from dx); I need the ID from it... but how to get? Or any other Idea how to

[android-developers] Re: Widget bug, is there a work around?

2009-05-26 Thread AndroidApp
Bump, anyone? On May 22, 9:28 pm, zl25drexel zl25dre...@gmail.com wrote: Dear google guys, the widget framework (or the Home app) has a pretty bad bug: - install ApiDemo - long press screen/widget/ApiDemo - *CHANGE ORIENTATION* - then without changing orientation back, click ok to create

[android-developers] Progress bar update help

2009-05-26 Thread Sukitha Udugamasooriya
Hi, I m implementing a small app which downloads files (avg 1MB files- takes 5 seconds to download). -- I want to show the progress using a ProgressBar. --The user can pause the download if he desires. How can I show the progress? (How can I know the amount that has downloaded at a given

[android-developers] Re: How to get ID from created Drawable?

2009-05-26 Thread guruk
or maybe you know how to transform a Drawable into a Bitmap so I could use: updateViews.setImageViewBitmap(viewId, bitmap) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] blocking click and focus on layout and on all children

2009-05-26 Thread daniel.benedykt
Hi I was wondering if its possible to block the onclick events on a layout and all the children inside the layout. for example, I have a LinearLayout and inside that I have buttons and an editText. At a certain point I don't want the user to click on the buttons or edit the text. Is there a way

[android-developers] Re: blocking click and focus on layout and on all children

2009-05-26 Thread Sujay Krishna Suresh
setclickable(false) shd help u i guess... On Tue, May 26, 2009 at 5:54 PM, daniel.benedykt daniel.bened...@gmail.comwrote: Hi I was wondering if its possible to block the onclick events on a layout and all the children inside the layout. for example, I have a LinearLayout and inside that

[android-developers] Re: Progress bar update help

2009-05-26 Thread MrChaz
You can ask a URLConnection for the content length and then read from the content stream in chunks. You can display your progress by setting the max to the content length and then incrementing the progress by your read chunk size. On May 26, 1:21 pm, Sukitha Udugamasooriya suk...@gmail.com

[android-developers] Re: How to find out if device is in sleep mode?

2009-05-26 Thread JP
Well nomenclature... Here's the scenario: I've got an app that implements the relevant data processing and backend server connectivity through a Service that I keep running on a reduced (sleep) activity level when the user puts the device to sleep (using end button) or when the screen timeout

[android-developers] detecting idle, off hook and ringing

2009-05-26 Thread PI9
As Bnet above, i'm trying to write a program whichs detects the different states of the phone and mke a different noise in each case. There is a problem that i really don't understand! Please someone can take a look at it and try to explain to ma what's wrong ? public class testsonqdappel

[android-developers] Create Bitmap from BitmapDrawable?

2009-05-26 Thread guruk
Hi, how can i convert a BitmapDrawable into a Bitmap (hopefully it keeps the Alphachannel from the BitmapDrawable) thanks Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: detecting idle, off hook and ringing

2009-05-26 Thread Mark Murphy
As Bnet above, i'm trying to write a program whichs detects the different states of the phone and mke a different noise in each case. There is a problem that i really don't understand! Please someone can take a look at it and try to explain to ma what's wrong ? 1. You have created a

[android-developers] Re: Widget bug, is there a work around?

2009-05-26 Thread Tom Gibara
I don't have a workaround, but I can confirm that the widget I'm developing exhibits the same problem; it seems to get added to the AppWidgetHost, continues to receive updates, but is never displayed to the user. Tom. 2009/5/26 AndroidApp zl25dre...@gmail.com Bump, anyone? On May 22, 9:28

[android-developers] how do i kill an android application

2009-05-26 Thread Saurav Mukherjee
how do i kill an android application --~--~-~--~~~---~--~~ 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,

[android-developers] Re: Create Bitmap from BitmapDrawable?

2009-05-26 Thread Tom Gibara
Doesn't BitmapDrawable.getBitmap() do what you need? Tom. 2009/5/26 guruk ilovesi...@gmail.com Hi, how can i convert a BitmapDrawable into a Bitmap (hopefully it keeps the Alphachannel from the BitmapDrawable) thanks Chris --~--~-~--~~~---~--~~ You

[android-developers] Re: A $400.00 learning experience...

2009-05-26 Thread Tom Opgenorth
Actually, you can activate the device without a SIM card. I documented what I did, perhaps it will be of value to you: http://www.opgenorth.net/getting-starting-with-my-adp1.aspx. On Sun, May 24, 2009 at 00:52, Kent Loobey k...@uoregon.edu wrote: Because I wanted to develop an android

[android-developers] Surface flinger - overlay

2009-05-26 Thread Arun
Hi, I am implementing a custom MIO which makes use of Overlay interface in ISurface.cpp. In android_surface_output.cpp file we changed the initCheck function to call the createoverlay interface mSurface-createOverlay(displayWidth, displayHeight,videoFormat); but the function returns NULL.

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Marco Nelissen
On Tue, May 26, 2009 at 6:56 AM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: how do i kill an android application Why would you want to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] problems importing existing project into eclipse

2009-05-26 Thread schwiz
I used fileimportgeneralexisting projects into workspace I am trying to run the widget example from the dev blog but when I import the project I get an error Description ResourcePathLocationType Syntax error, annotations are only available if source level is 1.5

[android-developers] Re: Can't change MediaPlayer data source

2009-05-26 Thread Marco Nelissen
On Tue, May 26, 2009 at 4:40 AM, Moons moone...@gmail.com wrote: So what you say is that's it's impossible to have a FileDescriptor pointing to my raw sound ... Well, yes and no. Read again what I said. But when you call MediaPlayer.create() it does kinda localize the sound in the APK.

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Sujay Krishna Suresh
Say i wanna do something like java's System.exit(0)... jus to make sure that my application is not running anymore... I wanna kill my own app... not other apps... this should be possible... On Tue, May 26, 2009 at 7:38 PM, Marco Nelissen marc...@android.com wrote: On Tue, May 26, 2009 at 6:56

[android-developers] Clone a JSONArray

2009-05-26 Thread AusR
What's the most efficient way to clone a JSONArray? --~--~-~--~~~---~--~~ 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: A $400.00 learning experience...

2009-05-26 Thread havexz
I like the trick:-) On May 26, 9:08 am, Tom Opgenorth opgeno...@gmail.com wrote: Actually, you can activate the device without a SIM card.  I documented what I did, perhaps it will be of value to you:http://www.opgenorth.net/getting-starting-with-my-adp1.aspx. On Sun, May 24, 2009 at

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Mariano Kamp
In short: Don't worry. A bit longer: Android manages the apps' states. The user keeps on doing things, launching tasks, firing intents etc. and when Android OS doesn't have enough memory left it kills of apps that are in memory, but don't seem that important anymore, e.g. because the UI is not

[android-developers] Re: Clone a JSONArray

2009-05-26 Thread Mariano Kamp
Stringcopy? On Tue, May 26, 2009 at 4:19 PM, AusR austinjr...@gmail.com wrote: What's the most efficient way to clone a JSONArray? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Create Bitmap from BitmapDrawable?

2009-05-26 Thread guruk
:) Hi Tom, indeed, look good, but it looks it does not include my manipulations I did on the Drawable Bitmap BitmapOrg = BitmapFactory.decodeResource (resources,R.drawable.mydaysminipic_td);//its a green icon on a transparent background BitmapDrawable bmd = new

[android-developers] Video Recording help

2009-05-26 Thread Hamy
Hi all, I am having some trouble getting video to record. Every time I call prepare(), I get a IOException with an error message prepare failed. Any help would be great. thanks, Hamy public class Test extends Activity { /** Called when the activity is first created. */

[android-developers] bindService() from multiple activities

2009-05-26 Thread Al
Hi all, I have a quick query about bindService(). My main activity first starts and binds to the service. Other activities are then launched from the main activity. The child activities all bind to the same service, but it seems my service's onBind() is only called once. The application runs

[android-developers] finishing subactivity after some perticular time

2009-05-26 Thread Asif k
Hi all, I had opened an image file store in the sdcard using startActivity (intent) API. By doing this, image has opened and will remain open til manually coming back to parent activity by pressing back button. but I want it to be opened only for some perticular time after that it should

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Sujay Krishna Suresh
hmm so wats the no of apps that are shown??? i get varyin no based on the currently runnin apps... not basd on recently used apps... On Tue, May 26, 2009 at 8:48 PM, Urs Grob grob@gmail.com wrote: Longpress in home only shows the last accessed apps, not the currently running apps. -- Urs

[android-developers] Re: Porting 1.0 to 1.5, getSystemService(SENSOR_SERVICE)

2009-05-26 Thread Abdul Mateen
How and when this issue will be solved. It seems that we are stuck and can not use Sensor API under emulator, I am sure it will be working fine under the real phone. Well! If anyone of you know the workaround for this problem please share it with me also. On Thu, Apr 30, 2009 at 6:30 PM, JP

[android-developers] Re: how do i kill an android application

2009-05-26 Thread blindfold
Yes, you can use System.exit(0) in your own app. I applied this myself for some time when I could not track down a bug in my app that ate memory by creating new threads without killing old ones upon app restart, and System.exit(0) then provided a temporary workaround to start fresh until I later

[android-developers] help with onChildClickListener!!

2009-05-26 Thread Mike Lanin
Hi androids and people! I want to use ExpandedList in my app, and I need for catching clicks on child buttons. I'm trying use the code, written below, but it does nothing! Please, help me to slove this problem! this.list = (ExpandableListView) this.findViewById(android.R.id.list);

[android-developers] Re: detecting idle, off hook and ringing

2009-05-26 Thread Mark Murphy
I add : @Override public void onResume() { super.onResume(); telephone.listen (psl, android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE); } @Override public void onDestroy() { telephone.listen (psl,

[android-developers] Re: how do i kill an android application

2009-05-26 Thread blindfold
AFAIK, Process.killProcess(Process.myPid()) is equivalent to System.exit(0) in Android, but I stand corrected. On May 26, 4:41 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: thanks but if thats the case, why does the sdk provide Process.killProcess(Process.myPid())??? wat does

[android-developers] Re: how to show big images with full resolution

2009-05-26 Thread orux
Hello, Robert, But I haven't found how to do that. I can create an empty BitmapDrawable(), then setBounds(Rect bounds), but How can I load the image after that, inside this bounds? Anyway, I think that setting Bounds do not limit what fragment from the original image will be load in memory,

[android-developers] onKeyDown doesn't capture event

2009-05-26 Thread Bullo#88
Hi, I have a proble with onKeyDown: my activity consists in a simple textView (as header) and a ListView below it, I need to go back to the previous screen when the user presses the back button. Thus, I implemented the onKeyDown method. Everything works fine if the list contains some elements,

[android-developers] ImageMatrix has no effect when ImageView is in matrix scaling mode

2009-05-26 Thread Max Salley
I have an extension to ImageView that I would like to draw by manually altering the ImageMatrix. When I set the View's scaling type to matrix however, changing the matrix has no effect on the image. If I put it into a different mode, say center, changing the matrix does change the display, but

[android-developers] Re: onKeyDown doesn't capture event

2009-05-26 Thread Mark Murphy
I have a proble with onKeyDown: my activity consists in a simple textView (as header) and a ListView below it, I need to go back to the previous screen when the user presses the back button. That should happen automatically, without implementing onKeyDown(). Thus, I implemented the

[android-developers] Re: Widget bug, is there a work around?

2009-05-26 Thread Tom Gibara
How does this address the OP's issue? The invisible widget will still continue to receive updates and consume resources. Tom. 2009/5/26 AndroidApp zl25dre...@gmail.com This is what I am doing, it doesnt fix the problem but it mitigates it: Dont bother having a configure activity, remove

[android-developers] Re: Create Bitmap from BitmapDrawable?

2009-05-26 Thread Tom Gibara
The ColorFilter you apply to a BitmapDrawable isn't applied directly to the Bitmap, it's applied to the Paint used to render the Bitmap. To get an equivalent Bitmap: * Create a new Bitmap of the same width, height and Config * Create a Canvas over the new Bitmap * Call

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Sujay Krishna Suresh
i tried that out... ddms says that the process died... but when i long press the home button to see the running apps, i see mine as well... then y does ddms say that the process was killed??? Is it a bug that a dead process still gets displayed along with other running apps??? can any one temme y

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Sujay Krishna Suresh
thanks but if thats the case, why does the sdk provide Process.killProcess(Process.myPid())??? wat does android actually do when i call this method as above??? On Tue, May 26, 2009 at 7:51 PM, Mariano Kamp mariano.k...@gmail.comwrote: In short: Don't worry. A bit longer: Android manages

[android-developers] Re: ScrollView Dynamically Adding Text to TextView...

2009-05-26 Thread Derek Henderson
Does anyone have an idea of what I may be doing wrong? --~--~-~--~~~---~--~~ 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: how do i kill an android application

2009-05-26 Thread Urs Grob
Longpress in home only shows the last accessed apps, not the currently running apps. -- Urs On Tue, May 26, 2009 at 5:13 PM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: i tried that out... ddms says that the process died... but when i long press the home button to see the running

[android-developers] Triangle strip problems

2009-05-26 Thread Sundog
Hello, I'm having trouble with something that should be straightforward and was hoping someone who has been down this road could help. I'm simply drawing a 32 by 32 (float) vertex (3d but flat for testing) square surface by drawing it as 31 linked triangle strips. I'm linking them by four

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Mariano Kamp
I never saw a need for that and don't know what would happen. Try it out. My guess would be, that you can kill the processes launched by your user id. On Tue, May 26, 2009 at 4:41 PM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: thanks but if thats the case, why does the sdk

[android-developers] Re: how do i kill an android application

2009-05-26 Thread Mariano Kamp
You see the tasks of the most recent activities. If you select one and the attached app and process is still running it will be brought in the foreground, if not it will be started first and then brought into the foreground. That's what I meant with Don't worry about it. Android OS manages that.

[android-developers] Re: Widget bug, is there a work around?

2009-05-26 Thread AndroidApp
This is what I am doing, it doesnt fix the problem but it mitigates it: Dont bother having a configure activity, remove that from the widget xml config file. This always add the widget to the screen without configuring it. Then onUpdate in your widget, start a service to perform update, in your

[android-developers] Re: problems importing existing project into eclipse

2009-05-26 Thread schwiz
Has nobody else come across this problem? no ideas? On May 26, 9:15 am, schwiz sch...@gmail.com wrote: I used fileimportgeneralexisting projects into workspace I am trying to run the widget example from the dev blog but when I import the project I get an error Description     Resource      

[android-developers] Re: Progress bar update help

2009-05-26 Thread Keith Wiley
Would your suggestion actually work? I'm not convinced it's that simple. You still wouldn't see the progress bar appear on the screen, much less update smoothly on demand, because you would be constantly tying up the UI thread. I think you need to create the progress bar on the main UI thread,

[android-developers] Re: detecting idle, off hook and ringing

2009-05-26 Thread PI9
I add : @Override public void onResume() { super.onResume(); telephone.listen (psl, android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE); } @Override public void onDestroy() { telephone.listen (psl,

[android-developers] Re: How to realize cascading delete in sqlite?

2009-05-26 Thread Marco Nelissen
I've never used cascading deletes myself, but I have used triggers, and they work. On Tue, May 26, 2009 at 12:07 AM, quill quill...@163.com wrote: Hi guys, Can cascading delete be realized in sqlite? If can, how to realize it? Thanks!

[android-developers] Drawable cannot draw into Canvas

2009-05-26 Thread Jay
I want to load an icon from resource and draw over it. But I cannot get it into a canvas. Can anyone please help me with the code below. If I uncomment c.drawColor(), I get blue color as expected. So the problem is on icon.draw(). Drawable icon =

[android-developers] Re: Create Bitmap from BitmapDrawable?

2009-05-26 Thread guruk
Hi Tom, thanks for your help do you mean something like that: (till now i did not worked) Bitmap ob = BitmapFactory.decodeResource (resources,R.drawable.mydaysminipic_td); Bitmap obm = Bitmap.createScaledBitmap(ob, 18, 18,false);

[android-developers] Re: Vertical and Horizontal scroller for EditText

2009-05-26 Thread karthikr
Guys, Can someone help me as to how I can add a scroll bar (horizontal and vertical) to an edit text? Please help me out, I need to do it through java code and not through xml Regards, R.Karthik On May 25, 9:35 pm, karthikr karthik.scintill...@gmail.com wrote: Hi Guys, Can someone heklp

[android-developers] Re: problems importing existing project into eclipse

2009-05-26 Thread Sundog
Did you try right clicking on the project in the Project Explorer and selecting Android Tools/Fix Project Properties? On May 26, 9:43 am, schwiz sch...@gmail.com wrote: Has nobody else come across this problem?  no ideas? On May 26, 9:15 am, schwiz sch...@gmail.com wrote: I used

  1   2   3   >