[android-developers] Re: could i get email recieve notification from intents?

2009-07-28 Thread Dianne Hackborn
No plans at this time.

On Tue, Jul 28, 2009 at 9:32 PM, Desu Vinod Kumar wrote:

> Hi
> any body know that when they are going to update these feature..
> please help if u know this thing ...
>
> thanks a lot i advance...
>
> On Tue, Jul 28, 2009 at 9:34 PM, Jack Ha  wrote:
>
>>
>> No, you won't be able to receive new email arrival notification.
>>
>> --
>> Jack Ha
>> Open Source Development Center
>> ・T・ ・ ・Mobile・ stick together
>>
>> The views, opinions and statements in this email are those of
>> the author solely in their individual capacity, and do not
>> necessarily represent those of T-Mobile USA, Inc.
>>
>>
>> On Jul 28, 2:44 am, "android.vinny"  wrote:
>> > Hi
>> >
>> > could i get email recieve notification from the Intent...
>> > how can i get the email recieve notification...
>> > thanks a lot in advanc
>>
>>
>
>
> --
> Regards
> ---
> Desu Vinod Kumar
> vinny.s...@gmail.com
> 09176147148
>
>
> >
>


-- 
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] " Creating a file in AFS with NativeBinary and Android App"

2009-07-28 Thread raj.10788

Hi,


I have a applications which will do the follwing taks.

1. It contain's the native binary with it. Then it will llod that
native binary to AFS.
2. Then it should call or execute that native binary.

But when I do that one. The native binary is working fine. But the
problem cmoes out here.

The function of the native binary is to read the file in the AFS and
to copy it to another location.

But when I do the above steps. The native binary has been successfully
loading to the AFS. After that when I try to execute the native
binary. The file is get created with 0 size.

The file permissions looks like below.

-r-s-wsr-- app_22   app_22 0 2009-07-28 16:26 test.sc

So the above file is get creating when I execute the native binary
from my Application. At the same time when I execute the binary from
shell I am getting the OP.

-r-s-wsr-- app_22   app_22 61454 2009-07-28 16:26 test.sc


So can some one tell me where the logic is creating the problem.


Any poninters and suggestions to this one will help me a lot.


thx
raj
--~--~-~--~~~---~--~~
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: Press Back key programmatically

2009-07-28 Thread Saurav Mukherjee
use this.dispatchKeyEvent(new Keyevent(..)..);
hope this helps...
cheers!

On Wed, Jul 29, 2009 at 1:21 AM, Peacemoon  wrote:

>
> i want to trigger the onKeyDown listener programmatically but don't
> know which method i should call?
> Does anyone know?
> 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: Experimental Bluetooth Library

2009-07-28 Thread Marc Lester Tan
Can't wait to try this on wiimote. Anyone tried it already? does it work?

-Marc

On Wed, Jul 22, 2009 at 2:55 PM, Stefano Sanna (gerdavax) <
gerda...@gmail.com> wrote:

>
> Hi all.
>
> I've written a simple library that provides access to some Bluetooth
> features: local device properties, remote device discovering, pairing
> and client rfcomm connections management. Currently service discovery
> and other feature are not supported. This library does not require a
> rooted device: it works with any device with its bundled firmware
> (I've made tests ona a T-Mobile G1 with "cupcake" and a TIM [Telecom
> Italia Mobile] Dream with firmware 1.1).
>
> It is an experimental library and, since it is deeply based on
> reflection, it may stop work suddenly if something changes in future
> release of Android. Nevertheless, it is suitable for having fun with
> Bluetooth and using external devices such as LEGO robots, scan reader,
> Arduino Bluetooth and so on.
>
> Library source code, binaries and Javadoc have been published under
> Apache 2.0 License at:
>
> http://code.google.com/p/android-bluetooth/
>
> and a sample application (called "Bluetooth Samples") has been
> published on the Android Market. I expect to improve the library in
> the next weeks: comments and contributions are welcome.
>
> Have fun with Android and Bluetooth!
>
> Ciao,
> Stefano
> >
>

--~--~-~--~~~---~--~~
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] Application as a broadcast receiver

2009-07-28 Thread Sudeep

Hi,
 If  I am broadcasting an Intent from an activity
Can we make another application as a receiver.so that it will get
invoked when that specific intent is broadcasted.
Thanks,
Sudeep
--~--~-~--~~~---~--~~
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 all table names in SQL database

2009-07-28 Thread guishenl...@gmail.com

I've solved this problem by:


public final static String SQL_GET_ALL_TABLES = "SELECT name FROM " +
"sqlite_master WHERE type='table' ORDER BY name";
Cursor cur = dataBase.rawQuery(this.SQL_GET_ALL_TABLES, null);

The table names can be obtained from cur.
Thank all the people above!


On 7月29日, 下午12时34分, Marco Nelissen  wrote:
> If the database was created by you, shouldn't you already know which tables
> are in it?
>
> On Tue, Jul 28, 2009 at 6:18 PM, guishenl...@gmail.com <
>
>
>
> guishenl...@gmail.com> wrote:
>
> > I want to get the tables programmatically not in the command line. And
> > the database is created by myself not the contact database. Could you
> > give me some example code?
> > Thank you very much in advance!
>
> > On 7月28日, 下午9时46分, "Yusuf T. Mobile"  wrote:
> > > It depends if you want all the tables programmatically or if you can
> > > do it in the command line. Sujay's answer was from the command line.
> > > So starting a few steps back, you type:
>
> > > > adb shell
>
> > > # cd /data/data
> > > # cd com.android.providers.contacts
> > > # cd databases
> > > # sqlite3 contacts.db
> > > SQLite version 3.5.9
> > > Enter ".help" for instructions
> > > sqlite> .tables
>
> > > That will get you all the tables in the contacts database, for
> > > example. If that doesn't answer your question, let me know more about
> > > what you need and I'll try to help.
>
> > > Yusuf Saib
> > > Android
> > > ·T· · ·Mobile· stick together
> > > The views, opinions and statements in this email are those of the
> > > author solely in their individual capacity, and do not necessarily
> > > represent those of T-Mobile USA, Inc.
>
> > > On Jul 28, 12:59 am, "guishenl...@gmail.com" 
> > > wrote:
>
> > > > Thank you for answering!
> > > > But I didn't catch your real meaning.
> > > > Could you give me some exact code to show your point?
>
> > > > On 7月28日, 下午3时25分, Sujay Krishna Suresh 
> > > > wrote:
>
> > > > > .tables is the sql instruction to retrieve all the tables in the db.
> > > > > try executing it asa sql statement with rawQuery.
>
> > > > > On Tue, Jul 28, 2009 at 12:45 PM, guishenl...@gmail.com <
>
> > > > > guishenl...@gmail.com> wrote:
>
> > > > > > Hi all,
> > > > > >      I'm working at an application about SQLite database. I have
> > > > > > inserted some table in an database file.  But I don't know how to
> > get
> > > > > > all the tables' name using code. For example, I defined a database
> > > > > > object
> > > > > > SQLiteDatabase dataBase = SQLiteDatabase.openOrCreateDatabase(
> > > > > >                        getDatabasePath("Mydatabase"), null);
> > > > > > and how can I get all the table names stored in the database file
> > > > > > "Mydatabase". Counld anyone give me some code to help me?
> > > > > > Thank you in advance!
>
> > > > > --
> > > > > Regards,
> > > > > Sujay
> > > > > Joan Crawford<
> >http://www.brainyquote.com/quotes/authors/j/joan_crawford.html>
> > > > > - "I, Joan Crawford, I believe in the dollar. Everything I earn, I
> > > > > spend."- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~-~--~~~---~--~~
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 all table names in SQL database

2009-07-28 Thread Marco Nelissen
If the database was created by you, shouldn't you already know which tables
are in it?

On Tue, Jul 28, 2009 at 6:18 PM, guishenl...@gmail.com <
guishenl...@gmail.com> wrote:

>
> I want to get the tables programmatically not in the command line. And
> the database is created by myself not the contact database. Could you
> give me some example code?
> Thank you very much in advance!
>
> On 7月28日, 下午9时46分, "Yusuf T. Mobile"  wrote:
> > It depends if you want all the tables programmatically or if you can
> > do it in the command line. Sujay's answer was from the command line.
> > So starting a few steps back, you type:
> >
> > > adb shell
> >
> > # cd /data/data
> > # cd com.android.providers.contacts
> > # cd databases
> > # sqlite3 contacts.db
> > SQLite version 3.5.9
> > Enter ".help" for instructions
> > sqlite> .tables
> >
> > That will get you all the tables in the contacts database, for
> > example. If that doesn't answer your question, let me know more about
> > what you need and I'll try to help.
> >
> > Yusuf Saib
> > Android
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
> >
> > On Jul 28, 12:59 am, "guishenl...@gmail.com" 
> > wrote:
> >
> >
> >
> > > Thank you for answering!
> > > But I didn't catch your real meaning.
> > > Could you give me some exact code to show your point?
> >
> > > On 7月28日, 下午3时25分, Sujay Krishna Suresh 
> > > wrote:
> >
> > > > .tables is the sql instruction to retrieve all the tables in the db.
> > > > try executing it asa sql statement with rawQuery.
> >
> > > > On Tue, Jul 28, 2009 at 12:45 PM, guishenl...@gmail.com <
> >
> > > > guishenl...@gmail.com> wrote:
> >
> > > > > Hi all,
> > > > >  I'm working at an application about SQLite database. I have
> > > > > inserted some table in an database file.  But I don't know how to
> get
> > > > > all the tables' name using code. For example, I defined a database
> > > > > object
> > > > > SQLiteDatabase dataBase = SQLiteDatabase.openOrCreateDatabase(
> > > > >getDatabasePath("Mydatabase"), null);
> > > > > and how can I get all the table names stored in the database file
> > > > > "Mydatabase". Counld anyone give me some code to help me?
> > > > > Thank you in advance!
> >
> > > > --
> > > > Regards,
> > > > Sujay
> > > > Joan Crawford<
> http://www.brainyquote.com/quotes/authors/j/joan_crawford.html>
> > > > - "I, Joan Crawford, I believe in the dollar. Everything I earn, I
> > > > spend."- 隐藏被引用文字 -
> >
> > - 显示引用的文字 -
> >
>

--~--~-~--~~~---~--~~
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: Attach multiple images

2009-07-28 Thread SrilankanKK



On Jul 28, 8:50 am, Jack Ha  wrote:
> As far as I know, it only supports one attachment as Intent.putExtra()
> will replace any existing value for the given key.
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
> On Jul 28, 4:31 am, SrilankanKK  wrote:
>
> > Hi
>
> > i have put this question on several time on the Developer forum. But i
> > didn't get any answer.
>
> > I build an email application using intents. I can send a email with
> > one image attachment. I tried to attach multiple images using "putExtra
> > ()" method.But it still send only a single image if any of You know a
> > solution plz leave  a reply
>
> > Thanks
>
>





Ya i think so, but is there any alternative method to do this.

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: Android service always alive..

2009-07-28 Thread Archana

Hi,

I am facing onlowmemory problem in my app... Its working for few
minutes and automatically exiting... I am using lots of view in my
app,so is it because of that.?
I am getting error like this.
Low Memory: No more background processes
Can anybody tell me how to solve this.



 Thanks
Archana

On Jul 2, 8:47 pm, Todd Sjolander  wrote:
> If you absolutely need it to be running all the time, you need to
> acquire a PARTIAL_WAKE_LOCK via PowerManager.  This will keep the CPU
> on all the time, and your program running.  Be prepared for a shocking
> decline in battery life.
>
> I assume your next question will be "How do I make it run as soon as
> the phone boots?"  For that, you'll need to implement a
> BroadcastReceiver that catches android.intent.action.BOOT_COMPLETED.
> Your receiver would then launch your service.  Once the service
> starts, you get the wakelock described above, and voila - you're
> always running.
>
> BTW, you'll need to declare permissions for both of those things.
> Good luck!
>
> Todd Sjolander
>
> On Jun 30, 7:34 am, "M.Manjunatha"  wrote:
>
> > Hi,
>
> > How do I make my service always alive?? If my service gets killed
> > because of an exception or if the VM kills my service on lowmemory,
> > How do I make sure that my service is always running?
--~--~-~--~~~---~--~~
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: could i get email recieve notification from intents?

2009-07-28 Thread Desu Vinod Kumar
Hi
any body know that when they are going to update these feature..
please help if u know this thing ...

thanks a lot i advance...

On Tue, Jul 28, 2009 at 9:34 PM, Jack Ha  wrote:

>
> No, you won't be able to receive new email arrival notification.
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
>
> On Jul 28, 2:44 am, "android.vinny"  wrote:
> > Hi
> >
> > could i get email recieve notification from the Intent...
> > how can i get the email recieve notification...
> > thanks a lot in advanc
> >
>


-- 
Regards
---
Desu Vinod Kumar
vinny.s...@gmail.com
09176147148

--~--~-~--~~~---~--~~
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: Could I read call_log by Intent?

2009-07-28 Thread Wang He

Up!

