[android-developers] can anyone post me to an example of using ACTION_TIME_CHANGED or ACTION_DATE_CHANGED

2009-05-15 Thread snctln
So I am in the process of trying to get a few intents to work for me, and am having problems on 2 specific intents. I searched these groups and the webs and can 't seem to find any more information than what the documentation gives me. It doesn't seem to matter if I declare the use of these

[android-developers] Question for SDK developers - behavior of setFeatureInt

2009-05-15 Thread idev
Hello SDK developers I finally did get a reply for the problem below and I am being told this The problem is that the only Window implementation (PhoneWindow) uses a LayoutInflater in its setFeatureInt method and instantiates the new layout with inflate and attachToRoot=true. Consequently,

[android-developers] Re: Does Android Messaging support EMS ?

2009-05-15 Thread Anonymous Anonymous
EMS not supported On Fri, Apr 24, 2009 at 4:34 PM, lightchen0...@gmail.com light_c...@seed.net.tw wrote: Hi All : I'm studying Android and will start to develop some message related AP after I familiar with Android , but when I play G1, I don't know how to send a EMS , I do read 3GPP

[android-developers] Re: How to record audio in WAV format?

2009-05-15 Thread Anh Khoa Nguyen Pham
Thank so much ! On Fri, May 15, 2009 at 12:07 PM, Marco Nelissen marc...@android.comwrote: As I said, use AudioRecord ( http://developer.android.com/reference/android/media/AudioRecord.html ) There might be some sample code in the SDK, I'm not sure. On Thu, May 14, 2009 at 9:43 PM, Anh

[android-developers] Re: UI problem

2009-05-15 Thread Sukitha Udugamasooriya
h. OK. But without creating a new thread the changes made to the button are not visible (END View pops up). Can you give me a suggestion the original problem please? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Notification without expanded View

2009-05-15 Thread vovkab
Hi I want create just notification icon without text and expanded view. How to remove expanded view? --~--~-~--~~~---~--~~ 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: can i load pdf url on webview?

2009-05-15 Thread indra
I request anybody who has got work-around to this problem, please step in. It is somewhat urgent. Regards, Indra On May 14, 3:41 pm, indra indrad...@gmail.com wrote: Hi, I came across the similar case, where I have to show thepdfcontent in WebView. 1. It seems, there is no WebView API

[android-developers] Re: can i load pdf url on webview?

2009-05-15 Thread Mark Murphy
I came across the similar case, where I have to show thepdfcontent in WebView. No, you don't. WebView does not display PDF content, and probably never will. What you may want is a PDF viewer that responds to the PDF MIME type, such that if a link appears to a PDF document, clicking the link

[android-developers] Re: UI problem

2009-05-15 Thread Mariano Kamp
Hard to say what you really want from the snippets of information and code you provided. Generally speaking you normally only call setContent() to setup your screen from your activity's onCreate() method, not when some state changes that needs reflection on the UI. When you have state changes you

[android-developers] Goldmine International .. A big scam ?

2009-05-15 Thread meh.altaf
We have received so many comments regarding the authenticity of the biggest SCAM which is GMI. It's our open challenge to all the current GMI investors and GMI officials that if they would be able to answer these simple questions with solid proofs the next day we will back off from blogging

[android-developers] Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Hi developers, I need a help. I need to display all Logcats Log on console of my emulator, as do it the simple program Hello World. Can you help me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Mariano Kamp
Not sure if I understand you correctly. You can run adb -e logcat on the command line to display the output of the currently running emulator. Is that what are looking for? On Fri, May 15, 2009 at 9:32 AM, Francesco Pace paxa...@gmail.com wrote: Hi developers, I need a help. I need to display

[android-developers] Re: Obtaining field of view of camera

2009-05-15 Thread blindfold
No. You'd have to calibrate using an external pattern at a known distance. There is also no method for obtaining the camera's supported resolutions. On May 14, 11:57 pm, mscwd01 mscw...@gmail.com wrote: Hey, Quick question: Is there a method of obtaining the field of view for a phones camera

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Hi Mariano, thanks for your time. Example : / CODE APPLICATION *System.out.println(Hello); foo1(); // Simple function System.out.println(World); foo2(); // Simple function System.out.println(Today); System.out.println(Yesterday);* I know that I can't use System.out.println on Android.

[android-developers] 2-way engine Test Framework execution - crash

2009-05-15 Thread scs sek
Hi All, When we try to execute the 2 way engine testcases in the test framework, it is crashing while loading opencorecommon.so. Please let me know, is it possible to run the test cases in android 1.5 source code version? Thanks. --~--~-~--~~~---~--~~ You

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
You can use Log.d for printing debug statements to the LogCat and Log.e for error statements. On 15-May-09, at 1:25 PM, Francesco Pace wrote: Hi Mariano, thanks for your time. Example : / CODE APPLICATION System.out.println(Hello); foo1(); // Simple function

[android-developers] Using the AudioRecord API

2009-05-15 Thread benmccann
Hi, I'm trying to figure out how to use the AudioRecord class. I created a callback with a logging message, but don't ever see it called. Do you see anything wrong with what I'm doing? Do you have an example of how to use the API? Thanks, Ben import android.media.AudioFormat; import

[android-developers] How to see information that write /dev/radio

2009-05-15 Thread max
Hi All, I can see that in logd_write.c, if (!strcmp(tag, HTC_RIL) || !strcmp(tag, RILJ) || !strcmp(tag, RILC) || !strcmp(tag, RILD) || !strcmp(tag, RIL) || !strcmp(tag, AT) || !strcmp(tag, GSM) || !strcmp(tag, STK)) log_id =

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Hi, thanks. But I want print these informations on my android application.. There is a particular UI? 2009/5/15 iDeveloper ideveloper...@gmail.com You can use Log.d for printing debug statements to the LogCat and Log.e for error statements. On 15-May-09, at 1:25 PM, Francesco Pace

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
If you just want to print these on the activity, use a TextView and set its text to your sysouts TextView tv = (TextView)findViewById... tv.setText(Whatever you want to print); On 15-May-09, at 1:54 PM, Francesco Pace wrote: Hi, thanks. But I want print these informations on my android

[android-developers] Strange Cupcake Memory Bug with WebViews (that disappears when debugger attached)

2009-05-15 Thread iliketolearn
I've literally spent 15+ hours trying to figure out this one bug (when I should be studying for finals). Any help is greatly appreciated. The bug appears on the dev1 phone running cupcake. It was not present before the upgrade. Basically, the problem is that when a activity with a webview and 2

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Thanks, but I have this error : ERROR/AndroidRuntime(1096): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cecco.android.hello/com.cecco.android.hello.HelloWorld}: java.lang.NullPointerException: println needs a message in my code : public void onCreate(Bundle

[android-developers] How to remove androids native notifications?

2009-05-15 Thread nowb
Hello! I´m doing an app that handles sms. Depending on the content of the sms I want to add dirrerent kind of icons to the status bar. This works fine with the NotificationManager, however I want to remove the native sms icon. Anyone knows how to do that? I guess if I have the notification id

[android-developers] PhoneBook

2009-05-15 Thread danielececil...@gmail.com
Hi, I try to recover data from the phonebook to stock them into an ArrayList. I wrote this code to test on phone number data: Begin Code -- Cursor c =

[android-developers] Bluetooth sound output

2009-05-15 Thread e-satis
Hello, I just noticed, using the HTC Dream that using a bluetooth headset was really easy for phone calls, but nothing seemed to be available for videos / music sound output. V1.0 limitations are not at fault since when you play a music and start a call, you can hear the music in the headset for

[android-developers] Re: Created APNs don't show up in APN list (fw 1.5)

2009-05-15 Thread jappit
As a possible reason, could it be that 1.5 hides APNs with mmc/mnc different from the values of the currently installed SIM? Pit On May 14, 6:18 pm, jappit alessandro.lar...@gmail.com wrote: Hi, I have a piece of code that creates some APNs with this call: --

[android-developers] ContentProvider queries, Contacts and the SDK docs

2009-05-15 Thread Alan Jones
Hi All, A couple of questions. First thing I was wondering is where to log bugs in the docs. The ContentProvider query() docs are missing selectionArgs in the example code. It also uses the deprecated addId instead of ContentUris.withAppendedId(). With regards to the selection options - how

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Thanks, but I have same error. New code is : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = (TextView)this.findViewById(R.id.TextView01); setContentView(tv); tv.setText(Hello, Android\n); } Boh. 2009/5/15

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
findViewById can only be used if you have set a layout for your activity and the layout had a control with the id you've mentioned. For what you're trying to accomplish, create a TextView using new TextView() and then do a setContentView(tv) You are getting tv as null because you do not have

