[android-beginners] Create a Button on a Canvas

2009-05-15 Thread Neha

Hi,

Can we create a button on a canvas without defining the button widget
in the layout file. ie there is no layout .xml file defined for the
application.

Urgent help required please.

Thanks and Regards,
Neha
--~--~-~--~~~---~--~~
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] shared variables between activity and service

2009-05-15 Thread abdelkarim bezi
hi everybody, i'm an a beginner in android
i have developed a service which get GPS location , it works good (it works
in its own process)
i have another activity in my application who need the value of this
location but i can't read this value from the class service
my question is how to share variable between activity and service? and how
how to communicate them?
i need an example.
thanks to all.

--~--~-~--~~~---~--~~
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: shared variables between activity and service

2009-05-15 Thread Naveen Krishna Ch
Intent FileViewActivity = new Intent(this, FileView.class);
FileViewActivity.putExtra("file",file.mFileName);

This code in activity is an intent to the FileView  class may be ur service
Intent recievedIntent = getIntent();
opendFileName = recievedIntent.getStringExtra("file");
This code in ur service which recieves the intent...
This worked for me, might help u too.


2009/5/15 abdelkarim bezi 

> hi everybody, i'm an a beginner in android
> i have developed a service which get GPS location , it works good (it works
> in its own process)
> i have another activity in my application who need the value of this
> location but i can't read this value from the class service
> my question is how to share variable between activity and service? and how
> how to communicate them?
> i need an example.
> thanks to all.
>
>
> >
>


-- 
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: Errors in VideoPlayer

2009-05-15 Thread weird0

Has somebody tried implementing the VideoPlayer given on the site
above?

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: android emulator window hangs when closing window

2009-05-15 Thread David Turner
this is probably to audio. Can you tell me if starting the emulator with
"emulator -audio none" does solve the issue.
If is does, can you try the following values instead of "none":  "alsa",
"oss", "sdl" and "esd" and let me know which work, and which do not.

Note: in certain cases, the EsounD daemon (or equivalent) will go into a
weird infinite loop and freeze the desktop when
quitting the emulator. This generally happens on Ubuntu 6.04, which is
pretty old now.

On Thu, May 14, 2009 at 3:49 PM, jimbo  wrote:

>
> Hi,
>
> After installing android SDK 1.5 r1 and the ADT plugin for Eclipse
> Ganymede 3.4.2 on Ubuntu 32 bit 9.04 (Jaunty), I find that after
> running any android application (with no problems), that I am unable
> to terminate the emulator instance by closing the window. It just
> hangs and I have to call kill -9 to terminate the process. This
> happens irrespective of whatever AVD target I choose (1.1 or 1.5).
>
> The same happens even if I run the emulator from a terminal (by
> passing eclipse altogether) by calling 'emulator -avd myavd -netspeed
> full -netdelay none' . Adding the -verbose and -logcat and -show-
> kernel flags does not help resolve the issue.
>
> I have looked widely for a solution on the Web but this problem does
> not appear much.
>
> Any ideas on how to resolve this or is there another way to terminate
> the emulator instance?
>
> Thanks,
> Jim
>
> >
>

--~--~-~--~~~---~--~~
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] startActivityForResult/onActivityResult question

2009-05-15 Thread Tom Opgenorth

Hello all,
I'm new to Android development, and am a bit confused here.  I'm
hoping someone can help me out.  I hope I've got the correct list.
Anyway, I've got a very simple Activity, one EditText and one Button.
Lets call it MyActivity.  Now, when I click on the button on
MyActivity, I want to take a picture using the camera.  For the sake
of this e-mail, lets call the activity that gets spawned when I click
on the button CameraActivity.

Here is how I've setup my button:

Button takePictureButton = (Button)
this.findViewById(R.id.receipt_take_picture_button);
takePictureButton.setOnClickListener(new View.OnClickListener() 
{
public void onClick(View v) {
ContentValues values = new ContentValues();
values.put(Media.TITLE, "IMAGE");
values.put(Media.DESCRIPTION, "Image Captured 
by Camera");
Uri uri = 
getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
Intent i = new 
Intent("android.media.action.IMAGE_CAPTURE");
i.putExtra("output", uri);
startActivityForResult(i, 
ACTIVITY_TAKE_PICTURE_WITH_INTENT);
}
});
As I understand it, click the button will cause MyActivity to start up
CameraActivity, which is just the default camera application, to take
a picture.  Because I've used startActivityForResult, when
CameraActivity finishes, MyActivity should be notified via it's
onActivityResult.  Below is how I've coded it up:

I've defined my onActivityResult as follows:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case (ACTIVITY_TAKE_PICTURE_WITH_INTENT):
Log.d(TAG, "WOW!");
default:
break;
}
}

So, what has me confused is this:  I would expect onActivityResult to
be called AFTER I take a picture, i.e. when I click on the picture
button.  Instead, it seems to get called immediately:  I click on the
takeAPictureButton, the camera activity starts up at about the same
time the code in onActivityResult gets fired.  Am I missing something
here?

-- 
http://www.opgenorth.net

--~--~-~--~~~---~--~~
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 setup Android Emulator

2009-05-15 Thread P.J. de Bruin

I do not have an Android phone but I'm trying the Android Emulator,
with Android 1.5.
It works (very slowly) but no account setup procedure appears.
Also, applications like GMail and Maps are missing.
So:
1. How do I set up my Google account on the phone?
2. How do I add applications?
3. Is there a proper Android manual somewhere?

--~--~-~--~~~---~--~~
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 window hangs when closing window

2009-05-15 Thread Emit

Jim, do you leave Eclipse up and running when you try to close the
emulator?

I found on my Windows system that the emulator crashes upon closing if
I first exit out of Eclipse, so this is the only thought I have, that
it might hang on a Linux system under the same circumstance.

Tim

On May 14, 9:49 am, jimbo  wrote:
> Hi,
>
> After installing android SDK 1.5 r1 and the ADT plugin for Eclipse
> Ganymede 3.4.2 on Ubuntu 32 bit 9.04 (Jaunty), I find that after
> running any android application (with no problems), that I am unable
> to terminate the emulator instance by closing the window. It just
> hangs and I have to call kill -9 to terminate the process. This
> happens irrespective of whatever AVD target I choose (1.1 or 1.5).
>
> The same happens even if I run the emulator from a terminal (by
> passing eclipse altogether) by calling 'emulator -avd myavd -netspeed
> full -netdelay none' . Adding the -verbose and -logcat and -show-
> kernel flags does not help resolve the issue.
>
> I have looked widely for a solution on the Web but this problem does
> not appear much.
>
> Any ideas on how to resolve this or is there another way to terminate
> the emulator instance?
>
> Thanks,
> Jim

--~--~-~--~~~---~--~~
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] Emulator invalid command-line parameter: HVGA

2009-05-15 Thread yaocl

When I use Eclipse ADT to run a HelloWorld sample, i got the error
output:

[2009-05-15 12:44:26 - HelloWorld] --
[2009-05-15 12:44:26 - HelloWorld] Android Launch!
[2009-05-15 12:44:26 - HelloWorld] adb is running normally.
[2009-05-15 12:44:26 - HelloWorld] Performing helloworld.HelloWorld
activity launch
[2009-05-15 12:44:26 - HelloWorld] Automatic Target Mode: launching
new emulator with compatible AVD 'avd2'
[2009-05-15 12:44:26 - HelloWorld] Launching a new emulator with
Virtual Device 'avd2'
[2009-05-15 12:44:26 - Emulator] invalid command-line parameter: HVGA.
[2009-05-15 12:44:26 - Emulator] Hint: use '@foo' to launch a virtual
device named 'foo'.
[2009-05-15 12:44:26 - Emulator] please use -help for more information

How to resolve this problem?

Eclipse Platform  Version: 3.4.2   Build id: M20090211-1700
ADT version 0.9.1.v200905011822-1621
And I had created an avd with the command line in the following:
>android create avd -t 2 -n avd2

--~--~-~--~~~---~--~~
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 window hangs when closing window

2009-05-15 Thread Emit

Jim, I thought I replied to this, rather than to Sender, but I still
do not see my response, so if this is a duplicate, please ignore.

Are you closing the emulator window while Eclipse is still running? Or
after terminating Eclipse?