On 7月28日, 下午6时00分, Wang He  wrote:
> Ps.
>
> 1. content://call_log/calls starts
> 07-28 17:58:35.930: INFO/ActivityManager(498): Starting activity:
> Intent { action=android.intent.action.MAIN flags=0x1020 comp=
> {com.android.phone/com.android.phone.DialtactsActivity} }
>
> 2. content://call_log/calls/XXX suppose to start
> 07-28 17:59:23.549: INFO/ActivityManager(498): Starting activity:
> Intent { action=com.android.phone.action.RECENT_CALLS_DETAIL_VIEW comp=
> {com.android.phone/com.android.phone.RecentCallsDetailViewActivity}
> (has extras) }
>
> On 7月28日, 下午5时42分, Wang He  wrote:
>
>
>
> > Dear all
>
> > Here in my activity I set a call_log Uri as:
> > uri = Uri.parse("content://call_log/calls/4");
>
> > I wrote code as:
> > Intent intent = new Intent(Intent.ACTION_VIEW);
> > intent.setDataAndType(uri, getContentResolver().getType
> > (uri));
> > intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
> > startActivity(intent);
>
> > I hope I could read this call_log by auto starting activity "Dialer",
> > but got "stopped unexpectedly!"
>
> > BUT, uri string "content://call_log/calls" could work!
> > So, my question is: Is call log content provider/Resolver cannnot
> > support content://call_log/calls/XXX?
>
> > Thanks!
> > He- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~-~--~~~---~--~~
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 all table names in SQL database

2009-07-28 Thread guishenl...@gmail.com

I have tried the method given by Mark in the following way:

public final static String SQL_GET_ALL_TABLES = "SELECT name FROM " +
"sqlite_master WHERE type='table' ORDER BY name";
dataBase.execSQL(this.SQL_GET_ALL_TABLES, tablenames);

But I got exception while running dataBase.execSQL. I don't know where
the mistake exists. Could anyone tell me?

On 7月29日, 上午9时25分, Mark Murphy  wrote:
> guishenl...@gmail.com wrote:
> > I want to get the tables programmatically not in the command line. And
> > the database is created by myself not the contact database.
>
> http://www.sqlite.org/faq.html#q7
>
> "So to get a list of all tables in the database, use the following
> SELECT command:
>
>     SELECT name FROM sqlite_master
>     WHERE type='table'
>     ORDER BY name;
> "
>
> If you have questions on SQLite in general, use SQLite resources, like
> sqlite.org.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: video screen disappeared after launch new task

2009-07-28 Thread sleith

any idea about this problem?

On Jul 28, 6:38 am, sleith  wrote:
> here's the code
> try clicking that will trigger dial number, and then push back button,
> and you will see the video screen disappeared but the sound is playing
> thx :D
>
> public class VideoTest extends Activity {
>
> private VideoPlayer mVideoPlayer;
> private String mFile = "/sdcard/Airplane.3gp";
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
> FrameLayout mainLayout = new FrameLayout(this);
> mainLayout.setLayoutParams(new FrameLayout.LayoutParams(
> LayoutParams.FILL_PARENT, 
> LayoutParams.FILL_PARENT));
> // set to dial number
> mainLayout.setOnClickListener(new OnClickListener() {
> public void onClick(View v) {
> Intent dialIntent = new 
> Intent(Intent.ACTION_DIAL, Uri
> .parse("tel:12345"));
> startActivity(dialIntent);
> }
> });
>
> // surface view for video screen
> SurfaceView videoSurface = new SurfaceView(this);
> videoSurface.setLayoutParams(new LayoutParams
> (LayoutParams.FILL_PARENT,
> LayoutParams.FILL_PARENT));
> mainLayout.addView(videoSurface);
>
> mVideoPlayer = new VideoPlayer(videoSurface, mFile);
>
> setContentView(mainLayout);
>
> }
>
> @Override
> protected void onResume() {
> super.onResume();
> mVideoPlayer.Start();
> }
>
> @Override
> protected void onStop() {
> super.onStop();
> mVideoPlayer.Pause();
> }
>
> private class VideoPlayer implements MediaPlayer.OnPreparedListener,
> SurfaceHolder.Callback {
>
> private MediaPlayer mMediaPlayer;
> private String mVideoFile;
> private SurfaceHolder mHolder;
>
> public VideoPlayer(final SurfaceView surfaceView, final 
> String file)
> {
> mHolder = surfaceView.getHolder();
> mHolder.addCallback(this);
> 
> mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
> mHolder.setSizeFromLayout();
>
> mVideoFile = file;
> }
>
> public void Start() {
> if (mMediaPlayer != null)
> mMediaPlayer.start();
> }
>
> public void Pause() {
> if (mMediaPlayer != null)
> mMediaPlayer.pause();
> }
>
> public void onPrepared(MediaPlayer mp) {
> mVideoPlayer.Start();
> }
>
> public void surfaceChanged(SurfaceHolder holder, int format, 
> int
> width,
> int height) {
> }
>
> public void surfaceCreated(SurfaceHolder holder) {
> // to prevent recreating media player
> if (mMediaPlayer == null) {
> mMediaPlayer = new MediaPlayer();
>
> try {
> 
> mMediaPlayer.setDataSource(mVideoFile);
> mMediaPlayer.setDisplay(mHolder);
> mMediaPlayer.prepare();
> 
> mMediaPlayer.setOnPreparedListener(this);
> 
> mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
>
> } catch (Exception e) {
> }
> }
> }
>
> public void surfaceDestroyed(SurfaceHolder holder) {
> }
>
> public void onBufferingUpdate(MediaPlayer mp, int percent) {
> }
>
> }
>
> }
>
> On Jul 27, 10:40 pm, Mark Murphy  wrote:
>
> > sleith wrote:
> > > any idea?
>
> > Is this hardware or the emulator?
>
> > If it is the emulator, can you reproduce the problem on a device?
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 1.0 In Print!
--~--~-~--~~~---~--~~
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-

[android-developers] ListView and Selectors

2009-07-28 Thread Evan Ruff

Hey Guys,

After going through a bunch of posts here I've got a List Activity
with a pair of custom selectors that do the alternating row background
thing while maintaining the default selector behavior! The trick was
figuring out that in the selector, you had to fire a shape in there
instead of a plain android:background tag!

Looking to further extend the function, I was wondering if there is a
way to get the same sort of long-press/fading effect that the default
Google Applications have. For instance, when you long press an SMS in
the Messaging application, it kinda fades from the orange to white. Is
that possible to implement in a standardized fashion?

Thanks for any tips!

Evan
--~--~-~--~~~---~--~~
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] how to add a line drawing to ListView?

2009-07-28 Thread greg

When I try extending the View class to a subclass that will underline
portions of the text drawn by ListView, the code compiles okay but
results in a runtime exception apparently due to an improper class
cast.  Does anyone see what I've done wrong or have suggestions about
getting access to the Canvas of ListView items so portions of text can
be underlined?

Here is the code, which is the Efficient Adapter View/List example
from ApiDemos with an added UnderlinedView class.

- - -

/*
 * Copyright (C) 2008 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.example.android.apis.view;

import android.app.ListActivity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Demonstrates how to write an efficient list adapter. The adapter
used in this example binds
 * to an ImageView and to a TextView for each row in the list.
 *
 * To work efficiently the adapter implemented here uses two
techniques:
 * - It reuses the convertView passed to getView() to avoid inflating
View when it is not necessary
 * - It uses the ViewHolder pattern to avoid calling findViewById()
when it is not necessary
 *
 * The ViewHolder pattern consists in storing a data structure in the
tag of the view returned by
 * getView(). This data structures contains references to the views we
want to bind data to, thus
 * avoiding calls to findViewById() every time getView() is invoked.
 */
public class List14 extends ListActivity {

private static class UnderlinedView extends View {
public UnderlinedView(Context context) {
super(context);
}
public UnderlinedView(Context context, AttributeSet as) {
super(context, as);
}
public UnderlinedView(Context context, AttributeSet as, int i) {
super(context, as, i);
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);

// Would like to do some line drawing here (e.g., underlining
portions of text)
}
}

private static class EfficientAdapter extends BaseAdapter {
private LayoutInflater mInflater;
private Bitmap mIcon1;
private Bitmap mIcon2;

public EfficientAdapter(Context context) {
// Cache the LayoutInflate to avoid asking for a new one
each time.
mInflater = LayoutInflater.from(context);

// Icons bound to the rows.
mIcon1 = BitmapFactory.decodeResource(context.getResources
(), R.drawable.icon48x48_1);
mIcon2 = BitmapFactory.decodeResource(context.getResources
(), R.drawable.icon48x48_2);
}

/**
 * The number of items in the list is determined by the number
of speeches
 * in our array.
 *
 * @see android.widget.ListAdapter#getCount()
 */
public int getCount() {
return DATA.length;
}

/**
 * Since the data comes from an array, just returning the
index is
 * sufficent to get at the data. If we were using a more
complex data
 * structure, we would return whatever object represents one
row in the
 * list.
 *
 * @see android.widget.ListAdapter#getItem(int)
 */
public Object getItem(int position) {
return position;
}

/**
 * Use the array index as a unique id.
 *
 * @see android.widget.ListAdapter#getItemId(int)
 */
public long getItemId(int position) {
return position;
}

/**
 * Make a view to hold each row.
 *
 * @see android.widget.ListAdapter#getView(int,
android.view.View,
 *  android.view.ViewGroup)
 */
public View getView(int position, View convertView, ViewGroup
parent) {
// A ViewHolder keeps references to children views to
avoid unneccessary calls
// to findViewById() on each row.
ViewHolder holder;
UnderlinedV

[android-developers] Re: Where can I find good remote Android developers?

2009-07-28 Thread Fred Grott(shareme)

I know a few that have open time right now if you are somewhat
sure about your budget range..


Fred Grott
http://mobilebytes.wordpress.com

On Jul 28, 7:28 pm, Rch  wrote:
> Hi
>
> Can any of suggest a place where I can hire remote Android developers.
> I want to build an app soon.
>
> - Rch
--~--~-~--~~~---~--~~
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] How to customize focus navigation in a ViewGroup

2009-07-28 Thread n179911

Hi,

I have a View Group and it has 2 focusable Views as its children.
I would like know how I can customize how focus is being passed
between these 2 Views. In other words, when I press the Down Key or
the Up Key in the emulator, i want to control which of these children
has focus.

I read the JavaDoc of ViewGroup, I see these 2 methods.

public View focusSearch (View focused, int direction)
public boolean requestFocus (int direction, Rect previouslyFocusedRect)

But I am confused which of these method I should over-ride to achieve
what I want.

Thank you for any advice.

Regards,

--~--~-~--~~~---~--~~
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: Why force java 1.5?

2009-07-28 Thread Mark Murphy

阿偉 wrote:
> This is android-developers group, not android-sdk...
> The subject said "discuss developing Android applications using the
> Android framework..."
> So I think the compiler issue is suitable here. And I don't believe
> this is a porting issue.
> Am I wrong?

I would vote for android-platform:

http://source.android.com/discuss

"You want to contribute code into the Android user-space projects. You
want to improve the system libraries, the Android services, the public
APIs, or the built-in applications. You've downloaded the source code,
compiled it, read through it, and you're at the point where you're going
to be making changes of your own to contribute into the Android source
code. Coordinate your efforts with those of other contributors here,
discuss architecture, design and implementation here. Go to
android-kernel for discussions about contributing to the kernel,
android-porting if you're porting Android to your own hardware or making
changes that you're not going to contribute back, android-developers if
you're writing applications with the SDK, or android-discuss for
everything else."

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

Android Development Wiki: http://wiki.andmob.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
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 all table names in SQL database

2009-07-28 Thread Mark Murphy

guishenl...@gmail.com wrote:
> I want to get the tables programmatically not in the command line. And
> the database is created by myself not the contact database.

http://www.sqlite.org/faq.html#q7

"So to get a list of all tables in the database, use the following
SELECT command:

SELECT name FROM sqlite_master
WHERE type='table'
ORDER BY name;
"

If you have questions on SQLite in general, use SQLite resources, like
sqlite.org.

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

Android Development Wiki: http://wiki.andmob.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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why force java 1.5?

2009-07-28 Thread 阿偉

Yes, I'm talking about Android OSP.

This is android-developers group, not android-sdk...
The subject said "discuss developing Android applications using the
Android framework..."
So I think the compiler issue is suitable here. And I don't believe
this is a porting issue.
Am I wrong?

Anyway, I'm sorry for any possible confusion.

On 7月27日, 下午11時59分, Dianne Hackborn  wrote:
> The original poster was talking about the platform build system, so sent
> this to the wrong place and caused some confusion.
>
> Chih-Wei, for future reference, questions related to the platform (as
> opposed to the SDK) should be posted to android-porting.

--~--~-~--~~~---~--~~
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: Increasing DNS timeout values

2009-07-28 Thread 葉子

Thanks for your remind : )

On 7月28日, 下午7時29分, Mark Murphy  wrote:
> 葉子 wrote:
> > It's easy to find pages about "Increasing DNS timeout values" ,ex:
> >http://groups.google.com/group/mailing.postfix.users/browse_thread/th...
>
> > I found similar variable in the file:
> > bionic/libc/private/resolv_private.h LN#131
> > #define    RES_TIMEOUT             5       /* min. seconds between retries 
> > */
>
> > I modified this value, and do some test, it seems not work .
> > Does anyone have idea about this ?
>
> Questions about modifying the Android open source code are best asked on
> a list that pertains to the Android open source code:
>
> http://source.android.com/discuss
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
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 it possible to display a multi column list ?

2009-07-28 Thread Mark Murphy

jerryfan2000 wrote:
> is there any workaround to simulate similar function?

Carefully design the rows that go into the ListView so they all line up
properly.

Or use GridView.

Or use TableLayout in a ScrollView.

