[android-developers] Re: SqlLite!!???

2008-09-16 Thread dailyLife
API Demo or Google Android Notepad demo.

[EMAIL PROTECTED]
2008年9月17日 
- Original Message - 
From: Wesley Sagittarius 
To: Android Developers 
Sent: 2008-09-17, 14:44:19
Subject: [android-developers] SqlLite!!???


Hi,

Any example on Sqllite???


wesley...



--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] SqlLite!!???

2008-09-16 Thread Wesley Sagittarius

Hi,

Any example on Sqllite???


wesley...


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread dailyLife
Thanks ,Megha Joshi. I give it a try.

[EMAIL PROTECTED]
2008年9月17日 
- Original Message - 
From: Megha Joshi 
To: android-developers 
Sent: 2008-09-17, 12:56:32
Subject: [android-developers] Re: How to set Gallery align property?


Sorry I read center instead of left earlier...its seems android:gravity and 
android:layout_gravity don't have much effect to get the effect you are trying 
to get.
However setting android:scrollX = 100dp, achieves the desired effect, ie. moves 
the first gallery item towards the left end.


2008/9/16 dailyLife <[EMAIL PROTECTED]>

My Style is below. Is  right?
http://schemas.android.com/apk/res/android";
 android:orientation="vertical" android:layout_width="fill_parent"
 android:layout_height="fill_parent">
 
 
 
 



[EMAIL PROTECTED]
2008年9月17日 
- Original Message - 
From: Megha Joshi 
To: android-developers 
Sent: 2008-09-17, 05:41:20
Subject: [android-developers] Re: How to set Gallery align property?



Are you setting android:layout_gravity = "center_horizontal" for your Gallery 
view?


2008/9/16 dailyLife <[EMAIL PROTECTED]>

Hi,All.
  When l set the Gallery align left,But Result is also in center.please look at 
the E-mail attachments.
  I will be obliged by your help.
Thanks.
Goto














--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Video playback in Android emulator

2008-09-16 Thread Megha Joshi
You should install a sdcard on the emulator and then push the file to
/sdcard dir.

2008/9/16 Anil <[EMAIL PROTECTED]>

>
> Hi,
>
> Can someone briefly explain the method to playback a 3GP
> video in the Android emulator. Where should I push this file using
> adb? What should be the path given in the VideoViewDemo.java file?
>
> Warm Regards,
> Anil
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Video playback in Android emulator

2008-09-16 Thread Anil

Hi,

 Can someone briefly explain the method to playback a 3GP
video in the Android emulator. Where should I push this file using
adb? What should be the path given in the VideoViewDemo.java file?

Warm Regards,
Anil
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intercept incoming call

2008-09-16 Thread Megha Joshi
Unfortunately, you cannot intercept incoming calls in the sdk.

2008/9/16 sectrean <[EMAIL PROTECTED]>

>
> Hi,
>
> I'm trying to figure out how to intercept an incoming call, but I'm
> not able to find much documentation on how I would do this.
>
> I would like to be able to display a custom dialog to accept or reject
> the call.
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread Megha Joshi
Sorry I read center instead of left earlier...its seems android:gravity and
android:layout_gravity don't have much effect to get the effect you are
trying to get.
However setting android:scrollX = 100dp, achieves the desired effect, ie.
moves the first gallery item towards the left end.

2008/9/16 dailyLife <[EMAIL PROTECTED]>

