[android-developers] my question...

2008-11-17 Thread Yorgen Valune
Hi, I'm looking for a code that can replace the following code since its no more existing: /** This function actually handles the KeyStroke-Injection. */ private void doInjectKeyEvent(KeyEvent kEvent) {   try {    /* Inject the KeyEvent to the Window-Manager. */

[android-developers] Re: my question...

2008-11-17 Thread hackbod
http://code.google.com/android/reference/android/app/Instrumentation.html#sendKeySync(android.view.KeyEvent) On Nov 17, 12:44 am, Yorgen Valune [EMAIL PROTECTED] wrote: Hi, I'm looking for a code that can replace the following code since its no more existing: /** This function

[android-developers] Re: Deployment of native C library

2008-11-17 Thread hackbod
Sorry, currently native code is not supported in the SDK. On Nov 16, 8:05 pm, adlaiti [EMAIL PROTECTED] wrote: I have a Java application that uses JNI to call a native C library (.so). This application works fine with an older version of the SDK and emulator. The library was copied to

[android-developers] Re: The difference between Runtime.getRuntime().freeMemory(); and ActivityManager.MemoryInf.availMem

2008-11-17 Thread hackbod
The first is about the the VM in the local process, the second is a rough measure of the memory situation in the overall system: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#freeMemory()

[android-developers] Re: Adding new menu items to the Browser

2008-11-17 Thread hackbod
Correct, I don't believe the browser currently supports this kind of thing. On Nov 15, 1:34 pm, dalelane [EMAIL PROTECTED] wrote: RE: Adding yourself to menus on other applications (http:// code.google.com/android/kb/commontasks.html#addmenuitems) I've tried to add a new Activity that can be

[android-developers] Re: Network downloads in realworld uses

2008-11-17 Thread Josh Guilfoyle
I suggest that you examine the code for DownloadProvider from the Android source tree. It properly handles just about every type of possible event the phone could encounter. That said, in my experience EDGE and 3G can switch transparent to the application, however you will see a somewhat

[android-developers] Re: Replacing standard default applications

2008-11-17 Thread hackbod
Sorry, if your issue is the user being able to decide between your application and another, then yes the current system design is very much around the idea is in control of the applications, not the other way around. Note that the use -can- specify when making that selection that the application

[android-developers] Re: Problem accessing r.drawable.somestuff

2008-11-17 Thread Fräntz Miccoli
Good ! I've seen it. I'll test it this evening and give you feed back. Thank you. Fräntz Miccoli On 17 nov, 02:13, Cool Frood [EMAIL PROTECTED] wrote: Fräntz, Make sure that you're not importing android.R into your .java file.  I had the same problem once.  If you import android.R, your

[android-developers] How to access native functions in standard library?

2008-11-17 Thread Urakagi
Hi, I have a G1, and downloaded the Android source code. When I open, say, android.hardware.Camera.java, it uses native functions without calling loadLibrary(). Of course if I do the same in my application, UnsatisfiedLinkError will come. I tried to load libandroid_runtime.so, but the device just

[android-developers] Re: How to use buildin email intent

2008-11-17 Thread Matthias
I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this

[android-developers] Re: Deployment of native C library

