[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: 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 em

[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 thi

[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] 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 yo

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

2009-05-15 Thread cberger
On May 14, 5:49 pm, Raphael 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 > Does this wor

[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 cont

[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 1

[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 a

[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] 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 exac

[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 wrote: > Hi, > > I have a piece of code that creates some APNs with this call: > -- > getContentResolver().insert(Uri.parse("content://tele

[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] 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 = getContentResolver().query(People.CONTENT_

[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 f

[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 savedInstan

[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 th

[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 androi

[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 > 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 Marian

[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"))

[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.

[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 > System.out.

[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 receiv

[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 An

[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 wrote: > Hey, > > Quick question: > Is there a method of obtaining the field of view for a phones camera > (horizontal

[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 wrote: > Hi developers, > I need a help. I need to display all Logcats Lo

[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] 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 against

[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 n

[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 lin

<    1   2