Or create your own multi-column list widget by subclassing AdapterView
and rolling your own code.

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

Android Development Wiki: http://wiki.andmob.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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where can I find good remote Android developers?

2009-07-28 Thread nEx.Software

Awesome, I always look forward to them. :)

On Jul 28, 6:22 pm, Mark Murphy  wrote:
> nEx.Software wrote:
> > That HADO mailing you do is very cool, just wish there more
> > opportunities out there. :)
>
> I have a few queued up for tomorrow's mailing. It's definitely hit or
> miss, which is why I didn't publish one the previous week.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where can I find good remote Android developers?

2009-07-28 Thread Mark Murphy

nEx.Software wrote:
> That HADO mailing you do is very cool, just wish there more
> opportunities out there. :)

I have a few queued up for tomorrow's mailing. It's definitely hit or
miss, which is why I didn't publish one the previous week.

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

Android Development Wiki: http://wiki.andmob.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
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 all table names in SQL database

2009-07-28 Thread guishenl...@gmail.com

I want to get the tables programmatically not in the command line. And
the database is created by myself not the contact database. Could you
give me some example code?
Thank you very much in advance!

On 7月28日, 下午9时46分, "Yusuf T. Mobile"  wrote:
> It depends if you want all the tables programmatically or if you can
> do it in the command line. Sujay's answer was from the command line.
> So starting a few steps back, you type:
>
> > adb shell
>
> # cd /data/data
> # cd com.android.providers.contacts
> # cd databases
> # sqlite3 contacts.db
> SQLite version 3.5.9
> Enter ".help" for instructions
> sqlite> .tables
>
> That will get you all the tables in the contacts database, for
> example. If that doesn't answer your question, let me know more about
> what you need and I'll try to help.
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Jul 28, 12:59 am, "guishenl...@gmail.com" 
> wrote:
>
>
>
> > Thank you for answering!
> > But I didn't catch your real meaning.
> > Could you give me some exact code to show your point?
>
> > On 7月28日, 下午3时25分, Sujay Krishna Suresh 
> > wrote:
>
> > > .tables is the sql instruction to retrieve all the tables in the db.
> > > try executing it asa sql statement with rawQuery.
>
> > > On Tue, Jul 28, 2009 at 12:45 PM, guishenl...@gmail.com <
>
> > > guishenl...@gmail.com> wrote:
>
> > > > Hi all,
> > > >      I'm working at an application about SQLite database. I have
> > > > inserted some table in an database file.  But I don't know how to get
> > > > all the tables' name using code. For example, I defined a database
> > > > object
> > > > SQLiteDatabase dataBase = SQLiteDatabase.openOrCreateDatabase(
> > > >                        getDatabasePath("Mydatabase"), null);
> > > > and how can I get all the table names stored in the database file
> > > > "Mydatabase". Counld anyone give me some code to help me?
> > > > Thank you in advance!
>
> > > --
> > > Regards,
> > > Sujay
> > > Joan 
> > > Crawford
> > > - "I, Joan Crawford, I believe in the dollar. Everything I earn, I
> > > spend."- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~-~--~~~---~--~~
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: Where can I find good remote Android developers?

2009-07-28 Thread dan raaka
try this :)
http://bit.ly/hFdCd
-Dan


On Tue, Jul 28, 2009 at 5:56 PM, Rch  wrote:

>
> Thanks guys,
>
> i will definitely email to the HADO list. Regarding other websites, i
> have to pay to post the job. There seems to be no guarantee there.
>
> On Jul 28, 5:52 pm, "nEx.Software" 
> wrote:
> > Mark,
> >
> > That HADO mailing you do is very cool, just wish there more
> > opportunities out there. :)
> >
> > Rch,
> >
> > I'd be interested go see what type of app you are looking for.
> >
> > On Jul 28, 5:33 pm, Mark Murphy  wrote:
> >
> > > Rch wrote:
> > > > Can any of suggest a place where I can hire remote Android
> developers.
> > > > I want to build an app soon.
> >
> > > If you are willing to give me more details, I can spread the word in a
> > > upcoming Help a 'Droid Out (HADO) email:
> >
> > >http://wiki.andmob.org/hado
> >
> > > There is also a job board on anddev.org. Plus, of course, there are
> all
> > > your normal places to post jobs or find people (DICE, Monster,
> > > Rent-A-Coder, etc.), where you just have to use Android-y keywords.
> >
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://twitter.com/commonsguy
> >
> > > Warescription: Three Android Books, Plus Updates, $35/Year
> >
>

--~--~-~--~~~---~--~~
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: Stopping fling in Gallery

2009-07-28 Thread Brady

Well, I've figured out a "good-enough" solution, although if you have
a better one I'd still love to hear it!

I've extended the Gallery class and overridden the OnFling method. In
my new subclass I change the velocityX to be -600.0 or 600.0
(depending on the fling x direction) and then pass that through to the
super.OnFling call.
600.0 is just enough velocity to flip the screen one item. It even
gets a little bounce back after the fling so it looks nice. I've put
in some logic to adjust the velocity bigger for landscape orientation.

Brady
--~--~-~--~~~---~--~~
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] Getting exception if directional key pad is pressed, pls help

2009-07-28 Thread manohar

Hi all,

I am converting a game to android platform. In view class i have
onKeyDown and onKeyUp method. Still key press is not recognizing(Using
directional pad to navigate menus).  i added following entries

setFocusable(true);
setFocusableInTouchMode(true);

after adding this entry i am getting exception.

07-29 00:44:32.306: ERROR/AndroidRuntime(871): Uncaught handler:
thread main exiting due to uncaught exception
07-29 00:44:32.316: ERROR/AndroidRuntime(871):
java.lang.NullPointerException
07-29 00:44:32.316: ERROR/AndroidRuntime(871): at
android.view.inputmethod.InputMethodManager.startInputInner
(InputMethodManager.java:931)
07-29 00:44:32.316: ERROR/AndroidRuntime(871): at
android.view.inputmethod.InputMethodManager.checkFocus
(InputMethodManager.java:1105)
07-29 00:44:32.316: ERROR/AndroidRuntime(871): at
android.view.inputmethod.InputMethodManager.onWindowFocus
(InputMethodManager.java:1134)
.




can you pls any one help about 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] Re: Where can I find good remote Android developers?

2009-07-28 Thread Rch

Thanks guys,

i will definitely email to the HADO list. Regarding other websites, i
have to pay to post the job. There seems to be no guarantee there.

On Jul 28, 5:52 pm, "nEx.Software" 
wrote:
> Mark,
>
> That HADO mailing you do is very cool, just wish there more
> opportunities out there. :)
>
> Rch,
>
> I'd be interested go see what type of app you are looking for.
>
> On Jul 28, 5:33 pm, Mark Murphy  wrote:
>
> > Rch wrote:
> > > Can any of suggest a place where I can hire remote Android developers.
> > > I want to build an app soon.
>
> > If you are willing to give me more details, I can spread the word in a
> > upcoming Help a 'Droid Out (HADO) email:
>
> >http://wiki.andmob.org/hado
>
> > There is also a job board on anddev.org. Plus, of course, there are all
> > your normal places to post jobs or find people (DICE, Monster,
> > Rent-A-Coder, etc.), where you just have to use Android-y keywords.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
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 it possible to display a multi column list ?

2009-07-28 Thread jerryfan2000

is there any workaround to simulate similar function?

On Jul 29, 4:29 am, Jack Ha  wrote:
> There's no built-in data grid component.
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
> On Jul 28, 7:37 am, jerryfan2000  wrote:
>
> > Hi,
> > I am looking for a way to create a Microsoft data grid style list in
> > android. But I am wondering is there any available built in component
> > capable of doing this job such as listview? 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: Where can I find good remote Android developers?

2009-07-28 Thread nEx.Software

Mark,

That HADO mailing you do is very cool, just wish there more
opportunities out there. :)

Rch,

I'd be interested go see what type of app you are looking for.

On Jul 28, 5:33 pm, Mark Murphy  wrote:
> Rch wrote:
> > Can any of suggest a place where I can hire remote Android developers.
> > I want to build an app soon.
>
> If you are willing to give me more details, I can spread the word in a
> upcoming Help a 'Droid Out (HADO) email:
>
> http://wiki.andmob.org/hado
>
> There is also a job board on anddev.org. Plus, of course, there are all
> your normal places to post jobs or find people (DICE, Monster,
> Rent-A-Coder, etc.), where you just have to use Android-y keywords.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
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: Where can I find good remote Android developers?

2009-07-28 Thread Mark Murphy

Rch wrote:
> Can any of suggest a place where I can hire remote Android developers.
> I want to build an app soon.

If you are willing to give me more details, I can spread the word in a
upcoming Help a 'Droid Out (HADO) email:

http://wiki.andmob.org/hado

There is also a job board on anddev.org. Plus, of course, there are all
your normal places to post jobs or find people (DICE, Monster,
Rent-A-Coder, etc.), where you just have to use Android-y keywords.

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

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~-~--~~~---~--~~
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] Where can I find good remote Android developers?

2009-07-28 Thread Rch

Hi

Can any of suggest a place where I can hire remote Android developers.
I want to build an app soon.

- Rch
--~--~-~--~~~---~--~~
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: Experimental Bluetooth Library

2009-07-28 Thread Kat

Very cool! I just tried the sample application with the HTC myTouch,
and it worked perfect. Thanks for sharing the library!!

On Jul 24, 7:29 am, Steve  wrote:
> > I've written a simple library that provides access to some Bluetooth
> > features: localdeviceproperties, remotedevicediscovering, pairing
> > and client rfcomm connections management. Currently servicediscovery
> > and other feature are not supported. This library does not require a
> > rooteddevice: it works with anydevicewith its bundled firmware
>
> I've been waiting for someone more knowledgeable than me to do this.
> Hopefully, I'll be talking to my LEGO robots in no time.
>
> Thanks
> Steve
--~--~-~--~~~---~--~~
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: Extending the Intent class

2009-07-28 Thread Mark Murphy

R Ravichandran wrote:
> I was experimenting with extending the Intent class but don't seem to
> make it work properly. I am wondering if extending is even possible.
> Here is the snippets.
> 
> Code for custom intent:
> 
> public class MyIntent extends Intent {
> 
>private MyClass myClass;
> 
>public MyIntent(String name, MyClass myClass) {
>   super(name);
>   this.myClass = myClass;
>}
> 
>   public MyClass getMyClass() {
> return myClass;
>   }
> 
> }
> 
> 
> Code for Intent broadcast:
> 
> MyClass myClass = new MyClass();
> Intent intent = new MyIntent("my_intent",myClass);
> sendBroadcast(intent);
> 
> Code for BroadcastReceiver.onReceive(Intent intent):
> 
> MyClass myClass = null;
> if(intent instanceof MyIntent) {
>// do something
> }
> else {
>   // probelm...
>}
> 
> When this application runs, I don't see the MyIntent received properly.
> In fact, 'intent instanceof MyIntent' seems to return false.
> 
> What is wrong?

Intents are designed to go between processes.

Let's suppose that you were broadcasting a MyIntent, and it was received
by another application, not written by you. Since it was not written by
you and runs in its own process, it does not have access to the MyIntent
class and therefore could not create an instance of that class.

The Intent system uses some form of serialization (perhaps Parcelable)
to transport Intents between processes. What your experiment
demonstrates is that the same mechanism is used even within the same
process.

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

Android 1.5 Programming Books: http://commonsware.com/books.html

--~--~-~--~~~---~--~~
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] Bitmaps and AppWidgets

2009-07-28 Thread nEx.Software

I know that it is best to keep the number of bitmaps to a minimum,
especially when working with app widgets, but I have a situation where
I cannot compile my graphics into the apk. That leaves me with passing
bitmaps.I am hoping to get some tips to manage this to minimize memory
and/or other issues. I haven't had any problems yet but want to make
sure I don't. I have only three small bitmaps. Thanks in advance for
any tips you can offer.
--~--~-~--~~~---~--~~
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] Stopping fling in Gallery

2009-07-28 Thread Brady

Hi everyone,

I'd like to handle a fling gesture in Gallery and stop the animation
when the next image is fully displayed on screen. I've successfully
captured the fling gesture in my GestureListener.

However when I try to call mGallery.clearAnimation() but it doesn't
stop the fling. I've looked at the Gallery.java source and it would be
great to have access to the mScroller to tell it to abort the
animation.

The only luck I've had so far is to dispatch two MotionEvents to the
Gallery view: a quick TouchDown and TouchUp which stops the animation.
There must be a better way :) I'd appreciate your help!

Thanks,
Brady
--~--~-~--~~~---~--~~
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] Extending the Intent class

2009-07-28 Thread R Ravichandran
I was experimenting with extending the Intent class but don't seem to make
it work properly. I am wondering if extending is even possible. Here is the
snippets.

Code for custom intent:

public class MyIntent extends Intent {

   private MyClass myClass;

   public MyIntent(String name, MyClass myClass) {
  super(name);
  this.myClass = myClass;
   }

  public MyClass getMyClass() {
return myClass;
  }

}


Code for Intent broadcast:

MyClass myClass = new MyClass();
Intent intent = new MyIntent("my_intent",myClass);
sendBroadcast(intent);

Code for BroadcastReceiver.onReceive(Intent intent):

MyClass myClass = null;
if(intent instanceof MyIntent) {
   // do something
}
else {
  // probelm...
   }

When this application runs, I don't see the MyIntent received properly. In
fact, 'intent instanceof MyIntent' seems to return false.