>  My Style is below. Is  right?
> http://schemas.android.com/apk/res/android";
>  android:orientation="vertical" android:layout_width="fill_parent"
>  android:layout_height="fill_parent">
> android:layout_width="fill_parent"
>   android:layout_height="wrap_content" android:text="@string/weather"
>   android:paddingTop="6dip" android:paddingBottom="2dip"
>   android:paddingLeft="3dp" android:paddingRight="3dp"
>   android:gravity="center" />
> android:layout_width="fill_parent" android:paddingTop="1dip"
>   android:paddingBottom="1dip" android:paddingLeft="10dp"
>   android:paddingRight="10dp" android:layout_gravity="left"
>   android:layout_height="wrap_content" android:gravity="left" />
> android:layout_width="fill_parent"
>   android:layout_height="wrap_content" android:paddingTop="6dip"
>   android:paddingBottom="3dip" android:paddingLeft="3dp"
>   android:paddingRight="3dp" android:text="@string/hot_message" />
> android:layout_width="fill_parent" android:paddingTop="6dip"
>   android:paddingBottom="3dip" android:paddingLeft="3dp"
>   android:paddingRight="3dp" android:layout_height="wrap_content"
>   android:text="@string/below_message" />
> 
>
>
> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> 2008年9月17日
>
> - Original Message -
> *From: *Megha Joshi <[EMAIL PROTECTED]>
> *To: *android-developers 
> *Sent: *2008-09-17, 05:41:20
> *Subject: *[android-developers] Re: How to set Gallery align property?
>
>
> Are you setting android:layout_gravity = "center_horizontal" for your
> Gallery view?
>
> 2008/9/16 dailyLife <[EMAIL PROTECTED]>
>
>>  Hi,All.
>>   When l set the Gallery align left,But Result is also in center.please
>> look at the E-mail attachments.
>>   I will be obliged by your help.
>> Thanks.
>> Goto
>>
>>
>>
>>
>>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Intercept incoming call

2008-09-16 Thread sectrean

Hi,

I'm trying to figure out how to intercept an incoming call, but I'm
not able to find much documentation on how I would do this.

I would like to be able to display a custom dialog to accept or reject
the call.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread dailyLife
My Style is below. Is  right?
http://schemas.android.com/apk/res/android";
 android:orientation="vertical" android:layout_width="fill_parent"
 android:layout_height="fill_parent">
 
 
 
 



[EMAIL PROTECTED]
2008年9月17日 
- Original Message - 
From: Megha Joshi 
To: android-developers 
Sent: 2008-09-17, 05:41:20
Subject: [android-developers] Re: How to set Gallery align property?



Are you setting android:layout_gravity = "center_horizontal" for your Gallery 
view?


2008/9/16 dailyLife <[EMAIL PROTECTED]>

Hi,All.
  When l set the Gallery align left,But Result is also in center.please look at 
the E-mail attachments.
  I will be obliged by your help.
Thanks.
Goto










--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to learn content type of a media content uri at run time?

2008-09-16 Thread hackbod

Intent.resolveType() should do it for you.  Or if you have a raw Uri,
you can use ContentResolver.getType().

On Sep 16, 11:49 am, Nickname <[EMAIL PROTECTED]> wrote:
> What i meant is how to know if content type of a picked photo uri
> returned by android photo picker activity is image/jpeg, image/png, or
> image/gif??
>
> Thanks for any pointer.
>
> On Sep 15, 11:35 am, Nickname <[EMAIL PROTECTED]> wrote:
>
> > Previously, from filename of a media file we can learn what content
> > type of the media in the file.
>
> > Now, a media file is represented by a content:// uri.
>
> > So, how can i learn the content type of a photo picked with the photo
> > picker 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: List background style

2008-09-16 Thread Andrew Stadler

On Tue, Sep 16, 2008 at 3:52 PM, David Given <[EMAIL PROTECTED]> wrote:
> Ah, I didn't know about state_selected (would you like a bug report on
> documentation for this?). Yes, that works fine.

Documentation bugs are *always* helpful.  You don't have to ask.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Incoming Call Event

2008-09-16 Thread Megha Joshi
Unfortunately, these features are not supported in the sdk. Though you will
be able to intercept outgoing calls in sdk 1.0 using
ACTION_NEW_OUTGOING_CALL.

2008/9/16 Pulkit Arora <[EMAIL PROTECTED]>

>
> I am searching of, How to inject an audio file's (which is stored in
> the SD Card) content into an active call ( like if i have some part of
> my earlier conversation stored in my phone somewhere, how can i play
> it in the call on runtime so that the person at the other side of the
> call can listen it )
>