On May 14, 9:49 am, jimbo  wrote:
> Hi,
>
> After installing android SDK 1.5 r1 and the ADT plugin for Eclipse
> Ganymede 3.4.2 on Ubuntu 32 bit 9.04 (Jaunty), I find that after
> running any android application (with no problems), that I am unable
> to terminate the emulator instance by closing the window. It just
> hangs and I have to call kill -9 to terminate the process. This
> happens irrespective of whatever AVD target I choose (1.1 or 1.5).
>
> The same happens even if I run the emulator from a terminal (by
> passing eclipse altogether) by calling 'emulator -avd myavd -netspeed
> full -netdelay none' . Adding the -verbose and -logcat and -show-
> kernel flags does not help resolve the issue.
>
> I have looked widely for a solution on the Web but this problem does
> not appear much.
>
> Any ideas on how to resolve this or is there another way to terminate
> the emulator instance?
>
> Thanks,
> Jim

--~--~-~--~~~---~--~~
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] i want to connect the emulator with the tomcat server using http protocol

2009-05-15 Thread sahil4187

i want to develope the application in which i want to the data from
server so can anyone tell me the procedure of that connetion..

--~--~-~--~~~---~--~~
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] 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 shared object.)
This rendering screen inturn has some menus like pause/stop etc.

2.Now on seleting any of these menus, i want to call the respective
native C functions.(All that needs to call the native C fucntions
should be done in a child thread.)

For example, when the rendering is going on(Worker thread), if the
user clicks on pause button on that screen, the Main thread should
pick this event and send a msg to Worker thread saying a pause event
has come and based on this msg, child thread will cal its own native C
pause function to pause the animation.( I donot want to do any
animation related stuffs in my main thread for better performance & I
have all native pause/run/stop/et all been implemented too.)

3. In total,i need to handle all native C related acivities in a child
thread and all the notification related to UI in a main thread.


Is there any good way of doing this? The APIs in Handler make child to
post a message to the main thread after its execution. But what i want
is, any UI event shud be notified to Main first which would then tell
child to act accordingly.


This looks like a typical scenario in almost all mobile games. Hope
there is a good solution!! Please do suggest. Any ideas in this regard
are highly appreciable

Thanks
Latha


--~--~-~--~~~---~--~~
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 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

Regards,
Salman Khursheed Khaleequi Naqshbandi
Software Engineer Eagersoft (PVT) Ltd.

--~--~-~--~~~---~--~~
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] OpenGL engine

2009-05-15 Thread Rafa Perfeito
Hey droiders,
Im using the SDK 1.5 and Eclipse IDE and i'm trying to build some
graphic applications. Does anyone knows a good graphics engine with good
results on android?

So far all i found where OpenGL tutorials but i wanted something simpler in
usage

Thanks

-- 
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] Ad-hoc support?

2009-05-15 Thread Joe C.

I've done some searching and maybe found some cryptic evidence of
people somehow writing code that enables wi-fi ad-hoc support for the
G1. I am very interested in this solution since it pertains to my
summer project of controlling an RC car using telnet over an ad-hoc wi-
fi connection. Does anyone have any details as to how/if this can be
done?

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] Issue with Animation

2009-05-15 Thread m8

HI

I am trying to create the set of animation on the ImageView but the
problem is once I use set, it not doing continuously,

1) My XML file
http://schemas.android.com/apk/res/android";
 android:shareInterpolator="true">

 


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

ImageView imageView = (ImageView) findViewById
(R.id.imageview);
Animation my2dAnimation = AnimationUtils.loadAnimation(this,
R.anim.my2danimation);
imageView.setImageResource(R.drawable.icon);
//my2dAnimation.setRepeatCount(Animation.INFINITE);
my2dAnimation.setRepeatMode(Animation.RESTART);
imageView.startAnimation(my2dAnimation);
}
}

If I remove  than it works but than I can't add more than one
animation.

--~--~-~--~~~---~--~~
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] PV2wayEngine crash

2009-05-15 Thread srinu gorle

-- Forwarded message --
From: srinu gorle 
Date: Fri, 15 May 2009 17:21:48 +0530
Subject: PV2wayEngine crash
To: android-develop...@googlegroups.com

Hi,
i want to test h324m Telephony,

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 find any document related to test case numbers