What is wrong?

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: Garbled extracted XML resources

2009-07-28 Thread Isaac Waller

That's what I suspected. Thanks!

On Jul 28, 3:32 pm, Romain Guy  wrote:
> You can't "fix" it because it's not an issue. XML files are compiled
> to binary XML for faster parsing on the device. It's the same data,
> but a different format.
>
> On Tue, Jul 28, 2009 at 3:27 PM, Isaac Waller wrote:
>
> > Hello,
> > When I extract a XML file from res/layout in an APK file it is garbled
> > up. How can I fix this?
> > Thanks,
> > Isaac
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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: Garbled extracted XML resources

2009-07-28 Thread dan raaka
thatz because it is compiled :)

use 'appt' to peek into the xml.
http://developer.android.com/guide/developing/tools/aapt.html

-Dan


On Tue, Jul 28, 2009 at 3:27 PM, Isaac Waller  wrote:

>
> Hello,
> When I extract a XML file from res/layout in an APK file it is garbled
> up. How can I fix this?
> Thanks,
> Isaac
> >
>

--~--~-~--~~~---~--~~
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: Garbled extracted XML resources

2009-07-28 Thread Romain Guy

You can't "fix" it because it's not an issue. XML files are compiled
to binary XML for faster parsing on the device. It's the same data,
but a different format.

On Tue, Jul 28, 2009 at 3:27 PM, Isaac Waller wrote:
>
> Hello,
> When I extract a XML file from res/layout in an APK file it is garbled
> up. How can I fix this?
> Thanks,
> Isaac
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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] Garbled extracted XML resources

2009-07-28 Thread Isaac Waller

Hello,
When I extract a XML file from res/layout in an APK file it is garbled
up. How can I fix this?
Thanks,
Isaac
--~--~-~--~~~---~--~~
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] Canvas.drawBitmapMesh()

2009-07-28 Thread Jason Proctor

i'm using Canvas.drawBitmapMesh() to warp images and the like but i'm 
not 100% sure what's going on with the transform. can someone point 
me to a primer on this? Googling for various things hasn't brought 
anything up.

thanks much


-- 
jason.software.particle

--~--~-~--~~~---~--~~
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: Anyway one have experience with INJECT_EVENT ?

2009-07-28 Thread Mark Murphy

flohier wrote:
> I'd like my app simulate key events.
> 
> There's a permission that suggests that it's possible to do so
> (INJECT_EVENT).
> 
> Does anyone has experience doing this ?

Use the Instrumentation framework as part of the Android JUnit
extensions in android.test to simulate key events for testing your own
applications.

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

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~-~--~~~---~--~~
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: QVGA screen resolution applications

2009-07-28 Thread skink



On Jul 27, 11:54 pm, Dianne Hackborn  wrote:
> As of today, the platform does not support QVGA devices, so you do not need
> to worry about that.  Whenever that situation may be changing, we will give
> advance warning to tell developers how to update to handle such screens, but
> clearly we will also need to do something about all of the existing
> applications that will break on them.  Though that something may be to just
> not deliver applications to QVGA devices until they have been updated to say
> that they support such a screen. ;)
>
>
>
>
>
> On Mon, Jul 27, 2009 at 12:58 PM, skink  wrote:
>
> > On Jul 27, 9:13 pm, Dianne Hackborn  wrote:
> > > QVGA is not supported in 1.5, so I wouldn't take any experience you have
> > > running the emulator like that to be a strong evidence of things working
> > how
> > > they would on an actual QVGA device that might appear some time in the
> > > future running something later than 1.5.
>
> > > So you could maybe use it to see if your layouts are behaving reasonably
> > for
> > > different screens, but even for that I would lean towards using an HVGA
> > > density screen that is slightly shorter (like QVGA is slightly shorter
> > than
> > > HVGA) than actually running in QVGA which throws density scaling into the
> > > mix.
>
> > > On Mon, Jul 27, 2009 at 11:00 AM, skink  wrote:
>
> > > > hi,
>
> > > > i have general question about Cupcake (or any other later relase): do
> > > > you, when writing apps, consider running them on qvga device?
>
> > > > although Dianne wrote here
> > > >http://groups.google.com/group/android-developers/msg/73ded3ba1fe7139e
> > > > that qvga is not supported i still see in Cupcake sdk qvga skins...
>
> > > > so my question is: should i really forget about qvga or not?
>
> > > > thanks
> > > > pskink
>
> > > --
> > > 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.
>
> > thank you Dianne for explanation.
>
> > the problem with qvga is that (as you said)  it is normally smaller
> > than hvga and for majority of apps they have to treat qvga differently
> > (eg dialer, calculator)
>
> > if the number of devices with qvga dpy would be for example 0.1% of
> > all android devices then my question is reasonable - does it pay off
> > to make app for non existing case?
>
> > as far i see there was only one device - kogan - with qvga - and it
> > was delayed mainly because of that small display
>
> > thanks
> > pskink
>
> --
> 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.

thank you Dianne for your exhaustive reply!

pskink







--~--~-~--~~~---~--~~
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: Launching a Service at the startup

2009-07-28 Thread R Ravichandran
Thanks for the idea. I think I will go with this keeping in mind the
concerns raised  by Diane in this email thread.



On Thu, Jul 23, 2009 at 11:48 AM, Mark Murphy wrote:

>
> > I have a need to create a background service that starts up during the
> > system boot up, and keeps running until the device is powered down. There
> > is
> > no UI or Activity associated with this. I created a class extending the
> > android Service class, and added the setttings to the AndroidManifest.xml
> > file. When I launch this service in the emulator, I don't see this
> > launched
> > at all. I have overrided almost all the methods in the Service class to
> > put
> > log statements, but none of them shows up.
>
> Use a BroadcastReceiver () for BOOT_COMPLETED, and have that
> BootReceiver start the service. AFAIK, Android will not directly start up
> a service for that Intent.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android App Developer Books: http://commonsware.com/books.html
>
>
>
> >
>

--~--~-~--~~~---~--~~
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 obtain resources with a given locale?

2009-07-28 Thread Jack Ha

There isn't a way to do that since it is for the end-user to control.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 28, 1:42 pm, efu  wrote:
> I have different text packaged into my app for different locale.
> The Resource.getString(int resid) method automatically returns me the
> string for the CURRENT locale of the phone.
> Is there a way I can specifically obtain resources while passing in a
> locale?
> For example, there isn't such method as:
> Resource.getString(int resId, Locale myLocale);
>
> 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] Anyway one have experience with INJECT_EVENT ?

2009-07-28 Thread flohier

I'd like my app simulate key events.

There's a permission that suggests that it's possible to do so
(INJECT_EVENT).

Does anyone has experience doing this ?

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: CameraPreview: Out of memory

2009-07-28 Thread Richard Schilling

So, I made sure I'm calling stopPreview followed by release().  And,
that's working fine.

But, I also wanted to share with people what other things I had to do
in order to integrate the camera surface view into my application.  I
create an activity that serves as the application's main screen.  It
allows the user to set some basic parameters/settings.  Then the user
does something to enable the camera view (e.g. click a button or taps
the screen - some event).  A new activity with the surfaceview that
shows the camera preview starts.  It then stops normally.  This second
activity's sole purpose is to display and hide the camera.

I use this second activity as opposed to trying to get the main
activity to turn off and on the camera preview on its own surface
view.  Seems to work much better  this way..


Cheers,

Richard Schilling


On Jul 19, 11:45 pm, elixir  wrote:
> I ran in to this issue too. If you release() yourCameraobject during
> surfaceDestroyed you will not get this exception. Using the
> CameraPreview.java as an example I now have:
> mCamera.stopPreview();
> mCamera.release();
> mCamera = null;
>
> It works great and the app can restart properly.
>
> On Jun 17, 8:23 am, Boshik  wrote:
>
> > Hi,
>
> > After a few weeks on market with my app (Ghosts AR) I found few
> > interesting issues coming from the users who installed the program. On
> > some of the devices my application fails with exception:
>
> > java.lang.RuntimeException:Out of memory
> >         at android.hardware.Camera.native_setup(Native Method)
> >         at android.hardware.Camera.(Camera.java:82)
> >         at android.hardware.Camera.open(Camera.java:64)
>
> > Strange that I'm personally never got it on my G1 (1.5 firmware).
>
> > Any ideas?
>
> > Thanks,
> > Alex
--~--~-~--~~~---~--~~
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] How to obtain resources with a given locale?

2009-07-28 Thread efu

I have different text packaged into my app for different locale.
The Resource.getString(int resid) method automatically returns me the
string for the CURRENT locale of the phone.
Is there a way I can specifically obtain resources while passing in a
locale?
For example, there isn't such method as:
Resource.getString(int resId, Locale myLocale);

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: is it possible to display a multi column list ?

2009-07-28 Thread Jack Ha

There's no built-in data grid component.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 28, 7:37 am, jerryfan2000  wrote:
> Hi,
> I am looking for a way to create a Microsoft data grid style list in
> android. But I am wondering is there any available built in component
> capable of doing this job such as listview? 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: CameraPreview: Out of memory

2009-07-28 Thread Richard Schilling

I am doing this as well.

I still get the out of memory errors.  Here's my setup -

1. I create a "main menu activity" that shows an introductory screen.
There's a big START button on that screen.  When pressed, it opens a
second activity with the camera preview SurfaceView on it.
2. When the second view is opened and closed repeatedly, I get out of
memory errors.

I'm handling this condition gracefully, retrying when it happens,
which at least causes the application to not crash and allows me to
manage application state.  But, it's just a workaround.

Any other thoughts as to why this happens?

Richard Schilling
Root Wireless

On Jul 19, 11:45 pm, elixir  wrote:
> I ran in to this issue too. If you release() yourCameraobject during
> surfaceDestroyed you will not get this exception. Using the
> CameraPreview.java as an example I now have:
> mCamera.stopPreview();
> mCamera.release();
> mCamera = null;
>
> It works great and the app can restart properly.
>
> On Jun 17, 8:23 am, Boshik  wrote:
>
> > Hi,
>
> > After a few weeks on market with my app (Ghosts AR) I found few
> > interesting issues coming from the users who installed the program. On
> > some of the devices my application fails with exception:
>
> > java.lang.RuntimeException:Out of memory
> >         at android.hardware.Camera.native_setup(Native Method)
> >         at android.hardware.Camera.(Camera.java:82)
> >         at android.hardware.Camera.open(Camera.java:64)
>
> > Strange that I'm personally never got it on my G1 (1.5 firmware).
>
> > Any ideas?
>
> > Thanks,
> > Alex
--~--~-~--~~~---~--~~
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: bad compass and sensor data (stuck data).

2009-07-28 Thread Richard Schilling

There are lots of reasons sensors, especially digital compasses fall
out of calibration.  It's just part of the behavior we have to deal
with.  What I would like to know is how the Google dev team for Sky
Map handles these conditions.

Cheers,

Richard


On Jul 23, 7:55 am, Rud  wrote:
> I was working on an application I've dubbed Calibrator. The main point
> of it is to turn the vibrator on when the sensor accuracy is not
> SENSOR_STATUS_ACCURACY_HIGH. That was easy to do.
>
> I'm adding some graphics so it can be used as "yet another compass"
> but with a totally different display than a compass.
>
> When I started working on it a couple hours ago my first download
> started the G1 vibrating. I juggled it until it stopped. Hurray! That
> part worked.
>
> But just a few minutes ago I downloaded a new version and it starts
> vibrating again. I wasn't even handling it. It was just propped up
> against a book so I could see the display. Very strange.
>
> Rudhttp://mysticlakesoftware.blogspot.com/
>
> On Jul 22, 3:00 pm, Richard Schilling 
> wrote:
>
> > Am researching a problem with compass and sensor values returned by
> > the phone.
> > I found this thread:
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > Which seems related, but it's old so I'm starting a new one.
>
> > I'm getting stuck values from both the compass and orientation
> > sensors.  It was fine yesterday, but today, I'm only getting values in
> > a limited range (e.g. compass headings from 240 - 290), no matter how
> > I orient the device.
>
> > What's even more odd is that the radians returned from the call to
> > SensorManager.getOrientation(), which returns radians, is giving
> > consistently out of range values.
>
> > Anyone see this same behavior, and if so, any fixes?
>
> > Here's some sample sensor data.  Format is heading, pitch, roll.  The
> > first set contains raw values, the second set contains values after
> > I've applied the orientation matrix generated by the Sensor Manager.
> > The third set contains values after I've smoothed the data with my own
> > algorithm.
>
> > 07-22 12:50:00.655: INFO/MainActivity.Sensor(367): 284.0, -21.0, 62.0
> > --> -7.545175, 17.423908, 21.598564 --> -7.545175, 17.423908,
> > 21.598564
> > 07-22 12:50:00.795: INFO/MainActivity.Sensor(367): 284.0, -21.0, 63.0
> > --> -7.3785577, 17.477526, 22.036232 --> -7.3785577, 17.477526,
> > 22.036232
> > 07-22 12:50:00.965: INFO/MainActivity.Sensor(367): 284.0, -20.0, 63.0
> > --> -7.628744, 17.423908, 21.598564 --> -7.628744, 17.423908,
> > 21.598564
> > 07-22 12:50:01.075: INFO/MainActivity.Sensor(367): 283.0, -20.0, 63.0
> > --> -7.596131, 17.311737, 21.458878 --> -7.596131, 17.311737,
> > 21.458878
> > 07-22 12:50:01.255: INFO/MainActivity.Sensor(367): 284.0, -20.0, 63.0
> > --> -7.4315057, 17.527277, 21.33686 --> -7.4315057, 17.527277,
> > 21.33686
> > 07-22 12:50:01.395: INFO/MainActivity.Sensor(367): 283.0, -20.0, 63.0
> > --> -7.847195, 17.804707, 20.847076 --> -7.847195, 17.804707,
> > 20.847076
> > 07-22 12:50:01.495: INFO/MainActivity.Sensor(367): 283.0, -20.0, 63.0
> > --> -8.424827, 17.770178, 21.15628 --> -8.424827, 17.770178, 21.15628
> > 07-22 12:50:01.705: INFO/MainActivity.Sensor(367): 282.0, -20.0, 63.0
> > --> -27.349527, -63.69813, 21.50518 --> -7.901176, 17.70072, 21.50518
> > 07-22 12:50:01.765: INFO/MainActivity.Sensor(367): 282.0, -20.0, 63.0
> > --> -28.0857, -63.69813, 21.50518 --> -7.901176, 17.70072, 21.50518
--~--~-~--~~~---~--~~
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: serialization is taking too long, what can I do in terms of the activity life cycle