> Also, can i override the incoming call event and show customized
> dialog box ( made by me ) on the screen ? ( it could contain the
> Reject or Answer buttons with some backend functionalities )
>
> I will be obliged by your help.
>
> Pulkit Arora
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get focus in list footer via key pad?

2008-09-16 Thread friedger

Use
mListView.setItemsCanFocus(true); // <- true here
mListView.addFooterView(footer, null, true); // <- true here

Friedger


On 19 Aug., 09:49, Peli <[EMAIL PROTECTED]> wrote:
> I add a fooer to a list using the code below. It contains a button.
>
> I can press the button using "touch" (i.e. mouse click), but I can not
> put focus on the
> button using the key pad only.
>
> If I choose the 3rd parameter in addFooterView() to be "true" instead
> of "false", then I can select the whole footer view, but not the
> button in this view.
>
> How can I make the button selectable (without the whole footer view
> selectable)?
>
> Peli
>
> --- Code follows ---
>
> --
> mListView = (ListView) findViewById(R.id.mylist);
>
> // Add footer
> LayoutInflater inflater = (LayoutInflater)
> this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
> LinearLayout footer =
> (LinearLayout)inflater.inflate(R.layout.mylist_footer, null);
> mListView.addFooterView(footer, null, false);
> Button button = (Button) footer.findViewById(R.id.button);
> 
>
> and res/layout/mylist_footer.xml:
> -
> http://schemas.android.com/apk/res/
> android"
>         android:orientation="vertical"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content">
>                          android:text="Add more"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"/>
>
> 
> -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Need Android Developer for "e-reader" type project

2008-09-16 Thread mdjensen

I have an application I need developed for the Android platform, it is
basically an advanced e-reader. It would be based on an sqlite
database, which I have ready. Please contact me ([EMAIL PROTECTED]) and
I will send you more details. 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: List background style

2008-09-16 Thread David Given
Romain Guy wrote:
> There's a way to do this. Simply set your background texture on the
> list items, but use a selector for the background. For the state
> android:state_selected="true", simply use @android:color/transparent
> as the background. This way, when an item is selected, its texture
> won't be shown, and you will be able to see the list selector.

Ah, I didn't know about state_selected (would you like a bug report on
documentation for this?). Yes, that works fine.

In fact, I've managed to simplify considerably and have put all the
logic into the list item's background:


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












That way I don't need to fiddle with the ListView at all.

Incidentally, he also wants custom dividers in the ListView. I have that
working, but along the way I found out that it doesn't seem to want to
honour the dividerHeight attribute. The only way of setting the height
of the dividers is to point divider at a fixed-height drawable, like a
PNG file. Is this a bug, or simply something I'm not doing right?

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "All power corrupts, but we need electricity." --- Diana Wynne Jones,
│ _Archer's Goon_



signature.asc
Description: OpenPGP digital signature


[android-developers] Re: Separating ListView into Sections using Headers

2008-09-16 Thread Francisco

I have been playing with the example and it seems a little confusing
to me, im new to android and im not that good at java, i understand
certain parts of the code but not all.
I wanted to ask if you know, how to change and image, for example,
instead of having only to TextViews to change as in the example we
have an Icon picture, a text view and another textview.

This if an acvities list that will show:

Image | Descrition of Activity |Time of the activity

But i dont know what part of the code is the best part to pull the
ImageView view to add the icont i want. Any ideas?

Also i would like to ask you if you could give a little more detailed
description of the methods implemented in the Separated List Adapter,
for example the getItem, getViewTypeCount, getItemViewType and such.

Thanks for your time in advance.

Paco Garcia



On Aug 18, 4:46 pm, Jeffrey Sharkey <[EMAIL PROTECTED]> wrote:
> In the new 0.9 SDK, you might have seen ListViews split into sections
> using grey header bars with text in them.  (Such as the browser
> settings list.)  This is an excellent UI tool, and can really help
> organize activities.
>
> Since there isn't an "official" way of creating these sectioned lists,
> I've put together an abstract way of stitching together multiple
> Adapters into a single header-ized Adapter.
>
> Example screenshots and code are posted 
> here:http://www.jsharkey.org/blog/2008/08/18/separating-lists-with-headers...
>
> Let me know if anyone finds a better way, but this is a start for
> now.  :)
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: List background style

