[android-beginners] How can i display message in thai language ?

2009-06-02 Thread Freshman

Hi guys,

In my application i need to display some messages in thai language.
can anyone suggest me how can i display thai language in my
application ?

any info/suggestion would be greatly appriciated.

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



[android-beginners] Re: Android marketplace pricing currency

2009-06-02 Thread Sean Hodges
The short answer to both of those is no. The market is still fairly
limited with regards to i18n and currency conversion.

This may change in the future, I suggest you raise both questions
(separately) on the market forums to try and help this process.

On Jun 2, 2009 12:26 AM, myandroid anu...@gmail.com wrote:


Hi,

Is it possible for the end-user to control the following for Android
market place app:
- Ability to set the language of the catalog (which I believe can be
done with Settings App-Locale but I see this hardwired to English on
the device)
- Ability to set the currency for showing apps on the marketplace
catalog (i.e say I am a Chinese in France, I maybe want to see my
catalog in Chinese with prices in Euro, but maybe I bought the phone
in the US)

Thanks!
An

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



[android-beginners] Game Shooting A Object

2009-06-02 Thread vinny.s...@gmail.com

Hi every one

I'm stater in game Development.
Can any Body Helps Me how to develop an application like  shooting An
object

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



[android-beginners] Re: Best way to add 100.000 words to database

2009-06-02 Thread kaloer

It is a list of english words, that shall be used as a spell checker.
I have tried to use a txt file and put the data to a List, but this is
too slow because it needs to read all the data. But Maybe I should
create a table in the database for each letter (and every second, if
necessary) , so that it doesn't need to read all the data.

On 1 Jun., 18:28, Raphael r...@android.com wrote:
 This begs to a different kind of question: do you really need to store
 this data in an sqlite3 database?

 There are other alternatives, it all depends on your data and how you
 want to use it so you might want to help us here.

 Example: you mention words, just not any string, so your data might
 be a dictionary.
 Then in this case you could simply use a binary file, in your own
 format, packaged in your project/res/raw directory, which you can
 retrieve 
 withhttp://d.android.com/reference/android/content/res/Resources.html#ope...)
 -- the file is added uncompressed to your APK but the APK itself is a
 zip file, which is why you get an input stream. That also means if you
 need direct random access you'll probably want to write it somewhere,
 such as on the sdcard.
 Make sure to write an index for fast lookup, for example the offset of
 words starting by A, by B, etc. You will probably need to experiment a
 bit to get a tradeof between simplicity of the index and lookup time,
 e.g. a tree will have faster lookup times but is more tricky to get
 right, etc.

 R/

 On Sun, May 31, 2009 at 6:11 AM, kaloer mkal...@gmail.com wrote:

  Okay, I'll look at it..
  Thank you very much for your help

  On 31 Maj, 14:59, Mark Murphy mmur...@commonsware.com wrote:
  kaloer wrote:
   Well, of course I shouldn't. This only adds one line when it's called.
   Should I call it before the while-loop begins?

  You're right -- I skimmed it too quickly.

  It's actually a bit more complicated than that. The flow is:

  begin-transaction
  insert 100 rows worth of stuff
  set-transaction-successful

  and do that whole block 1000 times for 100,000 words.

  So you're probably going to wind up with something like:

  while ((line=input.readLine())!=null) {
      DB.beginTransaction();
      DB.execSQL(...);

      for (int i=0;i99  (line=input.readLine())!=null; i++) {
          DB.execSQL(...);
      }

      DB.setTransactionSuccessful();

  }

  plus an appropriate try/catch in there.

  However, bear in mind that this will still take a very long time, so
  unless you're trying this for educational purposes, I'd move along to
  one of the other options.

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

  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Accessing android DB(Created by Android media app) using Native code.

2009-06-02 Thread Mark Murphy

CodePupil wrote:
 I need to access media's(which is stored on SDCard) metadata which
 android keeps in database file created by its media app. Android keeps
 separate db file for each sdcard at the location /data/data/
 com.android.providers.media/databases by associating sdcard id to
 filenames e.g. external-sdcard-id.db

AFAIK, that is not part of the public API and therefore may change in
subsequent releases of Android.

 Now I need to read this db file but due to permissions(rw-rw) I
 dont be able to do that. If I excecute Native code as a root then
 Obviously I'm able to access it but when I trigger my Native code
 using some UI It's not able to access this db.

