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

2010-07-27 Thread Kostya Vasilyev

Ah.

Was this a home screen widget?

27.07.2010 0:47, 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.

   



--
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-27 Thread Ali Murtaza
Infact the text of these tutorials is not updated i think.

On Mon, Jul 26, 2010 at 10:11 PM, Sam Hobbs  wrote:

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



-- 

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

2010-07-27 Thread Justin Anderson
When you say "load an image" do you mean just display it somehow?  If so,
then just create a new activity with an ImageView in it and call
setImageResource on the view.


--
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:24 PM, ethan  wrote:

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

-- 
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: Bluetooth Debugging on phones

2010-07-27 Thread Megh
Ah, sorry.

Debugging statements like: Log.e(TAG, "++ ON START ++");
that would show up on the LogCat when using the emulator, don't work
when the phone is plugged in and the app is running on it.

I'm wondering if this is true, or it's just me missing something.
Also, does anyone have any other recommendations for using debugging
statements?


On Jul 23, 7:07 pm, Nick Richardson  wrote:
> Your question is quite vague.  I have never had an issue connecting my N1 to
> the debugger via Eclipse.
>
> What exactly is your problem?
>
>
>
> On Fri, Jul 23, 2010 at 9:06 AM, Megh  wrote:
> > Hi, can anyone recommend the best way to debug Bluetooth applications?
> > I'm running it on Nexus Ones because Bluetooth isn't supported on the
> > emulator but this makes it rather difficult to debug. I'm hoping
> > someone knows something about it that I don't! Thanks and much
> > appreciated.
>
> > --
> > 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
>
> --
> //Nick Richardson
> //richardson.n...@gmail.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] What is drawable-hdpi, drawable-ldpi and drawable-mdpi ?

2010-07-27 Thread YuviDroid
http://developer.android.com/guide/practices/screens_support.html

On Tue, Jul 27, 2010 at 11:35 AM, Shaista Naaz wrote:

> Why it is that whenever I select the SDK target other than Android 1.1 for
> a new project. I get 3 folders instead of one folder for drawable inside
> res.
> And that is drawable-hdpi, drawable-ldpi and drawable-mdpi.
>
> Please kindly comment.
>
> Thanks,
> Shaista
>
> --
> 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
>



-- 
YuviDroid
Check out Launch-X  (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
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] What is drawable-hdpi, drawable-ldpi and drawable-mdpi ?

2010-07-27 Thread Shaista Naaz
Why it is that whenever I select the SDK target other than Android 1.1 for a
new project. I get 3 folders instead of one folder for drawable inside res.
And that is drawable-hdpi, drawable-ldpi and drawable-mdpi.

Please kindly comment.

Thanks,
Shaista

-- 
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] What is drawable-hdpi, drawable-ldpi and drawable-mdpi ?

2010-07-27 Thread Shaista Naaz
Thanks for this, but I have a confusion that say I need to put one image
into the drawable folder to run it in eclipse, where should i keep it, I
mean in which folder or should I keep it in all the three?

Thanks,
Shaista Naaz

On Tue, Jul 27, 2010 at 3:08 PM, YuviDroid  wrote:

> http://developer.android.com/guide/practices/screens_support.html
>
> On Tue, Jul 27, 2010 at 11:35 AM, Shaista Naaz wrote:
>
>> Why it is that whenever I select the SDK target other than Android 1.1 for
>> a new project. I get 3 folders instead of one folder for drawable inside
>> res.
>> And that is drawable-hdpi, drawable-ldpi and drawable-mdpi.
>>
>> Please kindly comment.
>>
>> Thanks,
>> Shaista
>>
>> --
>> 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
>>
>
>
>
> --
> YuviDroid
> Check out Launch-X  (a widget
> to quickly access your favorite apps and contacts!)
> http://android.yuvalsharon.net
>
>  --
> 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] What is drawable-hdpi, drawable-ldpi and drawable-mdpi ?

2010-07-27 Thread Kostya Vasilyev

Shaista,

"drawable" is the default. If a higher or lower resolution image is 
needed, depending on the screen, Android can scale it as appropriate.


However, this automatic scaling doesn't always look that great. In those 
cases, you, as the developer, can provide "alternate" versions of the 
same resource in appropriate folders. They will override automatically 
scaled resources from "drawable" as appropriate based on the resource 
directory name (i.e. "hdpi" for high-density screens, etc.).


This gives you fine grained control: some drawables can be scaled 
automatically (if this scaling looks good to you), and others can have 
alternate (high-res or low- res) versions.


-- Kostya

27.07.2010 13:51, Shaista Naaz ?:


Thanks for this, but I have a confusion that say I need to put one 
image into the drawable folder to run it in eclipse, where should i 
keep it, I mean in which folder or should I keep it in all the three?


Thanks,
Shaista Naaz

On Tue, Jul 27, 2010 at 3:08 PM, YuviDroid > wrote:


http://developer.android.com/guide/practices/screens_support.html

On Tue, Jul 27, 2010 at 11:35 AM, Shaista Naaz
mailto:shaistanaa...@gmail.com>> wrote:

Why it is that whenever I select the SDK target other than
Android 1.1 for a new project. I get 3 folders instead of one
folder for drawable inside res.
And that is drawable-hdpi, drawable-ldpi and drawable-mdpi.

Please kindly comment.

Thanks,
Shaista
-- 
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




-- 
YuviDroid