[android-developers] Sending a data sms to an application port

2009-05-15 Thread Andreas Frey
Hello, I use Android sdk 1.5 on ubuntu 8.0.4. In my application I want to use a data sms on a special port to inform my application about new available information. Then a background thread should be started to process this information. Currently i have an application sending data sms to port

[android-developers] Creating context, how?

2009-05-15 Thread SGAdrian
Hi, When you are developing on an application level(Services, Activities) you always get this Context reference automatically. But what if I am on a lower level and developing a program started with app_process, how can I get hold of a Context then? Its a huge part of the API that need this

[android-developers] Re: Installing the USB driver for HTC Magic on Vista

2009-05-15 Thread cberger
On May 14, 5:49 pm, Raphael r...@android.com wrote: - If you want to debug with adb, ant or Eclipse, you need to use the USB driver that comes with your SDK. You need to enable debugging on the device first in the settings. Seehttp://d.android.com/guide/developing/device.html#setting-up

[android-developers] sharing database

2009-05-15 Thread Peterman
hi to all Anybody knows if we can share databases between applications? How can I access to a database from an A application to another B application? It is possible? What uri I would have to put? thanks --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: sharing database

2009-05-15 Thread Mark Murphy
Anybody knows if we can share databases between applications? How can I access to a database from an A application to another B application? It is possible? What uri I would have to put? The preferred way to do this is by creating a ContentProvider to make data in one project available to