2009-07-28 Thread Dan Bornstein

On Mon, Jul 27, 2009 at 9:24 PM, Dianne Hackborn  wrote:
> On Mon, Jul 27, 2009 at 8:35 PM, rukiman  wrote:
>> Yes I did mean Java serialization. Any reason why I can't use it
>> (apart from it being slow) ?
>
> Um...  it being super-crazy slow? :)

It's also very fragile, in that small innocuous-seeming changes to
your code could subtly break your serialization, and, worse, small
innocuous-seeming changes to the platform code could also break it. We
on the Android team of course endeavor not to break application code,
but we are not perfect by any stretch of the imagination, and
serialization is a known tricky area to get right.

Personally, I might use serialization when prototyping a system, but I
would be very reluctant to include its use in a finished product.

All that being said, if you happen to profile your serialization-using
code and find that the slowness is directly due to code in the core
library (classes in java.*, javax.*, or org.apache.*), I would
appreciate a bug report detailing your observations.

Cheers,

-dan

--~--~-~--~~~---~--~~
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: Press Back key programmatically

2009-07-28 Thread Marco Nelissen
What is it that you're trying to achieve?
If you want your activity to exit, call finish()
If you want onKeyDown to be called for some reason, just call onKeyDown()


On Tue, Jul 28, 2009 at 12:51 PM, Peacemoon  wrote:

>
> i want to trigger the onKeyDown listener programmatically but don't
> know which method i should call?
> Does anyone know?
> 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] Press Back key programmatically

2009-07-28 Thread Peacemoon

i want to trigger the onKeyDown listener programmatically but don't
know which method i should call?
Does anyone know?
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: Flipping / Rotating TextView (or layout) upside-down

2009-07-28 Thread jhoffman

Romain, the solution you gave me works perfectly for rotating the
layout upside-down. Unfortunately, I now have another problem! After
the layout has been rotated, the Views no longer respond to clicks and
long clicks. Inside of the RelativeLayout I am rotating, I have a
textView that I allow the user to edit when they perform a long press.
Is there any way for me to still allow for this functionality, while
presenting the textView upside-down?

If not, I guess I can just add an additional right-side-up button to
replace the onLongClickListener when in the upside-down view mode, but
this strikes me as something that probably should work. I feel like I
may be missing something simple again. Thanks in advance for any tips!

On Jul 26, 3:51 pm, Romain Guy  wrote:
> All you have to do is set the fillAfter property of the animation to true.
>
>
>
> On Fri, Jul 24, 2009 at 11:27 AM, Josh Hoffman wrote:
>
> > Hello, I'm trying to find a way torotateaView, or (more
> > conveniently) an entire layout, upside down and have it stay that way.
> > I found the rotation and animation classes in the SDK, and these come
> > close to what I want, but at the end of the animation I want my Layout
> > to stay rotated; repeating the animation or just flipping back right-
> > side-up doesn't help me with my app unfortunately.
>
> > The only thing I can think of so far would be to find the source code
> > for therotateclass, and override it such that the "...and then flip
> > it back around to be right-side-up" code never happens. I'm not sure
> > exactly where I'd find the originalrotatecode for reference if I
> > were to do something that extensive however.
>
> > I've found references online to the full android source - is that
> > basically what I'd be looking at downloading to be able to attempt
> > something like this? Am I missing a simple option on the rotation that
> > would let it just stay put after Irotateit? Any help would be very
> > much appreciated! Thank you!
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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] View Files on a remove server/PC

2009-07-28 Thread johnny

Is anyone aware of a way to view the directory structure and files on
a remote server or PC? Is there an existing app for this?

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] android.R.drawable resources, mutate(), and StateListDrawable question

2009-07-28 Thread Mike

I am trying to create a Drawable from
android.R.drawable.list_selector_background and mutate it so that I
may change some of the drawables states for the StateListDrawable that
is returned.  I would like to be able to change the default enabled
state drawable for the StateListDrawable to a different drawable but
keep the other states for this Drawable.

StateListDrawable stateListDrawable = (StateListDrawable)
getContext().getResources().getDrawable
(android.R.drawable.menuitem_background);

stateListDrawable = (StateListDrawable)
stateListDrawable.mutate();

I originally tried calling this from onSizeChanged, so that I can
generate a correctly sized background for my custom drawable, as well
as within my view's constructor.  Each time, I get a
NullPointerException from within the StateListDrawable.mutate method
(stack trace included below indicates down into the NinePatch that
must be used for one of the state drawables).

Do I need to wait until a later time to mutate the drawable, or
perhaps do more initialization of the drawable (tried setBounds but
with no success) before mutation?

07-28 11:46:12.312: ERROR/AndroidRuntime(1319):
java.lang.NullPointerException
07-28 11:46:12.312: ERROR/AndroidRuntime(1319): at
android.graphics.Paint.(Paint.java:202)
07-28 11:46:12.312: ERROR/AndroidRuntime(1319): at
android.graphics.NinePatch.(NinePatch.java:60)
07-28 11:46:12.312: ERROR/AndroidRuntime(1319): at
android.graphics.drawable.NinePatchDrawable$NinePatchState.
(NinePatchDrawable.java:226)
07-28 11:46:12.312: ERROR/AndroidRuntime(1319): at
android.graphics.drawable.NinePatchDrawable.mutate
(NinePatchDrawable.java:201)
07-28 11:46:12.312: ERROR/AndroidRuntime(1319): at
android.graphics.drawable.DrawableContainer.mutate
(DrawableContainer.java:237)
07-28 11:46:12.312: ERROR/AndroidRuntime(1319): at
android.graphics.drawable.StateListDrawable.mutate
(StateListDrawable.java:222)
...
...

Thanks much for any assistance,
Mike

--~--~-~--~~~---~--~~
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] Fonts of different families and sizes for widgets

2009-07-28 Thread rizwan

hi,

I m new to android dev ,can anyone share me the code snippet to play
with fonts of different families and sizes for TextView .I have seen
many tutorials based on Canvas. but no way to change fonts of Android
widgets .

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] how to disable android keybaord by default

2009-07-28 Thread Morris

Hi All:

The default settings of Android Keyboard is enabled(settings ->
local&text -> android keyboard -->check). I would like to disable
(unchecked) it by default.
I couldn't know how and where to modify the code to let it be
disabled
by default at my first time when I open the android system.


Thanks a lot


Best Regards,
Morris

--~--~-~--~~~---~--~~
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: Using SDk provided images

2009-07-28 Thread Dianne Hackborn
The issue isn't with the icons being renamed (they can't be, they are part
of the public API).  It is that you can count on different devices having
different looks for these icons, so unless your applications able to -only-
use the icons available in the system and none of its own, on an increasing
number of devices you are going to find that your menu icons end up a mix of
styles, some matching whatever the host device is using, and some in the
style you did yourself to match the default Android style.

The new documentation is news to me... looks like something I didn't get a
chance to review.:(  I'll make sure it gets fixed.

On Tue, Jul 28, 2009 at 6:03 AM, Mark Murphy wrote:

>
> String wrote:
> > On Jul 28, 12:22 pm, Mark Murphy  wrote:
> >
> >>> android.R.drawable.ic_menu_preferences.
> >> I suggested that once on this list, and a member of the core Android
> >> team pointed out that this is a really bad idea, since those resource
> >> values might change, or the underlying graphics might change.
> >
> > Funny, I got the idea from the Dev Guide, where it's given as a Best
> > Practice:
> http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#menuapx
>
> That *is* interesting. It was some of those very images that I was
> commenting about.
>
> Since the guidelines came out after my discussion on the topic, the
> guidelines should be correct.
>
> > Admittedly, that's just for a subset of the images (menu and status
> > bar icons), but hopefully that implies that these resources at least
> > aren't going to be renamed. Beyond what's on that list, I agree, it's
> > probably better to make a copy.
>
> Agreed.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
>
> >
>


-- 
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: display thumbnail images from sdcard