2008-11-17 Thread Anonymous Anonymous
tried adb remount ? This also will not work? oops that will be sad :(,coz i also have one to go not yet ready :D On Mon, Nov 17, 2008 at 2:38 PM, hackbod [EMAIL PROTECTED] wrote: Sorry, currently native code is not supported in the SDK. On Nov 16, 8:05 pm, adlaiti [EMAIL PROTECTED] wrote:

[android-developers] How to access android.pim and android.provider.Calendar classes??

2008-11-17 Thread Yogesh
Hii guys, Hope u suggest some option for my concern I want to access PIM of android device and also Calendar of the same for appointments n events But after seraching throgh docs i cant get the picture clear Though both these classes are in

[android-developers] Convert a view (layout) to a Bitmap

2008-11-17 Thread Jose Cortes
Hello everybody. I am working with OpenGL and Android, and I was wondering if there is any way to create a Bitmap or a Drawable using a view (layout). The purpose is to use this Bitmap as Texture for an OpenGL figure. All I have untill now is: ** I create a new view from the context and the

[android-developers] Re: Problem accessing r.drawable.somestuff

2008-11-17 Thread Fräntz Miccoli
I tested it, it works. Thank you Akshat ! On 17 nov, 10:59, Fräntz Miccoli [EMAIL PROTECTED] wrote: Good ! I've seen it. I'll test it this evening and give you feed back. Thank you. Fräntz Miccoli On 17 nov, 02:13, Cool Frood [EMAIL PROTECTED] wrote: Fräntz, Make sure that you're

[android-developers] Re: How to Redir UDP Packets at init

2008-11-17 Thread Breno
Hey David, Thanks for this. Untill next SDK we will use manually so, or Milano's script (thanks for that!) . Best Regards Breno On Nov 14, 6:32 pm, David Turner [EMAIL PROTECTED] wrote: You should be able to use QEMU -redir options when starting the emulator, as in: emulator

[android-developers] Re: Replacing standard default applications

2008-11-17 Thread Thao
Hi Romain, I'm facing the same issue as Marc. After looking for some information on google I failed to know how we could implement what you are saying. I would like te replace the default contact application by mine, no matter that it would act like you said. Could you give me more information

[android-developers] Re: Deployment of native C library

2008-11-17 Thread Volker Gropp
Hi, your dont need your library in /system/lib, use System.load() as i already described in http://groups.google.com/group/android-developers/msg/86f49546bbab0cad Regards Volker Gropp On Nov 17, 5:05 am, adlaiti [EMAIL PROTECTED] wrote: I have a Java application that uses JNI to call a

[android-developers] a simple native pthread test but SIGSEGV generated!

2008-11-17 Thread allstars
hello world i try to do a simple pthread test on android (natively) /*START OF CODE ===*/ #include stdio.h #include sys/types.h #include pthread.h void *hello(void *arg) { printf(Hello from node %d\n, *(int *)arg); } int main(int argc, char* argv[]) { int

[android-developers] Re: ListActivity and progressbars?

2008-11-17 Thread Guillaume Perrot
Your code is quite strange because when you perform UI operations, it has to be on the main thread, so you normally have to use an Handler to post actions on the UI thread when you are in another thread. I am surprised it works. Plus I checked your CategoryList.java at google code, I didn't find

[android-developers] Re: Wifi communication

2008-11-17 Thread Guillaume Perrot
I don't know about bluetooth support in the SDK, but the G1 does support bluetooth, I can tune it in the settings. On Nov 17, 5:59 am, Prashant Kalkar [EMAIL PROTECTED] wrote: Hi, I am working on an application that need to communicate between two devices. Initially the application was going

[android-developers] Re: Displaying Equations on Android

2008-11-17 Thread Mark Murphy
[EMAIL PROTECTED] wrote: I am currently working on an application that is essentially an equation cheat sheet. I want to make the equations look good when they are displayed, so I am thinking of using MathML, but I don't know how I would implement this and include everything in a packaged

[android-developers] know draw shape

2008-11-17 Thread ena
HI All, please help me out...Suppose if we draw a any shape(circle) on the mobile screen using mouse and finger..is it possible to know what shape is drawn through used of a class??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: How to use buildin email intent

2008-11-17 Thread Peli
Your intent is missing the correct type. Have a look here: http://www.openintents.org/en/node/121 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, email text); sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822);

[android-developers] Re: Help!! About browser the file!

2008-11-17 Thread erkenoid
Can you be a bit more specific? Do you want to read a file, like launching an mp3 or showing a picture from /data or /sdcard, or do you want to review what's in those files? If you wish to review what's in there, I recommend you go have a look to this tutorial on the anddev.com website :

[android-developers] Re: a simple native pthread test but SIGSEGV generated!

2008-11-17 Thread David Turner
You are using arm-none-linux-gnueabi-gcc which is not compatible with the android toolchain. This kind of issue is perfectly normal and non supported. Only trivial programs may correctly work that way, more by chance that anything else. On Mon, Nov 17, 2008 at 1:35 PM, allstars [EMAIL PROTECTED]

[android-developers] Strange WIFI behavior when the G1 screen is blacked/locked (sleeping ?).

2008-11-17 Thread Guillaume Perrot
I implemented a BroadCastReceiver to monitor the connectiviy thanks to the android.net.ConnectivityManager API. When the G1 becomes locked after a couple of minutes and the screen is black I have this logs: 11-17 15:04:03.271: ERROR/ubikim(1849): key=networkInfo , value=NetworkInfo: type: WIFI,

[android-developers] Re: OpenGL Hardware Acceleration in G1

2008-11-17 Thread razialx
Excellent. Thanks everyone. On Nov 16, 9:42 pm, Romain Guy [EMAIL PROTECTED] wrote: OpenGl is hardware accelerated on the G1 On Nov 16, 2008 6:07 PM, razialx [EMAIL PROTECTED] wrote: DSmith: Right, but Android does not require hardware acceleration of the OpenGL ES Api. Do you happen to

[android-developers] Re: Strange WIFI behavior when the G1 screen is blacked/locked (sleeping ?).

2008-11-17 Thread Guillaume Perrot
Forgot to mention the logs are mine, to avoid confusions, here is the code of my broadcast receiver: @Override public void onReceive(Context context, Intent intent) { for (String key : intent.getExtras().keySet()) Log.e(ubikim,key=+key+ , value=+intent.getExtras().get (key)); }

[android-developers] Re: disable home button

2008-11-17 Thread zl25drexel
i dont have anything specific. how about open up the home app so that we can tweak it? On Nov 14, 9:02 pm, hackbod [EMAIL PROTECTED] wrote: On Nov 14, 12:08 pm, zl25drexel [EMAIL PROTECTED] wrote: you guys did not open-source everything. it's pretty hard to figure out how things work using

[android-developers] Re: disable home button

2008-11-17 Thread Mark Murphy
zl25drexel wrote: i dont have anything specific. how about open up the home app so that we can tweak it? http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=tree;f=src/com/android/launcher;h=29e244605fc3d4cde54b1bd3adc44ec2c69cb2d4;hb=HEAD (or http://tinyurl.com/66q28r if

[android-developers] Handle events

2008-11-17 Thread BrunoZP.com
Hi, Does anyone has an example already done on how can a dial in / dial out event be handled ?? Like catch the number dialed to change it ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Max Binshtok
So I am wondering if the Market is going to support some autoupdate mechanism for the applications - we are required to version and sign our apps - so it seems like they can do it, but is it going to be done? If yes then : 1. When? 2. How the users will be notified? 3. How the reinstallation

[android-developers] Re: disable home button

2008-11-17 Thread zl25drexel
import com.android.internal.widget.SlidingDrawer; :( On Nov 17, 9:55 am, Mark Murphy [EMAIL PROTECTED] wrote: zl25drexel wrote: i dont have anything specific. how about open up thehomeapp so that we can tweak it? http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;...

[android-developers] Re: disable home button

2008-11-17 Thread Mark Murphy
zl25drexel wrote: import com.android.internal.widget.SlidingDrawer; :( http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/com/android/internal/widget/SlidingDrawer.java;h=90a548a7a1a20ed7d9ac1e66876139cce27fa443;hb=HEAD (or http://tinyurl.com/6lekc2 if that URL

[android-developers] Re: Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Al Sutton
Max, If you want a solution now look at http://www.openintents.org/en/node/136 Beyond that I think it'll be a wait given how Market is currently being run and the problems its' having. Al. http://andappstore.com/ Max Binshtok wrote: So I am wondering if the Market is going to support some

[android-developers] Re: Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Dan B.
I certainly hope the Market will support a way to query and prompt for updates. OI Update is alright, but it checks a 3rd party site which often doesn't match the Market version and requires you to open your device up to potentially dangerous software (granted, it's not yet been an issue, but it

[android-developers] Re: Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Al Sutton
Dan, Couple of clarifications; - OI Update falls back to checking AndAppStore.com only if the developer hasn't specified update data in the applications manifest file. - Anyone can register/update their app listing on AndAppStore.com, so if the version numbers it might be worth prodding the

[android-developers] Re: Convert a view (layout) to a Bitmap

2008-11-17 Thread Romain Guy
Hi, If you do this in onCreate(), then the View didn't go through a layout pass yet, so its size is null (0 by 0 pixels.) You need to either wait for the first layout, or force the layout by calling layout() on the View. On Mon, Nov 17, 2008 at 2:34 AM, Jose Cortes [EMAIL PROTECTED] wrote:

[android-developers] :: How to store the Higest Scores of the players who download my Game

2008-11-17 Thread Imran
Hi Hey i have gone through Iphone Game where there is option called Higest Scores where it displays the score, Name of the User and Place(Country), This list will get Updated always if some one breaks the higest score... i think we have to track all the users who download our

[android-developers] Re: Deployment of native C library

2008-11-17 Thread li chen
You can use adb shell to remount /system and try again: mount -o remount rw /system -freepine On Mon, Nov 17, 2008 at 5:08 PM, hackbod [EMAIL PROTECTED] wrote: Sorry, currently native code is not supported in the SDK. On Nov 16, 8:05 pm, adlaiti [EMAIL PROTECTED] wrote: I have a Java

[android-developers] [Jade Android add-on]Could not connect to my Jade platform..

2008-11-17 Thread ~bill~
1,I have run a Jade Platform..(by type Java jade.Boot -gui in cmd window ),this windows'title showed [EMAIL PROTECTED]:1099/JADE 2,I modify the strings.xml... string name=host127.0.0.1/string string name=port1099/string string name=msisdnJADE/string 3.build the demo and then , I run the Demo of

[android-developers] Re: CREATE TABLE android_metadata failed

2008-11-17 Thread Jongseok,Park
I have also same error report.. I want to run web browser in android 1.0 r1. Anyone have a idea to solve this problem? I guess that this is from ownership mismatch problem of data and system files. then..I have no idea for detail explanation. logcat message is below... Jongseok,Park.

[android-developers] Re: placing the image on listbox on right side

2008-11-17 Thread Murray
Venkat, This is the approach I used ... except I aligning to the right of the image and further using multiple rows with alignments. This should work if you change the alignment to the left in your case. TwoLineListItem xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] How to make a Service run ONLY when no other app is running?

2008-11-17 Thread Kakyoin
I've successfully created a service that change the wallpaper every 2 seconds. My next goals: I want this service to... - auto-stop itself when user launch other app. - auto-start itself when the wallpaper is visible. (eg. when users close all other apps) The only clue I have is, when user

[android-developers] Need help animating the System Wallpaper.

2008-11-17 Thread Kakyoin
This is my Service. It's a simple service which use Handler to invoke setWallpaper() every 2 seconds. [code] package com.mseer.testservice; import java.io.IOException; import java.io.InputStream; import android.app.Service; import android.content.Context; import android.content.Intent; import

[android-developers] overloading getView

2008-11-17 Thread Murray
I want to overload getView similar to the Fancy-List posting I have seen. However, my data source is a Sqlite database as opposed to an array of strings. The examples I have seen show you how to create a custom Adapter that extends ArrayAdapterString... How would I do this using a the database

[android-developers] Re: Dalvik and BOOTCLASSPATH

2008-11-17 Thread fadden
On Nov 14, 1:37 pm, Koush [EMAIL PROTECTED] wrote: From adb shell on the emulator, I am prepend the BOOTCLASSPATH to include a jar that contains an implementation of android.widget.EditText. This won't work. Generally speaking, it's not a good idea to try to change the bootstrap class path.

[android-developers] Re: Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Peli
My personal guess is that the Market will support autoupdate as soon as they start to allow for paid applications. But this is really just a guess, based on no information. (It would make sense to introduce this feature together with paid applications so that developers can quickly distribute

[android-developers] Re: :: How to store the Higest Scores of the players who download my Game

2008-11-17 Thread g1bb
It sounds like you'll want to store the scores in your own database on the Internet somewhere. Whether this would best be done through a web service or something similar, I don't know. On Nov 17, 2:52 am, Imran [EMAIL PROTECTED] wrote: Hi    Hey  i have gone through Iphone Game where there is

[android-developers] Emulators

2008-11-17 Thread Lillian Brandão
Hi, I would like to know if there is a way to start the emulator and the application using shell (adb). I'm having problems with emulators. Sometimes, I have to install the application manually. I would like to instantiate more than one emulator with its application. Did anyone do something like

[android-developers] Re: Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Peli
Of course it would be best to obtain the current version number directly from the Market. Unfortunately, the Market does not reveal this information currently in a way that can be easily accessed by other applications. Therefore we depend on the application's developer to provide a separate,

[android-developers] Extending Contacts info in existing phone book

2008-11-17 Thread Breno T. Minzon
Hi, After looking for this subject, i found some old posts, like this ( http://groups.google.com/group/android-developers/browse_thread/thread/cc61aad4b6cda7f9/fd2ece81bf8de3e8?lnk=gstq=contacts#fd2ece81bf8de3e8). Now, one year after, any google team opinion about that? It's very important to

[android-developers] Re: How to access native functions in standard library?

2008-11-17 Thread [EMAIL PROTECTED]
Most JNI functions are registered with the VM during runtime boot. FYI, the 1.0 SDK does not support native code development. If you proceed along this path, be aware that any API's you use are subject to change without notice. On Nov 17, 2:03 am, Urakagi [EMAIL PROTECTED] wrote: Hi, I have a

[android-developers] Re: Any one know how to create a new project on android.git.kernel.org?

2008-11-17 Thread [EMAIL PROTECTED]
Details on this are forthcoming. Look for a post on the source.android.com site soon. On Nov 16, 5:48 pm, Eric Miao [EMAIL PROTECTED] wrote: Or whom to contact, if you know pls. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Playing sounds multiple times using MediaPlayer

2008-11-17 Thread [EMAIL PROTECTED]
Use OGG insteaed of WAVE. You'll find that it is lower overhead and latency. We will have better audio support in a future SDK. On Nov 16, 1:20 pm, Cool Frood [EMAIL PROTECTED] wrote: Hi, What is the length of the files that you are trying to play? I'm trying to do the same with 0.2s long

[android-developers] Re: MediaPlayer looping bug?

2008-11-17 Thread [EMAIL PROTECTED]
Yes, we should document it - I logged a bug. We needed a way to specify that some ringtone files would loop continuously while others would only play when triggered by the ring signal from the network. On Nov 16, 6:00 pm, Cool Frood [EMAIL PROTECTED] wrote: On Nov 16, 3:37 pm, Cool Frood [EMAIL

[android-developers] Re: Strange WIFI behavior when the G1 screen is blacked/locked (sleeping ?).

2008-11-17 Thread Guillaume Perrot
Yes it never ends looping reconnect/disconnect while the phone's asleep. It is very strange and/or very buggy... 2008/11/17 Josh Guilfoyle [EMAIL PROTECTED] Are you saying that Wi-Fi was in a never ending loop disconnecting and reconnecting while the phone was asleep? The normal behaviour is

[android-developers] Re: Playing sounds multiple times using MediaPlayer

2008-11-17 Thread blindfold
Glad it worked! Your use of multiple MediaPlayers is an interesting approach. I current use only one, but latency is according to G1 user reports awful: 4 or 5 seconds, though I do not know yet if that is perhaps also due to the fact that Android forces me to first write synthesized sound to

[android-developers] Android Market's Publish Button does nothing

2008-11-17 Thread xMemphisx
I'm a bit upset, to say the least. I registered for the market, paid the 25$, and when i hit publish after setting up an app for the store, nothing happens. I've tried it on both Opera, and Firefox, and they both yeild the same results... NOTHING. I'm running Ubuntu, so i don't have internet

[android-developers] KSOAP2 and .NET web service

2008-11-17 Thread pk
Please help, I have spend days trying to get this to work without any luck. I am calling a .NET web service with the latest (ksoap2-j2se- full-2.1.2.jar) build. I can get responces with the servcice returning basic strings and ints but I cannot get the service to take parameters in. The code

[android-developers] DatagramSocket - unknown error exception

2008-11-17 Thread Nitin Khanna
Hi! Folks, I have recently upgraded my application to the recent version of Android SDK and since, the upgrade I am facing a strange problem. The problem is as follows: DatagramSocket socket; int port = 5060; socket = new DatagramSocket(port); When the application executes this API, I get a

[android-developers] Re: DatagramSocket - unknown error exception

2008-11-17 Thread Nitin Khanna
Hi! I figured out the solution. Its just another permission we have to declare we use android.permission.INTERNET. Rgds Nitin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name?

2008-11-17 Thread Satya Komatineni
Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name? And also what are the minimal intent filters that are needed? What I noticed is the following: 1. The activity has to be in the manifest.xml 2. It doesn't seem to need any additional

[android-developers] Re: Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name?

2008-11-17 Thread Mark Murphy
Satya Komatineni wrote: Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name? Yes, but... And also what are the minimal intent filters that are needed? No intent filters are needed for an activity that is to be invoked by its explicit

[android-developers] Re: How to make a Service run ONLY when no other app is running?

2008-11-17 Thread hackbod
To auto-stop when the user launches another app (I assume from your own), you can just look at the pause or stop call of your own activities. For starting when other apps are closed, there is no way to do this, it really isn't in the Android application model. It is completely normal for a user

[android-developers] Re: Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name?

2008-11-17 Thread Satya Komatineni
Mark, Thanks. I suppose it needs to be in there to kick off the activity life cycle etc. wonder if that could not be done at run time and not needing that activity to be in the manifest when that activity is purely internal. Thanks again Satya On Mon, Nov 17, 2008 at 2:09 PM, Mark Murphy [EMAIL

[android-developers] Re: Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name?

2008-11-17 Thread Mark Murphy
Satya Komatineni wrote: wonder if that could not be done at run time and not needing that activity to be in the manifest when that activity is purely internal. Sorry, it is required to be in the manifest, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide

[android-developers] Set an EditText view editable or not

2008-11-17 Thread CG
Hi all, I am facing an issue ... I explain the behaviour I like to have : I have several edittext views. Since they are in a overriden class of Edit text, they have a specific look and feel. I would like to have for them the customized LF when my application starts and when people look at my

[android-developers] Upgrading vs. Stats bug

2008-11-17 Thread Teo
Can we at least be given a general idea when this Market issue will be fixed? Thanks, Teo --~--~-~--~~~---~--~~ 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 use TouchDelegate

2008-11-17 Thread Huebi
I have tried to use the TouchDelegate class but couldn't figure out how to really do it. It is terribly documented. Has anyone succeeded with it? I want to extend the touchable region of a small button. If you do it programatically you need bounds but in onCreate and onResume the position and

[android-developers] Clickable Linear Layout

2008-11-17 Thread G
Hi, I've got a Linear Layout that I'm trying to make clickable... I've got the click functionality working just fine, but I was hoping for the background color to change when it has focus (like an item in a ListView). Can anyone help me do this? Below is the xml of the LinearLayout...

[android-developers] Re: Listening for dynamic buttons created by an adapter

2008-11-17 Thread alexdonnini
Hello Mark, I have been trying to implement the same functionality as Moazzam. Specifically, I want each row in my list to have a delete (in my case a process kill) button. I read carefully your very good tutorials on lists, and tried to follow the approach you describe in tutorial #5 (see the

[android-developers] PhoneStateListener not called until Phone Activity completes...

2008-11-17 Thread dreamerBoy
Hi - I'm having a problem with my PhoneStateListener not being called until after the Phone Activity is finished. Here is what I am doing: step 1: Install a PhoneStateListener. The listener is supposed to call notify() (synchronized on the lock object) when it detects a change in the phone

[android-developers] Re: Listening for dynamic buttons created by an adapter

2008-11-17 Thread Mark Murphy
alexdonnini wrote: Hello Mark, If you're referring to me, hi! I read carefully your very good tutorials on lists Thanks! b) The button which is wired does not act on the desired item because the value of the position parameter returned by getView. That's because you're not holding onto

[android-developers] Re: Clickable Linear Layout

2008-11-17 Thread G
Figured it out... For those with the same problem, just set the background of the Layout to @android:drawable/list_selector_background On Nov 17, 4:16 pm, G [EMAIL PROTECTED] wrote: Hi, I've got a Linear Layout that I'm trying to make clickable... I've got the click functionality working just

[android-developers] Re: support for ad2p and others

2008-11-17 Thread Kaisershrout
I recently read something to that effect but you have have conveyed the point with a bit more eloquence. That being the case, I will be watching the API on my fedora distribution and waiting for the stable release in that case. Thanks for the reply.

[android-developers] Re: Compressed Camera Images

2008-11-17 Thread blindfold
BTW, how reliable is this shutter trick? http://code.google.com/android/reference/android/hardware/Camera.ShutterCallback.html states that onShutter() is called *after* taking the picture, but before the data is available. Now that data must be derived from the picture, right? So setting

[android-developers] Re: PhoneStateListener not called until Phone Activity completes...

2008-11-17 Thread dreamerBoy
I thinks I answered my own question again. The problem appears to be with the Android Service object. I was using an instance of the Service object to do my synchronization. In normal Java, when you call wait() inside of a synchronization block, the thread is supposed to release the monitor so

[android-developers] Re: Comunication Server-Phone: SMS directed to an application (0.9 SDK)

2008-11-17 Thread Jonathan Herriott
So the real issue is that the SMSBroadcaster does not do an ordered broadcast. Even if this were fixed, it would still be a problem in how you can gurantee someone doesn't try and put a higher priority to receive your events and bash you. They implemented incoming/outgoing call broadcasters to

[android-developers] How to call RIL?

2008-11-17 Thread blues
How to call the RIL functions? I saw the source code of com.android.internal.telephony.gsm.RIL. But I don't see them in the andorid.jar. Is there a way to use it? I know it is not a standard way. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Question about ServerSocket

2008-11-17 Thread linker lv
public static final int SERVERPORT = ; public void server() { DataOutputStream os=null; DataInputStream is = null; ServerSocket socket = null; Socket ClientSocket = null; String out = null; try { socket = new

[android-developers] Re: How to access native functions in standard library?

2008-11-17 Thread Urakagi
Thank you David. Now I can concentrate on other works. On 11月18日, 上午1時18分, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Most JNI functions are registered with the VM during runtime boot. FYI, the 1.0 SDK does not support native code development. If you proceed along this path, be aware that

[android-developers] Re: How to call RIL?

2008-11-17 Thread Jeff Hamilton
The RIL is an internal mechanism that the system uses to communicate with the radio stack. It's not meant for consumption by applications, the TelephonyManager class provides the application level telephony APIs. -Jeff On Mon, Nov 17, 2008 at 5:44 PM, blues [EMAIL PROTECTED] wrote: How to

[android-developers] Re: Re-use Layouts

2008-11-17 Thread Mark Murphy
cyntacks wrote: How do I force the view to always be layout-port-480X320? Well, you can't force 480x320, if the device doesn't happen to work at that resolution. In terms of portrait, though, add: android:screenOrientation=portrait to every affected activity. -- Mark Murphy (a Commons

[android-developers] download APK from google marketplace to android device besides G1?

2008-11-17 Thread mattR
Hi, I have Android running on a development platform that is not a G1 phone. Is it possible to download applications from the google marketplace to my device? I am able to put an APK onto my device from my PC, but is there a way to download APK to my PC from the google marketplace? Thanks

[android-developers] Re: MediaPlayer looping bug?

2008-11-17 Thread Cool Frood
In that case, you can perhaps mark Issue 1314 (http://code.google.com/ p/android/issues/detail?id=1314) as invalid/duplicate. I filed this yesterday On Nov 17, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, we should document it - I logged a bug. We needed a way to specify that

[android-developers] Re: Re-use Layouts

2008-11-17 Thread cyntacks
Hi Mark, Thanks for the help, I am amazed I have been developing on Android for 5 months and never came across this! BUT, alas, it didn't work. What I am looking to do is force portrait when the phone is in Landscape, even though I added android:screenOrientation=portrait to the xml view my

[android-developers] Re: How to call RIL?

2008-11-17 Thread blues
Thanks for your reply. But the TelephonyManager doesn't provide enough information for us. We really need to get more informaiton from the RIL layer. We hope we can reuse the code we see. It seems the open source code are just read only. We cannot use it, neither rewrite it. Our app runs on

[android-developers] Re: How to call RIL?

2008-11-17 Thread Jeff Hamilton
Thanks for your reply. But the TelephonyManager doesn't provide enough information for us. We really need to get more informaiton from the RIL layer. What information do you need from the RIL that isn't provided by the TelephonyManager APIs? -Jeff

[android-developers] Re: Listening for dynamic buttons created by an adapter

2008-11-17 Thread alexdonnini
Hello again Mark, Thanks for the help. I really appreciate it. It worked. I also had to move the button wiring section after the view set-up section. Next, I need to make sure that each and every kill button is wired, not just the one for the first item in the list. In order to do that, do you

[android-developers] .getSelectedItemId() always selecting 0 when using the touch screen

2008-11-17 Thread Protocol-X
Hello all, I have been dealing with this issue for a long time and have yet to find a solution online anywhere. Using a ListAvtivity i encounter an issue with jsut the touch screen. below is a quick example of the code: WHen using the trackball everything is correct but when using the touch

[android-developers] Re: Re-use Layouts

2008-11-17 Thread cyntacks
Got it, Mark you were absolutley correct (and I am sure you knew that!). I didn't realize the screenOrientation was to be set in the Manifest Thanks so much, works like a charm... Kevin On Nov 17, 9:25 pm, cyntacks [EMAIL PROTECTED] wrote: Hi Mark, Thanks for the help, I am amazed I

[android-developers] Re: Re-use Layouts

2008-11-17 Thread Mark Murphy
cyntacks wrote: Got it, Mark you were absolutley correct (and I am sure you knew that!). I didn't realize the screenOrientation was to be set in the Manifest Thanks so much, works like a charm... Sorry for not being clear the first time. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Listening for dynamic buttons created by an adapter

2008-11-17 Thread Mark Murphy
alexdonnini wrote: Next, I need to make sure that each and every kill button is wired, not just the one for the first item in the list. In order to do that, do you think it would be sufficient to set up a loop ranging across all members of the dataset (in my case an ArrayList) in getView?

[android-developers] Re: .getSelectedItemId() always selecting 0 when using the touch screen

2008-11-17 Thread Romain Guy
This is perfectly normal. Just use the position parameter given to you in onListItemClick(). On Mon, Nov 17, 2008 at 7:08 PM, Protocol-X [EMAIL PROTECTED] wrote: Hello all, I have been dealing with this issue for a long time and have yet to find a solution online anywhere. Using a

[android-developers] Re: .getSelectedItemId() always selecting 0 when using the touch screen

2008-11-17 Thread Protocol-X
Actually i figured that out between posts... but since you cannot use an int on creating the context menu i run into the same issue on any item that requires a long click On Nov 17, 10:43 pm, Romain Guy [EMAIL PROTECTED] wrote: This is perfectly normal. Just use the position parameter given to

[android-developers] If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list?

2008-11-17 Thread Satya Komatineni
If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list? Whose contract is android:id/list? Is this used only by ListActivity or is it used somewhere else as well such as the ListAdapter? Thanks Satya --~--~-~--~~~---~--~~

[android-developers] How to check if System Wallpaper is now Visible to the user?

2008-11-17 Thread Kakyoin
Hi. I'm creating a Service that will run in the background and do many tasks. And one of those tasks will need to verify that the wallpaper is currently visible to the user or not. Is threre a way to check(by code) if the System Wallpaper is currently 'visible' to the user? (eg. when the user

[android-developers] Re: If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list?

2008-11-17 Thread Romain Guy
If you don't use ListActivity, there is no reason to use this id :) On Mon, Nov 17, 2008 at 8:02 PM, Satya Komatineni [EMAIL PROTECTED] wrote: If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list? Whose contract is android:id/list? Is this used only

[android-developers] Re: :: How to store the Higest Scores of the players who download my Game

2008-11-17 Thread Imran
Hi How can be it done using web service.. ? cheers, Imran On Nov 17, 9:25 pm, g1bb [EMAIL PROTECTED] wrote: It sounds like you'll want to store the scores in your own database on the Internet somewhere. Whether this would best be done through a web service or something

  1   2   >