2008-09-16 Thread Romain Guy

There's a way to do this. Simply set your background texture on the
list items, but use a selector for the background. For the state
android:state_selected="true", simply use @android:color/transparent
as the background. This way, when an item is selected, its texture
won't be shown, and you will be able to see the list selector.

On Tue, Sep 16, 2008 at 2:41 PM, David Given <[EMAIL PROTECTED]> wrote:
> I'm drawing a ListView. My graphic designer has specified a texture for
> the selected item; that's fine, I just put it in a drawable and set the
> ListView's listSelector attribute.
>
> However, he's *also* specified a texture for unselected items. I can't
> figure out how to do this. What I've tried:
>
> - set the ListView's background to the texture... doesn't work because
> the texture is scaled to fill the whole list.
>
> - set the list item's background to the texture --- doesn't work because
> the texture is then drawn *on top of* the selector texture, so we don't
> see the texture any more.
>
> - do the above, and set ListView's drawSelectorOnTop --- doesn't work
> because the list selector texture is opaque, and now I don't see the
> list item at all.
>
> I've experimented with using a  drawable; this is honoured for
> listSelector, but doesn't help because listSelector is only drawn once;
> but it's not honoured for the list item's background, so I can't do it
> that way.
>
> The only way out of this I can think of so far is to use code to
> manipulate the list item's background at run time. Not hard, but very
> nasty. There's got to be a cleaner way to do it --- does anyone know one?
>
> --
> ┌─── dg@cowlark.com ─ http://www.cowlark.com ─
> │
> │ "All power corrupts, but we need electricity." --- Diana Wynne Jones,
> │ _Archer's Goon_
>
>



-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] List background style

2008-09-16 Thread David Given
I'm drawing a ListView. My graphic designer has specified a texture for
the selected item; that's fine, I just put it in a drawable and set the
ListView's listSelector attribute.

However, he's *also* specified a texture for unselected items. I can't
figure out how to do this. What I've tried:

- set the ListView's background to the texture... doesn't work because
the texture is scaled to fill the whole list.

- set the list item's background to the texture --- doesn't work because
the texture is then drawn *on top of* the selector texture, so we don't
see the texture any more.

- do the above, and set ListView's drawSelectorOnTop --- doesn't work
because the list selector texture is opaque, and now I don't see the
list item at all.

I've experimented with using a  drawable; this is honoured for
listSelector, but doesn't help because listSelector is only drawn once;
but it's not honoured for the list item's background, so I can't do it
that way.

The only way out of this I can think of so far is to use code to
manipulate the list item's background at run time. Not hard, but very
nasty. There's got to be a cleaner way to do it --- does anyone know one?

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "All power corrupts, but we need electricity." --- Diana Wynne Jones,
│ _Archer's Goon_



signature.asc
Description: OpenPGP digital signature


[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread Megha Joshi
Are you setting android:layout_gravity = "center_horizontal" for your
Gallery view?

2008/9/16 dailyLife <[EMAIL PROTECTED]>

>  Hi,All.
>   When l set the Gallery align left,But Result is also in center.please
> look at the E-mail attachments.
>   I will be obliged by your help.
> Thanks.
> Goto
>
>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: eclipse project opening problem

2008-09-16 Thread Megha Joshi
2008/9/16 Jeff <[EMAIL PROTECTED]>

>
> Sorry for the question but I still don't get it and no one replied on
> the beginners site.
>
> I can create a project, build all, run the project, but I can not open
> a project.  Most of the time both the open/close project menu are
> disabled. Sometimes I can close the project, but not always.  I don't
> get it.


This seems like a problem in your eclipse installation, and is not specific
to android. Can you close/open non-android projects?
You won't be able to open a project, unless you closed it previously.


>
> Is there a good manual on this tool??
>
> running Version: 3.3.2
> Build id: M20080221-1800
>
> Thanks for the help!!!
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Xmpp demo!

2008-09-16 Thread mickrobk

Gtalk and XMPP were removed from Android, but here's a link to
davanum's blog showing how to use the smack library to add xmpp to
your app

http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/

Here's the except from the releasenotes ( 
http://code.google.com/android/RELEASENOTES.html)
:

Due to the security risks inherent in accepting arbitrary data from
"outside" the device, the data messaging facility of the GTalkService
will not be present in Android 1.0.  The GTalkService will provide
connectivity to Google's servers for Google Talk instant messaging,
but the API has been removed from this release while we improve the
service.  Note that this will be a Google-specific service and is not
part of the core of Android.

On Sep 16, 7:22 am, android_mng <[EMAIL PROTECTED]> wrote:
>             Can someone put the demo XMPPSender or GtalkXMPP on the
> web, or send me, because i can't download from nowhere..
>
>                             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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] *** TCP connect() time out ***