2009-07-28 Thread Jack Ha
Your code seems to work fine. Did you see any errors in the logcat
output? Did you specify the sdcard image?

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 28, 3:45 am, jaimin  wrote:
> hi.
>
> i can not view any image in my emulator screen
> can anyone please tell me where i am doing wrong in my code.
>
> this is my code
>
> 
> < manifest xmlns:android="http://schemas.android.com/apk/res/android";
>       package="image.Thumbnails" android:versionCode="1"
> android:versionName="1.0.0">
>       < uses-permission
> android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
>       < application android:icon="@drawable/icon"
> android:label="@string/app_name">
>             < activity android:name=".ImageThumbnailsActivity"
>                   android:label="@string/app_name">
>                   < intent-filter>
>                         < action
> android:name="android.intent.action.MAIN" />
>                         < category
> android:name="android.intent.category.LAUNCHER"/>
>                   
>             
>             < activity android:name=".ViewImage">
>                   < intent-filter>
>                         < action
> android:name="android.intent.action.VIEW" />
>                         < category
> android:name="android.intent.category.DEFAULT" />
>                   
>             
>       
> 
>
> package image.Thumbnails;
>
> import android.app.Activity;
> import android.content.Context;
> import android.content.Intent;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.MediaStore;
> import android.view.View;
> import android.view.ViewGroup;
> import android.widget.AdapterView;
> import android.widget.BaseAdapter;
> import android.widget.GridView;
> import android.widget.ImageView;
> import android.widget.AdapterView.OnItemClickListener;
>
> public class ImageThumbnailsActivity extends Activity {
>       /** Called when the activity is first created. */
>       private Cursor imagecursor, actualimagecursor;
>       private int image_column_index, actual_image_column_index;
>       GridView imagegrid;
>       private int count;
>       @Override
>       public void onCreate(Bundle savedInstanceState) {
>             super.onCreate(savedInstanceState);
>             setContentView(R.layout.main);
>             init_phone_image_grid();
>       }
>       private void init_phone_image_grid() {
>             String[] img = { MediaStore.Images.Thumbnails._ID };
>             imagecursor = managedQuery(
> MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, img, null,
> null, MediaStore.Images.Thumbnails.IMAGE_ID + "");
>             image_column_index = imagecursor
> .getColumnIndexOrThrow(MediaStore.Images.Thumbnails._ID);
>             count = imagecursor.getCount();
>             imagegrid = (GridView) findViewById(R.id.PhoneImageGrid);
>             imagegrid.setAdapter(new ImageAdapter(getApplicationContext
> ()));
>             imagegrid.setOnItemClickListener(new OnItemClickListener()
> {
>                   public void onItemClick(AdapterView parent, View v,
> int position, long id) {
>                         System.gc();
>                         String[] proj =
> { MediaStore.Images.Media.DATA };
>                         actualimagecursor = managedQuery(
> MediaStore.Images.Media.EXTERNAL_CONTENT_URI, proj,
> null, null, null);
>                         actual_image_column_index = actualimagecursor
> .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
>                         actualimagecursor.moveToPosition(position);
>                         String i = actualimagecursor.getString
> (actual_image_column_index);
>                         System.gc();
>                         Intent intent = new Intent
> (getApplicationContext(), ViewImage.class);
>                         intent.putExtra("filename", i);
>                         startActivity(intent);
>                   }
>             });
>       }
>
>       public class ImageAdapter extends BaseAdapter {
>             private             Context mContext;
>             public ImageAdapter(Context c) {
>                   mContext = c;
>             }
>             public int getCount() {
>                   return count;
>             }
>             public Object getItem(int position) {
>                   return position;
>             }
>             public long getItemId(int position) {
>                   return position;
>             }
>             public View getView(int position,View
> convertView,ViewGroup parent) {
>                   System.gc();
>                   ImageView i = new ImageView
> (mContext.getApplicationContext());
>                   if (convertView == null) {
>                         imagecursor.moveToPosition(position);

[android-developers] Re: Can't find file with OpenFile

2009-07-28 Thread Lorenz

ok Thanks..

On Jul 28, 6:42 pm, Marco Nelissen  wrote:
> On Tue, Jul 28, 2009 at 9:29 AM, Lorenz  wrote:
>
> > THanks Charlie, and thanks to Mark, now I've a new problem, I'm very
> > sorry but I'm a "beginners" of Android , I'm not able to read a file!!
>
> You might want to try the android-beginners group.
--~--~-~--~~~---~--~~
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: Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

2009-07-28 Thread alucard20004

Hi. Thank you for the fast reply.

build the Android source tree from where I got Launcher's source ?

I assume that can't be done in Windows, correct? according to this
message from http://source.android.com/download

:

"To build the Android source files, you will need to use Linux or Mac
OS. Building under Windows is not currently supported."

On Jul 28, 11:39 pm, Romain Guy  wrote:
> The source code works but cannot be compiled with the SDK. You need to
> build the Android source tree from where you got Launcher's source
> code and build Launcher in that tree.
>
--~--~-~--~~~---~--~~
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: Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

2009-07-28 Thread Dianne Hackborn
Also, you really need to take the version of the code that matches the
version of the platform it is to run on (i.e., cupcake for 1.5).  You'll
cause yourself lots of extra trouble trying to back-port a more recent
version of code to an older version of the platform; this is probably the
reason for all of the trouble with the search widget.

On Tue, Jul 28, 2009 at 9:39 AM, Romain Guy  wrote:

>
> The source code works but cannot be compiled with the SDK. You need to
> build the Android source tree from where you got Launcher's source
> code and build Launcher in that tree.
>
> On Tue, Jul 28, 2009 at 9:37 AM, alucard20004
> wrote:
> >
> > (Please excuse me for my imperfect English.)
> >
> > Hi. this is me:
> > - My skill  :  80% artist / 20% programming.
> > - Now 6 months into Android development.
> > - My goal is to use my art skills to customize the Launcher
> > application.
> >
> > Current situation: (please forgive this long story)
> > 1. I'm trying to build the Launcher application.
> > 2. took the source from  http://source.android.com/ using the Gitweb
> > web interface.
> > 3. downloaded the source snapshot, the one with the tag: "master")
> > 4. The project cannot be built. There are a lot of errors in the
> > source code. I try to fix the source.
> >
> > // Now let me brief what I found. I shouldn't include ALL code here,
> > right?
> >
> > *** 4.1 I removed a lot of code that I cannot fix. (eg. everything
> > about the search widget, some wallpaper/notification-related code and
> > many more)
> >
> > *** 4.2 I found these variables a lot: mScrollX, mScrollY, mLeft,
> > mRight, mTop, mBottom. They are being used in the source files but the
> > are NOT declared. So I declare them and try to give them value by
> > calling getSrollX, getLeft, getTop, ...
> >
> > 5. Finally the project can be built and run on the G1 device. But it
> > perform weird(as expected). the scrolling is not correct. "Snapping to
> > screen" does not work correctly as well.
> >
> > 6. I tried so hard messing around 'Workspace.java' file. Finally
> > things look a lot better now, better snapping and scrolling.
> >
> > 7. But trackball scrolling still produce weird behavior. There're
> > screen orientation change bugs too. The 'docked' desktop shortcuts and
> > widgets won't "snap to screen".
> >
> >
> > End of my story. I won't ask for a solution to each bugs.
> >
> > But since it took me 3 weeks now. I'd like to ask:
> >
> > Anyone succeed in building this Launcher app? Could you share your
> > knowledge on how to do it?
> >
> > I'm just an artist who want to publish my art skill. It'd be a
> > pleasure if anyone can point me to some error-free source code of this
> > Launcher app. So I can focus on my art.
> >
> > I do hate asking for a solution like this. But I do believe I gave it
> > enough (programming)effort as an artist.
> >
> > P.S. allow me to rant a bit: ... if the source code doesn't work then
> > why do they give us in the first place?
> > How can the public contribute back to google if we can not build the
> > project? I don't get how this "open-source/accept public contribution"
> > system work.  Am I missing something?
> >
> > Thank you in advance.
> >
> >
> > >
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> >
>


-- 
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: Can't find file with OpenFile

2009-07-28 Thread Marco Nelissen
On Tue, Jul 28, 2009 at 9:29 AM, Lorenz  wrote:

>
> THanks Charlie, and thanks to Mark, now I've a new problem, I'm very
> sorry but I'm a "beginners" of Android , I'm not able to read a file!!


You might want to try the android-beginners group.

--~--~-~--~~~---~--~~
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: IMplementing flood fill algorithm on the bitmap

2009-07-28 Thread karthikr


Hi Guys,

I have been trying very hard to get the flood fill algorithm
implemented.

But its taking a long time, can someone help me with some examples or
some guidelins for the same?

Regards,
R.Karthik

On Jul 23, 8:31 pm, karthikr  wrote:
> Hi Guys,
>
> Any help on the same?
>
> Thanks in advance.
>
> On Jul 22, 7:39 pm, karthikr  wrote:
>
>
>
> > Hi Guys,
>
> > Can some one help me out with implementingfloodfillalgorithm on the
> > bitmpap. I have tried various algorithms but either they seem to be
> > too slow or i get a stack over flow exception.
>
> > Regards,
> > R.Karthik- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

2009-07-28 Thread Romain Guy

The source code works but cannot be compiled with the SDK. You need to
build the Android source tree from where you got Launcher's source
code and build Launcher in that tree.

On Tue, Jul 28, 2009 at 9:37 AM, alucard20004 wrote:
>
> (Please excuse me for my imperfect English.)
>
> Hi. this is me:
> - My skill  :  80% artist / 20% programming.
> - Now 6 months into Android development.
> - My goal is to use my art skills to customize the Launcher
> application.
>
> Current situation: (please forgive this long story)
> 1. I'm trying to build the Launcher application.
> 2. took the source from  http://source.android.com/ using the Gitweb
> web interface.
> 3. downloaded the source snapshot, the one with the tag: "master")
> 4. The project cannot be built. There are a lot of errors in the
> source code. I try to fix the source.
>
> // Now let me brief what I found. I shouldn't include ALL code here,
> right?
>
> *** 4.1 I removed a lot of code that I cannot fix. (eg. everything
> about the search widget, some wallpaper/notification-related code and
> many more)
>
> *** 4.2 I found these variables a lot: mScrollX, mScrollY, mLeft,
> mRight, mTop, mBottom. They are being used in the source files but the
> are NOT declared. So I declare them and try to give them value by
> calling getSrollX, getLeft, getTop, ...
>
> 5. Finally the project can be built and run on the G1 device. But it
> perform weird(as expected). the scrolling is not correct. "Snapping to
> screen" does not work correctly as well.
>
> 6. I tried so hard messing around 'Workspace.java' file. Finally
> things look a lot better now, better snapping and scrolling.
>
> 7. But trackball scrolling still produce weird behavior. There're
> screen orientation change bugs too. The 'docked' desktop shortcuts and
> widgets won't "snap to screen".
>
>
> End of my story. I won't ask for a solution to each bugs.
>
> But since it took me 3 weeks now. I'd like to ask:
>
> Anyone succeed in building this Launcher app? Could you share your
> knowledge on how to do it?
>
> I'm just an artist who want to publish my art skill. It'd be a
> pleasure if anyone can point me to some error-free source code of this
> Launcher app. So I can focus on my art.
>
> I do hate asking for a solution like this. But I do believe I gave it
> enough (programming)effort as an artist.
>
> P.S. allow me to rant a bit: ... if the source code doesn't work then
> why do they give us in the first place?
> How can the public contribute back to google if we can not build the
> project? I don't get how this "open-source/accept public contribution"
> system work.  Am I missing something?
>
> Thank you in advance.
>
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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] Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

2009-07-28 Thread alucard20004

(Please excuse me for my imperfect English.)

Hi. this is me:
- My skill  :  80% artist / 20% programming.
- Now 6 months into Android development.
- My goal is to use my art skills to customize the Launcher
application.

Current situation: (please forgive this long story)
1. I'm trying to build the Launcher application.
2. took the source from  http://source.android.com/ using the Gitweb
web interface.
3. downloaded the source snapshot, the one with the tag: "master")
4. The project cannot be built. There are a lot of errors in the
source code. I try to fix the source.

// Now let me brief what I found. I shouldn't include ALL code here,
right?

*** 4.1 I removed a lot of code that I cannot fix. (eg. everything
about the search widget, some wallpaper/notification-related code and
many more)

*** 4.2 I found these variables a lot: mScrollX, mScrollY, mLeft,
mRight, mTop, mBottom. They are being used in the source files but the
are NOT declared. So I declare them and try to give them value by
calling getSrollX, getLeft, getTop, ...

5. Finally the project can be built and run on the G1 device. But it
perform weird(as expected). the scrolling is not correct. "Snapping to
screen" does not work correctly as well.

6. I tried so hard messing around 'Workspace.java' file. Finally
things look a lot better now, better snapping and scrolling.

7. But trackball scrolling still produce weird behavior. There're
screen orientation change bugs too. The 'docked' desktop shortcuts and
widgets won't "snap to screen".


End of my story. I won't ask for a solution to each bugs.

But since it took me 3 weeks now. I'd like to ask:

Anyone succeed in building this Launcher app? Could you share your
knowledge on how to do it?

I'm just an artist who want to publish my art skill. It'd be a
pleasure if anyone can point me to some error-free source code of this
Launcher app. So I can focus on my art.

I do hate asking for a solution like this. But I do believe I gave it
enough (programming)effort as an artist.

P.S. allow me to rant a bit: ... if the source code doesn't work then
why do they give us in the first place?
How can the public contribute back to google if we can not build the
project? I don't get how this "open-source/accept public contribution"
system work.  Am I missing something?

Thank you 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: TIME_TICK in an AppWidget?

2009-07-28 Thread nEx.Software

Jeff, is there some way to change the dial at runtime?

On Jul 13, 3:51 pm, Jeff Sharkey  wrote:
> > Is there any way to make thedialdynamic? That's a crucial part of
> > the app I'm trying to build.
>
> Yep, assign a drawable to "android:dial" just like the other
> attributes.  Here's the exact layout of the current clock widget:
>
> http://android.git.kernel.org/?p=platform/packages/apps/AlarmClock.gi...
>
> --
> Jeff Sharkey
> jshar...@android.com
--~--~-~--~~~---~--~~
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't find file with OpenFile

2009-07-28 Thread Lorenz

THanks Charlie, and thanks to Mark, now I've a new problem, I'm very
sorry but I'm a "beginners" of Android , I'm not able to read a file!!
First of all I've found the file in the File explorer, but I can see
only the icon and can't open it ,it seems also tha the file Data.dat
is empty, as a matter of fact the size showed in the File Exolorer is
"0" .
Second ,what is the right way to read  file from an Android
application?
like this: ??
/**/
Scanner s=new Scanner("Data.dat");
while (true) {
String l = s.nextLine(); }
/*/
Thanks a lot:)


On Jul 28, 3:44 pm, Charlie Collins  wrote:
> Window->Show View->Android->File Explorer
>
> Or you can use the DDMS file 
> explorer:http://developer.android.com/guide/developing/tools/ddms.html.
>
> Or you can use "adb shell" to connect and browse around manually (ls /
> data/data - for 
> example):http://developer.android.com/guide/developing/tools/adb.html.
>
> On Jul 27, 11:52 am, Lorenz  wrote:
>
>
>
> > Any idea?
>
> > On 27 Lug, 17:31, Lorenz  wrote:
>
> > > Sorry guys,
> > > but Ican'tfindthe folder /data..I use Eclipse and type: file->openFile 
> > > but i'm unable tofind/data/data/myfile..
>
> > > How can I do in eclipse tofindit?
>
> > > On 27 Lug, 17:19, Charlie Collins  wrote:
>
> > > > I didn't see Mark's reply before I posted mine, sorry.  As always,
> > > > Mark is on top of this group ;).
>
> > > > On Jul 27, 11:16 am, Charlie Collins 
> > > > wrote:
>
> > > > > Files created with Context.openFileOutput are in the "context" they
> > > > > were created in. 99% of the time you don't really care what that
> > > > > physical location is, you just retrieve the same file using the name
> > > > > with Context.openFileInput.
>
> > > > > If memory serves the actual physical location is /data/data/
> > > > > package_name/, or somewhere nearby. You can use the ADB or the Eclipse
> > > > > plugin file browser to browse around andfindthe exact location. The
> > > > > reason this is usually irrelevant though, is the permissions will only
> > > > > be set for the application that stored it, youcan'taccess it from
> > > > > other apps anyway (not if created with openFileOutput).
>
> > > > > On Jul 27, 10:51 am, Lorenz  wrote:
>
> > > > > > Hi,
> > > > > > I've a problem with method openFileOutput(), Ican'tfindthe file or
> > > > > > the directory where the file is stored..the code is:
> > > > > > import java.io.BufferedWriter;
> > > > > > import java.io.FileNotFoundException;
> > > > > > import java.io.FileOutputStream;
> > > > > > import java.io.IOException;
> > > > > > import java.io.OutputStreamWriter;
> > > > > > import java.io.PrintWriter;
>
> > > > > > import android.app.Activity;
> > > > > > import android.app.AlertDialog;
> > > > > > import android.content.Context;
> > > > > > import android.os.Bundle;
> > > > > > import java.io.*;
> > > > > > import java.net.*;
> > > > > > import java.util.NoSuchElementException;
> > > > > > import java.util.Scanner;
>
> > > > > > public class C extends Activity {
> > > > > >     /** Called when the activity is first created. */
> > > > > >         private PrintWriter savedpoint;
>
> > > > > >     @Override
> > > > > >     public void onCreate(Bundle savedInstanceState) {
> > > > > >         super.onCreate(savedInstanceState);
> > > > > >         setContentView(R.layout.main);
> > > > > >         try{
>
> > > > > >         savedpoint = new PrintWriter(openFileOutput
> > > > > > ("Data.dat",MODE_APPEND));
>
> > > > > >         for(int i=0;i<20;i++)
> > > > > >         {
> > > > > >                 savedpoint.println(-78.443221+"i"+" 
> > > > > > "+120.344423+"i");
>
> > > > > >         }
>
> > > > > >         }catch (FileNotFoundException e) {
> > > > > >                         e.printStackTrace();
> > > > > >                 }
> > > > > >     }
>
> > > > > > }
>
> > > > > > and the manifest is:
>
> > > > > > 
> > > > > > http://schemas.android.com/apk/res/android";
> > > > > >       package="prova.client"
> > > > > >       android:versionCode="1"
> > > > > >       android:versionName="1.0">
> > > > > >      > > > > > android:label="@string/
> > > > > > app_name">
> > > > > >          > > > > >                   android:label="@string/app_name">
> > > > > >             
> > > > > >                 
> > > > > >                  > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > >             
> > > > > >         
> > > > > >     
> > > > > >     
> > > > > > 
>
> > > > > > Any idea?where can Ifindthe directory where is stored the file?
> > > > > > 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.co

