[android-beginners] getline support?

2009-01-19 Thread Kishor
Hi All,

Does Android C library supports getline() function?
My code is giving error "undefined reference to `getline'" while compiling.

Does it have some other function instead of getline?
Thanks in Advance!

Regards,
Krish

--~--~-~--~~~---~--~~
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 airplane mode on/off.

2009-01-19 Thread Naeem

Thank u so much Levis. This source code is working.

public static boolean isAirplaneModeOn(Context context)
{
return Settings.System.getInt(context.getContentResolver
(),Settings.System.AIRPLANE_MODE_ON, 0) != 0;
}
/**
 *
 * @param status
 */
public static void setAirplaneMode(Context context,boolean 
status)
{
boolean isAirplaneModeOn = isAirplaneModeOn(context);

if(isAirplaneModeOn && status)
{
return;
}
if(!isAirplaneModeOn && !status)
{
return;
}
if(isAirplaneModeOn && !status)
{

Settings.System.putInt(AppContext.getInstance().getContext
().getContentResolver(),
Settings.System.AIRPLANE_MODE_ON, 0);
Intent intent = new Intent
(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", 0);
AppContext.getInstance().getContext().sendBroadcast
(intent);
return;
}
if(!isAirplaneModeOn && status)
{

Settings.System.putInt(AppContext.getInstance().getContext
().getContentResolver(),
Settings.System.AIRPLANE_MODE_ON, 1);
Intent intent = new Intent
(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", 1);
AppContext.getInstance().getContext().sendBroadcast
(intent);
return;
}
}


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: :: Flash Games

2009-01-19 Thread 李亮亮

Hi,
Is it possible to use linux version flash player plug-in on x86 for android 
x86 version?

--
From: "ke zeng" 
Sent: Monday, January 19, 2009 2:35 PM
To: 
Subject: [android-beginners] Re: :: Flash Games

>
> Not yet, adobe have given some demos about flash player 10 on android,
> but I can't find where to download them.
>
> On Mon, Jan 19, 2009 at 2:27 PM, Imran  wrote:
>>
>> Hi All..#!!
>>
>>   i am flash developer so i am planning for developing flash games
>> for android. but i want to know does Android Support flash
>> now...??
>>
>> Cheers,
>> Imran
>>
>> >
>>
>
>
>
> -- 
> BR
> Zeng Ke
>
> >
> 

--~--~-~--~~~---~--~~
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 airplane mode on/off.

2009-01-19 Thread levis501

Seems reasonable enough that one could write a different interface for
changing this setting.  "Rings Extended" is a great example of such an
improvement.  I suggest checking out the android source and seeing how
this is done in the settings app.  For instance, in packages/apps/
Settings/src/com/android/settings/AirplaneModeEnabler.java , this is
done with the following code:

Settings.System.putInt(mContext.getContentResolver(),
Settings.System.AIRPLANE_MODE_ON,
enabling ? 1 : 0);
Intent intent = new Intent
(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", enabling);
mContext.sendBroadcast(intent);

This would most certainly require to add security requirements to the
AndroidManifest of your app.

I'm not 100% certain that this possible to do even with the proper
security flags, and I agree that you shouldn't do this without
specific action by the user, as it affects system elements outside of
your particular app.

-Steve

On Jan 19, 5:29 am, Jean-Baptiste Queru  wrote:
> You shouldn't. Changing such a setting is the user's responsibility.
>
> JBQ
>
> On Sun, Jan 18, 2009 at 10:02 PM, Naeem  wrote:
>
> > Hi All,
> > I want to switch on/off airplane mode programmatically. How can I do
> > this. Anybody can help me.
>
> > Thaks
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.

--~--~-~--~~~---~--~~
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] Port-Forwarding

2009-01-19 Thread jtaylor


What is Port-forwarding used for in DDMS?


- Juan T.
--~--~-~--~~~---~--~~
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: Google please give us 'su -' was:Re: Am I root?

2009-01-19 Thread djupp

I guess you could 'install' sudo yourself. I'm no linux crack so I
couldn't tell you exactly how, but building sudo for ARM shouldn't be
too much of a problem, and getting it on the dev phone neither.
But I might be wrong on that one

On Jan 20, 12:56 am, Mike Wolfson  wrote:
> What I really meant was 'sudo'.
>
> Cheers.
>
> On Jan 19, 4:02 pm, Mike Wolfson  wrote:
>
> > I can certainly appreciate that the dev phone ships with root access
> > available (and would love my retail one to have that capability).
>
> > But I can certainly understand why Google would ship with it disabled
> > by default.  Let the people, who maybe shouldn't be root in the
> > first place save themselves from a stupid 'rm -Rf' execution.
>
> > On a side note, I would love if TMob\Google would just implement a 'su
> > -' for the retail phone.  It would help me a lot if I could actually
> > just look around
> > (with restrictions) on the whole phone.  I can't even 'ls'  the data
> > \data and data\app folders on my phone).
>
> > >BTW: To me it seems like a great idea to ship the dev phone with root
> > >access. After all this is true openness..
--~--~-~--~~~---~--~~
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: Problems with R.java in Eclipse 3.4

2009-01-19 Thread djupp

Yeah, that was it, I actually just had to delete the import R.android.
line. It all works now, thanks a lot for your help guys!

On Jan 20, 2:19 am, btilford  wrote:
> Do you have an import for the R class? If so you need to make sure it
> is the R class for your project and not from the android package.
>
> On Jan 19, 5:46 pm, Mike Wolfson  wrote:
>
> > Not sure but sounds like you need to add android.jar to the project
> > classpath (somewhere in Project/properties menu of eclipse).
>
> > It's always the classpath.  Good Luck.
>
> > On Jan 18, 8:26 pm, djupp  wrote:
>
> > > Hello all
> > > I'm sorry, but I couldn't find anything searching for this (maybe I'm
> > > just really bad at searching :))
>
> > > The issue is the following:  I'm trying to write a little app to learn
> > > programming to android devices, but it seems as if my installation of
> > > either Eclipse or the Android SDK is screwed up.
> > > I cannot access any items from my R.java in my 'HelloWorld.java'; and
> > > eclipse refuses to build. But the items are there in R.java (for
> > > example:
> > >  public final class R {
> > >   [...]
> > >     public static final class id {
> > >         public static final int btn_clickme=0x7f050001;
> > >         public static final int txt_name=0x7f05;
> > >   [...]) returns a "cannot resolve name" when used in findViewById
> > > (R.id.txt_name).
>
> > > Any ideas?
> > > Thank you very much!
--~--~-~--~~~---~--~~
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: Problems with R.java in Eclipse 3.4

2009-01-19 Thread btilford

Do you have an import for the R class? If so you need to make sure it
is the R class for your project and not from the android package.

On Jan 19, 5:46 pm, Mike Wolfson  wrote:
> Not sure but sounds like you need to add android.jar to the project
> classpath (somewhere in Project/properties menu of eclipse).
>
> It's always the classpath.  Good Luck.
>
> On Jan 18, 8:26 pm, djupp  wrote:
>
> > Hello all
> > I'm sorry, but I couldn't find anything searching for this (maybe I'm
> > just really bad at searching :))
>
> > The issue is the following:  I'm trying to write a little app to learn
> > programming to android devices, but it seems as if my installation of
> > either Eclipse or the Android SDK is screwed up.
> > I cannot access any items from my R.java in my 'HelloWorld.java'; and
> > eclipse refuses to build. But the items are there in R.java (for
> > example:
> >  public final class R {
> >   [...]
> >     public static final class id {
> >         public static final int btn_clickme=0x7f050001;
> >         public static final int txt_name=0x7f05;
> >   [...]) returns a "cannot resolve name" when used in findViewById
> > (R.id.txt_name).
>
> > Any ideas?
> > Thank you very much!
--~--~-~--~~~---~--~~
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: Problem with DateFormat.format

2009-01-19 Thread btilford

You want to take a look at the javadoc for SimpleDateFormat if your
making up your own format. With plain DateFormat you would use it like
this.

String formatedDate = DateFormat.getDateInstance([optional argument
such as DateFormat.SHORT]).format([your date]);

http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html
http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html

On Jan 19, 6:29 am, JJ  wrote:
> Hi all.
>
> I have a problem using *DateFormat.format *because i think the last class of
> DateFormat have been changed in the last SDK.
>
> Now, i dont think how can i do the format of date and if the correct class
> to do it is  java.sql.Date or java.util.Date...
>
> The code is:
>
> String fecha = DateFormat.format("dd/MM/ kk:mm",new
> Date(rFecha)).toString();
>
> With this, i want to have something like this: 05/01/2009 10:12    for
> example.
>
> This code is from this spanish 
> tutorial:http://groups.google.es/group/desarrolladores-android/web/registro-de...
>
> Thanks for the help, ;-)
--~--~-~--~~~---~--~~
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: Google please give us 'su -' was:Re: Am I root?

2009-01-19 Thread Mike Wolfson

What I really meant was 'sudo'.

Cheers.

On Jan 19, 4:02 pm, Mike Wolfson  wrote:
> I can certainly appreciate that the dev phone ships with root access
> available (and would love my retail one to have that capability).
>
> But I can certainly understand why Google would ship with it disabled
> by default.  Let the people, who maybe shouldn't be root in the
> first place save themselves from a stupid 'rm -Rf' execution.
>
> On a side note, I would love if TMob\Google would just implement a 'su
> -' for the retail phone.  It would help me a lot if I could actually
> just look around
> (with restrictions) on the whole phone.  I can't even 'ls'  the data
> \data and data\app folders on my phone).
>
> >BTW: To me it seems like a great idea to ship the dev phone with root
> >access. After all this is true openness..
--~--~-~--~~~---~--~~
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: Debug on a G1

2009-01-19 Thread Ivan Soto
So, can I still access Android Market and all applications from either a
normal G1 or a Dev version? I just want to make sure there's no difference
since I really want the white one.
Thanks.

On Thu, Jan 15, 2009 at 3:38 PM, Stoyan Damov wrote:

>
> On Thu, Jan 15, 2009 at 10:56 PM, Ivan Soto  wrote:
> > Because I'm thinking on getting just a white G1, not the Developer G1 so
> I
> > wanted to know the differences.
> >
> > Is there anything else I should know?
> >
> > Thanks :)
>
> No, except for the now infamous bug which you *will* experience after
> numerous reinstalls of your app on the phone (search for "TERRIBLE
> BUG" on the android-developers list) where your phone's internal
> memory will decrease until you finally have no memory and will have to
> apply the hack mentioned in the dev list post. My advice - get your
> app first running on the emulator, then on the device.
>
> Cheers,
> Stoyan
>
> P.S.
> I also wanted the white G1 but ordered mine the beginning of December
> when neither a white G1 (released at thanksgiving) nor a dev phone
> (release after 8th I think) was released :(
>
> >
>

--~--~-~--~~~---~--~~
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: Loading dialog

2009-01-19 Thread Ivan Soto
Ok, I'm trying with this now:
showDialog(DIALOG2_KEY);
new Thread(new Runnable(){
public void run(){
TwitAdapter twadapter = new TwitAdapter(
getBaseContext(),
R.layout.list_item , fillTwitter("
http://twitter.com/statuses/public_timeline.xml?count=10";)
 );
setListAdapter(twadapter);
}
}).start();
removeDialog(DIALOG2_KEY);

but it crashes saying:
01-19 23:33:36.294: ERROR/AndroidRuntime(310):
android.view.ViewRoot$CalledFromWrongThreadException: Only the original
thread that created a view hierarchy can touch its views.


Any ideas?

On Fri, Jan 16, 2009 at 12:03 PM, Ivan Soto  wrote:

> I've been trying to do that:
>
> showDialog(DIALOG2_KEY);
> new Thread(new Runnable(){
> public void run(){
> TwitAdapter twadapter = new TwitAdapter( this,
> R.layout.list_item , fillTwitter("
> http://twitter.com/statuses/public_timeline.xml?count=10";)
>  );
> setListAdapter(twadapter);
> }
> }).start();
> removeDialog(DIALOG2_KEY);
>
> but it won't run because I need to refer to the context instead of "this"
> in the TwitAdapter.
>
> And I have no idea how to do that.
>
> Any help?
>
>
> On Fri, Jan 16, 2009 at 6:47 AM, conan  wrote:
>
>>
>> Write your adapter code in a separate handler thread.
>>
>> HTH
>>
>> On Jan 16, 10:55 am, "Ivan Soto"  wrote:
>> > Hi I'm trying to display a Loading dialog, however it shows up AFTER it
>> > shows the listadapter. this is the code:
>> >
>> > showDialog(DIALOG2_KEY);
>> >
>> > TwitAdapter twadapter = new TwitAdapter(
>> > this,
>> > R.layout.list_item , fillTwitter("
>> http://twitter.com/statuses/public_timeline.xml?count=10";)
>> >  );
>> > setListAdapter(twadapter);
>> > removeDialog(DIALOG2_KEY);
>> >
>> > any idea?
>> >
>> > 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: Overwriting data in EditTexts

2009-01-19 Thread Faber Fedor
That's exactly what I Was asking about.  Thanks!

On Sun, Jan 18, 2009 at 2:49 AM, Scynasty  wrote:

>
> If you are talking about the gray text in the edittext that disappears
> when the first letter is typed, in the xml properties for the edittext
> there is a setting for Hint, just type in what you want it to say.
>
> On Jan 17, 8:44 am, "Faber Fedor"  wrote:
> > In my app, you can click "New" to add a new location.  Obviously, the New
> > screen has several EditTexts on it.  I want to clear the field of the
> > EditText when either a) the user enters the field or b) starts typing but
> > only if the data in the field is new data. Just like it happens in the
> > Contacts application; I just can't figure out where in Contacts they do
> it.
> >
> > What's the generally accepted algorithm for this?  Do I check *every*
> > keystroke?  That seems wasteful.
> >
> > --
> >
> > Faber Fedor
> > Cloud Computing New Jerseyhttp://cloudcomputingnj.com
>
> >
>


-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] Google please give us 'su -' was:Re: Am I root?

2009-01-19 Thread Mike Wolfson

I can certainly appreciate that the dev phone ships with root access
available (and would love my retail one to have that capability).

But I can certainly understand why Google would ship with it disabled
by default.  Let the people, who maybe shouldn't be root in the
first place save themselves from a stupid 'rm -Rf' execution.

On a side note, I would love if TMob\Google would just implement a 'su
-' for the retail phone.  It would help me a lot if I could actually
just look around
(with restrictions) on the whole phone.  I can't even 'ls'  the data
\data and data\app folders on my phone).

>BTW: To me it seems like a great idea to ship the dev phone with root
>access. After all this is true openness..



--~--~-~--~~~---~--~~
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: Problems with R.java in Eclipse 3.4

2009-01-19 Thread Mike Wolfson

Not sure but sounds like you need to add android.jar to the project
classpath (somewhere in Project/properties menu of eclipse).

It's always the classpath.  Good Luck.

On Jan 18, 8:26 pm, djupp  wrote:
> Hello all
> I'm sorry, but I couldn't find anything searching for this (maybe I'm
> just really bad at searching :))
>
> The issue is the following:  I'm trying to write a little app to learn
> programming to android devices, but it seems as if my installation of
> either Eclipse or the Android SDK is screwed up.
> I cannot access any items from my R.java in my 'HelloWorld.java'; and
> eclipse refuses to build. But the items are there in R.java (for
> example:
>  public final class R {
>   [...]
>     public static final class id {
>         public static final int btn_clickme=0x7f050001;
>         public static final int txt_name=0x7f05;
>   [...]) returns a "cannot resolve name" when used in findViewById
> (R.id.txt_name).
>
> Any ideas?
> Thank you very much!
--~--~-~--~~~---~--~~
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: Changing General UI

2009-01-19 Thread Mark Murphy

c.f. wrote:
> Hi im a complete newbie to Linux/Java programming. I simply want to
> change the look and feel of the UI from the SDK. I assumed the SDK
> included the whole Android UI since it runs the emulator, so i went
> searching through the files and found some PNG image files from the UI
> in tools>lib>res>default>drawable. I thought if i edited these images
> it would change the look of the UI, but when i restarted the emulator
> nothing had changed. Am I dumb or is there something I am doing wrong.

SDK != firmware.

To change "the look and feel of the UI" (by which I presume you mean
built-in apps), you will need to work with the firmware:

http://source.android.com

-- 
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: Unable to set permissions on sdcard correctly

2009-01-19 Thread Mark Murphy

Chrigi wrote:
> I've got a strange problem:
> I can't set permissions on files on the sdcard.

SD cards are usually vfat, which do not honor normal Linux permissions,
AFAIK.

-- 
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] JTwitter

2009-01-19 Thread Roman Romano

I'm new to this scene but want to start by making a basic twitter
client.
Can i use the JTwitter library? or would i be better off looking at
something else?
Kind regards
RR

--~--~-~--~~~---~--~~
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: No repository found at https://dl-ssl.google.com/android/eclipse/

2009-01-19 Thread phoni...@gmail.com

http://dl-ssl.google.com/android/eclipse/site.xml
worked for me...
using ubuntu 8.10 and eclipse ganymede


On Jan 13, 8:30 am, Vince  wrote:
> It might be something about the ending characters--though I didn't
> detect any whitespace.  I type the following and it worked:
>
> http://dl-ssl.google.com/android/eclipse
>
> On Jan 9, 3:01 am, "wang peng"  wrote:
>
> > try thishttp://dl-ssl.google.com/android/eclipse/

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

2009-01-19 Thread Robin

Hi Everyone,

 I am quite new to Android. If anyone has any ebook (offline mode) for
android, please send it across to me. robinve...@gmail.com. Also, if
some tutorial on troubleshooting ADT installation is available, please
let me know.

Best Regards,
Robin

--~--~-~--~~~---~--~~
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: Am I root?

2009-01-19 Thread djupp

I can be root on my dev phone 1 without flashing any firmware. Just
get the terminal emulator from the market, open it and type 'su':
voilà a root shell (although I haven't tried anything with it yet).
Enjoy!

BTW: To me it seems like a great idea to ship the dev phone with root
access. After all this is true openness..

On Jan 17, 6:19 pm, Samat K Jain  wrote:
> On Friday 16 January 2009 12:48:26 Beni wrote:
>
> > From about 3 Weeks ago I got a Dev g1 Phone from Google. And as far as
> > I know I should have the Root rights because it's a Developer Phone,
> > right?
>
> I do not think the developer phone ships with root enabled... seems like a 
> remarkable bad idea (even for a developer phone).
>
> However, unlike retail G1s, the ADP1 lets you flash any firmware you like at 
> any time, including those with root enabled. I believe JesusFreke's firmwares 
> work fine?
>
> --
> Samat K Jain  | GPG: 0x1A1993D3
> Partner, Chief Technology Officer | Rhombic Networks, LLC
>
> In Paris they simply stared when I spoke to them in French; I never did 
> succeed in making those idiots understand their language.
> -- Mark Twain (250)
>
>  signature.asc
> < 1KViewDownload

--~--~-~--~~~---~--~~
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: Overwriting data in EditTexts

2009-01-19 Thread Scynasty

If you are talking about the gray text in the edittext that disappears
when the first letter is typed, in the xml properties for the edittext
there is a setting for Hint, just type in what you want it to say.

On Jan 17, 8:44 am, "Faber Fedor"  wrote:
> In my app, you can click "New" to add a new location.  Obviously, the New
> screen has several EditTexts on it.  I want to clear the field of the
> EditText when either a) the user enters the field or b) starts typing but
> only if the data in the field is new data. Just like it happens in the
> Contacts application; I just can't figure out where in Contacts they do it.
>
> What's the generally accepted algorithm for this?  Do I check *every*
> keystroke?  That seems wasteful.
>
> --
>
> Faber Fedor
> Cloud Computing New Jerseyhttp://cloudcomputingnj.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] Problems with R.java in Eclipse 3.4

