[android-beginners] Language change to Hindi

2010-07-26 Thread Shaista Naaz
Is there way of changing the phone language to Hindi. I am trying in
eclipse.

Please kindly suggest.

Thanks,
Shaista Naaz

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 images in android

2010-07-26 Thread ethan
Hi,
I am trying to load an image from my res/drawable folder to my app by
pushing a button on my application.

What is the easiest way to achieve this ?

Thanks

Ethan.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Reverting to Eclipse 3.5

2010-07-26 Thread Mark H. Nichols

On Jul 22, 2010, at 9:50 AM, Doug Gordon wrote:

> Just getting into Android devel, I downloaded and installed the latest 
> Eclipse, which is 3.6 (Helios). Now I see that it's recommended to stay with 
> 3.5 due to some XML-editing bugs with the ADT or something like that.
> 
> So if I want to "revert" to 3.5, in addition to first uninstalling Eclipse 
> 3.6, do I have to explicitly uninstall the ADT plug-in? And what about the 
> Android SDK -- uninstall (or just delete) that also? I would guess it would 
> be cleaner to install the whole tool chain from the top, but is that all 
> necessary?

For what it is worth you can run multiple versions of Eclipse on your machine. 
I regularly have two or three different Eclipse folders (eclipse-3.4, 
eclipse-3.5, eclipse-3.6). Rather than removing Helios, just grab another copy 
of 3.5 and add the ADT to that.

Mark

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread Sam Hobbs
Evidently there are two versions of DEP; the earlier version is done 
using software and a newer version that uses hardware. The hardware 
version exists only in 64-bit processors and is used only by 64-bit Windows.


DEP can prevent code from being executed that is in memory designated as 
data. It makes sense that a DEP would be a problem for a VM. DEP can be 
enabled/disabled for specific processes.


I hope the following helps.

A description of the differences between 32-bit versions of Windows 
Vista and 64-bit versions of Windows Vista

http://support.microsoft.com/kb/946765

Data Execution Prevention
http://msdn.microsoft.com/en-us/library/aa366553(VS.85).aspx

A detailed description of the Data Execution Prevention (DEP) feature in 
Windows XP Service Pack 2, Windows XP Tablet PC Edition 2005, and 
Windows Server 2003

http://support.microsoft.com/kb/875352



DanH wrote:


Note that a lot of things (like "Data Execution Protection") appear to
be unique to the 64-bit version of Windoze, so folks with 32-bit
machines will have no problem.


--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Imagebutton layout

2010-07-26 Thread coldskull
Cool! thanks

On Jul 26, 1:58 pm, Justin Anderson  wrote:
> Just so you know, a quick search on StackOverflow gave me a possible
> solution:http://stackoverflow.com/questions/3224193/set-the-layout-weight-of-a...
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
> On Mon, Jul 26, 2010 at 2:57 PM, Justin Anderson 
> wrote:
>
>
>
> > Hmmm... that is interesting.  Why can't you just do it through the XML
> > though?
>
> > --
> > There are only 10 types of people in the world...
> > Those who know binary and those who don't.
> > --
>
> > On Mon, Jul 26, 2010 at 1:08 PM, coldskull  wrote:
>
> >> Thanks! it worked. Only thing i am not sure of now is how to set the
> >> weight of a Button programmatically instead of thru the xml.
> >> I could not see any setWeight method and the LayoutParams class also
> >> does not have the weight param.
>
> >> On Jul 26, 10:56 am, Justin Anderson  wrote:
> >> > Use a LinearLayout or RelativeLayout and set the weight of each item to
> >> the
> >> > same value... like 1.
>
> >> > --
> >> > There are only 10 types of people in the world...
> >> > Those who know binary and those who don't.
> >> > --
>
> >> > On Mon, Jul 26, 2010 at 10:53 AM, coldskull 
> >> wrote:
> >> > > Hello
>
> >> > > I have been trying to do a simple layout for sometime now I still
> >> > > haven't figured it out.
>
> >> > > Basically, I want to show four imagebuttons of equal size on the
> >> > > screen
> >> > > (each button 1/4th the size of the screen). Sort of like the picsquare
> >> > > logo (www.picsquare.com).
>
> >> > > I am trying to avoid absolute pixel sizes in the code so that it works
> >> > > on any display size/orientation.
>
> >> > > Appreciate any inputs...
>
> >> > > Thanks,
> >> > > chinmay
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> > > Groups "Android Beginners" group.
>
> >> > > NEW! Try asking and tagging your question on Stack Overflow at
> >> > >http://stackoverflow.com/questions/tagged/android
>
> >> > > To unsubscribe from this group, send email to
> >> > > android-beginners+unsubscr...@googlegroups.com >> > >  i...@googlegroups.com> >> i...@googlegroups.com>
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/android-beginners?hl=en
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Beginners" group.
>
> >> NEW! Try asking and tagging your question on Stack Overflow at
> >>http://stackoverflow.com/questions/tagged/android
>
> >> To unsubscribe from this group, send email to
> >> android-beginners+unsubscr...@googlegroups.com >>  i...@googlegroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Imagebutton layout

