[android-developers] Re: [Android 1.5_r2]How to set the http proxy in the real device?

2009-07-06 Thread Android Users
You can directly do the proxy settings in the APN Settings of your device.
This should work fine.

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



[android-developers] com.android.settings.SecuritySettings - Activity not found exception

2009-06-20 Thread Android Users
Hi all,
I tried to display the settings page so that the user can enable or disable
GPS. It works fine in the emulator but on the device it gives a
ActivitynotFoundException...

Any one know what the problem is?

The code used to display is below:

ComponentName toLaunch;
Intent intent;
toLaunch = new
ComponentName("com.android.settings","com.android.settings.SecuritySettings");
intent = new
Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setComponent(toLaunch);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

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



[android-developers] Re: Can we Change APN settings programmatically?

2009-06-15 Thread Android Users
How can i make use of android.provider.Settings package feature?
There are few constants like
"ACTION_APN_SETTINGS
" which has description saying "Activity Action: Show settings to allow
configuration of APNs.". What do they mean by "Activity Action"? Can this be
used in someway to access apn settings and modify them?

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



[android-developers] Can we Change APN settings programmatically?

2009-06-15 Thread Android Users
Hi all,
Can we change the apn settings programmatically?

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



[android-developers] Re: Marquee

2009-06-14 Thread Android Users
Thanks a lot... [?]

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

<>

[android-developers] Re: Can i set a different Browser Homepage through code?

2009-06-14 Thread Android Users
Thank you.

On Sat, Jun 13, 2009 at 7:15 AM, Dianne Hackborn wrote:

> I am almost positive you can't.  I sure hope you can't. :)
>
>
> On Fri, Jun 12, 2009 at 5:15 AM, Android Users wrote:
>
>> Hi all,
>> Can i set a different Browser Homepage through code? If so then how? Need
>> info about this urgently.
>>
>> Thanks in advance.
>>
>>
>>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
> >
>

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



[android-developers] Marquee

2009-06-14 Thread Android Users
Hi All,

I know that there is marquee built in to 1.5 . But that is only on focus of
the widget.
Is there a way we can implement it otherwise? ie.. even without focus for a
text view?

Thanks.

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



[android-developers] Can i set a different Browser Homepage through code?

2009-06-12 Thread Android Users
Hi all,
Can i set a different Browser Homepage through code? If so then how? Need
info about this urgently.

Thanks in advance.

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



[android-developers] Re: How to change default google.com page in android browser

2009-06-12 Thread Android Users
Can this change of home page be done through code?

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



[android-developers] Send email to the preconfigured mail id's

2009-06-11 Thread Android Users
Hi,

I am able to send a mail by entering the mail id's programmatically. Can
anyone please share the code how to send a mail to the preconfigured mail
id's programmatically. It is very urgent.

Thanks in advance. Awaiting for your response.

Regards
Androidmailer

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



[android-developers] Re: Running two activities on a single screen

2009-06-10 Thread Android Users
Using ActivityGroup i can shift between two activities but updating only
some part of one activity (say a view) with the result of another activity
is where i am stuck up. Is this possible?

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



[android-developers] Running two activities on a single screen

2009-06-10 Thread Android Users
Hi all,
Can we run two activities on a single screen? if so, then could anyone give
me an as to how its done?

Thanks in advance.

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



[android-developers] Re: Is there any way to lauhc Google Maps application with direction

2009-06-02 Thread Android Users
Hi,

This will help you.Pass in the source and destination points and you'll get
the directions.
Intent mapIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?f=d&saddr=
"+sourceLat+","+sourceLongt+"&daddr="+destLat+","+destLongt+""));
mapintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(mapIntent);


On Tue, Jun 2, 2009 at 8:39 PM, Tushar  wrote:

>
> Hi,
>
> We can launch default map application using the Intent specified at
> http://developer.android.com/guide/appendix/g-app-intents.html.
>
> This launches maps application for one specified location . Is there
> any way to inform the application to also draw directions between to
> geo points also ?
>
>
> Thanks ,
>
> Tushar
> >
>

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



[android-developers] Re: VM won't let us allocate 6291456 bytes

2009-06-02 Thread Android Users
Thanks a lot for the detailed description.
Searching in some posts got me the solution few hrs back, but had not
understood the usage of the value that we are setting.

Now it is making sense... [?]

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

<>

[android-developers] Re: How to decode large resolution Images

2009-06-02 Thread Android Users
Any help on this? Facing the same issue

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



[android-developers] Resizing an image

2009-06-01 Thread Android Users
Hi all,
Can i resize an image to a lower resolution as i am getting an
OutOfMemoryException when trying to display image with 2048x1536 resolution
or more?

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



[android-developers] Re: Is this possible? Launching one application from another?

2009-06-01 Thread Android Users
Ok thanks for the quick response.

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



[android-developers] Re: Is this possible? Launching one application from another?

2009-06-01 Thread Android Users
Can you just give me a sample as to how we can do that?
Say i have the following packages:

Main app:
com.main.startapp - StartApp.java

sub apps:
com.sub.app1 - App1.java
com.sub.app2 - App2.java
com.sub.app3 - App3.java
com.sub.app4 - App4.java