2009-01-19 Thread djupp

Hello all
I'm sorry, but I couldn't find anything searching for this (maybe I'm
just really bad at searching :))

The issue is the following:  I'm trying to write a little app to learn
programming to android devices, but it seems as if my installation of
either Eclipse or the Android SDK is screwed up.
I cannot access any items from my R.java in my 'HelloWorld.java'; and
eclipse refuses to build. But the items are there in R.java (for
example:
 public final class R {
  [...]
public static final class id {
public static final int btn_clickme=0x7f050001;
public static final int txt_name=0x7f05;
  [...]) returns a "cannot resolve name" when used in findViewById
(R.id.txt_name).

Any ideas?
Thank you very much!

--~--~-~--~~~---~--~~
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] Generating MD5 Fingerprint of the SDK Debug Certificate

2009-01-19 Thread Greg Corradini
Hello,
I'm trying to use the following keytool command to generate a Map Key for
the debug certificate:
*keytool -list -alias androiddebugkey -keystore C:\Documents and
Settings\corr1gre\Local Settings\Application Data\Android\debug.keystore
-storepass android -keypass android*

I'm using Windows XP, eclipse 3.4 and android SDK 1.0. "keytool" is not
being recognized as a command.

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] Re: Running the Emulator in debug mode

2009-01-19 Thread Scynasty