2010-07-26 Thread Justin Anderson
Just so you know, a quick search on StackOverflow gave me a possible
solution:
http://stackoverflow.com/questions/3224193/set-the-layout-weight-of-a-textview-programmatically


--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Jul 26, 2010 at 2:57 PM, Justin Anderson wrote:

> Hmmm... that is interesting.  Why can't you just do it through the XML
> though?
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Mon, Jul 26, 2010 at 1:08 PM, coldskull  wrote:
>
>> Thanks! it worked. Only thing i am not sure of now is how to set the
>> weight of a Button programmatically instead of thru the xml.
>> I could not see any setWeight method and the LayoutParams class also
>> does not have the weight param.
>>
>>
>>
>> On Jul 26, 10:56 am, Justin Anderson  wrote:
>> > Use a LinearLayout or RelativeLayout and set the weight of each item to
>> the
>> > same value... like 1.
>> >
>> > --
>> > There are only 10 types of people in the world...
>> > Those who know binary and those who don't.
>> > --
>> >
>> >
>> >
>> > On Mon, Jul 26, 2010 at 10:53 AM, coldskull 
>> wrote:
>> > > Hello
>> >
>> > > I have been trying to do a simple layout for sometime now I still
>> > > haven't figured it out.
>> >
>> > > Basically, I want to show four imagebuttons of equal size on the
>> > > screen
>> > > (each button 1/4th the size of the screen). Sort of like the picsquare
>> > > logo (www.picsquare.com).
>> >
>> > > I am trying to avoid absolute pixel sizes in the code so that it works
>> > > on any display size/orientation.
>> >
>> > > Appreciate any inputs...
>> >
>> > > Thanks,
>> > > chinmay
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups "Android Beginners" group.
>> >
>> > > NEW! Try asking and tagging your question on Stack Overflow at
>> > >http://stackoverflow.com/questions/tagged/android
>> >
>> > > To unsubscribe from this group, send email to
>> > > android-beginners+unsubscr...@googlegroups.com> i...@googlegroups.com>
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/android-beginners?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> 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
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Imagebutton layout

2010-07-26 Thread Justin Anderson
Hmmm... that is interesting.  Why can't you just do it through the XML
though?

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Jul 26, 2010 at 1:08 PM, coldskull  wrote:

> Thanks! it worked. Only thing i am not sure of now is how to set the
> weight of a Button programmatically instead of thru the xml.
> I could not see any setWeight method and the LayoutParams class also
> does not have the weight param.
>
>
>
> On Jul 26, 10:56 am, Justin Anderson  wrote:
> > Use a LinearLayout or RelativeLayout and set the weight of each item to
> the
> > same value... like 1.
> >
> > --
> > There are only 10 types of people in the world...
> > Those who know binary and those who don't.
> > --
> >
> >
> >
> > On Mon, Jul 26, 2010 at 10:53 AM, coldskull  wrote:
> > > Hello
> >
> > > I have been trying to do a simple layout for sometime now I still
> > > haven't figured it out.
> >
> > > Basically, I want to show four imagebuttons of equal size on the
> > > screen
> > > (each button 1/4th the size of the screen). Sort of like the picsquare
> > > logo (www.picsquare.com).
> >
> > > I am trying to avoid absolute pixel sizes in the code so that it works
> > > on any display size/orientation.
> >
> > > Appreciate any inputs...
> >
> > > Thanks,
> > > chinmay
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Beginners" group.
> >
> > > NEW! Try asking and tagging your question on Stack Overflow at
> > >http://stackoverflow.com/questions/tagged/android
> >
> > > To unsubscribe from this group, send email to
> > > android-beginners+unsubscr...@googlegroups.com i...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
Found the problem. I should have learned my lesson by now. When you do
any substantial resource changes, you have to uninstall the app from
all your targets or you end up with a toxic mix of old and new
resources info. Problem solved.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Also, try removing layout_gravity. Shouldn't matter, but that's the only
difference I am able to see.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

26.07.2010 23:27 пользователь "Bret Foreman" 
написал:

No, no line break. That's just an artifact of the cut and paste.


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" g...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Hmm.

Looks good.

What I would do at this point is gradually rebuild the layouts bottom up,
starting with the problem view, and assigning new id tokens.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

26.07.2010 23:27 пользователь "Bret Foreman" 
написал:

No, no line break. That's just an artifact of the cut and paste.


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" g...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread Kostya Vasilyev
Data Execution Protection is not unique to 64 bit.

First appeared in XP, I believe.

In fact, I have it enabled (at default level) and having no problems with
the emulator.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

26.07.2010 23:40 пользователь "DanH"  написал:

"Also, I have run Eclipse under Administrator role which in turn will
invoke any process as trusted
Norton seems to mistrust Administrator stuff more than ordinary user
stuff.

Note that a lot of things (like "Data Execution Protection") appear to
be unique to the 64-bit version of Windoze, so folks with 32-bit
machines will have no problem.


On Jul 26, 1:10 pm, Abduaziz Hasan  wrote:
> @Sam
>
> Thank you for your support...
> 2010/7/26 Kostya Vasilyev 

>
> > No problems with NOD32 here either.
>
> > Running Windows 7 64bit.
>
> > --
> > Kostya Vasilye...
> > 26.07.2010 1:10 пользователь "Sam Hobbs"  написал:

>
> > Many people have had problems with Norton. It was pre-installed in my
> > system but I cleared...
> > android-beginners+unsubscr...@googlegroups.com

>

> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en
...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 deploy apps to AVD using Eclipse

2010-07-26 Thread DanH
"Also, I have run Eclipse under Administrator role which in turn will
invoke any process as trusted."

Norton seems to mistrust Administrator stuff more than ordinary user
stuff.

Note that a lot of things (like "Data Execution Protection") appear to
be unique to the 64-bit version of Windoze, so folks with 32-bit
machines will have no problem.