Questions regarding native code do not belong on this list, since this
list is for SDK development and native code is not part of SDK
development at present.

Please visit http://source.android.com/discuss and find the list that
fits your situation.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-beginners] Re: Best way to add 100.000 words to database

2009-06-02 Thread kaloer

Btw, this is how the app works:

There is a text view and a button. The user will enter a single word,
and when he presses the button, the application checks whether this is
actually a real word.

On 2 Jun., 09:27, kaloer mkal...@gmail.com wrote:
 It is a list of english words, that shall be used as a spell checker.
 I have tried to use a txt file and put the data to a List, but this is
 too slow because it needs to read all the data. But Maybe I should
 create a table in the database for each letter (and every second, if
 necessary) , so that it doesn't need to read all the data.

 On 1 Jun., 18:28, Raphael r...@android.com wrote:

  This begs to a different kind of question: do you really need to store
  this data in an sqlite3 database?

  There are other alternatives, it all depends on your data and how you
  want to use it so you might want to help us here.

  Example: you mention words, just not any string, so your data might
  be a dictionary.
  Then in this case you could simply use a binary file, in your own
  format, packaged in your project/res/raw directory, which you can
  retrieve 
  withhttp://d.android.com/reference/android/content/res/Resources.html#ope...)
  -- the file is added uncompressed to your APK but the APK itself is a
  zip file, which is why you get an input stream. That also means if you
  need direct random access you'll probably want to write it somewhere,
  such as on the sdcard.
  Make sure to write an index for fast lookup, for example the offset of
  words starting by A, by B, etc. You will probably need to experiment a
  bit to get a tradeof between simplicity of the index and lookup time,
  e.g. a tree will have faster lookup times but is more tricky to get
  right, etc.

  R/

  On Sun, May 31, 2009 at 6:11 AM, kaloer mkal...@gmail.com wrote:

   Okay, I'll look at it..
   Thank you very much for your help

   On 31 Maj, 14:59, Mark Murphy mmur...@commonsware.com wrote:
   kaloer wrote:
Well, of course I shouldn't. This only adds one line when it's called.
Should I call it before the while-loop begins?

   You're right -- I skimmed it too quickly.

   It's actually a bit more complicated than that. The flow is:

   begin-transaction
   insert 100 rows worth of stuff
   set-transaction-successful

   and do that whole block 1000 times for 100,000 words.

   So you're probably going to wind up with something like:

   while ((line=input.readLine())!=null) {
       DB.beginTransaction();
       DB.execSQL(...);

       for (int i=0;i99  (line=input.readLine())!=null; i++) {
           DB.execSQL(...);
       }

       DB.setTransactionSuccessful();

   }

   plus an appropriate try/catch in there.

   However, bear in mind that this will still take a very long time, so
   unless you're trying this for educational purposes, I'd move along to
   one of the other options.

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

   _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Audio record and ply the recorded audio..

2009-06-02 Thread vineeth Desai
Hi All,
 Could you please let me know how to do the audio record in android emulator
and play the same recorded audio. Could you please help me in proceeding in
development. I tried with MediaPlayer API's also. Its not working.




Warm Regards,
Vineeth.

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



[android-beginners] Re: Best way to add 100.000 words to database

2009-06-02 Thread Mark Murphy

kaloer wrote:
 Btw, this is how the app works:
 
 There is a text view and a button. The user will enter a single word,
 and when he presses the button, the application checks whether this is
 actually a real word.

You might wish to do some research on how spell checkers and
dictionaries are traditionally implemented. I would be rather surprised
if many used a SQL database.

For example:

http://jaspell.sourceforge.net/

They use ternary search trees for storing their dictionary. Moreover,
they have an implementation of such trees in Java under a BSD license.

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

Android App Developer Books: http://commonsware.com/books.html

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



[android-beginners] Re: Screen pointer

2009-06-02 Thread Rafa Perfeito
Hamy,
Thanks, that was the type answer i was looking for...

Pretty ingenious, too.

Cheers