in the top right corner of eclipse choose the item that says debug(you
might have to click the expand arrow to see it). after it loads the
new screen run the app in debug and it should break.

On Jan 16, 10:55 am, srini amul  wrote:
> Hi,
>  
> I want to run the emulator in a debug mode.
>  
> I setup a line breakpoint in my application java class onCreate() function. 
> Then i chosed  a "Debug" option.
>  
> But emulator is not getting stopped in my breakpoint.
>  
> Any idea, how will i run the emulator in a debug mode ?
>
> Thanks & Regards,
> P.Sriniamul
>
>       Add more friends to your messenger and enjoy! Go 
> tohttp://messenger.yahoo.com/invite/

--~--~-~--~~~---~--~~
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: Horizontal Scrolling in TableLayout

2009-01-19 Thread Scynasty

horizontal scrolling is only possible in webviews and mapviews
currently.

the home page currently works by stitching three views together inside
a custom view and running an onTouchEvent.

heres an example of a horisontal scrolling with 3 portrait screen
widths:

set this inside a new java file:
package com.example.android.skeletonapp;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.AbsoluteLayout;

public class yView extends AbsoluteLayout {

public static int xcor, ycor, xcorclick, ycorclick;



public yView(Context context, AttributeSet attrs) {
super(context, attrs);



}

public yView(Context c){
super(c);


this.setMinimumWidth(960);
}

@Override public boolean onTouchEvent(MotionEvent event) {
int action = event.getAction();
int mCurX = (int)event.getX();


if ( action == MotionEvent.ACTION_DOWN) {

xcorclick = (int)event.getX();
}


if ( action == MotionEvent.ACTION_MOVE ) {



int xcor = this.getLeft() - xcorclick + mCurX;

if (xcor < -640)
xcor = -640;

if (xcor > 0)
xcor = 0;

AbsoluteLayout.LayoutParams p = new 
AbsoluteLayout.LayoutParams(960,
AbsoluteLayout.LayoutParams.FILL_PARENT,xcor,0);
this.setLayoutParams (p);

}

if ( action == MotionEvent.ACTION_UP ) {
//this.setText("not moving");

}
return true;
}

@Override public void draw(Canvas canvas) {
// TODO Auto-generated method stub
super.draw(canvas);

}
}