please find Log :


I/DEBUG   (  539): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (  539): Build fingerprint:
'generic/generic/generic/:1.5/CUPCAKE/eng.root.20090513.180712:eng/test-keys'
I/DEBUG   (  539): pid: 720, tid: 722  >>> ./pv2way_omx_engine_test <<<
I/DEBUG   (  539): signal 11 (SIGSEGV), fault addr 
I/DEBUG   (  539):  r0   r1   r2 a70d989c  r3 0001
I/DEBUG   (  539):  r4 0013c800  r5 000c  r6 0001  r7 0013c800
I/DEBUG   (  539):  r8 be9779a0  r9 afe39dd0  10 a73c4a05  fp 0001
I/DEBUG   (  539):  ip a7116444  sp 4000cc70  lr a7350a61  pc a7350a28
 cpsr 0030
I/DEBUG   (  539):  #00  pc 00050a28  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #01  pc 00050a5c  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #02  pc 00050aaa  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #03  pc 0005d69a  /system/lib/libopencore_2way.so
I/DEBUG   (  539):  #04  pc 00067a86  /system/lib/libopencore_2way.so
I/DEBUG   (  539):  #05  pc 00067d18  /system/lib/libopencore_2way.so
I/DEBUG   (  539):  #06  pc 00067d44  /system/lib/libopencore_2way.so
I/DEBUG   (  539):  #07  pc 00067df2  /system/lib/libopencore_2way.so
I/DEBUG   (  539):  #08  pc 000c516c  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #09  pc 0005705a  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #10  pc 00057110  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #11  pc 000571c6  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #12  pc 000c4112  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #13  pc 000c499c  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #14  pc 000c4a8c  /system/lib/libopencore_common.so
I/DEBUG   (  539):  #15  pc f880  /system/lib/libc.so
I/DEBUG   (  539):  #16  pc f3f4  /system/lib/libc.so
I/DEBUG   (  539): stack:
I/DEBUG   (  539): 4000cc30  00dc
I/DEBUG   (  539): 4000cc34  2bb0
I/DEBUG   (  539): 4000cc38  be9779a0  [stack]
I/DEBUG   (  539): 4000cc3c  afe0b663  /system/lib/libc.so
I/DEBUG   (  539): 4000cc40  afe39dd0
I/DEBUG   (  539): 4000cc44  000c
I/DEBUG   (  539): 4000cc48  000f
I/DEBUG   (  539): 4000cc4c  fff3ff4d
I/DEBUG   (  539): 4000cc50  0018
I/DEBUG   (  539): 4000cc54  afe0e940  /system/lib/libc.so
I/DEBUG   (  539): 4000cc58  0015a860  [heap]
I/DEBUG   (  539): 4000cc5c  afe0ecd4  /system/lib/libc.so
I/DEBUG   (  539): 4000cc60  0015a860  [heap]
I/DEBUG   (  539): 4000cc64  01b4
I/DEBUG   (  539): 4000cc68  df002777
I/DEBUG   (  539): 4000cc6c  e3a070ad
I/DEBUG   (  539): #00 4000cc70  be9779a0  [stack]
I/DEBUG   (  539): 4000cc74  4000
I/DEBUG   (  539): 4000cc78  a70d989c  /system/lib/libopencore_2way.so
I/DEBUG   (  539): 4000cc7c  
I/DEBUG   (  539): 4000cc80  0014f4c0  [heap]
I/DEBUG   (  539): 4000cc84  0013c800  [heap]
I/DEBUG   (  539): 4000cc88  
I/DEBUG   (  539): 4000cc8c  4000
I/DEBUG   (  539): 4000cc90  a70d989c  /system/lib/libopencore_2way.so
I/DEBUG   (  539): 4000cc94  a7350a61  /system/lib/libopencore_common.so
I/DEBUG   (  539): #01 4000cc98  0001
I/DEBUG   (  539): 4000cc9c  001493a8  [heap]
I/DEBUG   (  539): 4000cca0  
I/DEBUG   (  539): 4000cca4  a70d989c  /system/lib/libopencore_2way.so
I/DEBUG   (  539): 4000cca8  a7116380
I/DEBUG   (  539): 4000ccac  a7350aaf  /system/lib/libopencore_common.so
D/dalvikvm(  606): GC freed 9824 objects / 554896 bytes in 193ms
D/dalvikvm(  567): GC freed 12801 objects / 597064 bytes in 195ms
D/dalvikvm(  606): GC freed 9637 objects / 541336 bytes in 253ms



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] to design a new game