Check out Launch-X  (a
widget to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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



--
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: Language change to Hindi

2010-07-27 Thread Shaista Naaz
Please some body kindly suggest...


On Tue, Jul 27, 2010 at 11:31 AM, Shaista Naaz wrote:

> 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


Re: [android-beginners] Re: Language change to Hindi

2010-07-27 Thread Mark Murphy
http://developer.android.com/sdk/android-2.2.html#locs

The Android SDK does not support Hindi.

On Tue, Jul 27, 2010 at 8:07 AM, Shaista Naaz  wrote:
> Please some body kindly suggest...
>
>
> On Tue, Jul 27, 2010 at 11:31 AM, Shaista Naaz 
> wrote:
>>
>> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
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: Language change to Hindi

2010-07-27 Thread Shaista Naaz
Thanks for help.. Any pointer that if I want to enable or incorporate Hindi
language in a phone that will work on Android...???
Is this possible???
I am sure it is but I don't know how??

Thanks,
Shaista Naaz

On Tue, Jul 27, 2010 at 5:39 PM, Mark Murphy wrote:

> http://developer.android.com/sdk/android-2.2.html#locs
>
> The Android SDK does not support Hindi.
>
> On Tue, Jul 27, 2010 at 8:07 AM, Shaista Naaz 
> wrote:
> > Please some body kindly suggest...
> >
> >
> > On Tue, Jul 27, 2010 at 11:31 AM, Shaista Naaz 
> > wrote:
> >>
> >> 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
> >
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 2.9 Available!
>
> --
> 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: Language change to Hindi

2010-07-27 Thread Mark Murphy
On Tue, Jul 27, 2010 at 8:26 AM, Shaista Naaz  wrote:
> Thanks for help.. Any pointer that if I want to enable or incorporate Hindi
> language in a phone that will work on Android...???

Search the archives of:

http://groups.google.com/group/android-platform

for past discussions on translating Android string resources to other languages.

You posted this question to a list dedicated to beginners working with
the Android SDK, which has nothing to do with building your own phone
firmware, which is what is required to add a new language "in a phone
that will work on Android".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

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

2010-07-27 Thread ethan
Justin
Thanks for the reply. What i am trying to do is following:

Based on code logic, i am trying to print on the screen " There are 4
flowers".
However instead of using the word flowers, i want to put icon of
flowers in its place. The icon is stored as a jpeg in my res/drawable
folder. The number of flowers can vary from 1 to 4.

So do i first need to create 4 imageviews in my layout and then call
each one out separately using setimageResourse ?



On Jul 27, 3:26 am, Justin Anderson  wrote:
> When you say "load an image" do you mean just display it somehow?  If so,
> then just create a new activity with an ImageView in it and call
> setImageResource on the view.
>
> --
> 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:24 PM, ethan  wrote:
> > 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

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

2010-07-27 Thread Justin Anderson
Unless I am misunderstanding, you would only need one ImageView...  You said
you want to replace the word "flowers" with an image, right?  Not the number
4?  If that is really what you would want to do then you would only need one
ImageView...

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


On Tue, Jul 27, 2010 at 8:01 AM, ethan  wrote:

> Justin
> Thanks for the reply. What i am trying to do is following:
>
> Based on code logic, i am trying to print on the screen " There are 4
> flowers".
> However instead of using the word flowers, i want to put icon of
> flowers in its place. The icon is stored as a jpeg in my res/drawable
> folder. The number of flowers can vary from 1 to 4.
>
> So do i first need to create 4 imageviews in my layout and then call
> each one out separately using setimageResourse ?
>
>
>
> On Jul 27, 3:26 am, Justin Anderson  wrote:
> > When you say "load an image" do you mean just display it somehow?  If so,
> > then just create a new activity with an ImageView in it and call
> > setImageResource on the view.
> >
> > --
> > 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:24 PM, ethan  wrote:
> > > 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
>
> --
> 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: Loading images in android

2010-07-27 Thread ethan
You are correct.

Instead of displaying the number 4, or 3 or 2 or 1, i want to display
4 flowers, or 3 flowers, or 2 flowers...
so you are saying that i can achieve that with one imageview ?

On Jul 27, 9:18 am, Justin Anderson  wrote:
> Unless I am misunderstanding, you would only need one ImageView...  You said
> you want to replace the word "flowers" with an image, right?  Not the number
> 4?  If that is really what you would want to do then you would only need one
> ImageView...
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
> On Tue, Jul 27, 2010 at 8:01 AM, ethan  wrote:
> > Justin
> > Thanks for the reply. What i am trying to do is following:
>
> > Based on code logic, i am trying to print on the screen " There are 4
> > flowers".
> > However instead of using the word flowers, i want to put icon of
> > flowers in its place. The icon is stored as a jpeg in my res/drawable
> > folder. The number of flowers can vary from 1 to 4.
>
> > So do i first need to create 4 imageviews in my layout and then call
> > each one out separately using setimageResourse ?
>
> > On Jul 27, 3:26 am, Justin Anderson  wrote:
> > > When you say "load an image" do you mean just display it somehow?  If so,
> > > then just create a new activity with an ImageView in it and call
> > > setImageResource on the view.
>
> > > --
> > > 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:24 PM, ethan  wrote:
> > > > 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
>
> > --
> > 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: Unable to deploy apps to AVD using Eclipse

2010-07-27 Thread Abduaziz Hasan
I give up

I tried and tried and tried but nothing is coming :(

this is the log from my Win7 machine:

___
[2010-07-27 18:12:47 - TestAnd] Android Launch!
[2010-07-27 18:12:47 - TestAnd] adb is running normally.
[2010-07-27 18:12:47 - TestAnd] Performing gosi.gest.Testme activity launch
[2010-07-27 18:12:47 - TestAnd] Automatic Target Mode: launching new
emulator with compatible AVD 'my_avd'
[2010-07-27 18:12:47 - TestAnd] Launching a new emulator with Virtual Device
'my_avd'
___


Ubuntu machine
___
[2010-07-27 08:40:05 - MyFirstAndroid] Android Launch!
[2010-07-27 08:40:05 - MyFirstAndroid] adb is running normally.
[2010-07-27 08:40:05 - MyFirstAndroid] Performing com.and.StartForm activity
launch
[2010-07-27 08:40:05 - MyFirstAndroid] Automatic Target Mode: launching new
emulator with compatible AVD 'my_avd'
[2010-07-27 08:40:05 - MyFirstAndroid] Launching a new emulator with Virtual
Device 'my_avd'
[2010-07-27 08:40:38 - MyFirstAndroid] New emulator found: emulator-5554
[2010-07-27 08:40:38 - MyFirstAndroid] Waiting for HOME
('android.process.acore') to be launched...
[2010-07-27 08:41:25 - MyFirstAndroid] WARNING: Application does not specify
an API level requirement!
[2010-07-27 08:41:25 - MyFirstAndroid] Device API version is 8 (Android 2.2)
[2010-07-27 08:41:25 - MyFirstAndroid] HOME is up on device 'emulator-5554'
[2010-07-27 08:41:25 - MyFirstAndroid] Uploading MyFirstAndroid.apk onto
device 'emulator-5554'
[2010-07-27 08:41:25 - MyFirstAndroid] Installing MyFirstAndroid.apk...
[2010-07-27 08:42:07 - MyFirstAndroid] Success!
[2010-07-27 08:42:07 - MyFirstAndroid] Starting activity com.and.StartForm
on device
[2010-07-27 08:42:10 - MyFirstAndroid] ActivityManager: Starting: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.and/.StartForm }



As you can see that the Win7 doesn't deploy the app.


On Tue, Jul 27, 2010 at 2:57 AM, Sam Hobbs  wrote:

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

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

2010-07-27 Thread Justin Anderson
No... displaying the number of flowers is NOT the same as replacing the word
"flower" with an image, which is what you originally described.

To display 4 flower images you would need 4 ImageViews.  To display 3 flower
images you would need 3 ImageViews.

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


On Tue, Jul 27, 2010 at 8:25 AM, ethan  wrote:

> You are correct.
>
> Instead of displaying the number 4, or 3 or 2 or 1, i want to display
> 4 flowers, or 3 flowers, or 2 flowers...
> so you are saying that i can achieve that with one imageview ?
>
> On Jul 27, 9:18 am, Justin Anderson  wrote:
> > Unless I am misunderstanding, you would only need one ImageView...  You
> said
> > you want to replace the word "flowers" with an image, right?  Not the
> number
> > 4?  If that is really what you would want to do then you would only need
> one
> > ImageView...
> >
> > --
> > There are only 10 types of people in the world...
> > Those who know binary and those who don't.
> > --
> >
> > On Tue, Jul 27, 2010 at 8:01 AM, ethan  wrote:
> > > Justin
> > > Thanks for the reply. What i am trying to do is following:
> >
> > > Based on code logic, i am trying to print on the screen " There are 4
> > > flowers".
> > > However instead of using the word flowers, i want to put icon of
> > > flowers in its place. The icon is stored as a jpeg in my res/drawable
> > > folder. The number of flowers can vary from 1 to 4.
> >
> > > So do i first need to create 4 imageviews in my layout and then call
> > > each one out separately using setimageResourse ?
> >
> > > On Jul 27, 3:26 am, Justin Anderson  wrote:
> > > > When you say "load an image" do you mean just display it somehow?  If
> so,
> > > > then just create a new activity with an ImageView in it and call
> > > > setImageResource on the view.
> >
> > > >
> --
> > > > 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:24 PM, ethan 
> wrote:
> > > > > 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
> >
> > > --
> > > 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
>

-- 
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] debug application key and beta testers

2010-07-27 Thread Bret Foreman
I'm building/signing my application with a debug key. Likewise, I'm
accessing Google Maps with an API key generated by the debug app key.
Now I've got a couple of beta testers and Google Maps isn't working
for them. Is it time to get a real application key and a new Maps key
or is there another way to run the beta phase?

-- 
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] How to pass on extras to a custom intent?

2010-07-27 Thread Victoria
hi there,

I am trying to pass on a videoclip from one activity to another by
calling an intent: What I would like to do is to pass on the clicked
video (the video's uri) and display it in a videoview within the novel
activity. But I am a bit stuck and don't know what I should do...

This is what I got so far for calling the intent and passing on the
extra:

String uri = videocursor.getString(0); //uri holds the currently
selected/clicked video uri
 Intent editorIntent = new Intent(EditGalleryView.this,
EditorView.class);
 editorIntent.putExtra(???);
 startActivity(editorIntent);

My problem is what I should to pass on the uri as Extra and how I can
retrieve that in the other activity...

If someone could help me out here, that would be fantastic, thank you
very much 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] How to pass on extras to a custom intent?

2010-07-27 Thread Justin Anderson
Have you done any searching of StackOverflow or this group?  This is a very
common question and has been answered many, many times...

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


On Tue, Jul 27, 2010 at 10:14 AM, Victoria wrote:

> hi there,
>
> I am trying to pass on a videoclip from one activity to another by
> calling an intent: What I would like to do is to pass on the clicked
> video (the video's uri) and display it in a videoview within the novel
> activity. But I am a bit stuck and don't know what I should do...
>
> This is what I got so far for calling the intent and passing on the
> extra:
>
> String uri = videocursor.getString(0); //uri holds the currently
> selected/clicked video uri
> Intent editorIntent = new Intent(EditGalleryView.this,
> EditorView.class);
> editorIntent.putExtra(???);
> startActivity(editorIntent);
>
> My problem is what I should to pass on the uri as Extra and how I can
> retrieve that in the other activity...
>
> If someone could help me out here, that would be fantastic, thank you
> very much 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
>

-- 
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-27 Thread DanH
Looks like the app is loaded.  See if you can find it through the
menu.

On Jul 27, 10:45 am, Abduaziz Hasan  wrote:
> I give up
>
> I tried and tried and tried but nothing is coming :(
>
> this is the log from my Win7 machine:
>
> ___
> [2010-07-27 18:12:47 - TestAnd] Android Launch!
> [2010-07-27 18:12:47 - TestAnd] adb is running normally.
> [2010-07-27 18:12:47 - TestAnd] Performing gosi.gest.Testme activity launch
> [2010-07-27 18:12:47 - TestAnd] Automatic Target Mode: launching new
> emulator with compatible AVD 'my_avd'
> [2010-07-27 18:12:47 - TestAnd] Launching a new emulator with Virtual Device
> 'my_avd'
> ___
>
> Ubuntu machine
> ___
> [2010-07-27 08:40:05 - MyFirstAndroid] Android Launch!
> [2010-07-27 08:40:05 - MyFirstAndroid] adb is running normally.
> [2010-07-27 08:40:05 - MyFirstAndroid] Performing com.and.StartForm activity
> launch
> [2010-07-27 08:40:05 - MyFirstAndroid] Automatic Target Mode: launching new
> emulator with compatible AVD 'my_avd'
> [2010-07-27 08:40:05 - MyFirstAndroid] Launching a new emulator with Virtual
> Device 'my_avd'
> [2010-07-27 08:40:38 - MyFirstAndroid] New emulator found: emulator-5554
> [2010-07-27 08:40:38 - MyFirstAndroid] Waiting for HOME
> ('android.process.acore') to be launched...
> [2010-07-27 08:41:25 - MyFirstAndroid] WARNING: Application does not specify
> an API level requirement!
> [2010-07-27 08:41:25 - MyFirstAndroid] Device API version is 8 (Android 2.2)
> [2010-07-27 08:41:25 - MyFirstAndroid] HOME is up on device 'emulator-5554'
> [2010-07-27 08:41:25 - MyFirstAndroid] Uploading MyFirstAndroid.apk onto
> device 'emulator-5554'
> [2010-07-27 08:41:25 - MyFirstAndroid] Installing MyFirstAndroid.apk...
> [2010-07-27 08:42:07 - MyFirstAndroid] Success!
> [2010-07-27 08:42:07 - MyFirstAndroid] Starting activity com.and.StartForm
> on device
> [2010-07-27 08:42:10 - MyFirstAndroid] ActivityManager: Starting: Intent {
> act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
> cmp=com.and/.StartForm }
> 
>
> As you can see that the Win7 doesn't deploy the app.
>
> On Tue, Jul 27, 2010 at 2:57 AM, Sam Hobbs  wrote:
> > 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

-- 
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] How to pass on extras to a custom intent?

2010-07-27 Thread Victoria Busse
Well, yes, I have looked at this here:

http://stackoverflow.com/questions/2911925/activity-ignore-intents-extra-fields

but
I couldn't get it working...

On Tue, Jul 27, 2010 at 5:24 PM, Justin Anderson wrote:

> Have you done any searching of StackOverflow or this group?  This is a very
> common question and has been answered many, many times...
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
>
> On Tue, Jul 27, 2010 at 10:14 AM, Victoria wrote:
>
>> hi there,
>>
>> I am trying to pass on a videoclip from one activity to another by
>> calling an intent: What I would like to do is to pass on the clicked
>> video (the video's uri) and display it in a videoview within the novel
>> activity. But I am a bit stuck and don't know what I should do...
>>
>> This is what I got so far for calling the intent and passing on the
>> extra:
>>
>> String uri = videocursor.getString(0); //uri holds the currently
>> selected/clicked video uri
>> Intent editorIntent = new Intent(EditGalleryView.this,
>> EditorView.class);
>> editorIntent.putExtra(???);
>> startActivity(editorIntent);
>>
>> My problem is what I should to pass on the uri as Extra and how I can
>> retrieve that in the other activity...
>>
>> If someone could help me out here, that would be fantastic, thank you
>> very much 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
>>
>
>  --
> 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] How to pass on extras to a custom intent?

2010-07-27 Thread Victoria Busse
Nevermind, when I just looked through the code again I found a mistake...
sorry for posting this question then, I just thought that I had not at all
understood the concept of intents and passing on extras

On Tue, Jul 27, 2010 at 5:46 PM, Victoria Busse  wrote:

> Well, yes, I have looked at this here:
>
>
> http://stackoverflow.com/questions/2911925/activity-ignore-intents-extra-fields
>
>
> but
> I couldn't get it working...
>
> On Tue, Jul 27, 2010 at 5:24 PM, Justin Anderson 
> wrote:
>
>> Have you done any searching of StackOverflow or this group?  This is a
>> very common question and has been answered many, many times...
>>
>> --
>> There are only 10 types of people in the world...
>> Those who know binary and those who don't.
>> --
>>
>>
>>
>> On Tue, Jul 27, 2010 at 10:14 AM, Victoria 
>> wrote:
>>
>>> hi there,
>>>
>>> I am trying to pass on a videoclip from one activity to another by
>>> calling an intent: What I would like to do is to pass on the clicked
>>> video (the video's uri) and display it in a videoview within the novel
>>> activity. But I am a bit stuck and don't know what I should do...
>>>
>>> This is what I got so far for calling the intent and passing on the
>>> extra:
>>>
>>> String uri = videocursor.getString(0); //uri holds the currently
>>> selected/clicked video uri
>>> Intent editorIntent = new Intent(EditGalleryView.this,
>>> EditorView.class);
>>> editorIntent.putExtra(???);
>>> startActivity(editorIntent);
>>>
>>> My problem is what I should to pass on the uri as Extra and how I can
>>> retrieve that in the other activity...
>>>
>>> If someone could help me out here, that would be fantastic, thank you
>>> very much 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
>>>
>>
>>  --
>> 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] Developing a website for nice/elegant visualization in Android Tablet...

2010-07-27 Thread Android Appman
Not sure if this helps b'cause I am a beginner but I would say from my past
experience formulate a basic look and feel for
your website , maybe just the main page frame and a few Navigate tags and
see how it looks on a DroidTablet.

Try PHP, Ruby or anything else that will get you the results you are looking
for graphically , The fact that its a DroidTablet
should be the least of your worries at least for look and feel.

There is still a great deal of push back from WebDevs who do not like
Java-ish style approach to what we do

hope this helps

On Tue, Jul 20, 2010 at 9:14 AM, Dinooz  wrote:

> I like to create some kind of catalog of products, the picture and
> some information, I'm thinking to use Ruby on Rails for quick
> prototyping, however, what would you recommend to use as resolution of
> the page to make it easily viewable using the web browser from an
> Android Tablet ?
>
> Thanks in advance for your reply.
>
> Best Regards Dinooz
>
> --
> 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] How to pass on extras to a custom intent?

2010-07-27 Thread Justin Anderson
No worries.  Glad you were able to figure it out.

There are just quite a few people who post without ever trying to find
answers for themselves.  Rather than just giving them the answer and
justifying their lack of initiative, I try to help them by not helping
them... at least not until they have shown that they have tried to look for
the answer for themselves.  ;-)  If they are always just given the answer
then they never learn anything except to mooch off others experience.

Sometimes it is not possible to tell if that is the case or not.  In general
it is a good idea when posting a question to state what you have tried and,
if possible, some code.

I am often criticized for this, but that is just because people mistake my
responses for rudeness... Granted, sometimes it is a little on the blunt
side and perhaps a little rude, but I think that is more the exception than
the rule in my case, and people just misread it.

The Android Dev Guide has a really good link to a guide about posting
questions to get answers... I wish more people would read it and follow its
advice:
http://developer.android.com/resources/community-groups.html
http://www.catb.org/~esr/faqs/smart-questions.html (This link came from the
above link)

Thanks,
Justin

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


On Tue, Jul 27, 2010 at 10:48 AM, Victoria Busse <
victoriasarabu...@gmail.com> wrote:

> Nevermind, when I just looked through the code again I found a mistake...
> sorry for posting this question then, I just thought that I had not at all
> understood the concept of intents and passing on extras
>
>
> On Tue, Jul 27, 2010 at 5:46 PM, Victoria Busse <
> victoriasarabu...@gmail.com> wrote:
>
>> Well, yes, I have looked at this here:
>>
>>
>> http://stackoverflow.com/questions/2911925/activity-ignore-intents-extra-fields
>>
>>
>> but
>> I couldn't get it working...
>>
>> On Tue, Jul 27, 2010 at 5:24 PM, Justin Anderson > > wrote:
>>
>>> Have you done any searching of StackOverflow or this group?  This is a
>>> very common question and has been answered many, many times...
>>>
>>> --
>>> There are only 10 types of people in the world...
>>> Those who know binary and those who don't.
>>> --
>>>
>>>
>>>
>>> On Tue, Jul 27, 2010 at 10:14 AM, Victoria 
>>> wrote:
>>>
 hi there,

 I am trying to pass on a videoclip from one activity to another by
 calling an intent: What I would like to do is to pass on the clicked
 video (the video's uri) and display it in a videoview within the novel
 activity. But I am a bit stuck and don't know what I should do...

 This is what I got so far for calling the intent and passing on the
 extra:

 String uri = videocursor.getString(0); //uri holds the currently
 selected/clicked video uri
 Intent editorIntent = new Intent(EditGalleryView.this,
 EditorView.class);
 editorIntent.putExtra(???);
 startActivity(editorIntent);

 My problem is what I should to pass on the uri as Extra and how I can
 retrieve that in the other activity...

 If someone could help me out here, that would be fantastic, thank you
 very much 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

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

-- 
You received

[android-beginners] Re: Loading images in android

2010-07-27 Thread ethan
Ok. So in this case, is there a way to dynamically create imageviews
from the code (not xml) based on number of images to display ?
Or should i just statically create 4 imageviews and only populate them
based on the number of flowers i want to display ?

On Jul 27, 10:52 am, Justin Anderson  wrote:
> No... displaying the number of flowers is NOT the same as replacing the word
> "flower" with an image, which is what you originally described.
>
> To display 4 flower images you would need 4 ImageViews.  To display 3 flower
> images you would need 3 ImageViews.
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
> On Tue, Jul 27, 2010 at 8:25 AM, ethan  wrote:
> > You are correct.
>
> > Instead of displaying the number 4, or 3 or 2 or 1, i want to display
> > 4 flowers, or 3 flowers, or 2 flowers...
> > so you are saying that i can achieve that with one imageview ?
>
> > On Jul 27, 9:18 am, Justin Anderson  wrote:
> > > Unless I am misunderstanding, you would only need one ImageView...  You
> > said
> > > you want to replace the word "flowers" with an image, right?  Not the
> > number
> > > 4?  If that is really what you would want to do then you would only need
> > one
> > > ImageView...
>
> > > --
> > > There are only 10 types of people in the world...
> > > Those who know binary and those who don't.
> > > --
>
> > > On Tue, Jul 27, 2010 at 8:01 AM, ethan  wrote:
> > > > Justin
> > > > Thanks for the reply. What i am trying to do is following:
>
> > > > Based on code logic, i am trying to print on the screen " There are 4
> > > > flowers".
> > > > However instead of using the word flowers, i want to put icon of
> > > > flowers in its place. The icon is stored as a jpeg in my res/drawable
> > > > folder. The number of flowers can vary from 1 to 4.
>
> > > > So do i first need to create 4 imageviews in my layout and then call
> > > > each one out separately using setimageResourse ?
>
> > > > On Jul 27, 3:26 am, Justin Anderson  wrote:
> > > > > When you say "load an image" do you mean just display it somehow?  If
> > so,
> > > > > then just create a new activity with an ImageView in it and call
> > > > > setImageResource on the view.
>
> > --
> > > > > 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:24 PM, ethan 
> > wrote:
> > > > > > 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
>
> > > > --
> > > > 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

-- 
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] How to pass on extras to a custom intent?

2010-07-27 Thread Victoria Busse
I can totally understand that :) and I wouldn't consider your attitude or
opinion as rude but I can imagine that some people may misunderstand
that...

For me asking is often the final desperation after having tried for hours
(including searching through similar problems) and not being able to solve
the problem myself

But I am so interested in Android and really trying to learn and understand
it and so far (even after hours of desperation and hard work ;)) it has been
fun.

And to be honest for me it is always better if I actually solve a problem
myself because it feels good and makes me think that I actually understood
something, if you know what I mean :)


And thank you :)





On Tue, Jul 27, 2010 at 6:02 PM, Justin Anderson wrote:

> No worries.  Glad you were able to figure it out.
>
> There are just quite a few people who post without ever trying to find
> answers for themselves.  Rather than just giving them the answer and
> justifying their lack of initiative, I try to help them by not helping
> them... at least not until they have shown that they have tried to look for
> the answer for themselves.  ;-)  If they are always just given the answer
> then they never learn anything except to mooch off others experience.
>
> Sometimes it is not possible to tell if that is the case or not.  In
> general it is a good idea when posting a question to state what you have
> tried and, if possible, some code.
>
> I am often criticized for this, but that is just because people mistake my
> responses for rudeness... Granted, sometimes it is a little on the blunt
> side and perhaps a little rude, but I think that is more the exception than
> the rule in my case, and people just misread it.
>
> The Android Dev Guide has a really good link to a guide about posting
> questions to get answers... I wish more people would read it and follow its
> advice:
> http://developer.android.com/resources/community-groups.html
> http://www.catb.org/~esr/faqs/smart-questions.html (This link came from
> the above link)
>
> Thanks,
> Justin
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Tue, Jul 27, 2010 at 10:48 AM, Victoria Busse <
> victoriasarabu...@gmail.com> wrote:
>
>> Nevermind, when I just looked through the code again I found a mistake...
>> sorry for posting this question then, I just thought that I had not at all
>> understood the concept of intents and passing on extras
>>
>>
>> On Tue, Jul 27, 2010 at 5:46 PM, Victoria Busse <
>> victoriasarabu...@gmail.com> wrote:
>>
>>> Well, yes, I have looked at this here:
>>>
>>>
>>> http://stackoverflow.com/questions/2911925/activity-ignore-intents-extra-fields
>>>
>>>
>>> but
>>> I couldn't get it working...
>>>
>>> On Tue, Jul 27, 2010 at 5:24 PM, Justin Anderson <
>>> janderson@gmail.com> wrote:
>>>
 Have you done any searching of StackOverflow or this group?  This is a
 very common question and has been answered many, many times...

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



 On Tue, Jul 27, 2010 at 10:14 AM, Victoria >>> > wrote:

> hi there,
>
> I am trying to pass on a videoclip from one activity to another by
> calling an intent: What I would like to do is to pass on the clicked
> video (the video's uri) and display it in a videoview within the novel
> activity. But I am a bit stuck and don't know what I should do...
>
> This is what I got so far for calling the intent and passing on the
> extra:
>
> String uri = videocursor.getString(0); //uri holds the currently
> selected/clicked video uri
> Intent editorIntent = new Intent(EditGalleryView.this,
> EditorView.class);
> editorIntent.putExtra(???);
> startActivity(editorIntent);
>
> My problem is what I should to pass on the uri as Extra and how I can
> retrieve that in the other activity...
>
> If someone could help me out here, that would be fantastic, thank you
> very much 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] Re: Loading images in android

2010-07-27 Thread Kostya Vasilyev
You could use one image view and several different images with varying
number of flowers.

Or create the required number of image views from code, all using the same
image.

Or declare four image views in your layout and manage their visibility from
code.

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

27.07.2010 21:11 пользователь "ethan"  написал:

Ok. So in this case, is there a way to dynamically create imageviews
from the code (not xml) based on number of images to display ?
Or should i just statically create 4 imageviews and only populate them
based on the number of flowers i want to display ?


On Jul 27, 10:52 am, Justin Anderson  wrote:
> No... displaying the number...

> On Tue, Jul 27, 2010 at 8:25 AM, ethan  wrote:
> > You are correct.
>
> > In...
> > 

>

>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/androi...

-- 
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] debug application key and beta testers

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 11:09 AM, Bret Foreman wrote:

> Now I've got a couple of beta testers and Google Maps isn't working for
> them.
>

What does "isn't working" mean? If tiles aren't showing up, it's probably
the key. If it's crashing or insulting their moms, then you have a different
issue.


> Is it time to get a real application key and a new Maps key or is there
> another way to run the beta phase?
>

Which key you use shouldn't matter, AFAIK, as long as they match.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] Android based application for healthcare

2010-07-27 Thread Jun Jiang
Awesome, but I think it is little things to do with android.  Sensors for
emr can communicate with patients' with. Bluetooth but the emr areas should
not be provided by google map, you should collect the data your self

On Jul 24, 2010 10:34 AM, "AAJ"  wrote:

hey all,
We are graduate student, currently working on our masters project on
an android platform for a healthcare domain. Since there are not many
pacemaker reated applications on an android phone, we decided to work
on the same. Our project scenario is something like this-

Pacemaker patients are not suppose to get exposed to EMR affected
areas. The pacemaker will immediately stop functioning if exposed to
EMR. So our application will be alerting the patients based on the
intensity of the EMR . So here, we will be using-
1. A pacemaker simulator which will periodically check the heartbeat
and if the heart does not function properly, the pacemaker will
regulate it.
2. The handset has an in-built sensor, which can sense the intensity
of the EMR.
3. Also using Google maps we can pin the nearby locations which has
high intensity EMR.