and this as the main xml file:

http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent">








'com.example.android.skeletonapp.yView' make sure you change both
of these to match the location of the custom view file you created
with the java code above.

you can adjust the size of the view by setting all the 960's(in the
java and xml code) to any size you want(960's means the view is 960
pixels wide)

On Jan 16, 3:55 pm, e  wrote:
> is it possible horizontal scrolling on Relative Layout??
>
> On Jan 16, 11:47 pm, Romain Guy  wrote:
>
> > Hi,
>
> > ScrollView does not support horizontal scrolling at the moment.
>
> > On Fri, Jan 16, 2009 at 3:21 AM, RAM  wrote:
>
> > > Hi,
> > >    Currently i am working on a project using android. the problem i
> > > am facing in Table layout is that it is not scrolling
> > > horizontally.Since i am having lot of columns in table so horizontal
> > > scrolling is necessary. What i want is either a horizontal scrollbar
> > > should appear in table or my screen also scroll horizontally like its
> > > Home Screen.I am posting the XML which i am using for view:
>
> > > 
>
> > > http://schemas.android.com/apk/res/android";
> > >    android:layout_width="wrap_content"
> > >    android:layout_height="wrap_content"
> > >    android:scrollbarSize="12dip">
>
> > > http://schemas.android.com/apk/res/
> > > android"
> > >        android:orientation="vertical"
> > >        android:layout_width="wrap_content"
> > >        android:layout_height="wrap_content">>
>
> > >  > > android:id="@+id/newleads_table"
> > > android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > > android:orientation="vertical"
>
> > >  > > android:id="@+id/widget38"
> > > android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > > android:orientation="horizontal"
> > > android:background="#FF0FFF"
>
> > >  > > android:text="Name"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="Lead Category"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="Contact Number"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="Lead Id"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
>
> > >  > > android:text="roll"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > > 
> > >  > > android:id="@+id/widget39"
> > > android:layout_height="wrap_content"
> > > android:orientation="horizontal"
> > > android:background="#0f"
>
> > >  > > android:text="Eric Mayor"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="Recieved"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="9804352210"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="11082"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > >  > > android:text="11082"
> > > android:padding="5dip"
> > > android:textColor="#00"
> > > />
> > > 
> > >  > > an

[android-beginners] Problem with DateFormat.format

2009-01-19 Thread JJ
Hi all.

I have a problem using *DateFormat.format *because i think the last class of
DateFormat have been changed in the last SDK.

Now, i dont think how can i do the format of date and if the correct class
to do it is  java.sql.Date or java.util.Date...

The code is:

String fecha = DateFormat.format("dd/MM/ kk:mm",new
Date(rFecha)).toString();

With this, i want to have something like this: 05/01/2009 10:12for
example.

This code is from this spanish tutorial:
http://groups.google.es/group/desarrolladores-android/web/registro-de-llamadas-hecho-con-una-lista-con-iconos

Thanks for the help, ;-)

--~--~-~--~~~---~--~~
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 path syntax for reading file off SD card

2009-01-19 Thread robotissues

I am trying to create a very simple mp3 player with one button that
plays one song.  I found misc code here and there as a start.  I am
running the application via Eclipse onto  my G1 which is attached via
USB.  The application runs fine on the phone, screen loads, button
click event gets fired, etc ... the problem is that when mp.prepare()
is called, it throws an error ... here is the code:

mp.setDataSource("/sdcard/music/lonelydays.mp3");
mp.prepare();

I copied a file to  /music/lonelydays.mp3 on the sd card.

Looking for feedback on what I am missing.

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] Changing General UI

2009-01-19 Thread c.f.

Hi im a complete newbie to Linux/Java programming. I simply want to
change the look and feel of the UI from the SDK. I assumed the SDK
included the whole Android UI since it runs the emulator, so i went
searching through the files and found some PNG image files from the UI
in tools>lib>res>default>drawable. I thought if i edited these images
it would change the look of the UI, but when i restarted the emulator
nothing had changed. Am I dumb or is there something I am doing wrong.
Thanks c.f.