[android-developers] Re: Sqlite problem, urgent request!

2009-07-28 Thread Hong

has this LIMIT clause as argument been implemented yet?

thanks

On Thu, Apr 10, 2008 at 4:55 PM, Megha Joshi wrote:
>  Hi,
>
>  A future release of the SDK will provide a SQLiteDatabase.query() which
> takes LIMIT clause as an argument.
>  For now you can use the use execSQL() method directly and specify the LIMIT
> in that way.
>
>  Thanks,
>  Megha

--~--~-~--~~~---~--~~
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: MediaScannerConnection cant connect!

2009-07-28 Thread Marco Nelissen
On Tue, Jul 28, 2009 at 5:55 AM, SurtaX  wrote:

>
> I am trying to use MediaScannerConnection to update content provider
> of a newly downloaded MP3. However no matter what I do it does not
> seem to be able to connect. I have even put this chunk of code into
> onCreate and hardcoded to path of an existing file but still no dice.
>
>MediaScannerConnection scanner = new
> MediaScannerConnection(this,
> null);


You should give it a MediaScannerConnectionClient, not null.

   scanner.connect();
>while(!scanner.isConnected()){


This won't work, because you're blocking the main thread, so the
MediaScannerConnection callback can never happen.
You either need to poll by posting messages to your main loop, or use the
MediaScannerConnectionClient callback interface.

--~--~-~--~~~---~--~~
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: Managed Cursor, Providers, and Exceptions

2009-07-28 Thread Hong

I think this is your code here:

$MyCursorHelper$MyContentObserver.onChange(CursorTreeAdapter.java:503)

Looks like when you switching between activities and multiple data
population tasks are going on, they have conflicting Cursor state in
your onChange method.  You might want to use a static flag to
indicating the cursor operation state or something like that, or
synchronize the block.

On Tue, Jul 28, 2009 at 7:49 AM, Al Sutton wrote:
>
> I keep hitting something which makes me wonder if I'm doing something
> wrong.
>
> I have a few Activities, each of which has a ExpandableList and a
> ResourceCursorTreeAdapter which is given a cursor from
> Activity.managedQuery when the adapter is created in the onCreate
> method of the activity.
>
> There is also a service which updates the data that the
> ResourceCursorTreeAdapter has a Cursor to via the datas
> ContentProvider. When there is no data in the provider the service may
> download around 100 records and perform inserts. The ContentProvider
> does fire a notifyChange on each insert.
>
> If I run the application in the emulator and switch between the
> activities whilst the ContentProvider is populated I can sometimes
> trigger the exception at the end of this email. If I wait until
> everything has been populated I can't trigger the problem.
>
> The confusing part is that the stack trace doesn't doesn't reference
> my code in any way.
>
> Anyone have any suggestions?
>
> Al.
>
> -- Exception --
> E/AndroidRuntime(  297): java.lang.IllegalStateException: attempt to
> acquire a reference on a close SQLiteClosable
> E/AndroidRuntime(  297):        at
> android.database.sqlite.SQLiteClosable.acquireReference
> (SQLiteClosable.java:31)
> E/AndroidRuntime(  297):        at
> android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:109)
> E/AndroidRuntime(  297):        at
> android.database.sqlite.SQLiteQuery.requery(SQLiteQuery.java:130)
> E/AndroidRuntime(  297):        at
> android.database.sqlite.SQLiteCursor.requery(SQLiteCursor.java:389)
> E/AndroidRuntime(  297):        at
> android.database.CursorWrapper.requery(CursorWrapper.java:211)
> E/AndroidRuntime(  297):        at android.widget.CursorTreeAdapter
> $MyCursorHelper$MyContentObserver.onChange(CursorTreeAdapter.java:503)
> E/AndroidRuntime(  297):        at android.database.ContentObserver
> $NotificationRunnable.run(ContentObserver.java:43)
> E/AndroidRuntime(  297):        at android.os.Handler.handleCallback
> (Handler.java:542)
> E/AndroidRuntime(  297):        at android.os.Handler.dispatchMessage
> (Handler.java:86)
> E/AndroidRuntime(  297):        at android.os.Looper.loop(Looper.java:
> 123)
> E/AndroidRuntime(  297):        at android.app.ActivityThread.main
> (ActivityThread.java:3739)
> E/AndroidRuntime(  297):        at
> java.lang.reflect.Method.invokeNative(NativeMethod)
> E/AndroidRuntime(  297):        at java.lang.reflect.Method.invoke
> (Method.java:515)
> E/AndroidRuntime(  297):        at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:739)
> E/AndroidRuntime(  297):        at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> E/AndroidRuntime(  297):        at dalvik.system.NativeStart.main
> (Native Method)
>
>
> >
>

--~--~-~--~~~---~--~~
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: could i get email recieve notification from intents?

2009-07-28 Thread Jack Ha

No, you won't be able to receive new email arrival notification.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 28, 2:44 am, "android.vinny"  wrote:
> Hi
>
> could i get email recieve notification from the Intent...
> how can i get the email recieve notification...
> thanks a lot in advanc
--~--~-~--~~~---~--~~
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 avoid activity restart at keyboard open or close

2009-07-28 Thread Jack Ha

I don't believe you can avoid that. Your code just needs to handle it
correctly.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 28, 7:07 am, Sundar  wrote:
> Hi,
>
> I have fixed the activity screen orientation to portrait on
> AndroidManifest.xml file. When I open or close the keyboard the
> activity gets restarted. How to avoid this restart?
>
> 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] How to use Arial font with Webview

2009-07-28 Thread Peacemoon

I user a webview control  in my app to display some local data (load
loadData method) . Now i want to display some unicode characters and i
have used tag: something herer . But it
seems that webview can not find the Arial font because i can only see
UFO - Characters .
Do i have to copy arial.ttf to somewhere or how can i use this true-
type-font with webview?
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: Attach multiple images

2009-07-28 Thread quill

I don't think the current email application support this. Just my
opinion. :-)

On 7月28日, 下午7时31分, SrilankanKK  wrote:
> Hi
>
> i have put this question on several time on the Developer forum. But i
> didn't get any answer.
>
> I build an email application using intents. I can send a email with
> one image attachment. I tried to attach multiple images using "putExtra
> ()" method.But it still send only a single image if any of You know a
> solution plz leave  a reply
>
> 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: Attach multiple images

2009-07-28 Thread Jack Ha

As far as I know, it only supports one attachment as Intent.putExtra()
will replace any existing value for the given key.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.



On Jul 28, 4:31 am, SrilankanKK  wrote:
> Hi
>
> i have put this question on several time on the Developer forum. But i
> didn't get any answer.
>
> I build an email application using intents. I can send a email with
> one image attachment. I tried to attach multiple images using "putExtra
> ()" method.But it still send only a single image if any of You know a
> solution plz leave  a reply
>
> 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: update for syncML (client) and android

2009-07-28 Thread angelo

funambol do have a second release of the syncml client which did do
contacts,events and tasks but I couldnt get it to work with my
companys syncml server (the paths were incorrect).. Unfortunatly my
knowledge of ant and all the deployment tools aint good enough to
"rewrite" the urls and try..

:-(

I too want a syncml or caldav client for android..

On Jul 28, 9:20 am, tuergeist  wrote:
> ok. No updates on syncML :(
--~--~-~--~~~---~--~~
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: MediaScannerConnection cant connect!

2009-07-28 Thread quill

Use MediaScannerConnectionClient. If you don't know how to use, search
MediaScannerConnectionClient in this forum.

On 7月28日, 下午8时55分, SurtaX  wrote:
> I am trying to use MediaScannerConnection to update content provider
> of a newly downloaded MP3. However no matter what I do it does not
> seem to be able to connect. I have even put this chunk of code into
> onCreate and hardcoded to path of an existing file but still no dice.
>
> MediaScannerConnection scanner = new 
> MediaScannerConnection(this,
> null);
> scanner.connect();
> while(!scanner.isConnected()){
> try {
> Thread.sleep(1000);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> }
> scanner.scanFile("/sdcard/path/file.mp3", "audio/*");
> scanner.disconnect();
>
> It never exits the loop. If i do not put the loop in, it just force
> closes and complains that it is not yet connected. Any ideas?
--~--~-~--~~~---~--~~
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: Correct intent to launch gallery / video camera

2009-07-28 Thread Jack Ha

VideoCamera doesn't exist before Cupcake.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 28, 7:06 am, "admin.androidsl...@googlemail.com"
 wrote:
> My application has buttons to launch gallery and video camera apps but
> the below code only seems to work on phones with the standard Cupcake
> build :
>
> // For Gallery
> Intent intent = new Intent();
> intent.setClassName("com.android.camera",
>         "com.android.camera.GalleryPicker");
> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> mContext.startActivity(intent);
>
> // For Video Camera
> Intent intent = new Intent();
> intent.setClassName("com.android.camera",
>         "com.android.camera.VideoCamera");
> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> mContext.startActivity(intent);
>
> On rooted / non-cupcake phones, I get this error :
>
> android.content.ActivityNotFoundException: Unable to find explicit
> activity class {com.android.camera/com.android.camera.VideoCamera};
> have you declared this activity in your AndroidManifest.xml?
> at android.app.Instrumentation.checkStartActivityResult
> (Instrumentation.java:1480)
> at android.app.Instrumentation.execStartActivity(Instrumentation.java:
> 1454)
> at android.app.Activity.startActivityForResult(Activity.java:2656)
> at android.app.Activity.startActivity(Activity.java:2700)
>
> Any ideas how to fix for these other phones?
--~--~-~--~~~---~--~~
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 simulate a TrackBall Event in emulator?

2009-07-28 Thread Nightwolf

Use event.getX() and event.getY(). Values are > 0 for one direction
and < 0 for another.

On Jul 27, 10:48 pm, hap 497  wrote:
> On Sat, Jul 25, 2009 at 2:49 AM, lucky4me  wrote:
>
> > See "Controlling the Emulator"
>
> >http://developer.android.com/guide/developing/tools/emulator.html#con...
>
> > Toggle trackball mode - F6, then you can use mouse as trackball
>
> Thank you. But how can I tell if the track ball event is moving left or
> moving right?
>
> I tried called "event.getEdgeFlags()" in the motion event, it always return
> 0.
>
> Thank you for any tip.
>
>
>
>
>
> > On Jul 25, 11:45 am, hap 497  wrote:
> > > i don't understand the answer. How can I do that on the emulator
> > manually?
> > > E.g. I have implemented dispatchTrackBallEvent() of my View. What can i
> > do
> > > to in to emulator so that function get called during debugging?
>
> > > On Fri, Jul 24, 2009 at 4:09 PM, Fred Grott(shareme)
> > > wrote:
>
> > > > Mock testing see apiDemos for details..all the cool kids are doing it
>
> > > > Fred Grott
> > > >http://mobilebytes.wordpress.com
>
> > > > On Jul 24, 1:48 pm, hap 497  wrote:
> > > > > Hi,
> > > > > Can you please tell me how can I simulate a TrackBall Event in
> > emulator?
> > > > > I just the left/right black button in the middle of the emulator, but
> > i
> > > > set
> > > > > break point in dispatchKeyEvent() and dispatchTrackBallEvent() of the
> > > > > View.java.
> > > > > But only dispatchKeyEvent() breakpoint get activated.  I want to see
> > > > > 'dispatchTrackBallEvent' get breaks.
>
> > > > > Can you please tell me how to simulate a TrackBall Event?
>
> > > > > Thank you.
--~--~-~--~~~---~--~~
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: Unicode characters via resource element

2009-07-28 Thread Jason Van Anden
Is no one biting because I used "no avail" twice?

On Mon, Jul 27, 2009 at 1:21 PM, Jason Van Anden
wrote:

> I posted this in beginner to no avail.  Perhaps this is one for developers
> ...
>
> I want to use unicode characters in a toast.  I can do this via code.
>
> I am not having any luck associating this as a resource element.
>
> Is this impossible or am I using the wrong syntax?
>
> This is what I have tried to no avail:
>
> No Title \u2639
>
> If you know the answer - pls correct!
>
> Thank You,
> Jason Van Anden

--~--~-~--~~~---~--~~
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] How to Set Dialog Orientation

2009-07-28 Thread doubleslash

My underlying actitvity is set to landscape orientation, but when I
show the dialog, I'd like it to be in portrait (vertical) orientation.
I set the orientation in my layout to be vertical but that didn't
help. The Dialog class doesn't have a method for such a thing.

Can someone 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] is it possible to display a multi column list ?

2009-07-28 Thread jerryfan2000

Hi,
I am looking for a way to create a Microsoft data grid style list in
android. But I am wondering is there any available built in component
capable of doing this job such as listview? 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: Log with Production App

2009-07-28 Thread mjc147

I know its not the same, but is this a more recommended approach than
to wrap each log with a call to Log.isLoggable()?

I know this would not have the benefits (like app size) you mentioned,
but, since I've had problems with the isLoggable() method anyway, it
seems like a simple and effective approach to go with.
--~--~-~--~~~---~--~~
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] how to avoid activity restart at keyboard open or close