Now, some of the things that we have to do-
1. Implement the pacemaker simulator, since we are not able to access
the source code for the already available ones.
2. Implement the EMR sensor , to sense the EMR intensity.
3. Alert the patient as soon as he/she enters the danger zone.
4. Also show all the nearby EMR affected areas.

Our questions are-
1. Is the project feasible ?? As a masters project can we go ahead and
start working on this.
2. How do we find out all the EMr affected areas nearby ? Which means
how do we connect Google maps API with the sensor program ??

It would be great if you could help us out with these questions. We
are really looking forward to working on an Android platform .


Thanks
AAJ.

--
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] [Q] Make the activity blur/dim with startActivityForResult?

2010-07-27 Thread CyanBlue
Hi...  :)

I am trying to start an activity and have that activity blur/dim over
the current activity just like you do the same with the dialog
widget... and I have tried reasonably all I can find on the web and I
am not able to get it working...  :(

On ActivityMain.java, I am using this code to start a new activity on
button click...

public void onClick(View v)
{
Intent intent = new Intent(ActivityMain.this,
com.cyanblue.activitytest.ActivitySub.class);
startActivityForResult(intent, 0);
}

In onCreate of the ActivitySub, I have tried these two examples which
does not work at all...

getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.dimAmount = 0.0f;
getWindow().setAttributes(lp);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

and I am about to give up after trying this for 4 nights after
work...  and I feel like it is not supposed to work or something...

Does anybody know what I am doing wrong???

I feel like startActivityForResult closes the current activity and run
new activity till it gets the result back not like the dialog which
runs on top of the current activity...  Is there any way to do this on
multiple acitivities???

Thank you...  :)

CyanBlue

-- 
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] Connecting browser in Android 2.2 emulator

2010-07-27 Thread Nayab
Hi,
 I am using Android SDK 2.2 Emulator.
I am not able to connect to internet.
I tried using
"emulator -avd MYAVD -http-proxy http://116.xxx.xx.xx:8000";
but not working.i gave proxy as my IP.
is it correct?
or any other method ?
Thanks for ur help.

Regards,
Nayab Rasul.

-- 
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] Promote your Page or business

2010-07-27 Thread Yoance
11 days left to Official Launch on Wednesday August 4th. Then the
price goes up. (monthly fee)

 Use it to market and earn $100 per sale! Did you see what it does??
Promotes ANY business on 100% Autopilot! Extreme Cash Robot is
converting like crazy.. be sure to get in during the Pre-Launch to get
the LIFETIME MEMBERSHIP with NO MONTHLY FEE!! (monthly payments will
kill you) Buy it NOW and OWN IT FOR LIFE.

See it in action!

http://extremecashrobot.com/id/yoance

-- 
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] [Q] Make the activity blur/dim with startActivityForResult?

2010-07-27 Thread Justin Anderson
The code I use is the following and it works for me:

Window mainWindow = getWindow();

//Set Blur
mainWindow.addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

//Set Dim
int dimAmt = 50; //In my application this is actually a setting stored in
preferences...
mainWindow.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
WindowManager.LayoutParams params = m_mainWindow.getAttributes();
params.dimAmount = dimAmt / 100f;
m_mainWindow.setAttributes(params);

As for the dim amount... you are setting it to 0 which tells it not to dim.
Also, I noticed that you are using setFlags while I use addFlags.  Try using
addFlags and see what happens...

Hope that helps,
Justin

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


On Sun, Jul 25, 2010 at 9:00 AM, CyanBlue  wrote:

> Hi...  :)
>
> I am trying to start an activity and have that activity blur/dim over
> the current activity just like you do the same with the dialog
> widget... and I have tried reasonably all I can find on the web and I
> am not able to get it working...  :(
>
> On ActivityMain.java, I am using this code to start a new activity on
> button click...
>
> public void onClick(View v)
> {
>Intent intent = new Intent(ActivityMain.this,
> com.cyanblue.activitytest.ActivitySub.class);
>startActivityForResult(intent, 0);
> }
>
> In onCreate of the ActivitySub, I have tried these two examples which
> does not work at all...
>
>getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
> WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
>
>WindowManager.LayoutParams lp = getWindow().getAttributes();
>lp.dimAmount = 0.0f;
>getWindow().setAttributes(lp);
>getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
>
> and I am about to give up after trying this for 4 nights after
> work...  and I feel like it is not supposed to work or something...
>
> Does anybody know what I am doing wrong???
>
> I feel like startActivityForResult closes the current activity and run
> new activity till it gets the result back not like the dialog which
> runs on top of the current activity...  Is there any way to do this on
> multiple acitivities???
>
> Thank you...  :)
>
> CyanBlue
>
> --
> 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] Help needed to write a caculator program

2010-07-27 Thread ANUSHA PAUDIYAL
Hi
I am trying to write program for a calculator.
can anyone help me in writing the code for adding two numbers and displaying
the solution in the EditTextField.

-A

-- 
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] Help needed to write a caculator program

2010-07-27 Thread Justin Anderson
*> can anyone help me in writing the code for adding two numbers and
displaying the solution in the EditTextField.*

int z = 5 + 6;

EditText textField;
//Do stuff to initialize textField
textField.setText("" + z);

Now, I'm going to refer you to two different links that you should read:
http://developer.android.com/guide/index.html
http://www.catb.org/~esr/faqs/smart-questions.html

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


On Tue, Jul 27, 2010 at 12:45 PM, ANUSHA PAUDIYAL <
anusha.paudiy...@gmail.com> wrote:

> Hi
> I am trying to write program for a calculator.
> can anyone help me in writing the code for adding two numbers and
> displaying the solution in the EditTextField.
>
> -A
>
> --
> 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] How to pass on extras to a custom intent?

2010-07-27 Thread Justin Anderson
*> I can totally understand that :) and I wouldn't consider your attitude or
opinion as rude but I can imagine that some people may misunderstand
that... *

It's kind of a curse... ;-)

*> For me asking is often the final desperation after having tried for hours
(including searching through similar problems) and not being able to solve
the problem myself *

Me too... and that is the way it should be.

*> But I am so interested in Android and really trying to learn and
understand it and so far (even after hours of desperation and hard work ;))
it has been fun.*

Me too... and that is how I learned Android.  Honestly, I have only ever
written one true program for Android.  It is published on the Market.  I
have other apps in mind but I currently put so much time in my current
program to update it, add features, and fix bugs that I haven't had time to
do much else.  All of my Android programming experience comes from writing
that one app.  I have several years experience in general programming, so
that helps

*> And to be honest for me it is always better if I actually solve a problem
myself because it feels good and makes me think that I actually understood
something, if you know what I mean :) *

There is no better feeling than fighting with something and staying up until
3 in the morning just to get it right... Even if you have to turn around and
wake up at 7!

*> And thank you :) *
You're welcome.

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


On Tue, Jul 27, 2010 at 11:18 AM, Victoria Busse <
victoriasarabu...@gmail.com> wrote:

> I can totally understand that :) and I wouldn't consider your attitude or
> opinion as rude but I can imagine that some people may misunderstand
> that...
>
> For me asking is often the final desperation after having tried for hours
> (including searching through similar problems) and not being able to solve
> the problem myself
>
> But I am so interested in Android and really trying to learn and understand
> it and so far (even after hours of desperation and hard work ;)) it has been
> fun.
>
> And to be honest for me it is always better if I actually solve a problem
> myself because it feels good and makes me think that I actually understood
> something, if you know what I mean :)
>
>
> And thank you :)
>
>
>
>
>
> On Tue, Jul 27, 2010 at 6:02 PM, Justin Anderson 
> wrote:
>
>> No worries.  Glad you were able to figure it out.
>>
>> There are just quite a few people who post without ever trying to find
>> answers for themselves.  Rather than just giving them the answer and
>> justifying their lack of initiative, I try to help them by not helping
>> them... at least not until they have shown that they have tried to look for
>> the answer for themselves.  ;-)  If they are always just given the answer
>> then they never learn anything except to mooch off others experience.
>>
>> Sometimes it is not possible to tell if that is the case or not.  In
>> general it is a good idea when posting a question to state what you have
>> tried and, if possible, some code.
>>
>> I am often criticized for this, but that is just because people mistake my
>> responses for rudeness... Granted, sometimes it is a little on the blunt
>> side and perhaps a little rude, but I think that is more the exception than
>> the rule in my case, and people just misread it.
>>
>> The Android Dev Guide has a really good link to a guide about posting
>> questions to get answers... I wish more people would read it and follow its
>> advice:
>> http://developer.android.com/resources/community-groups.html
>> http://www.catb.org/~esr/faqs/smart-questions.html(This
>>  link came from the above link)
>>
>> Thanks,
>> Justin
>>
>>
>> --
>> There are only 10 types of people in the world...
>> Those who know binary and those who don't.
>> --
>>
>>
>> On Tue, Jul 27, 2010 at 10:48 AM, Victoria Busse <
>> victoriasarabu...@gmail.com> wrote:
>>
>>> Nevermind, when I just looked through the code again I found a mistake...
>>> sorry for posting this question then, I just thought that I had not at all
>>> understood the concept of intents and passing on extras
>>>
>>>
>>> On Tue, Jul 27, 2010 at 5:46 PM, Victoria Busse <
>>> victoriasarabu...@gmail.com> wrote:
>>>
 Well, yes, I have looked at this here:


 http://stackoverflow.com/questions/2911925/activity-ignore-intents-extra-fields


 but
 I couldn't get it working...

 On Tue, Jul 27, 2010 at 5:24 PM, Justin Anderson <
 janderson@gmail.com> wrote:

> Have you done any

[android-beginners] listview single resizeable button

2010-07-27 Thread calmchess
I have a list view witch is instantiated through the XML document
what i would like to do is add a single button at the top of the
list.I've accomplished this by adding a coded button to oncreate
and using addheaerview to add it to the top of the list the problem is
the button extends the full length of the list view i only want say a
100x25px button but i have no idea how to add this either in the XML
document or with java code.Plz help here is the javacode and xml.



[code]

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











[/code]








[code]
package com.cuslistview;
import java.util.ArrayList;

import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
public class customlistview extends Activity implements
OnClickListener{
ListView l1;
 private static class EfficientAdapter extends BaseAdapter {
private LayoutInflater mInflater;
private ArrayList> ret=null;

 public EfficientAdapter(Context context) {
  Sax sax1 = new Sax();
  try {
ret =  sax1.SaxIni();
} catch (Exception e) {

e.printStackTrace();
}


   mInflater = LayoutInflater.from(context);



  }

@Override
public int getCount() {

return ret.size();
}

@Override
public Object getItem(int position) {

return position;
}

@Override
public long getItemId(int position) {

return position;
}

@Override
public View getView(int position, View convertview, ViewGroup
parent) {


ViewHolder holder;
  if (convertview == null) {

  convertview = mInflater.inflate(R.layout.main, 
parent,false);

  holder = new ViewHolder();

  //holder.text = (TextView)
convertview.findViewById(R.id.TextView01);

  holder.text0 = (TextView)
convertview.findViewById(R.id.TextView0);
  holder.text1 = (TextView)
convertview.findViewById(R.id.TextView1);
  holder.text2 = (TextView)
convertview.findViewById(R.id.TextView2);


  convertview.setTag(holder);

  } else {

  holder = (ViewHolder) convertview.getTag();

  }



  //holder.text.setText(ret.get(position));
  holder.text0.setText(ret.get(0).get(position));
  holder.text1.setText(ret.get(1).get(position));
  holder.text2.setText(ret.get(2).get(position));
  //convertview.setBackgroundColor((position & 1) == 1 ?
Color.WHITE : Color.LTGRAY);
  convertview.setBackgroundColor((position & 1) == 1 ?
Color.LTGRAY : Color.GREEN);

  return convertview;

  }



  static class ViewHolder {

  TextView text0;
  TextView text1;
  TextView text2;

  }

  }



  @Override

  public void onCreate(Bundle savedInstanceState) {
  Button getdata_btn;
  //LinearLayout layout1;

  super.onCreate(savedInstanceState);

  setContentView(R.layout.main);
 // layout1 = new LinearLayout(this);
 // layout1.setOrientation(LinearLayout.HORIZONTAL);
 //  layout1.setGravity(Gravity.CENTER);
  // setContentView(layout1);

  getdata_btn = new Button(this);
  getdata_btn.setWidth(5);
  getdata_btn.setHeight(5);
  getdata_btn.setText("Update");
  getdata_btn.setOnClickListener(this);

  l1 = (ListView) findViewById(R.id.ListView01);
  ColorDrawable divcolor  = new 
ColorDrawable(Color.RED);
  l1.addHeaderView(getdata_btn);

   

[android-beginners] Re: Bluetooth Debugging on phones

2010-07-27 Thread DonFrench
Well, I use Eclipse and view the log file with the LogCat View, which
works great -- other than the well-known problem with occasionally
having to reset adb or restart eclipse to get the log file refreshed.
I can't imagine that using the command line creates some other problem
but I haven't tried it.


On Jul 27, 2:01 am, Megh  wrote:
> Ah, sorry.
>
> Debugging statements like: Log.e(TAG, "++ ON START ++");
> that would show up on the LogCat when using the emulator, don't work
> when the phone is plugged in and the app is running on it.
>
> I'm wondering if this is true, or it's just me missing something.
> Also, does anyone have any other recommendations for using debugging
> statements?
>
> On Jul 23, 7:07 pm, Nick Richardson  wrote:
>
> > Your question is quite vague.  I have never had an issue connecting my N1 to
> > the debugger via Eclipse.
>
> > What exactly is your problem?
>
> > On Fri, Jul 23, 2010 at 9:06 AM, Megh  wrote:
> > > Hi, can anyone recommend the best way to debug Bluetooth applications?
> > > I'm running it on Nexus Ones because Bluetooth isn't supported on the
> > > emulator but this makes it rather difficult to debug. I'm hoping
> > > someone knows something about it that I don't! Thanks and much
> > > appreciated.
>
> > > --
> > > 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
>
> > --
> > //Nick Richardson
> > //richardson.n...@gmail.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] The content of the adapter has changed but ListView did not receive a notification

2010-07-27 Thread nimusi
I have an app in which the main activity is a listview.  Clicking on
an item in the list item opens a new activity which is a detail view
of that item.  The detail view has navigate buttons which traverse
through the list displaying details for the currently selected item.
This is working as expected.

Users need to be able to add, edit and delete items.  In the main
activity I have an 'Add Item' menu item which allows the user to add
an item.  The detail view has an 'Add Item' button.

I thought I would be able to reuse the code for both cases by opening
a dialog in a helper class which accepts a new item and updates the
list view (and also the detail view if that was where it was called
from).  This is raising an Exception 'The content of the adapter has
changed but ListView did not receive a notification'.

Having googled this I am told that I cannot update the UI thread in a
sub-thread.  Does this mean that I have to replicate the add item code
in each activity? Or am I going about this in the wrong way and I
should be doing something else.

NiMuSi
http://www.nimusi.net/blog

-- 
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] How to pass on extras to a custom intent?

2010-07-27 Thread Victoria Busse
On Tue, Jul 27, 2010 at 8:23 PM, Justin Anderson wrote:

> *> I can totally understand that :) and I wouldn't consider your attitude
> or opinion as rude but I can imagine that some people may misunderstand
> that... *
>
> >> It's kind of a curse... ;-)
>

:-)

*> But I am so interested in Android and really trying to learn and
> understand it and so far (even after hours of desperation and hard work ;))
> it has been fun.*
>
> >> *Me too... and that is how I learned Android.  Honestly, I have only
> ever written one true program for Android.  It is published on the Market.
> I have other apps in mind but I currently put so much time in my current
> program to update it, add features, and fix bugs that I haven't had time to
> do much else.  All of my Android programming experience comes from writing
> that one app.  I have several years experience in general programming, so
> that helps*


 Unfortunately I only had Java programming for two semesters during my
undergrad which is now more than 2 years ago...I mean it's probably still
easier for me to get back into it than for someone who has to start entirely
from scratch, plus I got XML experience, so at least I don't have to learn
that ;)
The app I am developing (more of a prototype atm) is for my Master
Dissertation and as I am right now focusing more on User Experience and
Interaction rather than development the app won't be fully functional, but
after my dissertation I will definitely continue  and finish it because the
project itself is quite interesting and fun. And I wouldn't like it only to
be halfway finished...

>
>
> *> And to be honest for me it is always better if I actually solve a
> problem myself because it feels good and makes me think that I actually
> understood something, if you know what I mean :) *
>
> >> *There is no better feeling than fighting with something and staying up
> until 3 in the morning just to get it right... Even if you have to turn
> around and wake up at 7!*
>

Yeah, this is exactly where I am atm working till 5 getting up at 8 or 9 and
continuing :)