2009-05-15 Thread kavita solanki
what if wanted to design a new game in andriod

--~--~-~--~~~---~--~~
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] ADT Plugin

2009-05-15 Thread medelin

Hi,

I coudn't fetch the ADT Eclipse plugin using the address provided by
doc: https://dl-ssl.google.com/android/eclipse/

Someone confirm this?

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] SQLite version in Android 1.5

2009-05-15 Thread David

I am having trouble opening a database I imported and copied from my
mac.  this worked in Android 1.1.  I get "unable to open database"
What version of SQLite is used in Android 1.5?  has it changed?

--~--~-~--~~~---~--~~
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 birthday field from Google Contacts

2009-05-15 Thread Manuel Klimek

Hi,

now that Google contacts finally has the "Birthday" field, I try to
find a way to read it from an android application. Unfortunately it
looks like it's not exported by the People content provider. I did a
little STFWing, but didn't find anything that sounded like it was "the
right way". Any hints to what keywords I should search for would be
highly appreciated.

Thanks,
/Manuel

--~--~-~--~~~---~--~~
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 mute and unmute a MediaPlayer playback

2009-05-15 Thread bar

Hi all,

I want to mute an audio playback and then unmute it so unmute should
restore the volume to its previous level.
I just want to mute the song audio, not the general device audio, I've
found that setVolume will work for "mute" (setVolume to 0) but I don't
know how to know the current volume of the audio playback.

What I need is, when mute is called store the current value, then when
unmute is called use these stored values.

Anyone know how to get the current volume level of the audioPlayer??

Thanks,
Ber

--~--~-~--~~~---~--~~
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: ADT Plugin

2009-05-15 Thread Naveen Krishna Ch
There is ADT 0.9.1.zip available on net, its hase some more features than
0.9.0
use it with SDK 1.5...
0.8.0 does not support SDK 1.5..
if this 2 things are met its fine


2009/5/15 medelin 

>
> Hi,
>
> I coudn't fetch the ADT Eclipse plugin using the address provided by
> doc: https://dl-ssl.google.com/android/eclipse/
>
> Someone confirm this?
>
> Regards
>
> >
>


-- 
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: i want to connect the emulator with the tomcat server using http protocol

2009-05-15 Thread Mark Murphy

> i want to develope the application in which i want to the data from
> server so can anyone tell me the procedure of that connetion..

http://exampledepot.com/egs/java.net/pkg.html
http://hc.apache.org

Both of these are available in Android.

-- 
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: Query - Android UI/worker threads

2009-05-15 Thread Mark Murphy

> 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 shared object.)
> This rendering screen inturn has some menus like pause/stop etc.

You cannot make "native C calls" in an application written to the Android
SDK.

Questions regarding Android firmware development are best asked on a
discussion list that pertains to Android firmware development:

http://source.android.com/discuss

-- 
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: i want to connect the emulator with the tomcat server using http protocol

2009-05-15 Thread sahil mehta
On Thu, May 14, 2009 at 11:45 PM, sahil4187  wrote:

>
> i want to develope the application in which i want to the data from
> server so can anyone tell me the procedure of that connetion..
>
> >

Hey thnks for the reply.. but can you provide some code for that  ??

--~--~-~--~~~---~--~~
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] Loading new view with button press

2009-05-15 Thread superjet

I'm trying to load a new webview after I click a button on my main
view, which loads on application start. My code compiles, and runs
without error, but when I press the button, I see the expected toast
message, but no webview. Instead, I only see a black screen. Can
anyone please tell me what I'm missing here? Alternatively, if a
different approach is a better implementation, please let me know!
Thanks! SJ

Main class code:
package com.example.MasterClass;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.Toast;

public class MasterClass extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
firstView();
}

