[android-beginners] Re: Help with Services

2009-05-28 Thread Sujay Krishna Suresh
hi mark... plz help me out... ur reply 'd be of gr8 help to me...

On Fri, May 29, 2009 at 10:59 AM, Sujay Krishna Suresh <
sujay.coold...@gmail.com> wrote:

> thanks for the reply mark... n sorry for posting in multiple lists...
> but the problem is that neither the activity nor the service is mine...
> the activity is
> com.google.android.apps.uploader/com.google.android.apps.uploader.UploadActivity...
> but i only no that the service is a "picasa" tagged UploadService...
> onactivityresult i always get the RESULT_CANCELED as the resultcode
> but i need to no if the upload was complete or not...
>
> On Fri, May 29, 2009 at 10:51 AM, Mark Murphy wrote:
>
>>
>> Please do not cross-post to multiple lists.
>>
>> >   i'm starting an activity that inturn calls a service i
>> > wanna get notified when the service competes...
>> > can anyone temme how i can do this???
>>
>> You can:
>>
>> 1. Use a callback or listener object, passed from activity to the service,
>> which the service calls a method upon
>>
>> 2. Broadcast an intent, receiving it in your activity
>>
>> Please remember that your activity may not be there -- Android and the
>> user have the right to close up your activity while the service is still
>> running. So you might:
>>
>> 3. Use a Notification, so you let the user know of completed work, rather
>> than telling a possibly non-existent activity.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com
>> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>>
>>
>>
>> >>
>>
>
>
> --
> Regards,
> Sujay
> W. C. Fields  - 
> "I am free of all prejudices. I hate every one equally."




-- 
Regards,
Sujay
Helen Rowland
- "One man's folly is another man's wife."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to get dialog associated with a button

2009-05-28 Thread Vignesh
Hi,

I create a new dialog (with showDialog) and on the dialog I have two
checkboxes each of which has an onCheckedChanged listener.   When the button
is clicked, from the callback onCheckedChanged(CompoundButton cb, boolean
state) how do I get the dialog?   My aim is to change some properties of the
dialog, when the button is clicked.

Thanking in advance,
vignesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Help with Services

2009-05-28 Thread Sujay Krishna Suresh
thanks for the reply mark... n sorry for posting in multiple lists...
but the problem is that neither the activity nor the service is mine...
the activity is
com.google.android.apps.uploader/com.google.android.apps.uploader.UploadActivity...
but i only no that the service is a "picasa" tagged UploadService...
onactivityresult i always get the RESULT_CANCELED as the resultcode
but i need to no if the upload was complete or not...

On Fri, May 29, 2009 at 10:51 AM, Mark Murphy wrote:

>
> Please do not cross-post to multiple lists.
>
> >   i'm starting an activity that inturn calls a service i
> > wanna get notified when the service competes...
> > can anyone temme how i can do this???
>
> You can:
>
> 1. Use a callback or listener object, passed from activity to the service,
> which the service calls a method upon
>
> 2. Broadcast an intent, receiving it in your activity
>
> Please remember that your activity may not be there -- Android and the
> user have the right to close up your activity while the service is still
> running. So you might:
>
> 3. Use a Notification, so you let the user know of completed work, rather
> than telling a possibly non-existent activity.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
>
>
> >
>


-- 
Regards,
Sujay
W. C. Fields 
- "I am free of all prejudices. I hate every one equally."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Help with Services

2009-05-28 Thread Mark Murphy

Please do not cross-post to multiple lists.

>   i'm starting an activity that inturn calls a service i
> wanna get notified when the service competes...
> can anyone temme how i can do this???

You can:

1. Use a callback or listener object, passed from activity to the service,
which the service calls a method upon

2. Broadcast an intent, receiving it in your activity

Please remember that your activity may not be there -- Android and the
user have the right to close up your activity while the service is still
running. So you might:

3. Use a Notification, so you let the user know of completed work, rather
than telling a possibly non-existent activity.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Help with Services

2009-05-28 Thread Sujay Krishna Suresh
Hi all,
  i'm starting an activity that inturn calls a service i
wanna get notified when the service competes...
can anyone temme how i can do this???

-- 
Regards,
Sujay
Bette Davis 
- "Brought up to respect the conventions, love had to end in marriage.
I'm
afraid it did."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Button ID

2009-05-28 Thread Naveen Krishna Ch
2009/5/27 Stienoo 

>
> I want to make UI Events but Eclipse underlines something in red:
>
> Button button = (Button)findViewById([b]R.id[/b].corky);
>
> I have a button whit the name "Ok"
> what I'm doing wrong?

Ok may be a UI. what is corky is this thename of button
check in R.java

>
>
> Full class:
>
> package stijn.test;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
>
> public class Test extends Activity implements OnClickListener {
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>Button button = (Button)findViewById(R.id.corky);
>button.setOnClickListener(this);
>}
>
>public void onClick(View v) {
>// do something when the button is clicked
>  }
> }
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: socket (server and client)_

2009-05-28 Thread Naveen Krishna Ch
2009/5/28 shwetha.pu...@gmail.com 

>
> Hi,
>
>   can anyone please mail me the step by step procedure of running
> client and server in android.Please i need it as soon as
> possible.Please help

client and server are binaries
if they r binaries , open up a  emulator shell
there put ther server to background and run client.
this is much similar to that we do in linux.
If they r not native 

>
>
> Thanks and Regards,
> Shpuan
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: how to create a new emulator instance

2009-05-28 Thread Naveen Krishna Ch
2009/5/28 shwetha.pu...@gmail.com 