> *> And thank you :) *
> You're welcome.
>
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Tue, Jul 27, 2010 at 11:18 AM, Victoria Busse <
> victoriasarabu...@gmail.com> wrote:
>
>> I can totally understand that :) and I wouldn't consider your attitude or
>> opinion as rude but I can imagine that some people may misunderstand
>> that...
>>
>> For me asking is often the final desperation after having tried for hours
>> (including searching through similar problems) and not being able to solve
>> the problem myself
>>
>> But I am so interested in Android and really trying to learn and
>> understand it and so far (even after hours of desperation and hard work ;))
>> it has been fun.
>>
>> And to be honest for me it is always better if I actually solve a problem
>> myself because it feels good and makes me think that I actually understood
>> something, if you know what I mean :)
>>
>>
>> And thank you :)
>>
>>
>>
>>
>>
>> On Tue, Jul 27, 2010 at 6:02 PM, Justin Anderson > > wrote:
>>
>>> No worries.  Glad you were able to figure it out.
>>>
>>> There are just quite a few people who post without ever trying to find
>>> answers for themselves.  Rather than just giving them the answer and
>>> justifying their lack of initiative, I try to help them by not helping
>>> them... at least not until they have shown that they have tried to look for
>>> the answer for themselves.  ;-)  If they are always just given the answer
>>> then they never learn anything except to mooch off others experience.
>>>
>>> Sometimes it is not possible to tell if that is the case or not.  In
>>> general it is a good idea when posting a question to state what you have
>>> tried and, if possible, some code.
>>>
>>> I am often criticized for this, but that is just because people mistake
>>> my responses for rudeness... Granted, sometimes it is a little on the blunt
>>> side and perhaps a little rude, but I think that is more the exception than
>>> the rule in my case, and people just misread it.
>>>
>>> The Android Dev Guide has a really good link to a guide about posting
>>> questions to get answers... I wish more people would read it and follow its
>>> advice:
>>> http://developer.android.com/resources/community-groups.html
>>> http://www.catb.org/~esr/faqs/smart-questions.html(This
>>>  link came from the above link)
>>>
>>> Thanks,
>>> Justin
>>>
>>>
>>> --
>>> There are only 10 types of people in the world...
>>> Those who know binary and those who don't.
>>> --
>>>
>>>
>>> On Tue, Jul 27, 2010 at 10:48 AM, Vic

Re: [android-beginners] The content of the adapter has changed but ListView did not receive a notification

2010-07-27 Thread Justin Anderson
Use startActivityForResult instead of startActivity.  Then when you get back
to the listView you can add the item and update there.  There are some very
specific things you need to do to get startActivityForResult to work
properly and return the stuff you want to return to the main activity, so
you may want to search StackOverflow and this group for
startActivityForResult...

Hope that helps,
Justin

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


On Tue, Jul 27, 2010 at 2:35 PM, nimusi  wrote:

> I have an app in which the main activity is a listview.  Clicking on
> an item in the list item opens a new activity which is a detail view
> of that item.  The detail view has navigate buttons which traverse
> through the list displaying details for the currently selected item.
> This is working as expected.
>
> Users need to be able to add, edit and delete items.  In the main
> activity I have an 'Add Item' menu item which allows the user to add
> an item.  The detail view has an 'Add Item' button.
>
> I thought I would be able to reuse the code for both cases by opening
> a dialog in a helper class which accepts a new item and updates the
> list view (and also the detail view if that was where it was called
> from).  This is raising an Exception 'The content of the adapter has
> changed but ListView did not receive a notification'.
>
> Having googled this I am told that I cannot update the UI thread in a
> sub-thread.  Does this mean that I have to replicate the add item code
> in each activity? Or am I going about this in the wrong way and I
> should be doing something else.
>
> NiMuSi
> http://www.nimusi.net/blog
>
> --
> 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: debug application key and beta testers

2010-07-27 Thread Bret Foreman
Here's what the logcat looks like. Something going wrong with the
connection factory. Is that a key problem?

I/MapActivity(19968): Handling network change notification:CONNECTED
E/MapActivity(19968): Couldn't get connection factory client
I/ActivityManager(11922): Starting activity: Intent
{ act=android.intent.action.VIEW cmp=com.shipmate/.EventMapActivity
(has extras) }
W/MapActivity(19968): Recycling dispatcher
com.google.googlenav.datarequest.datarequestdispatc...@45fe1eb8
V/MapActivity(19968): Recycling map object.
I/MapActivity(19968): Handling network change notification:CONNECTED
E/MapActivity(19968): Couldn't get connection factory client
I/ActivityManager(11922): Displayed activity
com.shipmate/.EventMapActivity: 266 ms (total 266 ms)
I/ActivityManager(11922): Starting activity: Intent
{ act=android.intent.action.VIEW cmp=com.shipmate/.EventMapActivity
(has extras) }
W/MapActivity(19968): Recycling dispatcher
com.google.googlenav.datarequest.datarequestdispatc...@45fe1eb8
V/MapActivity(19968): Recycling map object.
I/MapActivity(19968): Handling network change notification:CONNECTED
E/MapActivity(19968): Couldn't get connection factory client
I/ActivityManager(11922): Displayed activity
com.shipmate/.EventMapActivity: 256 ms (total 256 ms)
I/ActivityManager(11922): Starting activity: Intent
{ act=android.intent.action.VIEW cmp=com.shipmate/.EventMapActivity
(has extras) }
W/MapActivity(19968): Recycling dispatcher
com.google.googlenav.datarequest.datarequestdispatc...@45fe1eb8
V/MapActivity(19968): Recycling map object.
I/MapActivity(19968): Handling network change notification:CONNECTED
E/MapActivity(19968): Couldn't get connection factory client
I/ActivityManager(11922): Displayed activity
com.shipmate/.EventMapActivity: 297 ms (total 297 ms)

-- 
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: debug application key and beta testers

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 5:03 PM, Bret Foreman wrote:

> Something going wrong with the connection factory. Is that a key problem?
>

That's always there and has no effect on anything, AFAIK.

Again, what does "it isn't working" mean?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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: debug application key and beta testers

2010-07-27 Thread Bret Foreman
The map view comes up and draws the grid but no map is drawn on the
N1. It's fine on my Droid.

-- 
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] Build.BOOTLOADER / Build.RADIO

2010-07-27 Thread Doward
According to the SDK we should be able to read the bootloader and
radio versions, but Eclipse is freaking out about it.

I can read any other Build. fine.

Any idea?

-- 
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] Big Issue with running and testing app on phone while still being connected to PC

2010-07-27 Thread Victoria Busse
Hi there,

I have a huge problem testing my app on my HTC Wildfire. It was working fine
until recently, but now I always get a force close error when I run or debug
a new version of the app.

When I try to run the app on the emulator it still works, when I disconnect
the phone from the PC, the app also runs on the phone (including all
changes)... I was working on a xml file when this happened. If someone could
help me out here, that would be great...because this is really weird and I
really don't know what I should do now...

Thanks in advance...

This is the logcat output I get from the phone:

07-28 00:54:56.707: ERROR/AndroidRuntime(14315): Uncaught handler: thread
main exiting due to uncaught exception
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.GalleryView}:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.EditGalleryView}:
java.lang.NullPointerException
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.access$2200(ActivityThread.java:126)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.os.Looper.loop(Looper.java:123)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.main(ActivityThread.java:4603)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
java.lang.reflect.Method.invokeNative(Native Method)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
java.lang.reflect.Method.invoke(Method.java:521)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
dalvik.system.NativeStart.main(Native Method)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.EditGalleryView}:
java.lang.NullPointerException
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2411)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:648)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.widget.TabHost.setCurrentTab(TabHost.java:320)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.widget.TabHost.addTab(TabHost.java:213)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
com.mobilevideoeditor.moved.GalleryView.onCreate(GalleryView.java:33)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): ... 11 more
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by:
java.lang.NullPointerException
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
com.mobilevideoeditor.moved.EditGalleryView.init_phone_video_grid(EditGalleryView.java:78)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
com.mobilevideoeditor.moved.EditGalleryView.onCreate(EditGalleryView.java:62)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544)

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

Re: [android-beginners] Language change to Hindi

2010-07-27 Thread michael furman
hi Shaista  do you know that your name very close to Shiester?
It's a German word...  The answer lies therein.  Hope this helps...
Mike

On Tue, Jul 27, 2010 at 2:01 AM, Shaista Naaz wrote:

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

-- 
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] Android based application for healthcare

2010-07-27 Thread michael furman
Anything is feasible for the willing.

On Fri, Jul 23, 2010 at 10:34 PM, AAJ  wrote:

> hey all,
> We are graduate student, currently working on our masters project on
> an android platform for a healthcare domain. Since there are not many
> pacemaker reated applications on an android phone, we decided to work
> on the same. Our project scenario is something like this-
>
> Pacemaker patients are not suppose to get exposed to EMR affected
> areas. The pacemaker will immediately stop functioning if exposed to
> EMR. So our application will be alerting the patients based on the
> intensity of the EMR . So here, we will be using-
> 1. A pacemaker simulator which will periodically check the heartbeat
> and if the heart does not function properly, the pacemaker will
> regulate it.
> 2. The handset has an in-built sensor, which can sense the intensity
> of the EMR.
> 3. Also using Google maps we can pin the nearby locations which has
> high intensity EMR.
>
> Now, some of the things that we have to do-
> 1. Implement the pacemaker simulator, since we are not able to access
> the source code for the already available ones.
> 2. Implement the EMR sensor , to sense the EMR intensity.
> 3. Alert the patient as soon as he/she enters the danger zone.
> 4. Also show all the nearby EMR affected areas.
>
> Our questions are-
> 1. Is the project feasible ?? As a masters project can we go ahead and
> start working on this.
> 2. How do we find out all the EMr affected areas nearby ? Which means
> how do we connect Google maps API with the sensor program ??
>
> It would be great if you could help us out with these questions. We
> are really looking forward to working on an Android platform .
>
>
> Thanks
> AAJ.
>
> --
> 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: [Q] Make the activity blur/dim with startActivityForResult?

2010-07-27 Thread CyanBlue
Thank you for the reply, Justin...  :)

I tried those suggestions and nothing seem to be working or I might be
blind...

Is there any way you can take a look at the file and see what I am
missing?
   http://www.mediafire.com/?pzm6w9e7ikcy3cx

Thank you very much...

CyanBlue

-- 
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: debug application key and beta testers

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 5:22 PM, Bret Foreman wrote:

> The map view comes up and draws the grid but no map is drawn on the
> N1. It's fine on my Droid.
>

Just N1? Or does it not work on other phones as well? Does it work on the
emulator?

I would try to rebuild it and try again.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] Contents of dex

2010-07-27 Thread kypriakos

Hi all,

is there a way to view what is enclosed (file list) in the dex file?
You can zip-view the apk archive but I cannot find a way to do
the same with the dex file.

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] Contents of dex

2010-07-27 Thread Mark Murphy
On Tue, Jul 27, 2010 at 11:50 PM, kypriakos  wrote:
> is there a way to view what is enclosed (file list) in the dex file?

http://dedexer.sourceforge.net/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

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

2010-07-27 Thread ethan
This is the code that i used :

LinearLayout mLinearLayout;
mLinearLayout = new LinearLayout(this);

ImageView i = new ImageView(this);
i.setImageResource(R.drawable.cow_icon);
i.setAdjustViewBounds(true); // set the ImageView bounds to match
the Drawable's dimensions
i.setLayoutParams(new
Gallery.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));

//Add the ImageView to the layout and set the layout as the
content view
mLinearLayout.addView(i);
setContentView(mLinearLayout);


With this code, i can see the image getting didplayed but it goes on a
different layout. It doesnt display on the current layout.
Is there a way i can display this in the current layout ?


On Jul 27, 12:18 pm, Kostya Vasilyev  wrote:
> You could use one image view and several different images with varying
> number of flowers.
>
> Or create the required number of image views from code, all using the same
> image.
>
> Or declare four image views in your layout and manage their visibility from
> code.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 27.07.2010 21:11 пользователь "ethan"  написал:
>
> Ok. So in this case, is there a way to dynamically create imageviews
> from the code (not xml) based on number of images to display ?
> Or should i just statically create 4 imageviews and only populate them
> based on the number of flowers i want to display ?
>
> On Jul 27, 10:52 am, Justin Anderson  wrote:
>
> > No... displaying the number...
> > On Tue, Jul 27, 2010 at 8:25 AM, ethan  wrote:
> > > You are correct.
>
> > > In...
> > > 
>
> 
>
>
>
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/androi...

-- 
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] Bringing activity to front -Urgent help

2010-07-27 Thread Revathi K J Ramanan
Hi,

I have two resized activities ,say alarm clock and settings,running on
my android screen.
Both can be seen in the screen as they are resized.

Say alarm clock is the active window and settings is inactive.
Now I want to make the settings active by clicking the settings region
in the screen.
Just like in windows how we make the back window active,I want the
same functionality achieved.

I tried with the flag,FLAG_ALT_FUCUSABLE_IM and FLAG_NOT_TOUCH_MODAL.

For about 2 or 3 times I am able to bring the activity to front and
then the emulator crashes.


Please help me with ur inputs.

Regards,

Revathi K J

-- 
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] Bringing activity to front -Urgent help

2010-07-27 Thread Revathi K J Ramanan
Hi,

I have two resized activities ,say alarm clock and settings,running on
my android screen.
Both can be seen in the screen as they are resized.

Say alarm clock is the active window and settings is inactive.
Now I want to make the settings active by clicking the settings region
in the screen.
Just like in windows how we make the back window active,I want the
same functionality achieved.

I tried with the flag,FLAG_ALT_FUCUSABLE_IM and FLAG_NOT_TOUCH_MODAL.

For about 2 or 3 times I am able to bring the activity to front and
then the emulator crashes.


Please help me with ur inputs.

Regards,

Revathi K J

-- 
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] Trying to delete google account programmatically from my app.

2010-07-27 Thread parul
Please help me how to delete google accounts from "accounts and sync".
I'm trying to call this code in my app:

AccountManagerService ams = new AccountManagerService(mContext);
ams.onServiceChanged(null,true);

Its crashing at object creation. If anybody is aware of any other way
to delete account plz let me know.

==
onServiceChanged() method is defined in AccountManagerService.java.
AccountManagerService.java (frameworks\base\core\java\android
\accounts)

public void onServiceChanged(AuthenticatorDescription desc, boolean
removed) {
boolean accountDeleted = false;
SQLiteDatabase db = mOpenHelper.getWritableDatabase();
Cursor cursor = db.query(TABLE_ACCOUNTS,
new String[]{ACCOUNTS_ID, ACCOUNTS_TYPE, ACCOUNTS_NAME},
ACCOUNTS_TYPE + "=?", new String[]{desc.type}, null, null,
null);
try {
while (cursor.moveToNext()) {
final long accountId = cursor.getLong(0);
final String accountType = cursor.getString(1);
final String accountName = cursor.getString(2);
Log.d(TAG, "deleting account " + accountName + " because
type "
+ accountType + " no longer has a registered
authenticator");
db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId,
null);
accountDeleted = true;
}
} finally {
cursor.close();
if (accountDeleted) {
sendAccountsChangedBroadcast();
}
}


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

2010-07-27 Thread Kostya Vasilyev
The code below replaces the activity's content view (the root of view 
hierarchy) with a new LinearLayout.


If you want to keep your existing layout around, do this:

1 - declare a LinearLayout placeholder in your layout xml file, give it 
an ID.


2 - instead of creating a new LinearLayout, get it by calling findViewById.

3 - don't call setContentView

-- Kostya

28.07.2010 8:13, ethan пишет:

This is the code that i used :

LinearLayout mLinearLayout;
mLinearLayout = new LinearLayout(this);

ImageView i = new ImageView(this);
 i.setImageResource(R.drawable.cow_icon);
 i.setAdjustViewBounds(true); // set the ImageView bounds to match
the Drawable's dimensions
 i.setLayoutParams(new
Gallery.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));

 //Add the ImageView to the layout and set the layout as the
content view
 mLinearLayout.addView(i);
 setContentView(mLinearLayout);


With this code, i can see the image getting didplayed but it goes on a
different layout. It doesnt display on the current layout.
Is there a way i can display this in the current layout ?


On Jul 27, 12:18 pm, Kostya Vasilyev  wrote:
   

You could use one image view and several different images with varying
number of flowers.

Or create the required number of image views from code, all using the same
image.

Or declare four image views in your layout and manage their visibility from
code.

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

27.07.2010 21:11 пользователь "ethan"  написал:

Ok. So in this case, is there a way to dynamically create imageviews
from the code (not xml) based on number of images to display ?
Or should i just statically create 4 imageviews and only populate them
based on the number of flowers i want to display ?

On Jul 27, 10:52 am, Justin Anderson  wrote:

 

No... displaying the number...
On Tue, Jul 27, 2010 at 8:25 AM, ethan  wrote:
   

You are correct.
 
 

In...

 





 

For more options, visit this group at
http://groups.google.com/group/androi...
 
   



--
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] Build.BOOTLOADER / Build.RADIO

2010-07-27 Thread Kostya Vasilyev

Those fields are new with Android 2.2.

Are you sure you're compiling against Android 2.2?

-- Kostya

28.07.2010 2:38, Doward пишет:

According to the SDK we should be able to read the bootloader and
radio versions, but Eclipse is freaking out about it.

I can read any other Build.  fine.

Any idea?

   



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