How would u call the appropriate application through an intent?

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



[android-developers] Is this possible? Launching one application from another?

2009-06-01 Thread Android Users
Hi all,
I have a scenario.

Say I have developed 4 applications. Is it possible to group these
applications, so that I can access and launch these from one location?

Can the below flow work?

  Start an Application
  |
 Display launchers(icons) for 4 different applications
  |
  On click of the icon start the respective application.

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



[android-developers] Re: how to set the size of tab in tabHost?

2009-05-28 Thread Android Users
Try this.

tabHost.getTabWidget().getChildAt(0).setLayoutParams(new
LinearLayout.LayoutParams(width,height));

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



[android-developers] Re: ActivityGroup + embedded Activity search window

2009-05-27 Thread Android Users
You have to be careful with the context in which you are using an activity
group. I encountered this problem when i was trying to show a dialog in an
activity but with different context.
So if you are using any context as parameter, just verify it.

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



[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-21 Thread Android Users
I meant in the one available for download?

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



[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-21 Thread Android Users
Has anyone faced this "Geocoding returning null" issue when using 1.5
version?

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



[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-21 Thread Android Users
Hey guys,
What is the final verdict then?

The reason i asked for the Final SDK release is because Geocoding
has a packaging bug and is to be fixed in the final sdk release.
http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60#

I had developed an application which uses Geocoding.
It worked fine in android 1.0 (G1 device), but not working in G2 as the
Geocoding is returning a null array.

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



[android-developers] Re: Problem installing application onto HTC Magic

2009-05-21 Thread Android Users
Any help on this as this is stopping our work. Searched in all android
forums, but no luck.. [?]

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

<>

[android-developers] Re: Geocoder not returning result

2009-05-21 Thread Android Users
Any help on this as this is stopping our work. Searched in all android
forums, but no luck.. [?]

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

<>

[android-developers] Re: Geocoder not returning results in 1.5 preview

2009-05-21 Thread Android Users
Any help on this as this is stopping our work. Searched in all android
forums, but no luck.. :(

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



[android-developers] HTC Magic not supporting Maps.

2009-05-21 Thread Android Users
Hi all,
HTC Magic that i have is not supporting Maps(no maps application also). I
checked in the ddms, and it does not contain maps.jar.
Is there any cupcake update which i can use to update the device to support
maps?

Wating for a quick response. Its urgent.
Thanks in advance.

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



[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-21 Thread Android Users
Just a guess. Try destroying the activity B without destroying activity A.
This may resume the activity A as soon as the activity B is destroyed.

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



[android-developers] Has the final android 1.5 sdk released?

2009-05-21 Thread Android Users
Hi all,
Has the final android 1.5 sdk released? I found in a post that the there was
a packaging bug related to Geocoding in android 1.5, so wanted to know
whether that issue has been fixed or not.

http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60#

Appreciate a quick response.

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



[android-developers] Re: Stack Over Flow Error on using SDK 1.5_r1

2009-05-19 Thread Android Users
Decrease the heirarchy level of you UI. As experienced by me, 1.5 allows
only 13 levels. Use the Heirarchy Viewer tool from the sdk to get a better
view of your heirarchy.

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



[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-19 Thread Android Users
Yes you can do that.
You can get a LocalActivityManager from the ActivityGroup, and from that
reference you can destroy the respective activities.

actitivitygroup.getLocalActivityManager().destroyActivity(,true);

And Accordingly you can start the other activity

actitivitygroup.getLocalActivityManager().startActivity();

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



[android-developers] Re: Geocoder not returning result

2009-05-19 Thread Android Users
I have tried with both the Targets but still not working.

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



[android-developers] Re: how to stick two buttons together?

2009-05-18 Thread Android Users
Its not the right way but try giving a -ve margin.

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



[android-developers] Re: GeoCoder is not working in SDK 1.5

2009-05-14 Thread Android Users
Hi,

Even i am facing the same problem.
Found this link..

http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60/343b2b8e5fdafd3d


On Fri, May 15, 2009 at 11:17 AM, manoj  wrote:

>
> Hi friends,
>
> I have two problem regarding Location API for SDK 1.5
>
> 1) I have developed a location based application for SDK 1.0.
>
> I have used Geocoder to get the location data. Its working fine on SDK
> 1.0 emulator and its supported devices.
>
> Today I downloaded SDK 1.5, and tried to run the same app. But the
> Geocoder didn't give any result. I am getting
>
> Geocoder.getFromLocation(loc.getLatitude(), loc.getLongitude(), 1) as
> null.
>
> 2) LocationManager.removeUpdates(location_listener) is not removed (I
> mean still the GPS icon is visible on emulator).
>
> But the same worked fine on SDK 1.0.
>
> Am I missing something else?
>
> Can any one please help me.
>
> Thanks,
> Manoj.
>
>
> >
>

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



[android-developers] Re: Geocoder not returning result

2009-05-14 Thread Android Users
Has anyone else faced issue with geocoding on android 1.5?

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



[android-developers] Re: problems with my htc magic

2009-05-14 Thread Android Users
Hi ,

Even i had the same problem, my device wasn't getting detected. Download the
below and install. It will work.

http://rapidshare.com/files/229345224/HTCSync_1.0.0.exe.html


On Thu, May 14, 2009 at 6:00 PM, allian...@groupmedianet.com <
allian...@groupmedianet.com> wrote:

>
> yes
>
> I have tried all of that, and no success
>
>
>
> On May 14, 3:47 am, Johnny  wrote:
> > Have you tried this:
> http://developer.android.com/guide/developing/device.html#setting-up?
> >
> > On May 14, 7:25 am, petunio  wrote:
> >
> > > Hi everybody
> >
> > > I am trying to install apk's in my new htc magic
> >
> > > I had before a G1 and I didn't found any problem, just doing adb
> > > install myapp.apk and that's it
> >
> > > now, when I do the same with my htc, it says "error: device not found"
> > > Also, I noticed that if I type "adb devices", I dont get any device
> > > shown...
> >
> > > I have also done the following settings in the mobile, with no luck:
> >
> > > settings->applications->unknown sources (checked)
> > > settings->applications->development->usb debugging (checked)
> > > settings->applications->development->allow mock locations (checked)
> >
> > > I know that is not a problem with the usb cable, as I have tried a few
> > > of them, including the one that was working with the G1...
> > > It could be a problem with the usb drivers, but everything seems fine
> > > in my device manager...
> >
> > > has anybody come across this problem?
> >
> > > Thanks
>
> >
>

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



[android-developers] Re: getting addresses from location

2009-05-13 Thread Android Users
Check this,

http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60/aedf666aa0faa216?lnk=raot&pli=1


On Wed, May 13, 2009 at 2:55 PM, neoraptor  wrote:

>
> Hello,
>
> I have the same problem (code working on SDK 1.1 but not on 1.5).
> Does someone find a solution?
>
> Thanks
>
> On 16 avr, 17:32, zlu  wrote:
> > This code used to work in SDK1.1 but stopped working in1.5
> > I have a class that implements LocationListener
> >
> > in the onLocationChanged(Locationlocation) method I have:
> > Geocoder geocoder = new Geocoder(this, Locale.US);
> > try {
> >   List addresses = geocoder.getFromLocation
> > (location.getLatitude(),location.getLongitude(), 1);
> >
> > }.
> >
> > In emulator I send gps info, which is passed into thelocation
> > variable at runtime:
> > mLatitude=37.7841987667,mLongitude=-112.4020004334,
> > But the address List is empty.  In sdk 1.1 I get google's address on
> > shoreline, mtn view.
> >
> > Does anyone have any idea on how to solve this?
> >
> > Thanks,
> >
> > Zhao
>
> >
>

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



[android-developers] Re: Problem installing application onto HTC Magic

2009-05-13 Thread Android Users
Do we get the Google APIs addon for download? Or is there anyway to upgrade
the device to support maps? If so please provide a way to do so.
Thanks in advance. Hoping for a quick response.

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



[android-developers] Re: dialog is getting dismissed when I am flipping the device

2009-05-13 Thread Android Users
Hi Dianne,
I suggested the way i followed to retain the state of the dialog, which may
not be preferred. Thanks for the suggestion.
It would be good if you could provide a sample as to how to retain the state
after flipping, so that i could implement the same.

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



[android-developers] Re: Problem installing application onto HTC Magic

2009-05-13 Thread Android Users
Any help on this?..

On Mon, May 11, 2009 at 11:04 AM, Android Users wrote:

> Hi Raphael,
>
> Thanks for your reply.
>
> Build number : 2.14.720.1 146733 CL#24595
> Carrier : AIRTEL
>
>
>
>
> On Sun, May 10, 2009 at 3:37 AM, Raphael  wrote:
>
>>
>> On Fri, May 8, 2009 at 10:31 PM, Android Users 
>> wrote:
>> > Hi all,
>> > I am not able to install any map related application onto my HTC magic
>>
>> Before we can help you, you'd have to tell us what build your magic is
>> running: home > settings > about phone > build number. From which
>> carrier did you get it?
>>
>> > device. it is giving the a exception
>> > saying INSTALL_FAILED_MISSING_SHARED_LIBRARY.
>> > I have built the application onto Target 3 (Google APIs). Am i missing
>> > something while creating a map application in android 1.5?
>> > Any suggestions to resolve this issue?
>> > Also the device doesn't have the default Maps application which was
>> present
>> > in G1 device.
>>
>> The error message is pretty obvious: "missing shared library". And you
>> add that your device doesn't have maps. A+B=you're trying to use maps
>> on a device that doesn't have maps, so it doesn't work. Thus my
>> initial question: what build is that?
>>
>> R/
>>
>> >>
>>
>

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



[android-developers] Re: Dailouge box disappears after flipping the device

2009-05-12 Thread Android Users
Repeated post.[?]
Flipping the device would recreate the activity. So the dialog is getting
dismissed.

Override the method onConfigurationChanged(). and for the activity, set the
configChangesparameter to "keyboardHidden|Orientation" in the manifest file.
doing this, will not recreate the activity.

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

<>

[android-developers] Re: dialog is getting dismissed when I am flipping the device

2009-05-12 Thread Android Users
Flipping the device would recreate the activity. So the dialog is getting
dismissed.

Override the method onConfigurationChanged(). and for the activity,
set the configChanges
parameter to "keyboardHidden|Orientation" in the manifest file. doing this,
will not recreate the activity.

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



[android-developers] Re: apk manual install problem Failure [-12]

2009-05-12 Thread Android Users
The problem is due to change in SDK version. Your friend may have tried to
run the apk on an emulator which is not of 1.5 firmware...
I had faced this issue when trying to install on the device with 1.0
firmware. changing the minSDKVersion to '1' solved the problem.

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



[android-developers] Re: Geocoder not returning result

2009-05-12 Thread Android Users
I have tried it both on emulator and device. But no luck. [?] The result is
an empty list. [?]
I have posted one more query related to device. Just have a look if that is
causing any problem in geocoding.

http://groups.google.com/group/android-developers/browse_thread/thread/b1e7a5d6c75cf03a

Any help on the both the issues?

Thanks in advance.

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

<>

[android-developers] Re: How to get id of array in spinner

2009-05-12 Thread Android Users
The code you have posted is fine. just instead of
int pos = s.getSelectedItemPosition();

you can use,

int pos = position;

Think that should work.

May be i confused you with the method name in my previous post.[?] i meant
setOnItemSelectedListener(selectListener) only...

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

<>

[android-developers] Re: How to get id of array in spinner

2009-05-12 Thread Android Users
What is the exception you are getting?
You can directly use the position parameter in the onItemSelected rather
than trying to get the position explicitly.

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



[android-developers] Re: How to get id of array in spinner

2009-05-12 Thread Android Users
try setOnItemSelected() method. worked for me..

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



[android-developers] Re: How to get id of array in spinner

2009-05-11 Thread Android Users
Add a listener to the spinner..

spinnerObj.setOnItemClickListener(new OnItemClickListener(){

 public void
onItemClick(AdapterView
parent, View 
view,
int position, long id){

// use the position for your case switches

  }
 });

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



[android-developers] Re: Problem installing application onto HTC Magic

2009-05-10 Thread Android Users
Hi Raphael,

Build number : 2.14.720.1 146733 CL#24595
Carrir : AiIRTE

On Sun, May 10, 2009 at 3:37 AM, Raphael  wrote:

>
> On Fri, May 8, 2009 at 10:31 PM, Android Users 
> wrote:
> > Hi all,
> > I am not able to install any map related application onto my HTC magic
>
> Before we can help you, you'd have to tell us what build your magic is
> running: home > settings > about phone > build number. From which
> carrier did you get it?
>
> > device. it is giving the a exception
> > saying INSTALL_FAILED_MISSING_SHARED_LIBRARY.
> > I have built the application onto Target 3 (Google APIs). Am i missing
> > something while creating a map application in android 1.5?
> > Any suggestions to resolve this issue?
> > Also the device doesn't have the default Maps application which was
> present
> > in G1 device.
>
> The error message is pretty obvious: "missing shared library". And you
> add that your device doesn't have maps. A+B=you're trying to use maps
> on a device that doesn't have maps, so it doesn't work. Thus my
> initial question: what build is that?
>
> R/
>
> >
>

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



[android-developers] Re: Problem installing application onto HTC Magic

2009-05-10 Thread Android Users
Hi Raphael,

Thanks for your reply.

Build number : 2.14.720.1 146733 CL#24595
Carrier : AIRTEL



On Sun, May 10, 2009 at 3:37 AM, Raphael  wrote:

>
> On Fri, May 8, 2009 at 10:31 PM, Android Users 
> wrote:
> > Hi all,
> > I am not able to install any map related application onto my HTC magic
>
> Before we can help you, you'd have to tell us what build your magic is
> running: home > settings > about phone > build number. From which
> carrier did you get it?
>
> > device. it is giving the a exception
> > saying INSTALL_FAILED_MISSING_SHARED_LIBRARY.
> > I have built the application onto Target 3 (Google APIs). Am i missing
> > something while creating a map application in android 1.5?
> > Any suggestions to resolve this issue?
> > Also the device doesn't have the default Maps application which was
> present
> > in G1 device.
>
> The error message is pretty obvious: "missing shared library". And you
> add that your device doesn't have maps. A+B=you're trying to use maps
> on a device that doesn't have maps, so it doesn't work. Thus my
> initial question: what build is that?
>
> R/
>
> >
>

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



[android-developers] Re: Geocoder not returning result

2009-05-09 Thread Android Users
Its not working on both the emulator and the device.

   1. If i am using the Target 3 AVD, then I am getting an IOException on
   the below mentioned method call.

addressList =geocoder.getFromLocation(mLatitude, mLongitude, 1);

latLongList = geocoder.getFromLocationName(currentCityCountry,
1);

Any way to resolve the IOException problem?

 2.   If i use the Target 2 AVD, then i am result of the above method
call is an empty array.

What could be the problem? Any suggestions as to how this can be avoided?

The logs for the IOException :

05-09 11:31:21.074: WARN/System.err(725): java.io.IOException: Unable to
parse response from server
05-09 11:31:21.074: WARN/System.err(725): at
android.location.Geocoder.getFromLocation(Geocoder.java:124)

05-09 13:10:04.775: WARN/System.err(725): java.io.IOException: Unable to
parse response from server
05-09 13:10:04.927: WARN/System.err(725): at
android.location.Geocoder.getFromLocationName(Geocoder.java:166)

NOTE: I am behind a proxy when testing on emulator. I am able to access
internet from the emulator. But still facing this issue.

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



[android-developers] Re: Geocoder not returning result

2009-05-08 Thread Android Users
Any help on this?

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



[android-developers] Problem installing application onto HTC Magic

2009-05-08 Thread Android Users
Hi all,
I am not able to install any map related application onto my HTC magic
device. it is giving the a exception saying
INSTALL_FAILED_MISSING_SHARED_LIBRARY.

I have built the application onto Target 3 (Google APIs). Am i missing
something while creating a map application in android 1.5?

Any suggestions to resolve this issue?

Also the device doesn't have the default Maps application which was present
in G1 device.

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



[android-developers] Geocoder not returning result

2009-05-08 Thread Android Users
Hi,

My application that uses geocoding was working fine till last week and now
all of a sudden am not getting proper data from the same.

I used getLocality() , which was returning CITY name previously. But now it
is returning NULL.

Is something changed? or Has someone faced the same issue?

My application is on SDK 1.0


Thanks in advance.

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



[android-developers] Re: Problem with Internet connection through emulator

2009-05-07 Thread Android Users
SDK 1.5 release notes mention this,
"In some cases, you may encounter problems when using the browser on an
emulator started with the command-line option -http-proxy."
Ref : http://developer.android.com/sdk/RELEASENOTES.html


On Fri, May 8, 2009 at 8:50 AM, Gerald Logor  wrote:

> After spending hours of research and different ways to connect my emulator
> to the internet (i.e just accessing any ordinary webpages), I'm still
> hitting a brick wall.
>
> My current internet setting is that I'm behind a corporate internet
> connection thus connecting via a proxy (154.23.x.yy:80zz)
>
> Ways I tried:
>
> 1. Connect to the emulator using the "adb shell" command (From "tools"
> folder of SDK)
> *adb shell*
> enter this..
> *# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
>
> sqlite> INSERT INTO system
> VALUES(99,'http_proxy',':');*
> Restarting the emulator, it's still showing "WebPage unavailable"
>
> 2. Using Eclipse as my IDE, I Go to Run -> Run Configurations ->Target in
> eclipse and enter
> *-http-proxy : * in Additional emulator command line
> options.
> Still, no happiness.
>
> 3. I also tried (in Eclipse), Windows->Preferences->Android->Default
> Emulator option, and inserting http-proxy *:
>
> *4. I'm not creating any of my own view or activity, thus did not need to
> setup INTERNET permissions in my manifest file.
>
> Any helps would be appreciated. Thanks.
>
> >
>

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



[android-developers] Maps behind proxy in 1.5

2009-05-07 Thread Android Users
Hi,

I was not able to access maps behind proxy with SDK 1.0.(inspite of adding
proxy to system database or give command line option of -http -proxy)
Does the problem still persist with SDK1.5 or is there a work around?

Thanks in advance.

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



[android-developers] Re: Soft keypad not appearing for edit text-Urgent

2009-05-07 Thread Android Users
Problem solved. It was because the view hierarchy was too deep.

On Tue, May 5, 2009 at 11:45 AM, Android Users wrote:

> Hi,
>
> I have an application that has 2 AutoComplete TextViews on a single screen.
> I have just upgraded the application from 1.0 to 1.5 and I am facing 2
> issues here:
> 1. I get soft keypad for only one of the text view. Wat could be the
> problem with the other one?
> 2. For the text view that i get soft keypad,on entering data into the text
> view using soft key pad, i get the below exception
>
> *05-05 11:01:17.465: ERROR/AndroidRuntime(274): Uncaught handler: thread
> main exiting due to uncaught exception
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): java.lang.StackOverflowError
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.text.SpannableStringBuilder.getSpans(SpannableStringBuilder.java:783)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.text.Styled.each(Styled.java:43)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.text.Styled.foreach(Styled.java:249)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.text.Styled.drawText(Styled.java:302)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.text.Layout.drawText(Layout.java:1346)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.text.Layout.draw(Layout.java:339)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.widget.TextView.onDraw(TextView.java:3924)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.View.draw(View.java:5838)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645:

[android-developers] Soft keypad not appearing for edit text-Urgent

2009-05-04 Thread Android Users
Hi,

I have an application that has 2 AutoComplete TextViews on a single screen.
I have just upgraded the application from 1.0 to 1.5 and I am facing 2
issues here:
1. I get soft keypad for only one of the text view. Wat could be the problem
with the other one?
2. For the text view that i get soft keypad,on entering data into the text
view using soft key pad, i get the below exception

*05-05 11:01:17.465: ERROR/AndroidRuntime(274): Uncaught handler: thread
main exiting due to uncaught exception
05-05 11:01:17.645: ERROR/AndroidRuntime(274): java.lang.StackOverflowError
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.text.SpannableStringBuilder.getSpans(SpannableStringBuilder.java:783)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.text.Styled.each(Styled.java:43)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.text.Styled.foreach(Styled.java:249)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.text.Styled.drawText(Styled.java:302)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.text.Layout.drawText(Layout.java:1346)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.text.Layout.draw(Layout.java:339)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.widget.TextView.onDraw(TextView.java:3924)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.View.draw(View.java:5838)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
andr

[android-developers] Re: Start Application with SMS

2009-05-04 Thread Android Users
Hi,

Every msg tat comes will go to the inbox. you can check for the incoming msg
and if in case it matches ur string,SMS12:Hi! then you can handle things
accordingly.

There are also options to delete SMS from inbox(in case u dont need them to
be stored).There are few discussions related to this on groups. You can
check there.

On Mon, May 4, 2009 at 9:38 PM, theMerchant  wrote:

>
> Thank you for your reply.
>
> Is it possible to filter out messages? I do not want to read every SMS
> message for example. If I am sending it to my application such as
> //SMS12:Hi! I would like to receive it in my application, all other
> sms messages should go to the phones sms box.
>
>
>
>
>
> On May 4, 2:49 am, Android Users  wrote:
> > Hi,
> >
> > Implement a BroadcastReceiver class and perform the functions that u
> intend
> > to in the onReceive() method.
> >
> > Also, add the class u have implemented as a receiver in the manifest.
> > Eg:
> > 
> > 
> >  > android:name="android.provider.Telephony.SMS_RECEIVED" />
> > 
> > 
> >
> > you can check this..
> http://www.anddev.org/recognize-react_on_incoming_sms-t295.html
> >
> > Let me know if u need more information.
> >
> > On Sat, May 2, 2009 at 1:34 AM, theMerchant 
> wrote:
> >
> > > Hello Everyone,
> >
> > > I would like to know if anybody knows how I can start my application
> > > with an incoming SMS message.
> >
> > > For example, I send an SMS message from phone A to Phone B. When Phone
> > > B receives the message, it checks if it is sent to my program. If it
> > > is, it starts(run) my application. Important thing here is that my
> > > program is not running in the device unless SMS is received, so it can
> > > not be listening for SMS itself.
> >
>

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



[android-developers] Re: Start Application with SMS

2009-05-03 Thread Android Users
Hi,

Implement a BroadcastReceiver class and perform the functions that u intend
to in the onReceive() method.

Also, add the class u have implemented as a receiver in the manifest.
Eg:






you can check this..
http://www.anddev.org/recognize-react_on_incoming_sms-t295.html

Let me know if u need more information.

On Sat, May 2, 2009 at 1:34 AM, theMerchant  wrote:

>
> Hello Everyone,
>
> I would like to know if anybody knows how I can start my application
> with an incoming SMS message.
>
> For example, I send an SMS message from phone A to Phone B. When Phone
> B receives the message, it checks if it is sent to my program. If it
> is, it starts(run) my application. Important thing here is that my
> program is not running in the device unless SMS is received, so it can
> not be listening for SMS itself.
>
>
>
> >
>

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



[android-developers] Re: AutocompleteTextView

2009-05-03 Thread Android Users
You can find samples in API Demos..

On Mon, May 4, 2009 at 11:29 AM, 余雷  wrote:

> Hi , all. Can any one give me a example or source code of using
> AutocompleteTextView, I met a lot problems of using this view. Thanks.
>
> >
>

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



[android-developers] Re: What is the correct way to refresh UI when I use android:configChanges="keyboardHidden|orientation"

2009-04-27 Thread Android Users
Hi,
There are various options mentioned here.
http://www.devx.com/wireless/Article/40792/0/page/1
see if this helps...

On Mon, Apr 27, 2009 at 1:55 PM, Wang He  wrote:

>
> 1. I don't want to  recreate the activity when switching at Land &
> Port, many runtime data I don't want to save and reload;
> 2. So I use onConfigurationChanged() facility, but I have UI for Land
> & Port, What I do now is:
>public void onConfigurationChanged(Configuration newConfig) {
>   setContentView() again as onCreate();
>  run findViewById()s as handlers will lost after
> setContentView();
>  setListeners for UI widgets as they will lost also;
>  }
>
> 3. Is the way right I did in 2?
>
> BRs
> He
>
> On Apr 27, 11:14 am, Dianne Hackborn  wrote:
> > If you actually have resources that change due to these states, you
> really
> > should consider letting the normal destroy/recreate behavior execute.
> > Otherwise, you will just need to poke through your UI, reloading and
> > resetting resources that may have changed.  There is no simple answer
> that
> > can be given about what to do, because it depends entirely on what you
> need
> > to have change (and you haven't said anything here about what you
> actually
> > need to change).
> >
> >
> >
> > On Sun, Apr 26, 2009 at 7:56 PM, Wang He  wrote:
> >
> > > Is here anybody knows the right way?
> > > Still waiting ...
> >
> > > BRs
> > > He
> >
> > > On Apr 24, 4:53 pm, Wang He  wrote:
> > > > Hi all
> >
> > > > when I use android:configChanges="keyboardHidden|orientation" in my
> > > > code, the activity will not destroy and recreate when I change from
> > > > portrait to landscape, only onConfigurationChanged(newConfig) will be
> > > > called by framework.
> >
> > > > The issue is:
> > > > My UI cannot refresh by default, what is the correct way in
> > > > onConfigurationChanged() to refresh my UI?
> >
> > > > BTW, my UI is write with mylayout.xml and added to my Widget by
> addView
> > > > (inflator(mylayout.xml),null).
> >
> > > > Thanks in advance!!
> > > > BRs
> > > > Wang He
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
> >
>

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



[android-developers] Re: question about tabs at the bottom

2009-04-21 Thread Android Users
How do we display the tabs at the bottom?



On Wed, Apr 22, 2009 at 8:44 AM, Videoguy  wrote:

>
> I have tabbed activity with tabs at the bottom. The labels of each tab
> are getting clipped unless I set the TabWidget too high (~60dip). My
> tabs don't have any icons.
>
> What is the trick to get the labels centered in TabWidget?
>
> Thanks
> Videoguy
>
> >
>

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



[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread Android Users
Create a heirarchy similar to this:

1. A class which creates a tab - set the content to class extending
ActivityGroup.
2. Class which extends ActivityGroup - here you display the default activity
ie., your default frontend like the example code i gave you.
3. Class which extends Activity - Default activity - Here based on the
condition, you can display other activities in the tab by using the code i
sent you keeping the reference of the LocalActivityManager you already
created.
4. Any number of Classes extending Activity - Handle appropriately based on
your logic. Dont forget that you have to use the same reference
of LocalActivityManager object to navigate b/w the activities.



On Tue, Apr 21, 2009 at 3:01 PM, benjamin.lehej...@googlemail.com <
benjamin.lehej...@googlemail.com> wrote:

>
> thx at first and some additional information...
>
> If the tab is created then a intent is fired up to launch my-frontend-
> activity and this activity starts the activity whose content should be
> displayed in the tab. If the launched-by-my-frontend-activity closed
> then the my-frontend-activity decide what content should be displayed
> in the tab and so on...
>
> This works "outside a tab" and my issue is to take it into a tab...
>
> On 21 Apr., 10:36, Android Users  wrote:
> > You have to create a class extending the ActivityGroup and set that as
> > content for the tab.
> >
> > tabHost.addTab(tabHost.newTabSpec("Tab1")
> > .setIndicator("Tab1")
> > .setContent(new Intent(this, TabActivityGroup.class)
> >  .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
> >
> > class TabActivityGroup extends ActivityGroup{
> >
> > @Override
> > protected void onCreate(Bundle savedInstanceState) {
> >   super.onCreate(savedInstanceState);
> >
> >   // Some code
> >
> >   View view = getLocalActivityManager()
> > .startActivity("ReferenceName", new
> > Intent(this,YourActivity.class)
> >
> .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
> > .getDecorView();
> >this.setContentView(view);
> >
> > }
> > }
> >
> > The above code would let you add an activity to the activity group and
> set
> > it as content to the tab. If you have to change to another activity, with
> > the reference to the LocalActivityManager object, start another activity.
> >
> > Hope this helps.
> >
> > On Tue, Apr 21, 2009 at 1:34 PM, benjamin.lehej...@googlemail.com <
> >
> >
> >
> > benjamin.lehej...@googlemail.com> wrote:
> >
> > > yes i think you got it.. How does that work for example plz?
> >
> > > On 21 Apr., 09:19, Android Users  wrote:
> > > > Sorry that i am re-phrasing your questions. Just want to confirm with
> my
> > > > understanding, running more than one activity (changing from one
> activity
> > > to
> > > > another) within a tab. If that is the case then you will have to
> define
> > > an
> > > > ActivityGroup set it as the content for your tab.
> >
> > > > if thats what you really meant then do reply so that i can help you
> on
> > > the
> > > > same.
> >
> > > > On Tue, Apr 21, 2009 at 11:35 AM, benjamin.lehej...@googlemail.com <
> >
> > > > benjamin.lehej...@googlemail.com> wrote:
> >
> > > > > hi,
> >
> > > > > oh sorry but i know the api-demo and for one activity firing up an
> > > > > intent worked well but i really mean a android-task! So a few
> > > > > activities where sequential launched and  i would like to see all
> the
> > > > > content views from these activities in the tab.
> >
> > > > > On 21 Apr., 07:54, Android Users  wrote:
> > > > > > You mean running an activity within a tab
> >
> > > > > > If so, yes you can.
> >
> > > > > > Ex:
> >
> > > > > > tabHost.addTab(tabHost.newTabSpec("Tab 1")
> > > > > > .setIndicator("Tab 1")
> > > > > > .setContent(new Intent(this, Tab1Data.class)
> > > > > >  .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
> >
> > > > > > .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) -- use this if u
> need
> > > the
> > > > > > activity to be refreshed everytime its opened.
> >
> > > > > > On Tue, Apr 21, 2009 at 11:02 AM, Benny <
> > > > > benjamin.lehej...@googlemail.com>wrote:
> >
> > > > > > > Hi everybody,
> >
> > > > > > > is it possible to load a whole android-task in a single tab
> from
> > > the
> > > > > > > TabHost widget?
> >
>

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



[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread Android Users
You have to create a class extending the ActivityGroup and set that as
content for the tab.

tabHost.addTab(tabHost.newTabSpec("Tab1")
.setIndicator("Tab1")
.setContent(new Intent(this, TabActivityGroup.class)
 .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));



class TabActivityGroup extends ActivityGroup{


@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  // Some code

  View view = getLocalActivityManager()
.startActivity("ReferenceName", new
Intent(this,YourActivity.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();
   this.setContentView(view);
}
}

The above code would let you add an activity to the activity group and set
it as content to the tab. If you have to change to another activity, with
the reference to the LocalActivityManager object, start another activity.

Hope this helps.


On Tue, Apr 21, 2009 at 1:34 PM, benjamin.lehej...@googlemail.com <
benjamin.lehej...@googlemail.com> wrote:

>
> yes i think you got it.. How does that work for example plz?
>
> On 21 Apr., 09:19, Android Users  wrote:
> > Sorry that i am re-phrasing your questions. Just want to confirm with my
> > understanding, running more than one activity (changing from one activity
> to
> > another) within a tab. If that is the case then you will have to define
> an
> > ActivityGroup set it as the content for your tab.
> >
> > if thats what you really meant then do reply so that i can help you on
> the
> > same.
> >
> > On Tue, Apr 21, 2009 at 11:35 AM, benjamin.lehej...@googlemail.com <
> >
> >
> >
> > benjamin.lehej...@googlemail.com> wrote:
> >
> > > hi,
> >
> > > oh sorry but i know the api-demo and for one activity firing up an
> > > intent worked well but i really mean a android-task! So a few
> > > activities where sequential launched and  i would like to see all the
> > > content views from these activities in the tab.
> >
> > > On 21 Apr., 07:54, Android Users  wrote:
> > > > You mean running an activity within a tab
> >
> > > > If so, yes you can.
> >
> > > > Ex:
> >
> > > > tabHost.addTab(tabHost.newTabSpec("Tab 1")
> > > > .setIndicator("Tab 1")
> > > > .setContent(new Intent(this, Tab1Data.class)
> > > >  .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
> >
> > > > .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) -- use this if u need
> the
> > > > activity to be refreshed everytime its opened.
> >
> > > > On Tue, Apr 21, 2009 at 11:02 AM, Benny <
> > > benjamin.lehej...@googlemail.com>wrote:
> >
> > > > > Hi everybody,
> >
> > > > > is it possible to load a whole android-task in a single tab from
> the
> > > > > TabHost widget?
> >
>

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



[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread Android Users
Sorry that i am re-phrasing your questions. Just want to confirm with my
understanding, running more than one activity (changing from one activity to
another) within a tab. If that is the case then you will have to define an
ActivityGroup set it as the content for your tab.

if thats what you really meant then do reply so that i can help you on the
same.




On Tue, Apr 21, 2009 at 11:35 AM, benjamin.lehej...@googlemail.com <
benjamin.lehej...@googlemail.com> wrote:

>
> hi,
>
> oh sorry but i know the api-demo and for one activity firing up an
> intent worked well but i really mean a android-task! So a few
> activities where sequential launched and  i would like to see all the
> content views from these activities in the tab.
>
> On 21 Apr., 07:54, Android Users  wrote:
> > You mean running an activity within a tab
> >
> > If so, yes you can.
> >
> > Ex:
> >
> > tabHost.addTab(tabHost.newTabSpec("Tab 1")
> > .setIndicator("Tab 1")
> > .setContent(new Intent(this, Tab1Data.class)
> >  .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
> >
> > .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) -- use this if u need the
> > activity to be refreshed everytime its opened.
> >
> > On Tue, Apr 21, 2009 at 11:02 AM, Benny <
> benjamin.lehej...@googlemail.com>wrote:
> >
> >
> >
> >
> >
> > > Hi everybody,
> >
> > > is it possible to load a whole android-task in a single tab from the
> > > TabHost widget?
> >
>

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



[android-developers] Re: android-task in tab from TabHost widget

2009-04-20 Thread Android Users
You mean running an activity within a tab

If so, yes you can.

Ex:

tabHost.addTab(tabHost.newTabSpec("Tab 1")
.setIndicator("Tab 1")
.setContent(new Intent(this, Tab1Data.class)
 .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));


.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) -- use this if u need the
activity to be refreshed everytime its opened.



On Tue, Apr 21, 2009 at 11:02 AM, Benny wrote:

>
> Hi everybody,
>
> is it possible to load a whole android-task in a single tab from the
> TabHost widget?
> >
>

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



[android-developers] Re: Question regarding adding a view that can overlap other views in the layout/activity.

2009-04-20 Thread Android Users
Just let me know if i have understood right.

U have a layout say having 3 views. Dynamically if u add a view, the layout
should get adjusted accordingly and if u keep only one view in the layout
then the single view should fill the whole layout.

If thats right, the try setting layout weight for each view, summing upto
1.0f.

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