>
> hi,
>   As to the above mentioned problem can any one help me how to create
> a new emulator instance.
> I have only one instance of emulator I want two instances plz help me
> with this.

if u r using eclipse u may go to the window -> android avd manager
and create another avd, u can create 2 instances

>
>
>
> Thanks
> shpuan
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: how to go to command prompt of emulator(very very urgently needed)

2009-05-28 Thread Naveen Krishna Ch
2009/5/28 shwetha.pu...@gmail.com 

>
> hi,
>   can anyone help me related to the following:
>   1)how to go the command prompt of android emulator

from the sdk's tools folder u may try ./emulator -shell -avd=avdname
this will give u a shell prompt.

>
>
>   2)how to work on it(cmd prompt)
>
>   3)If I have server and client code,then I want to know that should
> i create two projects(one for client and another for server)or should
> i keep both client and server in one project?Please reply as soon as
> possible

Server and client or service and activity.
a background service and activity can be on a same apk..

>
>
> Thanks,
> Shpuan
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Maximum SD Card size?

2009-05-28 Thread Karl (Bucky) Roebling
16GB limit, I believe.

On May 28, 2009 1:36 PM, "Troglodad"  wrote:


Okay, I know this might sound like a dumb question, but is there a
limit on miniSD Card size for the ADP1/G1?

I am finding that using the Youtube link keeps my 3 year old occupied
while we're out, shopping, restaurant, etc. So now I want to put some
episodes of Spongebob or something as MP4s on my card to have ready to
go. So far, I've only used the factory-installed 1GB card in the
phone. Will a larger, say 4 or 8Gb pose any problem?




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Maximum SD Card size?

2009-05-28 Thread Troglodad

Okay, I know this might sound like a dumb question, but is there a
limit on miniSD Card size for the ADP1/G1?

I am finding that using the Youtube link keeps my 3 year old occupied
while we're out, shopping, restaurant, etc. So now I want to put some
episodes of Spongebob or something as MP4s on my card to have ready to
go. So far, I've only used the factory-installed 1GB card in the
phone. Will a larger, say 4 or 8Gb pose any problem?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Threading with UI components

2009-05-28 Thread Don Oleary
Hi guys

I have a question around threading. I have one Activity that does the
following tasks
on first load

- Queries the DB
- Aggregates the results (some intensive post processing)
- Displays the results to the user

Depending on the amount of data, this can take a bit of time. I am trying to
push this
DB query and post processing off to a separate thread to the UI so the user
will perceive the app to be faster while also avoiding the "application not
responding"
message.
I can successfully do this using an inner class that extends AsyncTask, and
can update Views (set as member variables of the Activity class) that have
been defined in XML with the updated content. Where I am running into
problems is when I need to dynamically create views (TableRows for example).
Can I (should I) access the App Context object from the extended AsyncTask
inner class ?

Where one is dynamically creating views, what is the best way to do this in
a separate thread to the UI ?

Regards
Don

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How can I know whether a table exist?

2009-05-28 Thread Fion Z
Hello, 

    Escuse me, how can I know whether a table already exist in a database? I 
mean by SQL sentence.
    Thank you.

Fion


  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator launch error in HelloAndroid tutorial

2009-05-28 Thread treebolt

I am also having trouble starting AVD. Im just starting to develop for
android and trying to run through the hello world example.

Yes I've installed Java on my machine and followed all the other steps
in the setup tutorial provided in the SDK, including changing my
environment path. I still get this when I try to type "android create
avd -t 2 -n my_avd" in my console from the tools directory of the SDK:

'java' is not recognized as an internal or external command, operable
program or batch file

Anyone have any ideas? Thanks! =)
 - treebolt

On May 7, 4:58 pm, "Jack Ha (T-Mobile USA)" 
wrote:
> Have you installed JDK on your machine? If not, you can download it
> from here:
>
>http://java.sun.com/javase/downloads/index.jsp
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On May 7, 6:07 am, Dennis Christy  wrote:
>
> > When I type the following into the cmd prompt:
> > c:\...android-sdk-windows-1.5_r1\tools>android
> > It gives me the following message:
> > 'java' is not recognizedas an internal or external command, operable
> > program or batch file
>
> > On Thu, May 7, 2009 at 5:49 AM, Sean Hodges 
> > wrote:
>
> > > You may need to set your JAVA_HOME environment variable.
>
> > > What is the exact error you're getting?
>
> > > On Thu, May 7, 2009 at 1:40 PM, Dennis Christy 
> > > wrote:
> > > > I'm sorry, I did not explain my problem completely. I just want to 
> > > > create
> > > > the AVD so I can run the tutorial. Opening the terminal window in Vista
> > > does
> > > > not allow me to type in the create avd command, even though I have
> > > changed
> > > > the directory to the tools directory in the sdk. It tells me it cannot
> > > run a
> > > > Java app.
> > > > I just want to create the AVD in whatever way I can. How do I do it?
>
> > > > On Thu, May 7, 2009 at 5:20 AM, Marcos Lobo  wrote:
>
> > > >> Hi,
>
> > > >> To open a terminal in Windows Vista:
>
> > > >> Click on "Start button" and type on the text area next command: cmd
>
> > > >> The "cmd" open the terminal
>
> > > >> Cheers.
>
> > > >> 2009/5/7 Dennis Christy 
>
> > > >>> I get the following error in attempting to run the HelloAndroid
> > > tutorial:
> > > >>> "Failed to find an AVD compatible with target 'Android 1.5', Launch
> > > >>> aborted"
>
> > > >>> I have read the documention and the emails in re this problem, and I
> > > see
> > > >>> the fix is to create an AVD by opening a terminal window and typing
> > > >>> "android create avd --target 1--name myavd"
> > > >>> however I cannot figure out how to open a terminal window in Windows
> > > >>> Vista
>
> > > >>> --
> > > >>> Dennis Christy
>
> > > >> --
> > > >> Un saludo.
>
> > > >> --
> > > >> Dennis Christy
>
> > --
> > Dennis Christy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Sending "BACK" key to the application through instrumentation