2008-09-16 Thread Nickname

How to control the length of time to time out a TCP connect() attempt?

Socket.setSoTimeout() seems not working on connect().

In my test, it takes 3 minutes for connect() to time out. That is not
acceptable to system redundancy!!!


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to learn content type of a media content uri at run time?

2008-09-16 Thread Nickname

What i meant is how to know if content type of a picked photo uri
returned by android photo picker activity is image/jpeg, image/png, or
image/gif??

Thanks for any pointer.

On Sep 15, 11:35 am, Nickname <[EMAIL PROTECTED]> wrote:
> Previously, from filename of a media file we can learn what content
> type of the media in the file.
>
> Now, a media file is represented by a content:// uri.
>
> So, how can i learn the content type of a photo picked with the photo
> picker 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Preloading map in MapView

2008-09-16 Thread Megha Joshi
2008/9/16 <[EMAIL PROTECTED]>

>
> Hi, I want to preload a part of a map in MapView so that I can do e.g.
> routing in an area without data connection. The preloaded area should
> have the size of an average downtown area... I know that there's the
> preload() function, which preloads the map at the current center, but
> I don't think that it has the desired coverage I need. Is there any
> other way to preload larger map areas in detail?


Unfortunately, this feature is not supported in the sdk.

>
>
> 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ResourceBundle and *.properties files in classes.dex

2008-09-16 Thread Xavier Ducrohet

The ResourceBundle support is merely there so that 3rd party libraries
relying on it aren't broken.

For Android applications, you should be using the res and assets
folders with the android APIs.

Xav

On Tue, Sep 16, 2008 at 8:38 AM, CAT
<[EMAIL PROTECTED]> wrote:
>
> 2 interesting questions for that
>
> 1. Should ResourceBundles even be used when Android seems to provide
> an alternative approach? (strings.xml)
> 2. Does this work for another locale than en_US? (as the mechanism
> from 1. doesn't yet)
>
> Cheers,
> Werner
>
> On Sep 15, 7:35 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>> Place your .properties file inside the /src directory of your app, so that
>> the build process can put it inside your .apk.
>> This should then allow you to use it with ResourceBundle and
>> classLoader.getResourceAsStream().
>>
>> 2008/9/15 janb <[EMAIL PROTECTED]>
>>
>>
>>
>> > Hi,
>>
>> > I've been trying to make ResourceBundle lookups work now that bug #173
>> > is fixed:
>>
>> >http://code.google.com/p/android/issues/detail?id=173&can=1&q=Resourc...
>>
>> > However, ResourceBundle.getBundle("com/acme/foo") always fails with a
>> > MissingResource exception.
>>
>> > I'm definitely copying the *.properties files into the classes
>> > directory from where the dx compiler makes the classes.dex file, but I
>> > haven't been able to find a way to confirm if the properties files are
>> > actually inside the generated classes.dex file.
>>
>> > Is there a way to do that? Is that where they are supposed to go?
>>
>> > Has anyone else got ResourceBundle working in the 0.9 beta release,
>> > and if so, what is your sekrit sauce recipe?
>>
>> > cheers
>> > Jan
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it possible to tell OS that Activity behind a translucent activity no longer needs to be drawn?

2008-09-16 Thread Megha Joshi
2008/9/15 Gary <[EMAIL PROTECTED]>

>
> I am using translucent activities in my app
> (windowIsTranslucent=true).  However, the android OS always assumes
> that every activity behind the translucent activity is visible.  As
> the programmer, I know that some activities are not actually visible
> and can be safely be stopped and not redrawn.
>
> It would be nice if there was a mechanism for me to programmatically
> set an Activity to the stopped state.  This allows the system to
> reclaim resources that it otherwise could not (such as the surface for
> a MapActivity).


Did you try calling finish() on the Activity that you want to stop?


>
>
> Any help would be much 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] check the manifest for intent-filters