void firstView() {
  setContentView(R.layout.main);
final ImageButton button = (ImageButton) findViewById
(R.id.android_button);
button.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks
Toast.makeText(MasterClass.this, "Beep Bop",
Toast.LENGTH_SHORT).show();
Intent i = new Intent(MasterClass.this,
SecondClass.class);
startActivity(i);
}
});
}
}

Second Class Code:

package com.example.MasterClass;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class SecondClass extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
   WebView webview;
   webview = (WebView) findViewById(R.id.webview);
   webview.getSettings().setJavaScriptEnabled(true);
   webview.loadUrl("http://www.google.com";);
}
}


--~--~-~--~~~---~--~~
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] Animation help

2009-05-15 Thread Sheepz

Hi, I've posted this on android developers and got no answer so i was
thinking maybe somebody here knows:
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 there any way an imageview
can move from the topleft cell to the bottomright cell?
Everything I tried seems to indicate that an imageview will only be
shown in it's own container - none of it's parents, siblings or
children will show it.
Is that correct? is there any way around it? like creating an overlay
or a transparent canvas on top of the entire thing so I can do it?
thanks,
Sh.
--~--~-~--~~~---~--~~
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: OpenGL engine

2009-05-15 Thread Yusuf T. Mobile

If you are trying to use 3D graphics, then OpenGL is currently your
best bet on Android, sorry.

If however you only need 2D graphics, then Android has a custom API
that might suit your needs: 
http://developer.android.com/guide/topics/graphics/2d-graphics.html



-
Seja bem-vindo,

Yusuf Saib
Android
·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 15, 8:29 am, Rafa Perfeito  wrote:
> Hey droiders,
> Im using the SDK 1.5 and Eclipse IDE and i'm trying to build some
> graphic applications. Does anyone knows a good graphics engine with good
> results on android?
>
> So far all i found where OpenGL tutorials but i wanted something simpler in
> usage
>
> Thanks
>
> --
> 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] Onscreen keyboard

2009-05-15 Thread jknox

My unlocked development phone arrived just about 2 weeks ago.  It
doesn't have the on-screen keyboard.  I've got the program running on
the emulator - but am I missing an update for the actual phone
firmware?  [Previous announcements said all phones after January 2009
would have the keyboard, same as the emulator.]   tnx.
--~--~-~--~~~---~--~~
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] Moving files to phone

2009-05-15 Thread jknox

I have my app running under both the emulator and the newly arrived
Android development phone.  The app works (except for a keyboard
issue), but it is missing the files I need to move over to the
phone.

For the emulator I could use the ADB utility (push) or the file
explorer under Eclipse.  However, for the actual phone, ADB is saying
"read only" when I try to push (possibly I need to qualify the
destination better).  And in file explorer I can not see the
application - even though it is there on the phone screen (and runs).

Suggestions???
  jmk

--~--~-~--~~~---~--~~
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: Errors in VideoPlayer

2009-05-15 Thread weird0

I tried fixing the errors by changing the return types from void to
boolean and boolean to void. The code became error-free.

But after I ran the application on the emulator.. It gave the
error ...

The application VideoPlayer( process.com.example.VideoPlayer )  has
stopped unexpectedly. Please try again.

Force Close.

How do I fix it? How do i debug it or check the log  ? Need help.

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: Create a Button on a Canvas

2009-05-15 Thread ayush

i had tried a similar approach but it managed to get it to work. in
fact even defining the button in XML didnt work. i had put up a
message in this regard but got no response :(
the workaround was something like this - in the activity being
displayed, define the View (which has the canvas) and the button
separately. then use a ViewGroup container (i used a RelativeLayout)
and add the View and the Button as child views to this Container.
finally you use setContetView(myLayoutContainer) to display it all. u
can use the LayoutParams to position the button anywhere within the
container. its a simple matter to get a "handle" to the button
anywhere in your code so as to register the click events.
from what i gather, if you need to display two or more views (i.e. ur
View with the canvas and the Button) then it is necessary to use a
ViewGroup object such as LinearLayout, RelativeLayout etc.

hope that helps.



On May 15, 3:06 pm, Neha  wrote:
> Hi,
>
> Can we create a button on a canvas without defining the button widget
> in the layout file. ie there is no layout .xml file defined for the
> application.
>
> Urgent help required please.
>
> Thanks and Regards,
> Neha
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---