2009-05-28 Thread sachin

hi

I am extending the ActivityInstrumentationTestCase class to test the
graphics API.
In this case the activity under test is started automatically by the
instrumentation class.

Some activities run continuously until the press of "BACK" key
manually. I want to automate this sending of BACK key.I tried the
following method to call the finish() of activity.

First i got the activity by calling getActivity() function and then
called the finish() of that activity, but still the activity continues
to run.

Can anyone suggest a method by which i can close the Activity.?

Any help would be greatly appreciated.
Thanks in advance

Sachin.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Access Network??

2009-05-28 Thread M.Manjunatha

How do I make my app access the Internet connection while I am behind
a proxy server??

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-28 Thread bigrd

I had the very same problems and solved it this way:

Search for and download USBDeview.

Make sure your Magic is disconnected and set the USB Debugging to ON.

Right click on USBDeview.exe and select Run as administrator on you XP/
Vista PC.
Select all usb devices relating to HTC and uninstall them
Reconnect your magic and you should be prompted for the drivers.
Browse to the SDK USB drivers folder and select the .inf file and
click OK.  This should re-install the drivers as new for an ADB
Interface.

On May 16, 11:13 am, John Burton  wrote:
> I have a new UK Vodafone HTC Magic phone.
>
> I've installed the developer SDK and eclipse and that works fine.
> But when I connect my real phone to the PC I can't installed the
> driver to communicate with it.
> It functions perfectly well as a mass storage device but it never asks
> me to install the usb debugging driver on the PC at all as the
> instructions say it will. I *have* turned on USB debugging on the
> phone, and restarted it and the PC several times just in case...
>
> I've tried this on 2 PCs and got the same result which makes me
> suspect the phone is the problem not the PCs but it could be either.
>
> Google found quite a few people with this problem but no real
> solutions and nothing that worked for me.
> Anyone got any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Google Maps on Android

2009-05-28 Thread simonfro...@googlemail.com

Hello Everybody!

I currently getting started with developing for Android and I was just
doing the "MapView Tutorial" from http://developer.android.com. I
managed to get it all working, except I can't see an actual Google-Map
on my emulator. Instead I'm only seeing that grid, so that I'm
assuming the emulator has some problems connecting to the internet.
Are there some settings that have to be changed in order to let my
emulator use the internet connection of my computer?

Thanks in advance!
Simon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] socket (server and client)_

2009-05-28 Thread shwetha.pu...@gmail.com

Hi,

   can anyone please mail me the step by step procedure of running
client and server in android.Please i need it as soon as
possible.Please help

Thanks and Regards,
Shpuan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Button ID

2009-05-28 Thread Stienoo

I want to make UI Events but Eclipse underlines something in red:

Button button = (Button)findViewById([b]R.id[/b].corky);

I have a button whit the name "Ok"
what I'm doing wrong?

Full class:

package stijn.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Test extends Activity implements OnClickListener {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button button = (Button)findViewById(R.id.corky);
button.setOnClickListener(this);
}

public void onClick(View v) {
// do something when the button is clicked
  }
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Help!, trouble starting AVD for the first time

2009-05-28 Thread treebolt

Ok, sorry if this is a double post buy my first post didn't appear to
have posted...

I'm new to andorid programming and trying to run through the
helloworld tutorial provided in the SDK

I'm having trouble and getting an error message when trying to start
the AVD. I did install java and followed everything else in the setup
document provided in the SDK including changing my environment path to
the tools directory of the SDK. When I start command prompt, navigate
to the tools directory of SDK, and type "android create avd -t 2 -n
my_avd" I get this message:

'java' is not recognized as an internal or external command, operable
program or batch file

Anyone have any ideas? ><
Thanks in advance.
 - treebolt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: latest adt broken?

2009-05-28 Thread chtiboss

Eclipse 3.4.2
Windows XP Pro
SDK 1.5 r2
in any XML file (main.xml at least)
it bug appear anywhere in the File
For exemple this bug appear in the sample XML  "hello-linearlayout"
http://developer.android.com/guide/tutorials/views/hello-linearlayout.html