On Jul 26, 1:10 pm, Abduaziz Hasan  wrote:
> @Sam
>
> Thank you for your support.
>
> I have tried different configurations and disabled the antivirus and the
> firewall though I doubt this is related to anyone of them.
>
> @DanH
>
> Yes that is right, but considering the large number of developers who are
> using the SDK without any problem leave me with one option and that is a
> problem with the configuration.
>
>  BTW my antivirus is Avast home. Also, I have run Eclipse under
> Administrator role which in turn will invoke any process as trusted. Yet no
> results :(
>
> I will delete everything from my computer and start everything fresh as my
> Ubuntu is very slow under VMware.
>
> 2010/7/26 Kostya Vasilyev 
>
> > No problems with NOD32 here either.
>
> > Running Windows 7 64bit.
>
> > --
> > Kostya Vasilyev --http://kmansoft.wordpress.com
>
> > 26.07.2010 1:10 пользователь "Sam Hobbs"  написал:
>
> > Many people have had problems with Norton. It was pre-installed in my
> > system but I cleared it out of my system and installed Microsoft Security
> > Essentials, which is free. I am not recommending anything except to say that
> > I have had no problems that I am aware of related to AV software and I have
> > not modified the installation of the AV software for Eclipse or the Android
> > emulator or whatever.
>
> > In my previous system, I used avast and I used various virtual systems and
> > I had no problem with avast.
>
> > DanH wrote:
>
> > > BTW, I'm using Norton "Internet Security".  I've turned off "Insight",
> >  > "Antispy...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" gr...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
No, no line break. That's just an artifact of the cut and paste.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Imagebutton layout

2010-07-26 Thread coldskull
Thanks! it worked. Only thing i am not sure of now is how to set the
weight of a Button programmatically instead of thru the xml.
I could not see any setWeight method and the LayoutParams class also
does not have the weight param.



On Jul 26, 10:56 am, Justin Anderson  wrote:
> Use a LinearLayout or RelativeLayout and set the weight of each item to the
> same value... like 1.
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
>
> On Mon, Jul 26, 2010 at 10:53 AM, coldskull  wrote:
> > Hello
>
> > I have been trying to do a simple layout for sometime now I still
> > haven't figured it out.
>
> > Basically, I want to show four imagebuttons of equal size on the
> > screen
> > (each button 1/4th the size of the screen). Sort of like the picsquare
> > logo (www.picsquare.com).
>
> > I am trying to avoid absolute pixel sizes in the code so that it works
> > on any display size/orientation.
>
> > Appreciate any inputs...
>
> > Thanks,
> > chinmay
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com > i...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread Abduaziz Hasan
@Sam

Thank you for your support.

I have tried different configurations and disabled the antivirus and the
firewall though I doubt this is related to anyone of them.



@DanH

Yes that is right, but considering the large number of developers who are
using the SDK without any problem leave me with one option and that is a
problem with the configuration.

 BTW my antivirus is Avast home. Also, I have run Eclipse under
Administrator role which in turn will invoke any process as trusted. Yet no
results :(

I will delete everything from my computer and start everything fresh as my
Ubuntu is very slow under VMware.


2010/7/26 Kostya Vasilyev 

> No problems with NOD32 here either.
>
> Running Windows 7 64bit.
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> 26.07.2010 1:10 пользователь "Sam Hobbs"  написал:
>
>
> Many people have had problems with Norton. It was pre-installed in my
> system but I cleared it out of my system and installed Microsoft Security
> Essentials, which is free. I am not recommending anything except to say that
> I have had no problems that I am aware of related to AV software and I have
> not modified the installation of the AV software for Eclipse or the Android
> emulator or whatever.
>
> In my previous system, I used avast and I used various virtual systems and
> I had no problem with avast.
>
>
>
>
> DanH wrote:
> >
> > BTW, I'm using Norton "Internet Security".  I've turned off "Insight",
>  > "Antispy...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" gr...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Imagebutton layout

2010-07-26 Thread Justin Anderson
Use a LinearLayout or RelativeLayout and set the weight of each item to the
same value... like 1.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Jul 26, 2010 at 10:53 AM, coldskull  wrote:

> Hello
>
> I have been trying to do a simple layout for sometime now I still
> haven't figured it out.
>
> Basically, I want to show four imagebuttons of equal size on the
> screen
> (each button 1/4th the size of the screen). Sort of like the picsquare
> logo (www.picsquare.com).
>
> I am trying to avoid absolute pixel sizes in the code so that it works
> on any display size/orientation.
>
> Appreciate any inputs...
>
> Thanks,
> chinmay
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev

Bret,

Is there really a line break in the failing case? I mean between "@+id/" 
and "ViewEvents"?


26.07.2010 21:17, Bret Foreman пишет:

Here's a little more detail from layout-land (fails) and layout
(works) respectivley. The fist button causes a runtime exception in
findViewById, the second works:

FAILS


WORKS


   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Large jars in Android

2010-07-26 Thread kypriakos

Hey Paul,

I will try increasing the -Xmx to 768 and hope it helps out. I am also
looking for circular refs in the jars just in case that is the problem
but I doubt I will find any.

Some older postings do refer to apps that go to size up to 16MB and
more
so my 5MB one should not be the issue. I think the packaging of
apps over 1MB gives the Android plug in a bit too much to chew (
especially if it is composed of thousands of classes) ...

I will let you know how it goes - thanks

On Jul 25, 11:14 am, Paul Turchenko  wrote:
> Just increase JVM's heap size. For eclipse I use willowing
> eclipse.ini:
>
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:/Program Files/Java/jre6/bin/client/jvm.dll
> -vmargs
> -Xms256m
> -Xmx768m
> -startup
> file:/C:/Program%20Files/eclipse/plugins/
> org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
> --launcher.library
> file:/C:/Program%20Files/eclipse/plugins/
> org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vm
> C:\Program Files\Java\jre6\bin\client\jvm.dll
> -Xss2m
> -XX:PermSize=128m
> -XX:CompileThreshold=5
> -Xoptimize
>
> As for the ANT, use -Xmx768m switch for JVM
>
> On Jul 25, 5:43 pm, kypriakos  wrote:> Hi all,
>
> > I looked for any info on this but could not find much. Originally
> > I had a number of 3rd jars that I was importing into the Android
> > project. The general concensus I got was that I needed to find
> > the source for them and compile them in Android - well I  kicked
> > my behind and did all that and finally I have all jars in place for
> > my Android app. The compilation and packaging of apk of the
> > app with those jars sitting in the libs dir of the app takes 10-12
> > mins and towards the end it gives an Eclipse internal error
> > and it quits! I tried doing this outside Eclipse using ant and still
> > the same result. I have the java heap params jacked up for
> > -xmx and -xms to 256MB and still no luck. The jars sum up
> > to 6MB and the actual app to 0.25MB. The individual library
> > directories that use to compile each of the 3rd jars compile
> > fairly fast.
>
> > So I am wondering if anyone has any insights on this - is the
> > Android plugin or in general the Android devices not meant to
> > handle such large apks? Is there anything else I need to
> > configure or look into to get this packaged?
>
> > Thanks very much
> > Demetris

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
Here's a little more detail from layout-land (fails) and layout
(works) respectivley. The fist button causes a runtime exception in
findViewById, the second works:

FAILS


WORKS


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev

Something's got to be different.

Open R.java and scan for your view id there, check to see if maybe you 
have a close sounding ID, or there is a capitalization difference.


-- Kostya

26.07.2010 21:05, Bret Foreman пишет:

I mistyped. The file path is actually res/layout-land. The exception
is happening when I call findViewById for one particular button. I
stared at the two xml files as carefully as I could and the ID of that
button is identical in both files. Other buttons are not causing any
trouble. To add to the frustration, the logcat does not show the
exception, though the system does a Force-Close at the exact point of
calling findViewById for that button in the debugger.

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Notepadv2

2010-07-26 Thread Sam Hobbs

Oh, thank you very much; using 2.2 works.

The instructions for Notepadv2 (exercise 2) say to create the project 
the same as Notepadv1 (exercise 1) and Notepadv1 says "we recommend 
selecting a target with the lowest platform version available", so is 
that misleading? Should the Notepadv2 instructions explain about the 
requirement for 2.2 and the fix you provide here for older versions?




Kostya Vasilyev wrote:

Sam,

According to docs:

http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html


match_parent is introduced in API version 8, that is, Android 2.2

Your project is probably set up to compile against an earlier version of
Android. If that is the case, use layout_xxx="fill_parent", not
"match_parent".

-- Kostya

26.07.2010 19:49, Sam Hobbs пишет:

I am getting errors from the Notepadv2 sample in the tutorials. If the
problem is that I made a mistake, then I will try to figure it out but
I really think I followed instructions. The tutorial is at:

http://developer.android.com/resources/tutorials/notepad/index.html

The Notepadv1 works for me, but Notepadv2 gets the errors below. All I
did was to create the project from the Notepadv2 source without
modifying anything. The gen folder is empty so I assume I can ignore
the errors about R.


Description Resource Path Location Type
error: Error: String types not allowed (at 'layout_height' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android
AAPT Problem
error: Error: String types not allowed (at 'layout_height' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 7 Android
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 7 Android
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value
'match_parent'). note_edit.xml /Notepadv2/res/layout line 23 Android
AAPT Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 45 Java Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 60 Java Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 64 Java Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 71 Java Problem



The following is at line 3 of note_edit.xml.

http://schemas.android.com/apk/res/android";
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">






--
Sam Hobbs
Los Angeles, CA

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Notepadv2

2010-07-26 Thread Sam Hobbs

I downloaded it a week ago; is that too old?



Ali Murtaza wrote:

Ya
I think your version is previous. Go to the properties of the project
and convert it into version 8.
If you have not then download the updated version
Thanks

On Mon, Jul 26, 2010 at 9:12 PM, Kostya Vasilyev mailto:kmans...@gmail.com>> wrote:

Sam,

According to docs:


http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html

match_parent is introduced in API version 8, that is, Android 2.2

Your project is probably set up to compile against an earlier
version of Android. If that is the case, use
layout_xxx="fill_parent", not "match_parent".

-- Kostya

26.07.2010 19:49, Sam Hobbs пишет:

I am getting errors from the Notepadv2 sample in the tutorials.
If the problem is that I made a mistake, then I will try to
figure it out but I really think I followed instructions. The
tutorial is at:

http://developer.android.com/resources/tutorials/notepad/index.html

The Notepadv1 works for me, but Notepadv2 gets the errors below.
All I did was to create the project from the Notepadv2 source
without modifying anything. The gen folder is empty so I assume
I can ignore the errors about R.


Description Resource Path Location Type
error: Error: String types not allowed (at 'layout_height' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
3 Android AAPT Problem
error: Error: String types not allowed (at 'layout_height' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
3 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
3 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
3 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
7 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
7 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with
value 'match_parent'). note_edit.xml /Notepadv2/res/layout line
23 Android AAPT Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 45 Java Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 60 Java Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 64 Java Problem
R cannot be resolved Notepadv2.java
/Notepadv2/src/com/android/demo/notepad2 line 71 Java Problem



The following is at line 3 of note_edit.xml.

http://schemas.android.com/apk/res/android";
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">



--
Kostya Vasilev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com 


--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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




--

Ali Murtaza
Software Engineer | www.xelleration.com 
amurt...@xelleration.com | t. +92 42
35781913 | m. +92 331 4450405


--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


--
Sam Hobbs
Los Angeles, CA

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
I mistyped. The file path is actually res/layout-land. The exception
is happening when I call findViewById for one particular button. I
stared at the two xml files as carefully as I could and the ID of that
button is identical in both files. Other buttons are not causing any
trouble. To add to the frustration, the logcat does not show the
exception, though the system does a Force-Close at the exact point of
calling findViewById for that button in the debugger.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev

Bret,

You use the same layout XML file names and same widget IDs in both files 
- that way, orientation changes (and other alternate resources) are 
completely transparent to the application code.


But it's "res/layout-land", not "res/layout/land".

More info here:

http://developer.android.com/guide/topics/resources/providing-resources.html#QualifierRules

-- Kostya

26.07.2010 20:42, Bret Foreman пишет:

My UI designer has created both a portrait and landscape version of
one of our screens. These have the same IDs for all the widgets but a
different layout as appropriate. One layout is in res/layout and the
other is in res/layout/land. I loaded her res files as described and
now I see a runtime exception when the orientation changes from
portrait to landscape. I guess this is due to either 1) We need
different resource IDs for the two different orientations or 2) I need
some changes in the manifest to tell Android that I'm using res/layout
in one orientation and res/layout/land in the other for that activity.
Can someone point me in the right direction to fix this up?

Thanks

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Imagebutton layout

2010-07-26 Thread coldskull
Hello

I have been trying to do a simple layout for sometime now I still
haven't figured it out.

Basically, I want to show four imagebuttons of equal size on the
screen
(each button 1/4th the size of the screen). Sort of like the picsquare
logo (www.picsquare.com).

I am trying to avoid absolute pixel sizes in the code so that it works
on any display size/orientation.

Appreciate any inputs...

Thanks,
chinmay

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
My UI designer has created both a portrait and landscape version of
one of our screens. These have the same IDs for all the widgets but a
different layout as appropriate. One layout is in res/layout and the
other is in res/layout/land. I loaded her res files as described and
now I see a runtime exception when the orientation changes from
portrait to landscape. I guess this is due to either 1) We need
different resource IDs for the two different orientations or 2) I need
some changes in the manifest to tell Android that I'm using res/layout
in one orientation and res/layout/land in the other for that activity.
Can someone point me in the right direction to fix this up?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: GPS satellite icon