--~--~-~--~~~---~--~~
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] Problem with looping through the buttons in the Layout

2009-01-19 Thread amadamala

I'm using TableLayout for my application.
I do have 16 buttons (4 rows and 4 columns) inside the layout.

I'm able to assign the text to each button by assigning value to
R.id.Button01, 02, 03  Button16.

Take this as an example code.


((Button)findViewById(R.id.Button01)).setText(list.get
(0).toString());

((Button)findViewById(R.id.Button02)).setText(list.get(1).toString
());

((Button)findViewById(R.id.Button03)).setText(list.get(2).toString
());

((Button)findViewById(R.id.Button04)).setText(list.get(3).toString
());

((Button)findViewById(R.id.Button05)).setText(list.get(4).toString
());

((Button)findViewById(R.id.Button06)).setText(list.get(5).toString
());

((Button)findViewById(R.id.Button07)).setText(list.get(6).toString
());

((Button)findViewById(R.id.Button08)).setText(list.get(7).toString
());

((Button)findViewById(R.id.Button09)).setText(list.get(8).toString
());

((Button)findViewById(R.id.Button10)).setText(list.get(9).toString
());

((Button)findViewById(R.id.Button11)).setText(list.get(10).toString
());

((Button)findViewById(R.id.Button12)).setText(list.get(11).toString
());

((Button)findViewById(R.id.Button13)).setText(list.get(12).toString
());

((Button)findViewById(R.id.Button14)).setText(list.get(13).toString
());

((Button)findViewById(R.id.Button15)).setText(list.get(14).toString
());

((Button)findViewById(R.id.Button16)).setText(list.get(15).toString
());


But what I want is similar to following code.

  for(int i=0; i< 16; i++)
  {

   ((Button)findViewById(R.id.Button[i] )).setText(list.get
(i).toString());
  }

Thanks,
-Anil

--~--~-~--~~~---~--~~
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] Unable to set permissions on sdcard correctly

2009-01-19 Thread Chrigi

Hello

I've got a strange problem:
I can't set permissions on files on the sdcard. Whenever I try to
chmod through the Terminal on my G1 (su) it won't work. I can only set
some write permissions but nothing more.
Does anyone know what causes this and/or how I can fix that?

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: Am I root?

2009-01-19 Thread Anton Melser

>> From about 3 Weeks ago I got a Dev g1 Phone from Google. And as far as
>> I know I should have the Root rights because it's a Developer Phone,
>> right?
>
> I do not think the developer phone ships with root enabled... seems like a 
> remarkable bad idea (even for a developer phone).

Oh yes it does... for proof, just download Terminal Emulator (a
Google-made app on the android market), open it, and type su. You are
now root!
Cheers
Anton

--~--~-~--~~~---~--~~
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: Will the android dev 1 phone update ota?

2009-01-19 Thread Anton Melser

>
> I was wondering if the android dev 1 will update it self once an
> update is available, such as the cupcake update or do I need to
> install it from source myself?

I second that request
Cheers
A




-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

--~--~-~--~~~---~--~~
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: download of the android source

2009-01-19 Thread Anton Melser

Hi,

> 1. I am trying to download the Android source. I followed the steps in
> the site and now I am trying to
> sync my client by "repo sync".
> It seems that this action takes forever and does not finish.
> does anyone knows what might be the issue?

The repository is HUGE (it include linux after all), and will take
hours. Once you have it, updates are pretty quick.
a...@debian:~$ du -sh mydroid/
6.6Gmydroid/
(ok, that's after building for the dream target... but it's still big!)

> 2. it there any good examples od android project sources to refer too?

Yes, in the Android SDK.
Cheers
A
-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

--~--~-~--~~~---~--~~
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: View apps list in marketplace?

2009-01-19 Thread Anton Melser

2009/1/1 SnowDrifter :
>
> Nobody else has this problem? Does everyone else own a G1 then?

I do have a dream (ADP1) but I heartily agree that it is very annoying
not to have an online way to search and look at stuff. Browsing for
apps is just simply much nicer on a 24" screen! I also looked for ages
but found nothing. The Android market still has a LONG way to go
before people are going to want to start paying for apps IMHO.

Cheers
Anton
ps. the site mentioned seems almost satisfactory...

-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

--~--~-~--~~~---~--~~
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 Dev Phone 1 Setup

2009-01-19 Thread Anton Melser

Just for info, I am in France (neufmobile, which uses the SFR
network), and also don't have a data plan (nor do I want one). I can't
remember exactly what I did, but I definitely didn't need to bust out
the command line. I think I just cancelled out of things and got to
the wifi connection and got internet. Then it all just worked. I DID
however, follow the instructions for setting up the APN (even though I
assure you I have no data plan, I just thought it was necessary...).
Maybe the phones shipped after 2009-01-04 have this fixed?
Cheers
Anton

2008/12/28 monkeypipi :
>
> Thank you so much Zac. Just when I was  so desperate for activing my
> Dev Phone, your great solution was searched. Thank u so much
>
> On Dec 19, 5:50 pm, Zac Medico  wrote:
>> I was able to get it working by using some of the instructions posted
>> here:
>>
>>  http://forum.xda-developers.com/showthread.php?t=452316
>>
>> I'll describe the exact steps that I used. Of course, use them at your
>> own risk and don't blame me if something goes wrong.
>>
>> 1) Install the android sdk on a computer and setup a usb connection as
>> described here:
>>
>>  http://code.google.com/android/intro/develop-and-debug.html#developin...
>>
>> 2) Use the adb program from the sdk to launch a shell on the phone:
>>
>>   adb -d shell
>>
>> 3) In the shell, become root and modify settings.db to remove the "no
>> sim card found" screen lock:
>>
>>   su -
>>   sqlite3 /data/data/com.android.providers.settings/databases/
>> settings.db
>>   INSERT INTO system (name, value) VALUES ('device_provisioned', 1);
>>   .quit
>>
>> 4) Reboot the phone.
>>
>> 5) Reconnect with the adb shell and launch the settings activity (does
>> not require root):
>>
>>  am start -a android.intent.action.MAIN -n
>> com.android.settings/.Settings
>>
>> 6) Using the settings activity that you've launched on the phone's
>> screen, enable wifi.
>>
>> 7) Activate the phone with a gmail account.
>>
>> After the above steps, you should be able to do most things without a
>> sim card.
>>
>> Hope this helps,
>>
>> Zac
>>
>> On Dec 18, 7:47 pm, Dave  wrote:
>>
>> > I just received my Dev Phone 1 but I am having some trouble setting it
>> > up.
>>
>> > I don't have a SIM card with data access for a GSM phone and I really
>> > don't want to get one.  My plan was to only use the Wi-Fi connection
>> > of the phone.  When the phone is first turned on it shows a message
>> > stating that no SIM card is installed and it seems you are not able to
>> > do anything else.  I went down to my local T-Mobile dealer and they
>> > stuck a blank SIM card into the phone for me.  This allowed me to get
>> > to the point where I can enter a google account.  Unfortunately the
>> > phone seems to want to register my account over the GSM network and it
>> > does not allow me to select a Wi-Fi network to perform the
>> > registration.  Am I missing something here?
>>
>> > If I am forced to register the phone over the GSM network will I be
>> > able to borrow a GSM SIM from an active phone so that I can register
>> > the phone and then remove the SIM?  Some people have seem to been able
>> > to do this but I was hoping to be able to set it up without a SIM card
>> > at all.
>>
>> > Any ideas?
>>
>> > Thanks
>> > Dave
> >
>