On 26 mai, 23:57, Raphael  wrote:
> Hi,
>
> I'm trying to reproduce this and hmm well I don't manage to get this error.
> Could you help me a bit?
> - Which version of Eclipse are you using?
> - Which OS platform?
> - Which SDK?
> - Does that happen on any XML file or just some of them?
> - Does it break anywhere in the XML file or in some specific context?
> (between elements, inside an element, on an attribute name or
> attribute value?)
> - Can you try to reproduce that using one of the SDK samples XML files?
>
> I'm trying to narrow the issue.
> Thanks in advance.
> R/
>
> On Mon, May 25, 2009 at 8:29 PM, solid  wrote:
>
> > I just upgraded to the latest adt (0.9.1) and now I am getting null
> > pointer in eclipse when I try to invoke the content assistant (ctrl
> > +space) on andoid xml files such as the layout files.  Also the
> > outline does not appear to be linked to the XML files any more.  Below
> > is the log from eclipse when I hit ctrl+space.  Is there any way I can
> > fix adt???
>
> > !ENTRY org.eclipse.ui 4 0 2009-05-25 23:18:47.253
> > !MESSAGE java.lang.NullPointerException
> > !STACK 0
> > java.lang.NullPointerException
> >        at
> > com.android.ide.eclipse.editors.AndroidContentAssist.computeCompletionProposals
> > (Unknown Source)
> >        at
> > org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals
> > (CompoundContentAssistProcessor.java:300)
> >        at
> > org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals
> > (ContentAssistant.java:1836)
> >        at
> > org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals
> > (CompletionProposalPopup.java:555)
> >        at 
> > org.eclipse.jface.text.contentassist.CompletionProposalPopup.access
> > $16(CompletionProposalPopup.java:552)
> >        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run
> > (CompletionProposalPopup.java:487)
> >        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
> > 70)
> >        at
> > org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals
> > (CompletionProposalPopup.java:481)
> >        at
> > org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions
> > (ContentAssistant.java:1664)
> >        at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation
> > (StructuredTextViewer.java:437)
> >        at org.eclipse.ui.texteditor.TextOperationAction$1.run
> > (TextOperationAction.java:131)
> >        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
> > 70)
> >        at org.eclipse.ui.texteditor.TextOperationAction.run
> > (TextOperationAction.java:129)
> >        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
> >        at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:
> > 185)
> >        at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute
> > (LegacyHandlerWrapper.java:109)
> >        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:
> > 476)
> >        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
> > (ParameterizedCommand.java:508)
> >        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
> > (HandlerService.java:169)
> >        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand
> > (WorkbenchKeyboard.java:472)
> >        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press
> > (WorkbenchKeyboard.java:824)
> >        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent
> > (WorkbenchKeyboard.java:882)
> >        at
> > org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings
> > (WorkbenchKeyboard.java:571)
> >        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3
> > (WorkbenchKeyboard.java:512)
> >        at org.eclipse.ui.internal.keys.WorkbenchKeyboard
> > $KeyDownFilter.handleEvent(WorkbenchKeyboard.java:127)
> >        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> >        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1436)
> >        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1157)
> >        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)
> >        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1167)
> >        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1194)
> >        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:
> > 698)
> >        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:
> > 2765)
> >        at org.eclipse.swt.widgets.Composite.gtk_key_press_event
> > (Composite.java:702)
> >        at org.eclipse.swt.widgets.Widget.windowPr

[android-beginners] Adding IM to the User

2009-05-28 Thread Lars

Hi if i add a email it's simple

values.put(People.ContactMethods.KIND, Contacts.KIND_EMAIL);
values.put(People.ContactMethods.DATA, adress);
values.put(People.ContactMethods.TYPE,
People.ContactMethods.TYPE_HOME);
But if i want to use
Contacts.KIND_IM

where can is save the PROTOCOLL Value?

i found it only in the presence columns but they aren't in the
ContactMethods

Greetings

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Establishing link between two EMULATORS

2009-05-28 Thread shwetha.pu...@gmail.com

hi,
I am very new to Android,I have an issue related to the above
mentioned subject. plz can anyone help me with this by sending a
"COMPLETE SOURCE CODE" for both client and server side with step by
step procedure to be done in Android

Thanks and Regards
SHPUAN

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Installing the android SDK on my new PC

2009-05-28 Thread SarahEZiegler

I was having this problem too and followed another thread to this
solution:
"I've selected the android sdk directory in Windows->preferences- >
android"
So I went and selected the android SDK directory in Windows-
>preferences- > android and then went back and tried to start a new
project again and now there were three checkboxes where none had been
there before.  And once I entered "2" into Min SDK Version one of the
checkboxes autoselected.  So no more  "An SDK target must be
specified", and I could move on.  Hope this helps.

-Sarah E Ziegler

On May 14, 10:02 am, Raphael  wrote:
> On Tue, May 12, 2009 at 2:38 PM, Johan Degraeve
>
>  wrote:
>
> > I'm having the same problem on a Mac : when trying to create a new
> > android project there's an error message on top 'An SDK Target must be
> > specified'.
>
> The project wizard should have a list with 3 SDK targets to choose
> from: android 1.1, 1.5 and google apis. Click one of the checkboxes.
>
> R/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] how to create a new emulator instance

2009-05-28 Thread shwetha.pu...@gmail.com

hi,
   As to the above mentioned problem can any one help me how to create
a new emulator instance.
I have only one instance of emulator I want two instances plz help me
with this.


Thanks
shpuan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Regarding communication between two emulators

2009-05-28 Thread anusha

Hi,

   Can anyone please let me know whether communication between two
emulators(to send message or to make a call) is possible in Android or
not? please reply as soon as possible.

Thanks and regards,
Anusha

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] how to go to command prompt of emulator(very very urgently needed)

2009-05-28 Thread shwetha.pu...@gmail.com

hi,
   can anyone help me related to the following:
   1)how to go the command prompt of android emulator

   2)how to work on it(cmd prompt)

   3)If I have server and client code,then I want to know that should
i create two projects(one for client and another for server)or should
i keep both client and server in one project?Please reply as soon as
possible

Thanks,
Shpuan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Agregarme a este grupo

2009-05-28 Thread Guillermo Cruz

Hola, bienve...@!
Yo también soy nuevo  jejeje

On May 22, 4:24 am, soleada  wrote:
> Hola,
>
> estoy entrando en el mundo de Android
> y me gustaría pertenecer a Android Beginners.
>
> Un saludo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: very urgent

2009-05-28 Thread asara ratnakar
Hi Dude ... This link might help you
http://www.devx.com/wireless/Article/40842/1954

Thanks,
Ratnakar A.