On Fri, May 29, 2009 at 1:44 PM, Hamy hamilt...@gmail.com wrote:


 Rafa,

 Just a thought - I have seen iPhone apps that use a little trick to
 help out with this:

 Have the user place his finger on the screen at some location, say 0,0
 for example purposes.
 Draw a crosshair at like 0,30, and actually use that as the drawing
 location.

 The point is that your finger is no longer in the way of where you are
 drawing, so it becomes slightly easier to draw in tight corners.

 HTH
 Hamy

 On May 28, 5:58 am, Rafa Perfeito rafa.perfe...@gmail.com wrote:
  Hey,
  Nobody likes the finger usability of Android more than me... But what if
  want some precisioning pointing? Some drawing in small areas, for
 example?
  Do you guys know any pointer or pen that works with android? Does it
 matter
  what we use to touch the screen?
 
  Give me your thoughts on this, please.
  Thanks
  Cheers
 
  --
  Cumprimentos,
 
  Hugo Rafael Augusto
 



-- 
Cumprimentos,

Hugo Rafael Augusto

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



[android-beginners] Re: Is there any official way to upgrade Android OS?

2009-06-02 Thread Mike Wolfson

To be clear, I don't have a dog in this race (I don't work for
TMobile, or any other company related to this).

Here is a link to the TOS, with specific language restricting
modifying devices:

(http://www.t-mobile.com/Templates/Popup.aspx?
PAsset=Ftr_Ftr_TermsAndConditionsprint=true)
16. * Misuse of Service or Device. You agree not to misuse the Service
or any Device, including: (c) tampering with or modifying your Device;

Bottom line, I stand by my substantiated statement that flashing a new
OS (which would require bypassing a locked bootloader) would not sit
well with TMobile if you bricked your phone (and directly violates the
TOS).

Likely you would be able to play it off (Gee, I don't know what
happened, I accepted the OTA update, and the phone never worked after
that).  But this would not be an officially supported upgrade (which
is what the original poster asked) even if it worked.

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



[android-beginners] Bug in Emulator Data and Time settings?

2009-06-02 Thread Lewis Z.

It seems to me that the time zone settings are messed up. For example,
Central Time Zone is GMT-5:00? It should be GMT-6:00.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: PreferenceActivity, using the built-ins with style

2009-06-02 Thread Beth

OK, so I found one answer...
In the docs, there is a Note: to refer to a value in the currently
applied theme, use ? instead of @

However, I still need helping getting Android to find my style in the
layout tag.  Anybody?

On Jun 1, 12:15 pm, Beth emez...@gmail.com wrote:
 Do you have any suggestions on how to setup a Theme and/or Style.
 There is a layout tag available and I would like some help on how to
 use it.

 In the demo code on the Dev Guide I found this tag:
 CheckBoxPreference
                 android:key=child_checkbox_preference
                 android:dependency=parent_checkbox_preference
                 android:layout=?android:attr/preferenceLayoutChild
                 android:title=@string/title_child_preference
                 android:summary=@string/summary_child_preference /

 (http://developer.android.com/guide/samples/ApiDemos/res/xml/
 preferences.html)

 So I read and searched the groups and then scratched my head. I am not
 able to extrapolate from the docs and this example how to pull in
 something from my application's styles.xml file.  What is the question
 mark doing in this tag?  If somebody has styled their preferences xml
 and can get me on track, I would really appreciate the help.

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



[android-beginners] How to detect idle screen?

2009-06-02 Thread sherry

How to detect idle screen from an app?

Thanks,

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



[android-beginners] How to use OrientationEventListener

2009-06-02 Thread chaozh

Hi:

I want to use this listener to catch the screen orientation change.
But I don't know how to use it, I tried new it and add my codes in its
method onOrientationChanged, the codes looks like:
myOrientationListener = new OrientationEventListener(this) {
public void onOrientationChanged(int orientation) {
System.out.println(**onOrientationChanged);
if (null == mWebViewState)
// save some state for current view so that restore them for
new screen orientation
  .
}
};
myOrientationListener.enable();

I put these codes in onCreate() function, no exception raised when
application run, but the screen is black, nothing could be showed in
my web browse view. I looked the ddms output:
06-02 18:12:19.708: INFO/System.out(7216): *onCreate()
06-02 18:12:19.708: INFO/System.out(7216): onStart()
06-02 18:12:19.717: DEBUG/qemud(560): fdhandler_accept_event:
accepting on fd 10
06-02 18:12:19.717: DEBUG/qemud(560): created client 0xc088 listening
on fd 14
06-02 18:12:19.727: DEBUG/qemud(560): client_fd_receive: attempting
registration for service 'sensors'
06-02 18:12:19.727: DEBUG/qemud(560): client_fd_receive:-
received channel id 9
06-02 18:12:19.727: DEBUG/qemud(560): multiplexer_handle_control:
unknown control message (26 bytes): 'ko:connect:09:service busy'
06-02 18:12:29.197: WARN/ActivityManager(582): Launch timeout has
expired, giving up wake lock!
Seems the listener register is failed. I don't know why and also don't
know how to use it, is it need to register on SensorManager? But I did
not find any about register function for it in SensorManager.
Could you help me? Thanks a lot!

My intent of using it is that I want to keep the same web page and
same browsing position in this listener only after screen orientation
is changed. If you have another idea for my purpose without using
OrientationEventListener, please tell me and thank you very much!

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



[android-beginners] Re: How to use OrientationEventListener

2009-06-02 Thread Mark Murphy

 I want to use this listener to catch the screen orientation change.

Why?

 My intent of using it is that I want to keep the same web page and
 same browsing position in this listener only after screen orientation
 is changed. If you have another idea for my purpose without using
 OrientationEventListener, please tell me and thank you very much!

http://wiki.andmob.org/samplecode

Scan that page for the Rotational Forces...On Your App bullet point,
which contains links to five blog posts on handling screen rotations.

Note that keeping the browsing position may be rather difficult. If the
Browser application does what you want, you may wish to review its source
code to see how it does it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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



[android-beginners] Best practice for AsyncTask when screen is rotated

2009-06-02 Thread Dave Bordoley

So I have an AsyncTask that is being used to perform a simple http
request in the background. As a constructor argument to the task, I
pass a reference to the current activity and use methods on the
activity to manipulate which gui elements are shown in the
onPreExecute(), and onPostExecute() method calls. Now due to the fact
that android tears down and rebuilds an activity when the screen is
rotated, the UI is not properly updated based upon the AsyncTask as
the refernce to the activity is no longer valid. Its not really clear
to me how to handle this case. I'm also worried that this could lead
to memory leaks. Any suggestions etc. would be appreciated.

thanks,

Dave

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



[android-beginners] Re: How can i display message in thai language ?

2009-06-02 Thread Yusuf T. Mobile

To display Thai (or any alphabet that does not ship with your phone)
in your app, you need two things:

(1) put your strings in unicode, preferably not hard-coded in-place.
Read up on Java internationalization if you don't know about it.
(2) the font to be installed. My G2 doesn't seem to support Thai, so
I'm guessing you need to include it with your app. For font fiddling,
see http://whyandroid.com/android/177-fun-with-fonts.html



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 Jun 1, 11:15 pm, Freshman csato...@gmail.com wrote:
 Hi guys,

 In my application i need to display some messages in thai language.
 can anyone suggest me how can i display thai language in my
 application ?

 any info/suggestion would be greatly appriciated.

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



[android-beginners] Re: Game Shooting A Object

2009-06-02 Thread Yusuf T. Mobile

I will assume that you already know about application development in
general, and Android development in particular. If not, there are some
Android tutorials that can help you with those.

For shooting an object, your application will need to do three things:
1) listen for the user pressing a particular button or tapping on a
screen. FYI, some Android phones don't have QWERTY buttons just built
in, just the on-screen soft keyboard.
2) draw the elements on the screen, such as spaceship, laser and
Martian. There are several ways to do this, probably using the
canvas class is the easiest: http://www.designerandroid.com/?cat=3
3) collision detection: this means using math to calculate when the
laser hits the Martian.

If you haven't already seen it, I would also recommend this fine
article: 
http://www.rbgrn.net/content/54-getting-started-android-game-development



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 Jun 1, 11:59 pm, vinny.s...@gmail.com vinny.s...@gmail.com
wrote:
 Hi every one

 I'm stater in game Development.
 Can any Body Helps Me how to develop an application like  shooting An
 object

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



[android-beginners] Re: Bug in Emulator Data and Time settings?

2009-06-02 Thread David Turner
Can you tell us in which exact time zone you're located, and which platform
you're running on?

You can try using -debug-timezone to see what it auto-detected by the
emulator.
You can also try the -timezone option to correct it (see -help-timezone)

Hope this helps

On Tue, Jun 2, 2009 at 6:36 PM, Lewis Z. lzh...@gmail.com wrote:


 It seems to me that the time zone settings are messed up. For example,
 Central Time Zone is GMT-5:00? It should be GMT-6:00.
 


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



[android-beginners] Rado's Colorthon Tutorial Now Available on YouTube

2009-06-02 Thread radiolistener

Hi All,

I just finished my fourth video, of the Colorthon Video Tutorial.
It's a basic tutorial that explains how you can set shared preferences
and layout manipulation.  This will enable you to allow the users of
your application to customize the look and feel  of the application.
In this instance it's the colors.  It allows users to pick from 64
different collors on six different settings.

There are 4, 10 minute video in the series.  The source code I will be
putting on my web site, radiolistenersElectricEasel.com, as soon as I
get a chance to.  This is my way of giving back to the community.

Feedback is always appreciated,
radioliste...@radiolistenerselectriceasel.com

The YouTube link is: http://www.youtube.com/view_play_list?p=A4FF04A11E7C4FE5
And they will also be embedded into my web site where I'll put the
source code, under Apache License.

Thanks,

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



[android-beginners] Re: How to use OrientationEventListener

2009-06-02 Thread chaozh

Hi Mark:

I've read that five posts about Rotational Forces. I choose the
onRetainNonConfigurationInstance method to keep my current state and
restore them in onCreate or onStart with
getLastNonConfigurationInstance function. But there is a bug in
emulator I think.
Only when the screen change from horizontal to vertical, you can find
your activity will be created twice. In first creation, the
onRetainNonConfigurationInstance
function will be called and then the kept state may be cleared by this
calling. Why I think this may be a bug only in emulator? because I
tried on my G1
seems no same issue found. Anyway, I think I can use this way.
But I think sometimes I need catch the orientation change, some things
only can be done when this behavior happened. Yeah, We can think this
is a special requirement.
So I tried to use OrientationEventListener, but failed. Except my
initial intent, I just want to learn how to use this class now.
If you know, could you please help me? I did not find any example with
google search. Thanks a lot!

On Jun 3, 2:26 am, Mark Murphy mmur...@commonsware.com wrote:
  I want to use this listener to catch the screen orientation change.

 Why?

  My intent of using it is that I want to keep the same web page and
  same browsing position in this listener only after screen orientation
  is changed. If you have another idea for my purpose without using
  OrientationEventListener, please tell me and thank you very much!

 http://wiki.andmob.org/samplecode

 Scan that page for the Rotational Forces...On Your App bullet point,
 which contains links to five blog posts on handling screen rotations.

 Note that keeping the browsing position may be rather difficult. If the
 Browser application does what you want, you may wish to review its source
 code to see how it does it.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Game Shooting A Object

2009-06-02 Thread Desu Vinod Kumar
Thanks For Ur reply. It is very Useful information for me ...

By JBox2d can we do this type of animations in android . is it possible have
any idea about this

thanks in advance

On Wed, Jun 3, 2009 at 2:36 AM, Yusuf T. Mobile yusuf.s...@t-mobile.comwrote:


 I will assume that you already know about application development in
 general, and Android development in particular. If not, there are some
 Android tutorials that can help you with those.

 For shooting an object, your application will need to do three things:
 1) listen for the user pressing a particular button or tapping on a
 screen. FYI, some Android phones don't have QWERTY buttons just built
 in, just the on-screen soft keyboard.
 2) draw the elements on the screen, such as spaceship, laser and
 Martian. There are several ways to do this, probably using the
 canvas class is the easiest: http://www.designerandroid.com/?cat=3
 3) collision detection: this means using math to calculate when the
 laser hits the Martian.

 If you haven't already seen it, I would also recommend this fine
 article:
 http://www.rbgrn.net/content/54-getting-started-android-game-development



 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 Jun 1, 11:59 pm, vinny.s...@gmail.com vinny.s...@gmail.com
 wrote:
  Hi every one
 
  I'm stater in game Development.
  Can any Body Helps Me how to develop an application like  shooting An
  object
 
  thanks in advance
 



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

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



[android-beginners] Re: Game Shooting A Object

2009-06-02 Thread Desu Vinod Kumar
What i need exactly means
i need to know is there any framework for this 2d graphics in android

Thanks in advance

On Tue, Jun 2, 2009 at 12:29 PM, vinny.s...@gmail.com
vinny.s...@gmail.comwrote:


 Hi every one

 I'm stater in game Development.
 Can any Body Helps Me how to develop an application like  shooting An
 object

 thanks in advance
 



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

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