2008-09-16 Thread Janosch

i just had to deal with the same problem, my code was pretty close to
the sample code google provided.
one thing was missing though, the hind to declare intent-filters for
the Interfaces inside the service tag in the AndroidManifest.xml.

once i added








everything worked fine for me, notice that i left out the secondary
interface which wasn't of any use 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Xmpp demo!

2008-09-16 Thread android_mng


Can someone put the demo XMPPSender or GtalkXMPP on the
web, or send me, because i can't download from nowhere..


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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] eclipse project opening problem

2008-09-16 Thread Jeff

Sorry for the question but I still don't get it and no one replied on
the beginners site.

I can create a project, build all, run the project, but I can not open
a project.  Most of the time both the open/close project menu are
disabled. Sometimes I can close the project, but not always.  I don't
get it.

Is there a good manual on this tool??

running Version: 3.3.2
Build id: M20080221-1800

Thanks for the help!!!

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ActivityGroup unable to restart Activity

2008-09-16 Thread Zach Hobbs

I'm using an ActivityGroup to display different Activities in a FrameLayout.  
I want to be able to destroy activities that currently aren't being shown, 
but I cannot restart those Activities for some reason.

Using the LocalActivityManager I start an activity using startActivity(...) 
and then destroy it with destroyActivity(...).  But I cannot restart that 
Activity because if I call startActivity(...) again it returns null instead 
of the Window object.

I have included a sample project to demonstrate this problem at:
http://code.google.com/p/android/issues/detail?id=879

Anyone have any ideas for working around this issue?

-- 

Zach Hobbs 
HelloAndroid.com 
Android OS news, tutorials, downloads

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is there any RPC library available with Android

2008-09-16 Thread Charlie Collins

As Mark said, it depends on what you want to do.  But to answer your
question (in the same fashion that it was asked, vaguely), yes.  ;)

On Sep 16, 12:39 am, Anshul <[EMAIL PROTECTED]> wrote:
> I want to write an Android app that will communicte with an RPC server
> running on a network. I want to know if there is any RPC library
> available that I could use.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ResourceBundle and *.properties files in classes.dex

2008-09-16 Thread CAT

2 interesting questions for that

1. Should ResourceBundles even be used when Android seems to provide
an alternative approach? (strings.xml)
2. Does this work for another locale than en_US? (as the mechanism
from 1. doesn't yet)

Cheers,
Werner

On Sep 15, 7:35 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> Place your .properties file inside the /src directory of your app, so that
> the build process can put it inside your .apk.
> This should then allow you to use it with ResourceBundle and
> classLoader.getResourceAsStream().
>
> 2008/9/15 janb <[EMAIL PROTECTED]>
>
>
>
> > Hi,
>
> > I've been trying to make ResourceBundle lookups work now that bug #173
> > is fixed:
>
> >http://code.google.com/p/android/issues/detail?id=173&can=1&q=Resourc...
>
> > However, ResourceBundle.getBundle("com/acme/foo") always fails with a
> > MissingResource exception.
>
> > I'm definitely copying the *.properties files into the classes
> > directory from where the dx compiler makes the classes.dex file, but I
> > haven't been able to find a way to confirm if the properties files are
> > actually inside the generated classes.dex file.
>
> > Is there a way to do that? Is that where they are supposed to go?
>
> > Has anyone else got ResourceBundle working in the 0.9 beta release,
> > and if so, what is your sekrit sauce recipe?
>
> > cheers
> > Jan
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---