On Thu, May 28, 2009 at 8:33 PM, Hamy  wrote:

>
> This is definitely not a complete class, and the database is defined
> poorly,  and it does NOT act as preferred - it returns objects instead
> of cursors, but it should help you get started. Try to avoid any sites
> but developer.android.com when doing the DB stuff, because they are
> mostly outdated.
>
> Also, I really considered not replying because of your subject being
> so lacking. Please, please next time you post provide a more
> meaningful subject. It's common courtesy on mailing lists, so I don't
> think I am the only one that would feel this strongly about it.
>
> Hamy
>
> import java.util.ArrayList;
> import java.util.List;
>
> import android.content.ContentValues;
> import android.content.Context;
> import android.database.Cursor;
> import android.database.SQLException;
> import android.database.sqlite.SQLiteDatabase;
> import android.database.sqlite.SQLiteOpenHelper;
> import android.util.Log;
>
> import com.google.android.maps.GeoPoint;
> import com.google.android.maps.Projection;
>
> public class ZoneDB {
>private static final String DATABASE_NAME = "ZoneDB";
>private static final int DATABASE_VERSION = 1;
>private static final String TAG = "ZoneDB";
>
>private static final String ZONES = "zones";
>private static final String CREATE_ZONES_TABLE = "CREATE TABLE IF
> NOT
> EXISTS zones ("
>+ "id INTEGER NOT NULL, "
>+ "name TEXT(100), "
>+ "PRIMARY KEY (id));";
>// For copy-paste
>// CREATE TABLE IF NOT EXISTS zones (id INTEGER NOT NULL, name TEXT
> (100),
>// PRIMARY KEY (id));
>private static final String GEOPOINTS = "geopoints";
>private static final String CREATE_GEOPOINTS_TABLE = "CREATE TABLE
> IF
> NOT EXISTS geopoints ("
>+ "id INTEGER NOT NULL, "
>+ "zoneid INTEGER NOT NULL, "
>+ "point_order INTEGER NOT NULL, "
>+ "latitude INTEGER NOT NULL, "
>+ "longitude INTEGER NOT NULL, " + "PRIMARY KEY
> (id));";
>// For copy-paste
>// CREATE TABLE IF NOT EXISTS geopoints (id INTEGER NOT NULL, zoneid
> INTEGER
>// NOT NULL, point_order INTEGER NOT NULL, latitude INTEGER NOT
> NULL,
>// longitude INTEGER NOT NULL, PRIMARY KEY (id));
>
>private SQLiteDatabase zoneDB_;
>private DatabaseHelper openHelper_;
>private final Context context_;
>private static ZoneDB instance_ = null;
>private Projection proj_;
>
>public static ZoneDB getInstance() {
>if (instance_ == null)
>throw new RuntimeException(
>"ZoneDB: Someone did not construct
> the instance!");
>return instance_;
>}
>
>/**
> * Helps us create, update, and open/close databases
> */
>private static class DatabaseHelper extends SQLiteOpenHelper {
>
>public DatabaseHelper(Context context) {
>super(context, DATABASE_NAME, null,
> DATABASE_VERSION);
>}
>
>@Override
>public void onCreate(SQLiteDatabase db) {
>db.execSQL(CREATE_ZONES_TABLE);
>db.execSQL(CREATE_GEOPOINTS_TABLE);
>}
>
>@Override
>public void onUpgrade(SQLiteDatabase db, int oldVersion, int
> newVersion) {
>Log.w(TAG, "Upgrading database from version " +
> oldVersion + " to "
>+ newVersion + ", which will destroy
> all old data");
>db.execSQL("DROP TABLE IF EXISTS zones");
>db.execSQL("DROP TABLE IF EXISTS geopoints");
>onCreate(db);
>}
>}
>
>public ZoneDB(Context context) {
>context_ = context;
>instance_ = this;
>}
>
>public ZoneDB open() throws SQLException {
>openHelper_ = new DatabaseHelper(context_);
>zoneDB_ = openHelper_.getWritableDatabase();
>return this;
>}
>
>public void close() {
>openHelper_.close();
>}
>
>public long createZone(String name, List points) {
>ContentValues zone = new ContentValues(1);
>zone.put("name", name);
>long zoneID = zoneDB_.insert(ZONES, null, zone);
>
>// Ensure that the start/end point is not included twice
>int length = points.size();
>if (points.get(0).equals(points.get(points.size() - 1)))
>length--;
>
>  

[android-beginners] how to dynamically update classpath in Android emulator?

2009-05-28 Thread sherry

I tried to dynamically load a jar file residing on /sdcard directory
on my Android Emulator. I keep getting classnotfoundexception. If I
include the stub of the classes in the jar file in my app project then
I can find them. This makes me suspect the classpath is the issue: /
sdcard is not in myapp's classpath.

How to update the classpath after I load the jar file so that I can
find the classes in the /sdcard/my.jar ?

Thanks.

Sherry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How can I upgrade from Android 1.0 to 1.5. I am using Android Dev Phone 1 at T-mobile

2009-05-28 Thread zirubak

Hi.

How can I upgrade from Android 1.0 to 1.5

I am using Android Dev Phone 1 at T-mobile.

Thank you.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: very urgent

2009-05-28 Thread Hamy

This is definitely not a complete class, and the database is defined
poorly,  and it does NOT act as preferred - it returns objects instead
of cursors, but it should help you get started. Try to avoid any sites
but developer.android.com when doing the DB stuff, because they are
mostly outdated.

Also, I really considered not replying because of your subject being
so lacking. Please, please next time you post provide a more
meaningful subject. It's common courtesy on mailing lists, so I don't
think I am the only one that would feel this strongly about it.

Hamy

import java.util.ArrayList;
import java.util.List;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.Projection;

public class ZoneDB {
private static final String DATABASE_NAME = "ZoneDB";
private static final int DATABASE_VERSION = 1;
private static final String TAG = "ZoneDB";

private static final String ZONES = "zones";
private static final String CREATE_ZONES_TABLE = "CREATE TABLE IF NOT
EXISTS zones ("
+ "id INTEGER NOT NULL, "
+ "name TEXT(100), "
+ "PRIMARY KEY (id));";
// For copy-paste
// CREATE TABLE IF NOT EXISTS zones (id INTEGER NOT NULL, name TEXT
(100),
// PRIMARY KEY (id));
private static final String GEOPOINTS = "geopoints";
private static final String CREATE_GEOPOINTS_TABLE = "CREATE TABLE IF
NOT EXISTS geopoints ("
+ "id INTEGER NOT NULL, "
+ "zoneid INTEGER NOT NULL, "
+ "point_order INTEGER NOT NULL, "
+ "latitude INTEGER NOT NULL, "
+ "longitude INTEGER NOT NULL, " + "PRIMARY KEY (id));";
// For copy-paste
// CREATE TABLE IF NOT EXISTS geopoints (id INTEGER NOT NULL, zoneid
INTEGER
// NOT NULL, point_order INTEGER NOT NULL, latitude INTEGER NOT NULL,
// longitude INTEGER NOT NULL, PRIMARY KEY (id));

private SQLiteDatabase zoneDB_;
private DatabaseHelper openHelper_;
private final Context context_;
private static ZoneDB instance_ = null;
private Projection proj_;

public static ZoneDB getInstance() {
if (instance_ == null)
throw new RuntimeException(
"ZoneDB: Someone did not construct the 
instance!");
return instance_;
}

/**
 * Helps us create, update, and open/close databases
 */
private static class DatabaseHelper extends SQLiteOpenHelper {

public DatabaseHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(CREATE_ZONES_TABLE);
db.execSQL(CREATE_GEOPOINTS_TABLE);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion) {
Log.w(TAG, "Upgrading database from version " + 
oldVersion + " to "
+ newVersion + ", which will destroy 
all old data");
db.execSQL("DROP TABLE IF EXISTS zones");
db.execSQL("DROP TABLE IF EXISTS geopoints");
onCreate(db);
}
}

public ZoneDB(Context context) {
context_ = context;
instance_ = this;
}

public ZoneDB open() throws SQLException {
openHelper_ = new DatabaseHelper(context_);
zoneDB_ = openHelper_.getWritableDatabase();
return this;
}

public void close() {
openHelper_.close();
}

public long createZone(String name, List points) {
ContentValues zone = new ContentValues(1);
zone.put("name", name);
long zoneID = zoneDB_.insert(ZONES, null, zone);

// Ensure that the start/end point is not included twice
int length = points.size();
if (points.get(0).equals(points.get(points.size() - 1)))
length--;

// Store all points
for (int i = 0; i < length; i++) {
// zoneID, pointOrder, last, lng
ContentValues geopoints = new ContentValues(4);
geopoints.put("zoneid", zoneID);
geopoints.put("point_o

[android-beginners] [INSTALL_FAILED_ALREADY_EXISTS]-failure?

2009-05-28 Thread mievuan

Hello!
I've started to get  [INSTALL_FAILED_ALREADY_EXISTS]-error when I try
to update an application that has already been installed on the
device. Previously I've been able to upload an .apk-file to a web
server and then browse to that package with a devices web browser and
install the updated package from there, and the new package has
successfully replaced the old one.

Now however the install fails and I get the error. The same thing
happens if I try to install via usb using adb -d install-command from
shell.
I manage to install the application if I first remove the old one from
the phone, or if I issue the command "adb install -r
.apk". However these are of little help if I wish to
grant user the possibility to download and install an updated package
from a web server as described above.  The behaviour is similar in the
emulator if I try to install a package there with simple adb install-
command.

I've made sure I use properly signed packages with "jarsigned -verify"-
command and I've tried incrementing the androidmanifest.xml's version
information of packages.
Also, before the failure message comes, I can see in the logcat a
packagemanager warning:
"WARN/PackageManager(50): Attempt to re-install  without
first uninstalling."

This probably has something to do with the error but I can't figure
out what I've changed to cause this error. Only thing that I can
recall has changed in my code was adding a broadcastlistener for some
actions happening in the system, but that can hardly be the cause of
this? I also tried removing that block of code but the error persists.

If anybody has any insight on how to solve this problem, I'd be very
grateful. My own ideas are running out :(

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: [android-beginners]Screen pointer

2009-05-28 Thread Mark Murphy

> Nobody likes the finger usability of Android more than me... But what if
> want some precisioning pointing? Some drawing in small areas, for example?
> Do you guys know any pointer or pen that works with android? Does it
> matter
> what we use to touch the screen?
>
> Give me your thoughts on this, please.

This isn't an Android question so much as it is a touchscreen hardware
question.

The T-Mobile G1 and HTC Magic use a capacitive touchscreen, which requires
a slightly conductive "pointer", like a finger:

http://en.wikipedia.org/wiki/Touchscreen#Capacitive

I'm not aware of any capacitive touchscreen stylii available, but there's
probably one out there someplace.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android instrumentation class : what is the concept ?

2009-05-28 Thread sachmi2

Hi,

It may be useful fro others, so i m posting it here:

Instrumentation framework is a kind of facility (tool) for the
developer(user) to see the UI activities being executed and can
manually interact with them.
The execution of the activity will be controlled as the test case will
be written according to the need of the application.
The junit automates the test process and the control is provided
through instrumentation test framework.
I think this is just an overview and the real description is quite
deep.
But please update me as still i m going through all these things.

On May 18, 5:08 pm, sachmi2  wrote:
> Hi,
>
> what is the android instrumentation class?
> what is the concept behind it?
> how it uses junit in android?
>
> regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Getting Android Error - Unknown URI: content://media/external/images/media

2009-05-28 Thread Sujay Krishna Suresh
hv u mounted an sdcard image??? if not the external uri wont work...
u can do this by adding emulator option -sdcard  in ur
android preferences...
to make the sdcard image use the command mksdcard command in ur sdk tools...
mksdcard: create a blank FAT32 image to be used with the Android emulator
usage: mksdcard [-l label]  

  if  is a simple integer, it specifies a size in bytes
  if  is an integer followed by 'K', it specifies a size in KiB
  if  is an integer followed by 'M', it specifies a size in MiB

hope this works...

On Thu, May 28, 2009 at 5:21 PM, Prashant wrote:

>
> Hi All,
>
> I got following error on running emulator from eclipse
>  Unknown URI: content://media/external/images/media
>
> Let me know where I am wrong.
>
> my code snippets:
> /***/
> package com.android.examples;
>
> import android.app.Activity;
> import android.content.ContentValues;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.widget.Toast;
> import android.provider.*;
> import android.provider.MediaStore.Images.Media;
> import android.util.Log;
> import java.io.OutputStream;
> import android.graphics.Bitmap;
> import android.graphics.BitmapFactory;
>
> public class DatabaseProviderActivity extends Activity {
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>/*Delete all the entries from the table
>To delete a particular entry from table, in content uri,
> specify id
>(content://com.android.examples.CDatabaseProvider/books/2) */
>getContentResolver().delete(
>  Uri.parse(
>  "content://com.android.examples.CDatabaseProvider/
> books"),
>  null, null);
>
>Uri uri;
>  //---add a book--- Put the appropriate values and insert it into
> table.
>ContentValues values = new ContentValues();
>values.put(Media.DISPLAY_NAME, "media_image_1");
>values.put(Media.DESCRIPTION, "lot of media images");
>values.put(Media.MIME_TYPE, "image/png");
>
>try {
>uri =
> getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
> values);
>
>Bitmap sourceBitmap = BitmapFactory.decodeResource
> (getResources(), R.drawable.icon);
>
>  OutputStream outStream = getContentResolver
> ().openOutputStream(uri);
>  sourceBitmap.compress(Bitmap.CompressFormat.PNG, 50,
> outStream);
> outStream.close();
>}
>
>catch (Exception e) {
>Log.i("Exception", "exception while inserting image: " +
> e.getMessage());
>}
>
>try
>{
>Cursor c =
>Media.query(getContentResolver(),
>Media.EXTERNAL_CONTENT_URI,
>new String[] {Media.DATA} );
>if (c.moveToFirst())
>Log.i("IMAGE", "TEST QUERY NOT EMPTY!");
>else
>Log.i("IMAGE", "Test query empty :(");
>
>}
>catch(Exception e)
>{
>Log.i("Exception", "exception while fetching image: " +
> e.getMessage());
>}
> }
>
> /***/
>
> Regards
> Prashant
>
> >
>


-- 
Regards,
Sujay
Helen Rowland
- "One man's folly is another man's wife."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Getting Android Error - Unknown URI: content://media/external/images/media

2009-05-28 Thread Prashant

Hi All,

I got following error on running emulator from eclipse
 Unknown URI: content://media/external/images/media

Let me know where I am wrong.

my code snippets:
/***/
package com.android.examples;

import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Toast;
import android.provider.*;
import android.provider.MediaStore.Images.Media;
import android.util.Log;
import java.io.OutputStream;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class DatabaseProviderActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

/*Delete all the entries from the table
To delete a particular entry from table, in content uri,
specify id
(content://com.android.examples.CDatabaseProvider/books/2) */
getContentResolver().delete(
  Uri.parse(
  "content://com.android.examples.CDatabaseProvider/
books"),
  null, null);

Uri uri;
  //---add a book--- Put the appropriate values and insert it into
table.
ContentValues values = new ContentValues();
values.put(Media.DISPLAY_NAME, "media_image_1");
values.put(Media.DESCRIPTION, "lot of media images");
values.put(Media.MIME_TYPE, "image/png");

try {
uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);

Bitmap sourceBitmap = BitmapFactory.decodeResource
(getResources(), R.drawable.icon);

  OutputStream outStream = getContentResolver
().openOutputStream(uri);
  sourceBitmap.compress(Bitmap.CompressFormat.PNG, 50,
outStream);
 outStream.close();
}

catch (Exception e) {
Log.i("Exception", "exception while inserting image: " +
e.getMessage());
}

try
{
Cursor c =
Media.query(getContentResolver(),
Media.EXTERNAL_CONTENT_URI,
new String[] {Media.DATA} );
if (c.moveToFirst())
Log.i("IMAGE", "TEST QUERY NOT EMPTY!");
else
Log.i("IMAGE", "Test query empty :(");

}
catch(Exception e)
{
Log.i("Exception", "exception while fetching image: " +
e.getMessage());
}
}

/***/

Regards
Prashant

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] [android-beginners]Screen pointer

2009-05-28 Thread Rafa Perfeito
Hey,
Nobody likes the finger usability of Android more than me... But what if
want some precisioning pointing? Some drawing in small areas, for example?
Do you guys know any pointer or pen that works with android? Does it matter
what we use to touch the screen?

Give me your thoughts on this, please.
Thanks
Cheers

-- 
Cumprimentos,

Hugo Rafael Augusto

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Sprite in Android

2009-05-28 Thread Sean Hodges

Vinny,

GameDev.net (http://www.gamedev.net/reference/start_here/) and
DevMaster.net (http://www.devmaster.net/wiki/Main_Page) are good
places to start. There are some good books available too, check out
Amazon.

In my opinion, you should really gather some experience developing
games for the PC before attempting much on embedded device platforms.
Run through a few tutorials and get a feel for game development.

Regards,

Sean


On Thu, May 28, 2009 at 10:50 AM, vinny.s...@gmail.com
 wrote:
>
> Hi friends
> Actual i am moving into the starategy game development
> can any body hwlp me how to create a sprite
> and can u give me saome basics sites of developeing games
>
> thanks
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] help with intent for uploader

2009-05-28 Thread Sujay Krishna Suresh
Hi everyone,
  i'm trying to build an application that captures an image & shares it...
 'm calling the inbuilt camera application with the following code

  Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
  startActivityForResult(i, 0);
 
N my on activity result is

 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
  super.onActivityResult(requestCode, resultCode, data);
  if (requestCode == 0 && resultCode == Activity.RESULT_OK) {

  Intent i = new Intent(Intent.ACTION_SEND);
  i.setType("image/jpeg");
  i.putExtras(data);
  startActivity(i);
  }
  finish();
}

whenever i select the upload button i get a toast sayin
 couldn't send photo data not available...
anyone can temme wats goin wrong??
i'm using SDK 1.0 r2
-- 
Regards,
Sujay


-- 
Regards,
Sujay
Frank Lloyd 
Wright
- "TV is chewing gum for the eyes."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to set the width of Dialog Box?

2009-05-28 Thread Rotem Or
im not sure but i think the dialg will wrapp the content
so you can put yor content in a relativeView or any other before and then
put the container in the diallg
this will let you set with and hight

On May 27, 2009 5:02 AM, "swati shamkuwar"  wrote:

Hi

In my project i want to set the width for dialogBox
DialogBox is containing 4 textView and 4 spinner items with one Button.

So i want to set the width as one textView and one spinner item will place
horizontally.
Any suggestions will welcome with code.

Thanks in advance
-Android beginner


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android emulator starts with a dialog promoting what is the HOME

2009-05-28 Thread David Turner
"emulator @ -wipe-data" is your friend :-) no need to reinstall

On Thu, May 28, 2009 at 10:37 AM, Sean Hodges
wrote:

>
> It sounds like you installed an app on the emulator that declares
> itself as a "home" app to Android.
>
> Usually you have a checkbox at the bottom of the dialog that allows
> you to tell it not to ask again. Worst case scenario; just ditch the
> whole emulator and re-install it.
>
> I'm not sure on how you reset it (maybe a factory reset in the
> Settings like the phone?), but assuming you've kept everything backed
> up, it might be easier just to start with a fresh emulator instance.
>
>
>
> On Wed, May 27, 2009 at 10:31 PM, Meryl Silverburgh
>  wrote:
> >
> > Hi,
> >
> > Why sometimes when I start Android emulator starts with a dialog
> > promoting what is the HOME?
> > How can I make that dialog goes away? And how can I reset the android
> > emulator so that the dialog appears again?
> > I have tried starting the emulator with '-wipe-data', that does not
> > prompt me back that dialog?
> >
> > Thank you.
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Sprite in Android

2009-05-28 Thread vinny.s...@gmail.com

Hi friends
Actual i am moving into the starategy game development
can any body hwlp me how to create a sprite
and can u give me saome basics sites of developeing games

thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android emulator starts with a dialog promoting what is the HOME

2009-05-28 Thread Sean Hodges

It sounds like you installed an app on the emulator that declares
itself as a "home" app to Android.

Usually you have a checkbox at the bottom of the dialog that allows
you to tell it not to ask again. Worst case scenario; just ditch the
whole emulator and re-install it.

I'm not sure on how you reset it (maybe a factory reset in the
Settings like the phone?), but assuming you've kept everything backed
up, it might be easier just to start with a fresh emulator instance.



On Wed, May 27, 2009 at 10:31 PM, Meryl Silverburgh
 wrote:
>
> Hi,
>
> Why sometimes when I start Android emulator starts with a dialog
> promoting what is the HOME?
> How can I make that dialog goes away? And how can I reset the android
> emulator so that the dialog appears again?
> I have tried starting the emulator with '-wipe-data', that does not
> prompt me back that dialog?
>
> Thank you.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: vertical scrolling TableLayout

2009-05-28 Thread Sean Hodges

I'm not sure on the purpose of the scrollbar attributes on the
TableLayout, usually if you want scrollbars on a layout, you wrap them
in a ScrollView:






...








Regards,

Sean


On Thu, May 28, 2009 at 12:07 AM, solid  wrote:
>
> I have a TableLayout that I am trying to set as scrolling vertical but
> the android framework is ignoring all of the scroll related
> attributes.
>
>         android:layout_width="wrap_content"
> android:layout_height="fill_parent"
>        android:spacing="40dip" android:isScrollContainer="true"
> android:isScrollContainer="true"
>        android:scrollbarStyle="insideOverlay" android:scrollbars="vertical"
> android:stretchColumns="4">
> 
>
> At runtime I add a bunch of TableRow objects but like I said, the fill
> the table until they are off the screen.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---