[android-developers] Re: Creating context, how?

2009-05-15 Thread Mark Murphy
When you are developing on an application level(Services, Activities) you always get this Context reference automatically. But what if I am on a lower level and developing a program started with app_process, how can I get hold of a Context then? Its a huge part of the API that need this

[android-developers] Re: Access my own provider in another app

2009-05-15 Thread Peterman
Hi could you tell me how to access from an Application to the database from another application? thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Creating context, how?

2009-05-15 Thread SGAdrian
Sorry but I dont get it. I am starting my java program with app_process, i.e I am not running any Service or Activity. Just like the Monkey.java program is doing. Ex. public class Main { public static void main(String[] args) { // How can I get hold of a Context instance

[android-developers] Re: Accelerometer is cukoo???

2009-05-15 Thread doubleslash
This problem occurs only when activity is set explicitly to landscape in manifest. Anyway to make it work in landscape? Thanks On May 14, 10:16 pm, doubleslash doublesl...@gmail.com wrote: I see an acceleration of -9 in the y-direction ( due to gravity, of course). Now, keeping the phone

[android-developers] Re: Animated progress in Imageview

2009-05-15 Thread Al
On May 14, 8:29 pm, Romain Guy romain...@google.com wrote: The title bar uses a RotateDrawable. The animation is driven by the ProgressBar widget. Thanks Romain, it works perfectly now. @Mark, I was expecting to be able to do something like RotateAnimation r = new RotateAnimation(this,

[android-developers] Cascading deletion?

2009-05-15 Thread arnouf
Hi all, If I delete a contact using contentresolver.delete(...), all information is deleted - even information presents in contact_methods, phones...? regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Location.convert possible bug

2009-05-15 Thread ellipsoidmob...@googlemail.com
You are right! I reproduced in my own GPS app and if seconds59 you get a conversion error. I took a quick look in the android source (location/java/ android/location/location.java) and the bug is clearly visible: Currently reads: if (sec 0 || sec 59) { throw new

[android-developers] Structure of tables

2009-05-15 Thread rico_1
Hi, Does any one know structure of tables in Android? I know structure of table sms (content://sms/): _id, thread_id, address, person, date, protocol, read, status, type, reply_path_present, subject, body, service_center. Does any one know structure of the rest sms tables? and what tables are in

[android-developers] Re: Prevent clearing Canvas in onDraw() ?

2009-05-15 Thread alan
draw everything to an offscreen image then just draw the image onto the canvas for each ondraw On May 14, 5:21 pm, ellipsoidmob...@googlemail.com ellipsoidmob...@googlemail.com wrote: By overriding onDraw you're taking responsibility for drawing the whole view, so you have to draw everything

[android-developers] Re: how can i parse epub file

2009-05-15 Thread alan
if its not encrypted then I imagine you could probably just extract the html and view the individual pages in a webview On May 14, 4:24 pm, zeeshan genx...@gmail.com wrote: Hi, i am wondering if there is any way to parse and display epub file in android?

[android-developers] How to connect to a wireless network

2009-05-15 Thread Ventrix Kostis P.
I would like to give me an example on how to connect to a wireless network. The following code I have tested does not work... WifiManager mainWifi = (WifiManager) getSystemService (Context.WIFI_SERVICE); WifiConfiguration wfc = new WifiConfiguration(); wfc.SSID = \foobar\; wfc.priority = 1;

[android-developers] Re: UI problem

2009-05-15 Thread Streets Of Boston
You want a delay between changing the button's text and showing the new content-view? If that's the case, private void markUser(int index) { btnArray[index].setText(mark); btnArray[index].setClickable(false); postDelayed(new Runnable()

[android-developers] 1.5 ListView disabled items

2009-05-15 Thread Alexey
Hi all , i've noticed after i've switched to 1.5 that if ListView item is not enabled the divider(s) for this item are not rendering. Is this intentional ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] startActivity from subclass - strange problem

2009-05-15 Thread mscwd01
Hey, I have a Activity and I have a class which extends this Activity. In this subclass I call: startActivity(new Intent(this, CameraView.class)) Which should start the CameraView Activity. However, I always get this error: ERROR/AndroidRuntime(876): java.lang.NullPointerException

[android-developers] OpenGL ES portability...

2009-05-15 Thread Shrinivas
Hi All, I am very new to this domain. I want to port OpenGL-ES + Android on some HW platform. I have following queries regarding the same. 1) Does Android use OpenGL-ES for both 2D 3D applications? 2) I want to use hardware accelerators for the OpenGL-ES Library. I want to know what

[android-developers] Re: Android 1.5 bug with earphone detection

2009-05-15 Thread Brad
Have just bought the YC A300 and agreed that this does not work. I am hoping this can be fixed. On May 5, 4:07 pm, archinform arch...@archinform.de wrote: On my Google dev phone there is a problem with the new 1.5 version in combination with an official HTC adapter cable YC A300 and 3.5mm

[android-developers] Android Theme Customization

2009-05-15 Thread salman.geek
Hi to all... Im having some problem in the Android W --~--~-~--~~~---~--~~ 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: Google Login Service not working on SDK 1.5

2009-05-15 Thread kk
Hi All, I experience the same behavior Farida is reporting. It appears the GoogleLoginService is not found on emulator. Here is my emulator info: Target: Google APIs (Google Inc.) Based on Android 1.5 (API level 3) Skin: HVGA Sdcard: 100M Here is my logCat output: 05-16

[android-developers] How to restart scheduled jobs no phone restart

2009-05-15 Thread Viresh
I am developing a ToDo reminder type of app for android. on creation of a new reminder an alarm and vibrator scheduler is created with a toast. This works on intents and broadcasts and is pretty straight forward stuff with putextras using the reminder id from the db. My problem is, if some one

Re : [android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread GAYET Thierry
Hello, I am asking if Android already include a GBA (Generic Bootstrapping Architecture) authentification system ? If not, does any other group have ever try to add this protocol (almost the same as SSL) within the Android framework ? The GBA architecture is defined with 2 documents from the

[android-developers] Browser Download Manager - GETs, but doesn't POST

2009-05-15 Thread brian
I posted this on android-platform a while ago, but didn't see any response, so I'll try here. I've been combing through the browser app's source trying to make sure I understand this, and I think I do. I found http://code.google.com/p/android/issues/detail?id=1978 which details a question about

[android-developers] How the setRouting() and doRouting which is to select endpoint audio device is implemented.

2009-05-15 Thread zhiguo
I want to add one more endpoint audio device in android and am trying to modify the setRouting() functions to support the selection of the new added audio device. As far I traced, the doRouting() in class AudioHardwareOss should perform the audio endpoint device selection. However, donRouting()

[android-developers] Android Theme Customization

2009-05-15 Thread salman.geek
Hi to all... I want to override the default behavour of the Android Application. For example In Android Hyperlinks are by default have orange color border and i want to change the border according to my requirements. Please help me out of this... I will be really gratefull to all of u

[android-developers] Android and the Generic Bootstrapping Architecture authentification system

2009-05-15 Thread GAYET Thierry
Hi, I am asking if Android already include a GBA (Generic Bootstrapping Architecture) authentification system ? If not, does any other group have ever try to add this protocol (almost the same as SSL) within the Android framework ? The GBA architecture is defined with 2 documents from the 3GPP :

[android-developers] Re: Android SDK Content Loader gets stuck....

2009-05-15 Thread az9...@gmail.com
Stack trace was sent by email. Part of it is shown below. Trace was captured on Eclipse start (after turning back on Projects- Build Automatically) Android SDK Content Loader stuck at 60%. Let us know what you find or send more detailed info on capturing trace dump.

[android-developers] PV2wayEngine crash

2009-05-15 Thread srinu gorle
Hi, i want to test 324 in the existing code. i couldnt find any test case document in the http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree i have tried to run $adb shell #cd system #cd bin ./pv2way_omx_engine_test i tried without any arguments to give arguments i couldnt

[android-developers] How the setRouting() and doRouting which is to select endpoint audio device is implemented.

2009-05-15 Thread zhiguo
I want to add one more endpoint audio device in android and am trying to modify the setRouting() functions to support the selection of the new added audio device. As far I traced, the doRouting() in class AudioHardwareOss should perform the audio endpoint device selection. However, donRouting()

[android-developers] Re: Creating context, how?

2009-05-15 Thread Maulin
In your main activity you can create something like this Context context = this; Then you can pass the context object to any other methods that need it as a parameter. On May 15, 9:41 am, SGAdrian sven.wastl...@gmail.com wrote: Sorry but I dont get it. I am starting my java program with

[android-developers] How to start the intent contacts with a query

2009-05-15 Thread prihei
Hello, how can i open the contact view with a query? I try this: Intent intent = new Intent(Intent.ACTION_SEARCH, People.CONTENT_URI); intent.putExtra(SearchManager.QUERY, Heiko); startActivity(intent); I get this error: android.content.ActivityNotFoundException: No Activity found to handle

[android-developers] Query - Android UI/worker threads

2009-05-15 Thread latha...@gmail.com
Hi All This query is regarding android UI Worker threads. I am writing an application in which I have 1.An Activity with a button in it. On clicking this button, i need to start a new thread which would do some graphics rendering by calling native C calls.(these are loaded in the form of a

[android-developers] Re: Google Login Service not working on SDK 1.5

2009-05-15 Thread kk
Hi Farida, I am experiencing the same issue. Has anybody responded to your inquiry? Regards, KK On Apr 29, 12:48 am, farida mailfaridak...@gmail.com wrote: I downloaded the latest release of android SDK 1.5, but unable to give the credentials for the Google Login Service from devTools.

[android-developers] Android and the GBA (Generic Bootstrapping Architecture) authentification system

2009-05-15 Thread GAYET Thierry
Hello, I am asking if Android already include a GBA (Generic Bootstrapping Architecture) authentification system ? If not, does any other group have ever try to add this protocol (almost the same as SSL) within the Android framework ? The GBA architecture is defined with 2 documents from the

[android-developers] About logger_event

2009-05-15 Thread pibada
Hello, In logger_event structure, it exists msg[] as payload's message. Just I'm curious that how to write the payload's message in Android. The reason is that I want to change the specific part of the msg array, for example msg[0] do always 05 when the msg exists. If you know anythig about

[android-developers] broadcast data to other application

2009-05-15 Thread gour
Hi I create an application where i get the various data from net (say for example i am getting the temperature information of particular city and another data is the information of stock value of a particular company) now i want to broadcast that various data to all application. I create a

[android-developers] Issue with orientation change: Dialog above activity with fixed orientation

2009-05-15 Thread André
Hi all, I have created an activity for my game which handles all orientation changes by itself and has a fixed portrait layout. Actually it uses the accelerometer and is rendered using 2D canvas methods. If the level has been completed I show up a highscore dialog in which the user can enter his

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-05-15 Thread Keith Wiley
Whether on or off topic, I don't know, but my approach has been to keep a lite/demo version and pro version of my app. This requires more effort on my part, but it seems like the best solution. I've been chided for calling my lite version lite instead of demo, but that is a matter of

[android-developers] Re: 1.5 ListView disabled items

2009-05-15 Thread Romain Guy
Yes, it is intentional. On Fri, May 15, 2009 at 9:02 AM, Alexey avolo...@gmail.com wrote: Hi all , i've noticed after i've switched to 1.5 that if ListView item is not enabled the divider(s) for this item are not rendering. Is this intentional ? -- Romain Guy Android framework

[android-developers] Re: How to restart scheduled jobs no phone restart

2009-05-15 Thread Mark Murphy
I am developing a ToDo reminder type of app for android. on creation of a new reminder an alarm and vibrator scheduler is created with a toast. This works on intents and broadcasts and is pretty straight forward stuff with putextras using the reminder id from the db. My problem is, if

[android-developers] Re: Issue with orientation change: Dialog above activity with fixed orientation

2009-05-15 Thread Dianne Hackborn
Dialogs can't have an impact on the orientation. Just make an activity with a dialog theme, and set the orientation of the activity to the one providing the behavior you want. On Thu, May 14, 2009 at 9:11 AM, André andre.rab...@googlemail.com wrote: Hi all, I have created an activity for my

[android-developers] Intermittent service start

2009-05-15 Thread Ward Willats
Man, we are pulling our out over this We have a service. bindService() returns true. But our ServiceConnection is never called with onConnect(). The onCreate() of the service is never executed (neither is the onBind(), of course). Except sometimes! (twice now, out of many many tries).

[android-developers] Re: Creating context, how?

2009-05-15 Thread Dianne Hackborn
You are in the wrong group -- this group is for programming against the SDK, which you are well outside the bounds of. That said, you can't really get a functional Context from outside of processes not launched by the activity manager. You'll notice that the monkey, am, and pm commands all don't

[android-developers] Re: startActivity from subclass - strange problem

2009-05-15 Thread Dianne Hackborn
Please include the complete stack crawl. On Fri, May 15, 2009 at 9:14 AM, mscwd01 mscw...@gmail.com wrote: Hey, I have a Activity and I have a class which extends this Activity. In this subclass I call: startActivity(new Intent(this, CameraView.class)) Which should start the CameraView

[android-developers] Re: Intermittent service start

2009-05-15 Thread Dianne Hackborn
Are you passing the flag to have the service created? What is the output of adb shell dumpsys activity.service during this time? (And what is the name of your service to be able to find it?) On Fri, May 15, 2009 at 10:09 AM, Ward Willats goo...@wardco.com wrote: Man, we are pulling our out

[android-developers] Re: sharing database

2009-05-15 Thread Peterman
but the database has to be in the path of the application package or can be in another path of the filesystem? for example, can I access to a database created in gears (the path would be com.android.browser/gears/...) thanks a lot On May 15, 2:46 pm, Mark Murphy mmur...@commonsware.com

[android-developers] Re: Question for SDK developers - behavior of setFeatureInt

2009-05-15 Thread Dianne Hackborn
On Thu, May 14, 2009 at 11:11 PM, idev ideveloper...@gmail.com wrote: private void setCustomTitle(int value) { try { // retrieve value for com.android.internal.R.id.title_container int titleContainerId = (Integer) Class.forName(

[android-developers] Re: How to start the intent contacts with a query

2009-05-15 Thread Jeff Sharkey
The ACTION_SEARCH intent doesn't take a data Uri, so new Intent(Intent.ACTION_SEARCH) should be enough. j On Thu, May 14, 2009 at 9:02 AM, prihei pri...@googlemail.com wrote: Hello, how can i open the contact view with a query? I try this: Intent intent = new Intent(Intent.ACTION_SEARCH,

[android-developers] Re: broadcast data to other application

2009-05-15 Thread Jeff Sharkey
This sounds like a perfect candidate for a ContentProvider mixed with a broadcast Intent. When you finish an update pass, you can send off a custom broadcast that other apps can listen for. Then they wrap around to your ContentProvider to obtain the actual data.

[android-developers] Accessing rild socket

2009-05-15 Thread alexdonnini
Hello, Below, you will find the source code for a simple application testing access to the rild socket in dev/socket. Before running the application, I manually changed permissions on rild in dev/socket to allow r/w/x for all users. The application below is based in large part on code I found

[android-developers] Re: sharing database

2009-05-15 Thread Mark Murphy
but the database has to be in the path of the application package or can be in another path of the filesystem? Generally speaking, you do not have access to another path of the filesystem. for example, can I access to a database created in gears (the path would be

[android-developers] Re: ContentProvider queries, Contacts and the SDK docs

2009-05-15 Thread Mark Murphy
A couple of questions. First thing I was wondering is where to log bugs in the docs. http://b.android.com With regards to the selection options - how exactly can these handle? That's up to the individual content provider and how it stores its data. I've seen a couple of places where a

[android-developers] Widget in 1.5 not deleted???

2009-05-15 Thread guruk
Hi, i created a widget and when i look what widgets are still open i do this like: public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final int N = appWidgetIds.length; for (int i=0; iN; i++) { int appWidgetId =

[android-developers] Re: Widget in 1.5 not deleted???

2009-05-15 Thread guruk
I tested right now also the addwidgetdemo from the api 1.5 examples. also there: 1. it always calls : static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId, String titlePrefix) 2. but never comes to the : public void onDeleted(Context context, int []

[android-developers] Re: Strange Cupcake Memory Bug with WebViews (that disappears when debugger attached)

2009-05-15 Thread fadden
On May 15, 1:58 am, iliketolearn theand...@gmail.com wrote: I've literally spent 15+ hours trying to figure out this one bug (when I should be studying for finals). Any help is greatly appreciated. The bug appears on the dev1 phone running cupcake. It was not present before the upgrade.

[android-developers] Re: Creating context, how?

2009-05-15 Thread SGAdrian
So where can ask this question? Could you move this thread to the correct forum? So how can I get hold of a functional Context, if that means I have to go through the ActivityManager? Can I create a Service without an Activity? I dont want anything visible to the user. BR, Sven On 15 Maj,

[android-developers] Re: How to get OpenGLContext class in Android 1.5 SDK

2009-05-15 Thread Himadri Sekhar Das
Thank you so much Yusuf.. -Himadri / APT On Fri, May 15, 2009 at 12:22 AM, Yusuf T. Mobile yusuf.s...@t-mobile.comwrote: OpenGLContext appears to have disappeared in 1.5, including the Android platform source code and documentation (except a residual mention here:

[android-developers] Equivalent to .classpath when building with ant, or how to add more source directories to build.xml.

2009-05-15 Thread Anton
Is there a way to add more source directories to an ant build using the build.properties file? I've been using the .classpath file in Eclipse to reference additional shared source files that are used by multiple projects. Now that I'm trying to build my project using ant I can't figure out

[android-developers] Re: Creating context, how?

2009-05-15 Thread Dianne Hackborn
Like I said, you can't do this. The appropriate list would probably be android-porting; I can't move the thread for you. You can create a Service without an Activity, that's one of the points of a Service, but you still need to be running in a process created by the activity manager (from an

[android-developers] targeting custom-android 1.5 to dev phone

2009-05-15 Thread devi prasad
hi, I have a custom build of android-1.5_r1 code, where I have made a few modifications to AudioFlinger.I want to flash this build to my dev phone. Can someone guide me in building for dream? After reading through various posts, I'm somewhat confused about the overall state of this process.

[android-developers] Re: 1.5 ListView disabled items

2009-05-15 Thread Alexey Volovoy
Ok thanks for the answer. Although i must say it really does look ugly if the item happen to be in the middle of the list. On May 15, 12:02 pm, Romain Guy romain...@google.com wrote: Yes, it is intentional. On Fri, May 15, 2009 at 9:02 AM, Alexey avolo...@gmail.com wrote: Hi all , i've

[android-developers] Re: Widget in 1.5 not deleted???

2009-05-15 Thread Romain Guy
It's a known bug :) On May 15, 2009 11:27 AM, guruk ilovesi...@gmail.com wrote: I tested right now also the addwidgetdemo from the api 1.5 examples. also there: 1. it always calls : static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId, String

[android-developers] Intermittent service start

2009-05-15 Thread Ward Willats
Thanks Diane. We just fixed it. Seems like the moment you post to the list in desperation, the answer appears. Wonderful magick. Turns out our initialization is so crazy complicated we were wait()-ing the UI thread (instead of the worker thread we thought we were on) waiting for the service

[android-developers] Re: Another question about Animation - animate an imageview across several layouts

2009-05-15 Thread Sheepz
I can maybe add more information if needed - please answer if you think it's needed. On May 12, 5:23 pm, Sheepz eladk...@gmail.com wrote: Hi, I want to be able to make an imageview move from point a to b while going through several different views. For example, say I have a table layout, is

[android-developers] Re: 1.5 ListView disabled items

2009-05-15 Thread Romain Guy
Disabled items are badly named. They are supposed to act as separators (for instance, that's who the group names are implemented in the Settings pages.) If you don't want the user to click the item, you should disable the view itself. If you look at the Settings page you'll see why not drawing

[android-developers] Found bug in WebView which makes JVM crash!

2009-05-15 Thread Matt
The following code will crash on the 1.5 emulator: WebView wv = new WebView(context); wv.loadUrl(file://assets/myfile.html); int i = wv.findAll(to); It turns out findAll leads to a native method,

[android-developers] Re: No translucency when xml file present

2009-05-15 Thread andreas
Hi, I have a similar problem, but I have not preferences.xml file anywhere in res/xml. On the emulator my theme works fine and I can see the other activity in the background. But on my device (G1) the screen is rendered black. Anybody any idea? On 24 Mrz., 00:20, jonlerne...@gmail.com

[android-developers] Set a few lists in one layout?

2009-05-15 Thread daehoon
How to set a few lists in one layout include their own data from DB? here is source code about set list in Android guide. List id is @android:list why the id must be android:list?, may I use my own id? If I can, how to set lists to main layout including their own data (title)? Cursor

  1   2   >