-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

--~--~-~--~~~---~--~~
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] Official Android release structure (v1.0, v1.0.1, v1.0.2, etc)?

2009-01-19 Thread Anton Melser

Hi all,
I have looked unsuccessfully for info on this. Does Android actually
have releases? How do I download "Android 1.0"? "1.0.1"? What I want
to know is whether there is now or will be at some stage, something
that can be called a release, say v1.0, which is maintained without
the introduction of new features from elsewhere (that of course may
introduce new bugs), to which there are minor point revisions that fix
only bugs. There also might also be a trunk branch which at sometime
goes "beta" (is branched off), and can then be followed as it will
only introduce bugfixes and not major new features...
The vast majority of large open source projects do it like this, so
I'm assuming that it's either like that now or on the way for Android
- am I wrong? Is there some way to tell Git to do this now? This must
be explained somewhere but I just couldn't find it!
Thanks
Anton


-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

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

2009-01-19 Thread Faber Fedor
The fix seems to be adding 'android:layout_weight="1"' to both the editName
EditText and the findLocation Button.  Odd because I know I played with
those settings.  Besides, the other widgets down below it don't need those
directives to lay out properly. :-?

It looks like the ideal settings are "1" and "0" for the EditText and button
respectively. Well, would be ideal if I hadn't decided the Find
functionality is moot. :-)

I'll see if I have an older version of my layout around where I do have
those added in.

Thanks for the help!



On Mon, Jan 19, 2009 at 9:27 AM, Faber Fedor  wrote:

> On Mon, Jan 19, 2009 at 8:13 AM, A R  wrote:
>
>>
>> The xml below works for me. Can you try to 'copy paste' my xml and
>> give it a try?
>
>
> That works for me as well.
>
> I'll fire up vimdiff later today and track down the difference and get back
> to y'all.
>
>
>
> --
>
> Faber Fedor
> Cloud Computing New Jersey
> http://cloudcomputingnj.com
>



-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] Re: Novice question on Notepadv1

2009-01-19 Thread Peace_in_mind

Thanks Rajendra.

I've checked the declarations and found it is OK. Any other idea?

-P

On Jan 19, 3:12 am, Rajendrakumar Chinnaiyan
 wrote:
> Hi,
> I think you might missed this class declaration
>
>
>
> On Sat, Jan 17, 2009 at 7:07 AM, Peace_in_mind  wrote:
>
> > Hi,
>
> > I'm trying to get some hand on how to use Sqlite in Android and
> > imported this tutorial in Eclipse (3.4).
>
> > Before changing anything in the following method DatabaseHelper, I get
> > an error as "The constructor SQLiteOpenHelper(Context, String, null,
> > int) is undefined.
>
> > private static class DatabaseHelper extends SQLiteOpenHelper {
>
> >        DatabaseHelper(Context context) {
>
> >            super(context, DATABASE_NAME, null, DATABASE_VERSION);
>
> >        }
>
> > I've successfully run emulator for the NoteList application where they
> > use SQLiteOpenHelper.
>
> > Do you have any suggestion what it may have caused? I imported the
> > Notepadv1Solution and there too I see the same error.
>
> --
> Regards
> Rajendrakumar Chinnaiyan
> Testing Services
> Wipro Technologies
> Mob : +919886293435
--~--~-~--~~~---~--~~
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: Using android menu icons.

2009-01-19 Thread Ivan Soto
wow, excellent information. Exactly what I was looking for.
Thanks a lot.


On Mon, Jan 19, 2009 at 1:49 AM, AusR  wrote:

>
> I have used this page to identify images in the SDK to use for a
> native feel:
>
>
> http://www.screaming-penguin.com/info/android_drawables/android_drawables.html
>
> On Jan 19, 1:02 am, "Ivan Soto"  wrote:
> > Hi, is it possible to use the typical android icons for settings menu or
> > search, stop, etc.  are they available somewhere? I would like my apps to
> > have the same look and feel as native applications.
> > 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: I hate layouts

2009-01-19 Thread Faber Fedor
On Mon, Jan 19, 2009 at 8:13 AM, A R  wrote:

>
> The xml below works for me. Can you try to 'copy paste' my xml and
> give it a try?


That works for me as well.

I'll fire up vimdiff later today and track down the difference and get back
to y'all.



-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] Re: How to set airplane mode on/off.

2009-01-19 Thread Jean-Baptiste Queru

You shouldn't. Changing such a setting is the user's responsibility.

JBQ

On Sun, Jan 18, 2009 at 10:02 PM, Naeem  wrote:
>
> Hi All,
> I want to switch on/off airplane mode programmatically. How can I do
> this. Anybody can help me.
>
> Thaks
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~-~--~~~---~--~~
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: droidsans Font

2009-01-19 Thread Mark Murphy

Fathi wrote:
> Hello every one,
> i just want to use the droidSans and/or droidٍSerif font in my
> application I am using emulator to test as i did not have a device
> 
> i tried to create Typeface.Create("DroidSans", Typeface.Normal) but
> the Font not changed i tried all the droid font family with no result
> 
> i think emulator use only 1 font
> 
> any one know any thing about that?

The emulator has all three of the Droid series of fonts.

Use Typeface.SANS_SERIF, Typeface.SERIF, or Typeface.MONO as the first
parameter to Typeface#create().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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

2009-01-19 Thread A R

The xml below works for me. Can you try to 'copy paste' my xml and
give it a try? you can see the screenshots here

http://www.techjini.com/device.png
http://www.techjini.com/device1.png
http://www.techjini.com/device2.png

xml
-

http://schemas.android.com/apk/res/android";
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:scrollbars="vertical">
http://schemas.android.com/apk/res/android"; >
http://schemas.android.com/apk/res/android";
android:id="@+id/widget45"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>

































http://schemas.android.com/apk/res/android";
android:id="@+id/widget68"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/widget63"
android:layout_alignLeft="@+id/widget45"
android:padding="5sp"
>








  
 