2010-07-26 Thread Bret Foreman
Jake,

At least on my Droid, Android 2.1 keeps the GPS receiver on
continuously whenever there is a registered listener, regardless of
the time/distance update parameters. It's much better to unregister
and re-register the listener when you need an update. Of course, this
might be fixed in Android 2.2. I haven't checked.

Bret

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Notepadv2

2010-07-26 Thread Ali Murtaza
Ya

I think your version is previous. Go to the properties of the project and
convert it into version 8.

If you have not then download the updated version

Thanks

On Mon, Jul 26, 2010 at 9:12 PM, Kostya Vasilyev  wrote:

> Sam,
>
> According to docs:
>
>
> http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
>
> match_parent is introduced in API version 8, that is, Android 2.2
>
> Your project is probably set up to compile against an earlier version of
> Android. If that is the case, use layout_xxx="fill_parent", not
> "match_parent".
>
> -- Kostya
>
> 26.07.2010 19:49, Sam Hobbs пишет:
>
> I am getting errors from the Notepadv2 sample in the tutorials. If the
>> problem is that I made a mistake, then I will try to figure it out but I
>> really think I followed instructions. The tutorial is at:
>>
>> http://developer.android.com/resources/tutorials/notepad/index.html
>>
>> The Notepadv1 works for me, but Notepadv2 gets the errors below. All I did
>> was to create the project from the Notepadv2 source without modifying
>> anything. The gen folder is empty so I assume I can ignore the errors about
>> R.
>>
>>
>> Description Resource Path Location Type
>> error: Error: String types not allowed (at 'layout_height' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android AAPT
>> Problem
>> error: Error: String types not allowed (at 'layout_height' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android AAPT
>> Problem
>> error: Error: String types not allowed (at 'layout_width' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android AAPT
>> Problem
>> error: Error: String types not allowed (at 'layout_width' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android AAPT
>> Problem
>> error: Error: String types not allowed (at 'layout_width' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 7 Android AAPT
>> Problem
>> error: Error: String types not allowed (at 'layout_width' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 7 Android AAPT
>> Problem
>> error: Error: String types not allowed (at 'layout_width' with value
>> 'match_parent'). note_edit.xml /Notepadv2/res/layout line 23 Android AAPT
>> Problem
>> R cannot be resolved Notepadv2.java
>> /Notepadv2/src/com/android/demo/notepad2 line 45 Java Problem
>> R cannot be resolved Notepadv2.java
>> /Notepadv2/src/com/android/demo/notepad2 line 60 Java Problem
>> R cannot be resolved Notepadv2.java
>> /Notepadv2/src/com/android/demo/notepad2 line 64 Java Problem
>> R cannot be resolved Notepadv2.java
>> /Notepadv2/src/com/android/demo/notepad2 line 71 Java Problem
>>
>>
>>
>> The following is at line 3 of note_edit.xml.
>>
>> http://schemas.android.com/apk/res/android";
>> android:orientation="vertical" android:layout_width="match_parent"
>> android:layout_height="match_parent">
>>
>>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>



-- 

Ali Murtaza
Software Engineer | www.xelleration.com
amurt...@xelleration.com| t. +92 42 35781913 | m. +92 331 4450405

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Notepadv2

2010-07-26 Thread Kostya Vasilyev

Sam,

According to docs:

http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html

match_parent is introduced in API version 8, that is, Android 2.2

Your project is probably set up to compile against an earlier version of 
Android. If that is the case, use layout_xxx="fill_parent", not 
"match_parent".


-- Kostya

26.07.2010 19:49, Sam Hobbs пишет:
I am getting errors from the Notepadv2 sample in the tutorials. If the 
problem is that I made a mistake, then I will try to figure it out but 
I really think I followed instructions. The tutorial is at:


http://developer.android.com/resources/tutorials/notepad/index.html

The Notepadv1 works for me, but Notepadv2 gets the errors below. All I 
did was to create the project from the Notepadv2 source without 
modifying anything. The gen folder is empty so I assume I can ignore 
the errors about R.



Description Resource Path Location Type
error: Error: String types not allowed (at 'layout_height' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android 
AAPT Problem
error: Error: String types not allowed (at 'layout_height' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android 
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android 
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 3 Android 
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 7 Android 
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 7 Android 
AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent'). note_edit.xml /Notepadv2/res/layout line 23 Android 
AAPT Problem
R cannot be resolved Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2 line 45 Java Problem
R cannot be resolved Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2 line 60 Java Problem
R cannot be resolved Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2 line 64 Java Problem
R cannot be resolved Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2 line 71 Java Problem




The following is at line 3 of note_edit.xml.

http://schemas.android.com/apk/res/android";
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">




--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

2010-07-26 Thread Sam Hobbs
I am getting errors from the Notepadv2 sample in the tutorials. If the 
problem is that I made a mistake, then I will try to figure it out but I 
really think I followed instructions. The tutorial is at:


http://developer.android.com/resources/tutorials/notepad/index.html

The Notepadv1 works for me, but Notepadv2 gets the errors below. All I 
did was to create the project from the Notepadv2 source without 
modifying anything. The gen folder is empty so I assume I can ignore the 
errors about R.



Description ResourcePathLocationType
error: Error: String types not allowed (at 'layout_height' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 3	Android AAPT 
Problem
error: Error: String types not allowed (at 'layout_height' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 3	Android AAPT 
Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 3	Android AAPT 
Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 3	Android AAPT 
Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 7	Android AAPT 
Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 7	Android AAPT 
Problem
error: Error: String types not allowed (at 'layout_width' with value 
'match_parent').	note_edit.xml	/Notepadv2/res/layout	line 23	Android 
AAPT Problem
R cannot be resolved	Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2	line 45	Java Problem
R cannot be resolved	Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2	line 60	Java Problem
R cannot be resolved	Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2	line 64	Java Problem
R cannot be resolved	Notepadv2.java 
/Notepadv2/src/com/android/demo/notepad2	line 71	Java Problem




The following is at line 3 of note_edit.xml.

http://schemas.android.com/apk/res/android";
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 r,java

2010-07-26 Thread Walach
Click right on your project, and "refresh" (or F5).
then go to "Project" menu , and click on "Build All"
if you can't click, first uncheck "Build automaticly"in the same menu
("Project").

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Regarding the surfaceview

2010-07-26 Thread ameya dandekar
Hi,
   I am currently working on the app in which my media player class is
singleton, and i want to play the video files. I use surfaceView for the
video display part. But the problem i m facing is when i change the
orientation , the previous playback disappears (if was playing) and the new
surface view is  getting created ..but  the callback method surface created
is not getting called in which i want to take further action. Where am i
going wrong ?

Regards,
Ameya

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: GPS satellite icon

2010-07-26 Thread Jake Colman

Bret,

Is your hack only required for continuous GPS monitoring?  What abotu if
you request updates only when the location has changed by a certain
distance?  Does it keep the GPS on continuously just so it knows whether
the you have moved the required distance?  If so, it sounds like Id be
better off using your hack.

...Jake


> "BF" == Bret Foreman  writes:

   BF> Actually, this is not true with my hack. I did a comparison of
   BF> battery drain with and without GPS running using 10 second
   BF> updates and the difference in drain between off and on was less
   BF> than 10% on my Droid phone.

   BF> On Jul 23, 8:42 am, cellurl  wrote:
   >> GPS is such a power hog, no way around it. Physics!
   >> Not to soapbox, but there are a bunch of car apps that will require
   >> putting your Android in a cradle on your car dashboard.
   >> Why? Power. Only in a cradle will GPS be left on without draining the
   >> battery.
   >> 
   >> Sooo, please Android, make hostmode-USB a priority so we can build car
   >> apps: self-steering, self-braking, stay-awake apps
   >> 
   >> jp

   BF> -- 
   BF> You received this message because you are subscribed to the Google
   BF> Groups "Android Beginners" group.

   BF> NEW! Try asking and tagging your question on Stack Overflow at
   BF> http://stackoverflow.com/questions/tagged/android

   BF> To unsubscribe from this group, send email to
   BF> android-beginners+unsubscr...@googlegroups.com
   BF> For more options, visit this group at
   BF> http://groups.google.com/group/android-beginners?hl=en

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Re: problem with r,java

2010-07-26 Thread Shaista Naaz
 Hi Ganesh,

 When we make the project first time, it takes some sequence of build,
clean, switching build automatically on and off and run, if you run this
sequence some two or three times your R.java should be created and in the
console of your eclipse you will see something like loading your application
in phone, some stuff like that.

 R.java will be created only when your project is built successfully
otherwise it will not.

If you are making changes in the .xml files in the project where R.java was
created before, then just don't clean or built rather go to run history and
run your application.

Regards,
Shaista Naaz

On Mon, Jul 26, 2010 at 5:42 PM, DanH  wrote:

> R.java should be in the "gen" directory of your project, and further
> nested (if you observe it in the file system) by the directories of
> your project path.
>
> If you installed the Android add-on for Eclipse R.java should be
> automatically created, but I don't recall if it's created immediately
> after you create the project, or during the first build you do.
>
> Of course, the R.java file is generated from the several files in the
> "res" directory, so if there's something wrong there it may not be
> generated.
>
> On Jul 26, 1:56 am, G Ganesh  wrote:
> > Hi,
> >  I am new to android. I am now familiar on how to create project
> > and know what are the files that will b generated. I know that the
> > file, r.java will be created automatically when a project is being
> > created but i cant find r,java file when i create a new project.Witout
> > creating this r.java i find more error on my code side.
> >
> >  I even closed and opened the project several times and even
> > closed and opened  my eclipse IDE too but i could'nt find the way to
> > it. I even tried with answer that came from forums but no way still i
> > am fuzzing with it.
> > I am using eclipse 3.5
> >
> >  pls give me the best of the answer and the reason too.Any help or
> > reference is appreciated on this
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: JNI in android

2010-07-26 Thread DanH
You shouldn't have a void* in any of the JNI C interfaces.  If you
need a void* that Java code can pass around you should wrapper the
value with a Java object.

Callback would be handled with the invocation interface.

On Jul 26, 1:26 am, sowmya  wrote:
> Hi
>  I want to port c library in android for that i am writing native
> interface
> my c library contains generic pointers like void* .how can i define
> these in java jni files .do i need to define as byte[] and typecast
> in .cpp ?
> Also i want to know how to handle the callbacks from c library in jni

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 r,java

2010-07-26 Thread DanH
R.java should be in the "gen" directory of your project, and further
nested (if you observe it in the file system) by the directories of
your project path.

If you installed the Android add-on for Eclipse R.java should be
automatically created, but I don't recall if it's created immediately
after you create the project, or during the first build you do.

Of course, the R.java file is generated from the several files in the
"res" directory, so if there's something wrong there it may not be
generated.

On Jul 26, 1:56 am, G Ganesh  wrote:
> Hi,
>      I am new to android. I am now familiar on how to create project
> and know what are the files that will b generated. I know that the
> file, r.java will be created automatically when a project is being
> created but i cant find r,java file when i create a new project.Witout
> creating this r.java i find more error on my code side.
>
>      I even closed and opened the project several times and even
> closed and opened  my eclipse IDE too but i could'nt find the way to
> it. I even tried with answer that came from forums but no way still i
> am fuzzing with it.
> I am using eclipse 3.5
>
>      pls give me the best of the answer and the reason too.Any help or
> reference is appreciated on this

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: internet connection on android emulator

2010-07-26 Thread RichardC
Windows XP, Emulator running 2.2

Click browser look at internet

from an app needs




On Jul 26, 3:49 am, androidreamer  wrote:
> Is anyone here has successfully run internet on 2.2 froyo(on windows)
> if yes please tell me how.
> thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] problem with r,java

2010-07-26 Thread Saket Srivastav
Can you just write down the exact steps that you followed while creating the
project..

   Regards
Saket Srivastav


On Mon, Jul 26, 2010 at 2:56 AM, G Ganesh wrote:

> Hi,
> I am new to android. I am now familiar on how to create project
> and know what are the files that will b generated. I know that the
> file, r.java will be created automatically when a project is being
> created but i cant find r,java file when i create a new project.Witout
> creating this r.java i find more error on my code side.
>
> I even closed and opened the project several times and even
> closed and opened  my eclipse IDE too but i could'nt find the way to
> it. I even tried with answer that came from forums but no way still i
> am fuzzing with it.
> I am using eclipse 3.5
>
> pls give me the best of the answer and the reason too.Any help or
> reference is appreciated on this
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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