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
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
> 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
> 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
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
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
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
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
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
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
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
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
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
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_
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
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
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
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
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
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"))
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.
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.
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
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
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
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
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
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
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
>> 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
101 - 130 of 130 matches
Mail list logo