On Jan 18, 11:31 pm, "Faber Fedor"  wrote:
> On Sun, Jan 18, 2009 at 11:11 AM, conan  wrote:
>
> > I tried the following layout and works fine for me
>
> Really?  Hmmm..
>
>
>
> >  >    android:id="@+id/widget45"
> >    android:layout_width="fill_parent"
> >     android:layout_height="wrap_content"
> >     android:orientation="horizontal"
>
> >         >        android:id="@+id/editName"
> >         android:layout_width="fill_parent"
>
> And this doesn't push the button off the screen (or overlay it or whatever)?
>
> When I use your settings, the editName field stretches across the screen,
> the button is not seen and there is a empty area below the EditText the same
> size and shape as the EditText.
>
> If this is not working can you tell what else do you have in your
>
> > layout?
>
> Sure!  Here's the whole thing:
>
> 
>     "http://schemas.android.com/apk/res/android";
>    android:layout_width="fill_parent"
>    android:layout_height="wrap_content"
>    android:scrollbars="vertical">
>  android:id="@+id/widget46"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> xmlns:android="http://schemas.android.com/apk/res/android";
>
>          android:id="@+id/widget45"
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content"
>     android:orientation="horizontal"
>     >
>                  android:id="@+id/editName"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:padding="10px"
>         android:text="Name"
>         android:textSize="18sp"
>         android:layout_gravity="right"
>         android.layout_weight="1"
>         >
>         
>                  android:id="@+id/findLocation"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:text="Find"
>         android:layout_gravity="right"
>         android.layout_weight="1"
>         >
>         
>     
>          android:id="@+id/widget48"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:layout_below="@+id/widget45"
>     android:layout_alignLeft="@+id/widget45"
>     >
>                  android:id="@+id/editAddress"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:text="Address"
>         android:textSize="18sp"
>         >
>         
>     
>          android:id="@+id/widget48a"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:layout_below="@+id/widget48"
>     android:layout_alignLeft="@+id/widget48"
>     >
>                  android:id="@+id/getLocation"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:text="Use Current Location"
>         android:layout_gravity="right"
>         >
>         
>                  android:id="@+id/oneTimeEvent"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:text="One time event"
>         android:textSize="12sp"
>         >
>         
>     
>          android:id="@+id/widget56"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:layout_below="@+id/widget48a"
>     android:layout_alignLeft="@+id/widget45"
>     android:padding="5sp"
>     >
>                  android:text="From"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:layout_alignParentLeft="true"
>         android:textSize="14sp"
>         android:textColor="#"
>         />
>                  android:id="@+id/editStartDate"
>         android:layout_height="wrap_content

[android-beginners] project is not running on sdk

2009-01-19 Thread jaimin

hi,
i have one project name Notepad v3 and its example in android site .
now i have done the same project but with the different name called
notepad and i have deleted the old project only form project explore
not form the hard disk now when i run the project notepad instade of
notepad Notepad v3 run and it also conatain error

so any one can tell me what r the solution for this type of 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] droidsans Font

2009-01-19 Thread Fathi

Hello every one,
i just want to use the droidSans and/or droidٍSerif font in my
application I am using emulator to test as i did not have a device

i tried to create Typeface.Create("DroidSans", Typeface.Normal) but
the Font not changed i tried all the droid font family with no result

i think emulator use only 1 font

any one know any thing about that?
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: Navigation implementation

2009-01-19 Thread Mark Murphy

Bamboo wrote:
> From what I can see there are several different methods for navigating
> from one activity to another using intents
> 
>  - Explicit intents (setClass(context, class))
>  - Implicit intens (specifying actions, categories)
> 
> Is one preferable to the other and are there specific conditions under
> which each should be called. e.g user explicit intents if the class
> name is known?

Let's draw an analogy:

On your desktop, you have written an application that has downloaded an
MP3 file from someplace, and you want to play that MP3. You have three
choices:

1. Implement MP3-playback in your application. That's doable, but your
MP3 player will inevitably be limited compared to any sort of
full-featured player the user already has installed.

2. You can hard-code a path to an MP3 player executable, or do some sort
of a "find" operation to find the executable, then run the MP3 player
executable yourself.

3. You can let the operating system figure out how to handle MP3
playback using the default viewer for that platform.

Using an explicit Intent is akin to #1 or #2 above -- you are telling
Android to run a specific piece of logic.

Using an implicit Intent is akin to #3 above -- you are telling Android
to take an action on a piece of content, but you are letting Android
figure out which is the right code to use for that task.

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

--~--~-~--~~~---~--~~
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: Learn Android

2009-01-19 Thread george_c

http://androidrocks.in



On Mon, Jan 19, 2009 at 1:32 PM, Apparao Mulpuri
 wrote:
>
> Hello,
>
> I'm curious if there was a fast, so to say "crash-course" way of
> learning Android in India
>
> Thanks,
> Appu.
>
> >
>

--~--~-~--~~~---~--~~
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] Learn Android

2009-01-19 Thread Apparao Mulpuri

Hello,

I'm curious if there was a fast, so to say "crash-course" way of
learning Android in India

Thanks,
Appu.

--~--~-~--~~~---~--~~
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: Problem in playing a video file

2009-01-19 Thread Mahesh Vaghela
Hi Dave,

Thanks for the info.
Finally I have decided to put all my audio data to SD card.
I can do this as suggested by you for a manual check.

*"adb push /path/on/workstation/video.mp4 /sdcard"*

This will work on my emulator.
If I want to do this for a real device than my code should first push all my
audio data in the user's SD card.

Can you please show me a way how to do this?

Is there any predefined folder like drawable/raw (Or some other like this)
which can directly put our data in sdcard instead of application's private
folder?





On Sun, Jan 18, 2009 at 1:34 AM, Dave Sparks wrote:

>
> You can call android.os.Environment.getExternalStorageDirectory() to
> get the path to the external storage device. That will handle the case
> where recommended external store is no the SD card but some other
> device.
>
> If there is no external storage, you can try saving to your app's
> private data directory. Another alternative it to stream the media
> from a server, but this obviously introduces the complexity and cost
> of maintaining the service for your users.
>
>  All of the Android standard apps (camera, music, sound recorder) that
> create or use media files assume that the device will have external
> storage. In the end, you have to decide whether it's worth supporting
> users that don't have external storage.
>
> On Jan 17, 1:29 am, "Mahesh Vaghela"  wrote:
> > Dave,
> >
> > Thank you very much for replying soon. I understand how to push my mp4 in
> a
> > sd card and retrive the same.
> >
> > I am a bit curious to know limitation of doing this.
> >
> > 1. sd card may not be an part of all the Android devices.
> > 2. If it is the case, all users may not purchase it as an extra item
> > considering extra cost.
> > 3. If so, an application which reads only from  an sd card may not work
> > properly on all devices.
> >
> > Can you please guide me if there is an alternate way for storing the
> media
> > files? I know I can directly keep this in, with my apk under raw folder,
> but
> > this will made an application larger to download.
> >
> > The total disk size available for an android application is only 70 mb.
> So
> > one has to think for keeping his apk size to minimum.
> >
> > On Sat, Jan 17, 2009 at 12:57 PM, Dave Sparks  >wrote:
> >
> >
> >
> >
> >
> > > adb push /path/on/workstation/video.mp4 /sdcard
> >
> > > In the code, use the SD card path for the setDataSource() call:
> >
> > > mMediaPlayer.setDataSource("/sdcard/video.mp4");
> >
> > > On Jan 16, 9:06 pm, "Mahesh Vaghela"  wrote:
> > > > Hi Dave,
> >
> > > > I like your line:
> > > > *
> > > > "As a first step, I would try pushing it to the SD card and playing
> it
> > > from
> > > > there."*
> >
> > > > Can you please show a way to push a mp4 or mp3 file in a sd card?
> >
> > > > On Sat, Jan 17, 2009 at 6:46 AM, Dave Sparks <
> davidspa...@android.com
> > > >wrote:
> >
> > > > > Can you be a bit more explicit when you say "nothing happens"?
> >
> > > > > Usually - no matter what kind of bug you might have - something
> > > > > happens, it's just not what you expected to happen. For example, do
> > > > > you have log output?
> >
> > > > > My guess is that you cannot use an MP4 as a raw resource because it
> > > > > gets compressed. I can't recall if we exclude it or not, but you
> > > > > normally don't want to bundle a resource like a video file into
> your
> > > > > resources. As a first step, I would try pushing it to the SD card
> and
> > > > > playing it from there.
> >
> > > > > On Jan 16, 7:49 am, srini amul  wrote:
> > > > > > Below is a step which i tried to play a mp4 file. But nothing
> > > happens.
> > > > > Could someone please help me out ?
> >
> > > > > > Steps which I tried:
> > > > > > ***
> > > > > > a) I added a SurfaceView element in main.xml
> > > > > > b) I uploaded a video.mp4 file in res/raw directory
> >
> > > > > > Below is my main.xml:
> > > > > > --
> > > > > > 
> > > > > > http://schemas.android.com/apk/res/android";
> > > > > > android:orientation="vertical"
> > > > > > android:layout_width="fill_parent"
> > > > > > android:layout_height="fill_parent"
> >
> > > > > >  > > > > > android:layout_width="wrap_content"
> > > > > android:layout_height="wrap_content"
> > > > > android:clickable="true">
> > > > > > 
> >
> > > > > > Below is my application code:
> > > > > > --
> >
> > > > > > package android.videoPlayer;
> >
> > > > > > import java.io.IOException;
> >
> > > > > > import android.app.Activity;
> > > > > > import android.media.AudioManager;
> > > > > > import android.media.MediaPlayer;
> > > > > > import android.media.MediaPlayer.OnBufferingUpdateListener;
> > > > > > import android.media.MediaPlayer.OnCompletionListener;
> > > > > > import android.media.MediaPlayer.OnPreparedListener;
> > > > > > import android.os.Bundle;
> > > > > > import android.util.Log;
> > > > > > import android.view.SurfaceHold

[android-beginners] Re: Novice question on Notepadv1

2009-01-19 Thread Rajendrakumar Chinnaiyan
Hi,
I think you might missed this class declaration

On Sat, Jan 17, 2009 at 7:07 AM, Peace_in_mind  wrote:

>
> Hi,
>
> I'm trying to get some hand on how to use Sqlite in Android and
> imported this tutorial in Eclipse (3.4).
>
> Before changing anything in the following method DatabaseHelper, I get
> an error as "The constructor SQLiteOpenHelper(Context, String, null,
> int) is undefined.
>
>
> private static class DatabaseHelper extends SQLiteOpenHelper {
>
>DatabaseHelper(Context context) {
>
>super(context, DATABASE_NAME, null, DATABASE_VERSION);
>
>}
>
> I've successfully run emulator for the NoteList application where they
> use SQLiteOpenHelper.
>
> Do you have any suggestion what it may have caused? I imported the
> Notepadv1Solution and there too I see the same error.
> >
>


-- 
Regards
Rajendrakumar Chinnaiyan
Testing Services
Wipro Technologies
Mob : +919886293435

--~--~-~--~~~---~--~~
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: Basic Thread Question

2009-01-19 Thread steve_macleod

Hi Dave,
First - thanks for the reply.

Maybe im missing something here, but what is the app's "message
looper"?

I am creating the thread with the following line:

mPacManThread = new PacManThread(mSurfaceHolder, context, null);

The PacManThread takes the following arguments (used the LunarLander
thread as a reference):

PacManThread(SurfaceHolder surfaceHolder, Context context, Handler
handler)

I have left the handler null. I presume the message looper concept has
something to do with this handler. I didn't understand its purpose at
the time, so I left it null.
I have read the class description, but still in the dark as far as its
purpose.

So, I guess my question is, what is a message looper and what
relationship does it have with the handler argument?

many thanks,


On Jan 17, 8:09 pm, Dave Sparks  wrote:
> This will put your app's message looper to sleep for 10 seconds, which
> is probably not what you want. As an alternative, you can send
> yourself a delayed message, or you can have your animation thread read
> the system time when it starts up and exit after the 10 seconds has
> expired.
>
> On Jan 17, 2:55 am, steve_macleod  wrote:
>
>
>
> > Hi,
> > I am writing an application to get a grip of basic sprite animation. I
> > have a surfaceCreated method which looks like this:
>
> > public void surfaceCreated(SurfaceHolder holder) {
> >                 mPacManThread.setRunning(true);
> >                 mPacManThread.start();
> >                 //this thread will wait for 10 seconds, and then kill the
> > mPacManThread thread
>
> >                 try {
> >                         Thread.sleep(1);
> >                         mPacManThread.setRunning(false);
> >                         Log.d("THREAD STOPPED","The animation thread has 
> > been stopped, as
> > 10 seconds has elapsed.");
>
> >                 } catch (InterruptedException e) {
> >                         // TODO Auto-generated catch block
> >                         e.printStackTrace();
> >                 }
>
> >         }
>
> > The intention is to start the thread which manages the user input and
> > animation, and make the main thread (that is the thread that started
> > the view) sleep for 10 seconds, before stopping the animation loop.
>
> > My understanding is that the Thread.sleep(1) will sleep the thread
> > from which the request originated (ie the main thread) for 10 seconds.
>
> > However, it looks like the Thread.sleep() is actually working on the
> > animation (mPacManThread) instead. Am I missing something fundamental
> > here?
>
> > Thanks,- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Using android menu icons.

2009-01-19 Thread AusR

I have used this page to identify images in the SDK to use for a
native feel:

http://www.screaming-penguin.com/info/android_drawables/android_drawables.html

On Jan 19, 1:02 am, "Ivan Soto"  wrote:
> Hi, is it possible to use the typical android icons for settings menu or
> search, stop, etc.  are they available somewhere? I would like my apps to
> have the same look and feel as native applications.
> 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] Navigation implementation

2009-01-19 Thread Bamboo

>From what I can see there are several different methods for navigating
from one activity to another using intents

 - Explicit intents (setClass(context, class))
 - Implicit intens (specifying actions, categories)

Is one preferable to the other and are there specific conditions under
which each should be called. e.g user explicit intents if the class
name is known?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---