2009-07-28 Thread Sundar

Hi,

I have fixed the activity screen orientation to portrait on
AndroidManifest.xml file. When I open or close the keyboard the
activity gets restarted. How to avoid this restart?

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] Correct intent to launch gallery / video camera

2009-07-28 Thread admin.androidsl...@googlemail.com

My application has buttons to launch gallery and video camera apps but
the below code only seems to work on phones with the standard Cupcake
build :

// For Gallery
Intent intent = new Intent();
intent.setClassName("com.android.camera",
"com.android.camera.GalleryPicker");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);

// For Video Camera
Intent intent = new Intent();
intent.setClassName("com.android.camera",
"com.android.camera.VideoCamera");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);

On rooted / non-cupcake phones, I get this error :

android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.android.camera/com.android.camera.VideoCamera};
have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult
(Instrumentation.java:1480)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:
1454)
at android.app.Activity.startActivityForResult(Activity.java:2656)
at android.app.Activity.startActivity(Activity.java:2700)

Any ideas how to fix for these other phones?
--~--~-~--~~~---~--~~
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: Any updates on ADC-2?

2009-07-28 Thread Zsolt Váradi

On Tue, Jul 28, 2009 at 3:42 PM, Maps.Huge.Info (Maps API
Guru) wrote:
> There is no ambiguity, the SDK is required.
>
> -Jonn Coryat

It's not like you had any other choice for application development.
But the original question was about using the NDK with the SDK, and
it's still not answered.

Zsolt

--~--~-~--~~~---~--~~
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 all table names in SQL database

2009-07-28 Thread Yusuf T. Mobile

It depends if you want all the tables programmatically or if you can
do it in the command line. Sujay's answer was from the command line.
So starting a few steps back, you type:


> adb shell
# cd /data/data
# cd com.android.providers.contacts
# cd databases
# sqlite3 contacts.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .tables


That will get you all the tables in the contacts database, for
example. If that doesn't answer your question, let me know more about
what you need and I'll try to help.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Jul 28, 12:59 am, "guishenl...@gmail.com" 
wrote:
> Thank you for answering!
> But I didn't catch your real meaning.
> Could you give me some exact code to show your point?
>
> On 7月28日, 下午3时25分, Sujay Krishna Suresh 
> wrote:
>
>
>
> > .tables is the sql instruction to retrieve all the tables in the db.
> > try executing it asa sql statement with rawQuery.
>
> > On Tue, Jul 28, 2009 at 12:45 PM, guishenl...@gmail.com <
>
> > guishenl...@gmail.com> wrote:
>
> > > Hi all,
> > >      I'm working at an application about SQLite database. I have
> > > inserted some table in an database file.  But I don't know how to get
> > > all the tables' name using code. For example, I defined a database
> > > object
> > > SQLiteDatabase dataBase = SQLiteDatabase.openOrCreateDatabase(
> > >                        getDatabasePath("Mydatabase"), null);
> > > and how can I get all the table names stored in the database file
> > > "Mydatabase". Counld anyone give me some code to help me?
> > > Thank you in advance!
>
> > --
> > Regards,
> > Sujay
> > Joan 
> > Crawford
> > - "I, Joan Crawford, I believe in the dollar. Everything I earn, I
> > spend."
--~--~-~--~~~---~--~~
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't find file with OpenFile

2009-07-28 Thread Charlie Collins

Window->Show View->Android->File Explorer

Or you can use the DDMS file explorer: 
http://developer.android.com/guide/developing/tools/ddms.html.

Or you can use "adb shell" to connect and browse around manually (ls /
data/data - for example): 
http://developer.android.com/guide/developing/tools/adb.html.

On Jul 27, 11:52 am, Lorenz  wrote:
> Any idea?
>
> On 27 Lug, 17:31, Lorenz  wrote:
>
> > Sorry guys,
> > but Ican'tfindthe folder /data..I use Eclipse and type: file->openFile but 
> > i'm unable tofind/data/data/myfile..
>
> > How can I do in eclipse tofindit?
>
> > On 27 Lug, 17:19, Charlie Collins  wrote:
>
> > > I didn't see Mark's reply before I posted mine, sorry.  As always,
> > > Mark is on top of this group ;).
>
> > > On Jul 27, 11:16 am, Charlie Collins 
> > > wrote:
>
> > > > Files created with Context.openFileOutput are in the "context" they
> > > > were created in. 99% of the time you don't really care what that
> > > > physical location is, you just retrieve the same file using the name
> > > > with Context.openFileInput.
>
> > > > If memory serves the actual physical location is /data/data/
> > > > package_name/, or somewhere nearby. You can use the ADB or the Eclipse
> > > > plugin file browser to browse around andfindthe exact location. The
> > > > reason this is usually irrelevant though, is the permissions will only
> > > > be set for the application that stored it, youcan'taccess it from
> > > > other apps anyway (not if created with openFileOutput).
>
> > > > On Jul 27, 10:51 am, Lorenz  wrote:
>
> > > > > Hi,
> > > > > I've a problem with method openFileOutput(), Ican'tfindthe file or
> > > > > the directory where the file is stored..the code is:
> > > > > import java.io.BufferedWriter;
> > > > > import java.io.FileNotFoundException;
> > > > > import java.io.FileOutputStream;
> > > > > import java.io.IOException;
> > > > > import java.io.OutputStreamWriter;
> > > > > import java.io.PrintWriter;
>
> > > > > import android.app.Activity;
> > > > > import android.app.AlertDialog;
> > > > > import android.content.Context;
> > > > > import android.os.Bundle;
> > > > > import java.io.*;
> > > > > import java.net.*;
> > > > > import java.util.NoSuchElementException;
> > > > > import java.util.Scanner;
>
> > > > > public class C extends Activity {
> > > > >     /** Called when the activity is first created. */
> > > > >         private PrintWriter savedpoint;
>
> > > > >     @Override
> > > > >     public void onCreate(Bundle savedInstanceState) {
> > > > >         super.onCreate(savedInstanceState);
> > > > >         setContentView(R.layout.main);
> > > > >         try{
>
> > > > >         savedpoint = new PrintWriter(openFileOutput
> > > > > ("Data.dat",MODE_APPEND));
>
> > > > >         for(int i=0;i<20;i++)
> > > > >         {
> > > > >                 savedpoint.println(-78.443221+"i"+" "+120.344423+"i");
>
> > > > >         }
>
> > > > >         }catch (FileNotFoundException e) {
> > > > >                         e.printStackTrace();
> > > > >                 }
> > > > >     }
>
> > > > > }
>
> > > > > and the manifest is:
>
> > > > > 
> > > > > http://schemas.android.com/apk/res/android";
> > > > >       package="prova.client"
> > > > >       android:versionCode="1"
> > > > >       android:versionName="1.0">
> > > > >     
> > > > >          > > > >                   android:label="@string/app_name">
> > > > >             
> > > > >                 
> > > > >                  > > > > android:name="android.intent.category.LAUNCHER" />
> > > > >             
> > > > >         
> > > > >     
> > > > >     
> > > > > 
>
> > > > > Any idea?where can Ifindthe directory where is stored the file?
> > > > > 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: Any updates on ADC-2?

2009-07-28 Thread Maps.Huge.Info (Maps API Guru)

The terms are fairly plain and obvious if you read them:

"a. SUBMISSION OF ENTRIES: To qualify for a Prize, an "Entry" to the
Challenge consists of an original application that is written using a
version of the Android Software Development Kit ("SDK") (available at
http://developer.android.com) that validly executes on Android version
1.5."

There is no ambiguity, the SDK is required.

-Jonn Coryat
--~--~-~--~~~---~--~~
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] Facebook api for Android

2009-07-28 Thread luyen

Our member has a question about Facebook api for Android, can some one
give us a help:

Quote:
hi Guyz,
I m developing an application in which on a single click of button
will redirect me to my facebook account where i can upload my
personalised images .
I m finding it difficult to do it as still api of Facebook is not
available
Does any1 hv idea abt it
Plz give me suggestions regarding the same

Thank u all ...


Link: http://androidcore.com/android-community.html?func=view&catid=22&id=34#34
--~--~-~--~~~---~--~~
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 can i access the home screen to show gif anim there..?

2009-07-28 Thread rollbak

Hello,

You need to extend a class from *BroadcastReceiver* and then add it to
a reciever tag in your AndroidManifest.xml

public class SMSReceiver extends BroadcastReceiver{...}







And then instead of making a toast or a notification, you should
launch your activity (which must have transparent style background).

regards,

Lucas

On Jul 28, 6:08 am, Desu Vinod Kumar  wrote:
> HI
> exactly i need to show like this
>
>
>
> On Tue, Jul 28, 2009 at 1:14 PM, Romain Guy  wrote:
>
> > You cannot do this.
>
> > On Tue, Jul 28, 2009 at 12:44 AM, android.vinny
> > wrote:
>
> > > HI
>
> > > how can i access the Home screen .i need to show the gif animation
> > > there how can i show that gif image there
> > > how can i do it .
>
> > > thanks a lot in advance.
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them
>
> --
> Regards
> ---
> Desu Vinod Kumar
> vinny.s...@gmail.com
> 09176147148
>
>  emo.PNG
> 186KViewDownload
--~--~-~--~~~---~--~~
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 can i access the home screen to show gif anim there..?

2009-07-28 Thread Desu Vinod Kumar
Hi
thanks for ur response when we close the app also it should animate upto
when we dissmiss that gif image upto that it should animate it possible...

On Tue, Jul 28, 2009 at 6:38 PM, rollbak  wrote:

>
> Hello,
>
> You need to extend a class from *BroadcastReceiver* and then add it to
> a reciever tag in your AndroidManifest.xml
>
> public class SMSReceiver extends BroadcastReceiver{...}
>
> 
>
> android:name="android.provider.Telephony.SMS_RECEIVED"/>
>
> 
>
> And then instead of making a toast or a notification, you should
> launch your activity (which must have transparent style background).
>
> regards,
>
> Lucas
>
> On Jul 28, 6:08 am, Desu Vinod Kumar  wrote:
> > HI
> > exactly i need to show like this
> >
> >
> >
> > On Tue, Jul 28, 2009 at 1:14 PM, Romain Guy 
> wrote:
> >
> > > You cannot do this.
> >
> > > On Tue, Jul 28, 2009 at 12:44 AM, android.vinny
> > > wrote:
> >
> > > > HI
> >
> > > > how can i access the Home screen .i need to show the gif
> animation
> > > > there how can i show that gif image there
> > > > how can i do it .
> >
> > > > thanks a lot in advance.
> >
> > > --
> > > Romain Guy
> > > Android framework engineer
> > > romain...@android.com
> >
> > > Note: please don't send private questions to me, as I don't have time
> > > to provide private support.  All such questions should be posted on
> > > public forums, where I and others can see and answer them
> >
> > --
> > Regards
> > ---
> > Desu Vinod Kumar
> > vinny.s...@gmail.com
> > 09176147148
> >
> >  emo.PNG
> > 186KViewDownload
> >
>


-- 
Regards
---
Desu Vinod Kumar
vinny.s...@gmail.com
09176147148

--~--~-~--~~~---~--~~
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: Any updates on ADC-2?

2009-07-28 Thread jmhermelin

May we have an official answer from google ?

On 15 juil, 18:20, "Maps.Huge.Info (Maps API Guru)" 
wrote:
> Looks like the app has to be written with the SDK. See the official
> terms and conditions for the exact wording.
>
> My application works only in the US, I wonder if that will doom it's
> possibilities? Someone who judges the app in Europe will rate it a fat
> zero.
>
> -John Coryat
--~--~-~--~~~---~--~~
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: Using SDk provided images

2009-07-28 Thread Mark Murphy

String wrote:
> On Jul 28, 12:22 pm, Mark Murphy  wrote:
> 
>>> android.R.drawable.ic_menu_preferences.
>> I suggested that once on this list, and a member of the core Android
>> team pointed out that this is a really bad idea, since those resource
>> values might change, or the underlying graphics might change.
> 
> Funny, I got the idea from the Dev Guide, where it's given as a Best
> Practice: 
> http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#menuapx

That *is* interesting. It was some of those very images that I was
commenting about.

Since the guidelines came out after my discussion on the topic, the
guidelines should be correct.

> Admittedly, that's just for a subset of the images (menu and status
> bar icons), but hopefully that implies that these resources at least
> aren't going to be renamed. Beyond what's on that list, I agree, it's
> probably better to make a copy.

Agreed.

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

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~-~--~~~---~--~~
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] APNG supported

2009-07-28 Thread Fred Grott(shareme)

For  those in the dark APNG is animated PNG graphics files.

I was wondering if Android SDK supported APNG files..

Fred Grott
http://mobilebytes.wordpess.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >