[android-developers] Re: how do i know if i am on road between two points in android

2011-12-02 Thread PaulH
Roads don't necessarily travel in a straight line between two points.

On Dec 2, 1:10 am, TreKing treking...@gmail.com wrote:
 On Thu, Dec 1, 2011 at 5:49 AM, PaulH paul.harti...@gmail.com wrote:
  how can I check if my current location is in the zone if I have only the
  start point and end point?

 If you're saying you have a set of points that define these zoned roads,
 than some basic math will allow you to find the nearest points to your
 location and the distance to the line formed by those points. This of
 course has nothing to do with Android specifically.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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 have a static view common to various activities in the application?

2011-12-02 Thread B.Arunkumar
Hi,

   Your suggestion doesn't work.I have an event.xml defined as:

merge xmlns:android=http://schemas.android.com/apk/res/android;

RelativeLayout
android:id=@+id/relativeLayoutevent
android:layout_width=wrap_content
android:layout_height =wrap_content
android:background=@drawable/lock
android:layout_alignParentBottom=true
android:layout_alignParentLeft=true

Button
android:id=@+id/buttonevent
android:background=@drawable/redalarm
android:layout_width=wrap_content
android:layout_height=wrap_content/

/RelativeLayout

/merge

and a framelyout deifned as :

framelayout1 = new FrameLayout(this);
FrameLayout.LayoutParams r1 = new
FrameLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);
framelayout1.setBackgroundColor(Color.BLACK);
framelayout1.setLayoutParams(r1);

and when I use:

RelativeLayout relativelayoutevent = (RelativeLayout)
getLayoutInflater().inflate(R.layout.event, null);
FrameLayout.LayoutParams tempparams= new
FrameLayout.LayoutParams
(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT,Gravity.BOTTOM|
Gravity.LEFT);
relativelayoutevent.setLayoutParams(tempparams);
framelayout1.addView(relativelayoutevent);

the application crashes. Is there anything differently that needs to
be done?

Thank you,
B.Arunkumar

On Dec 2, 11:00 am, TreKing treking...@gmail.com wrote:
 On Thu, Dec 1, 2011 at 11:48 PM, B.Arunkumar
 awsnetworkrecor...@gmail.comwrote:

   I have a layout defined programmatically in activity class. How do
  I include the layout header (defined as xml) in the layout defined
  programmatically (not as xml) in the activity class.

 http://developer.android.com/reference/android/view/LayoutInflater.html

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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 do imageview 3d animation with pinch and zoom?

2011-12-02 Thread Hitendrasinh Gohil
Hi,

can anyone give me some idea how to pinch,zoom(i know but i want all
three in one) and rotate image in 3d?

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

2011-12-02 Thread Neilz
Ok ok, I know, and I knew it was a daft question when I asked it :)

Of course I had already searched for this, and I had actually found
what your link eventually led me to, but I assumed that the code was
out of date because I wasn't aware of the way the android source uses
private APIs. I assumed that this was deprecated code, as I couldn't
get it to compile. Having done some research I now understand that
this isn't the way to go about what I'm after.

On Dec 2, 1:07 am, TreKing treking...@gmail.com wrote:
 On Thu, Dec 1, 2011 at 4:56 PM, Neilz neilhorn...@gmail.com wrote:
  Failing that, what are my other options please?

 http://bit.ly/vmcTdO

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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 have a static view common to various activities in the application?

2011-12-02 Thread skink


B.Arunkumar wrote:
 Hi,

Your suggestion doesn't work.

what does logcat show during the crash?

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] TabHost and sub-activities

2011-12-02 Thread wBishop
Howdy,

I'm using tabactivity to navigate between activities. In one activity
when I press a butto I call other activity that's under the tab host.
In other words: I have the following:

Tab1:
  - Activity 1
Tab2:
  - Activity 2
- Sub-activity 1

When I press the tab2 while I'm on sub-activity I wanted to return to
Activity 2, but I'm starting to run out of ideias on how to do this.

Do you know how can I accomplish 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: Is it possible to have a static view common to various activities in the application?

2011-12-02 Thread B.Arunkumar
Hi,

I included the lines:

RelativeLayout relativelayoutevent = (RelativeLayout)
getLayoutInflater().inflate(R.layout.event, null);
FrameLayout.LayoutParams tempparams= new
FrameLayout.LayoutParams
(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT,Gravity.BOTTOM|
Gravity.LEFT);
relativelayoutevent.setLayoutParams(tempparams);
framelayout1.addView(relativelayoutevent);

And this is the exception it throws:

android.view.InflateException: merge / can be used only with a valid
ViewGroup root and attachToRoot=true

Thank you,
B.Arunkumar

On Dec 2, 3:09 pm, skink psk...@gmail.com wrote:
 B.Arunkumar wrote:
  Hi,

     Your suggestion doesn't work.

 what does logcat show during the crash?

 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: CursorLoader and Finalizing cursor that has not been deactivated or closed Error

2011-12-02 Thread crbin1
On Dec 1, 9:18 am, crbin1 cristiano.b...@gmail.com wrote:
 I have the following activity

 public class ActivityMatchesList extends FragmentActivity implements
 LoaderManager.LoaderCallbacksCursor {
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         ListView lvLive = (ListView)findViewById(R.id.matchListList);
         lvLive.setOnItemClickListener(OnItemClickListenerLive);
         getSupportLoaderManager().initLoader(1, null, this);
         getSupportLoaderManager().initLoader(2, null, this);
         getSupportLoaderManager().initLoader(3, null, this);
     }

     private OnItemClickListener OnItemClickListenerLive = new
 OnItemClickListener(){
         Intent i = new Intent(ActivityMatchesList.this,
 ActivityEvents.class);
         finish();
         startActivity(i);
     }

     @Override
     public LoaderCursor onCreateLoader(int id, Bundle args) { //
 FIXME: add switch for 3 loader
         switch (id){
         case 1:
             CursorLoader cursorLoaderLive = new CursorLoader(this,
 uri1,null,null,null,null);
             return cursorLoaderLive;
         case 2:
             CursorLoader cursorLoaderRankingLeague = new
 CursorLoader(this, uri1,null,null,null,null);
             return cursorLoaderRankingLeague;
         case 3:
             CursorLoader cursorLoaderRankingLive = new
 CursorLoader(this, uri1,null,null,null,null);
             return cursorLoaderRankingLive;
         default:
             return null;
         }
     }

     @Override
     public void onLoadFinished(LoaderCursor loader, Cursor cursor) {
         switch (loader.getId()){
         case 1:
             Adapter1.swapCursor(cursor);
             break;
         case 2:
             Adapter2.swapCursor(cursor);
             break;
         case 3:
             Adapter3.swapCursor(cursor);
             break;
         }
     }

     @Override
     public void onLoaderReset(LoaderCursor loader) {
         switch (loader.getId()){
         case 1:
             Adapter1.swapCursor(null);
             break;
         case 2:
             Adapter2.swapCursor(null);
             break;
         case 3:
             Adapter3.swapCursor(null);
             break;
         }
     }

 }

 With OnItemClickListener I finish() this activity and start a new,
 when I finish the new to return to this sometimes I have the following
 error

 11-30 09:35:01.839: INFO/dalvikvm(321): Uncaught exception thrown by
 finalizer (will be discarded):
 11-30 09:35:01.848: INFO/dalvikvm(321): Ljava/lang/
 IllegalStateException;: Finalizing cursor
 android.database.sqlite.SQLiteCursor@43c6ab00 on MAIN_TABLE that has
 not been deactivated or closed
 11-30 09:35:01.848: INFO/dalvikvm(321):     at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 11-30 09:35:01.848: INFO/dalvikvm(321):     at
 dalvik.system.NativeStart.run(Native Method)

 I am not able to discover the reason, someone can help me?

Update:

I have the error also if I use only 1 cursor loader.
For more info I am using compatibility package with Android 2.1 as
target.

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

2011-12-02 Thread skink


Neilz wrote:
 Ok ok, I know, and I knew it was a daft question when I asked it :)

 Of course I had already searched for this, and I had actually found
 what your link eventually led me to, but I assumed that the code was
 out of date because I wasn't aware of the way the android source uses
 private APIs. I assumed that this was deprecated code, as I couldn't
 get it to compile. Having done some research I now understand that
 this isn't the way to go about what I'm after.

 On Dec 2, 1:07 am, TreKing treking...@gmail.com wrote:
  On Thu, Dec 1, 2011 at 4:56 PM, Neilz neilhorn...@gmail.com wrote:
   Failing that, what are my other options please?
 
  http://bit.ly/vmcTdO
 
  -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

version 2.2 is not good enough?

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/MediaController.java

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: Is it possible to have a static view common to various activities in the application?

2011-12-02 Thread skink


B.Arunkumar wrote:
 Hi,

 I included the lines:

 RelativeLayout relativelayoutevent = (RelativeLayout)
 getLayoutInflater().inflate(R.layout.event, null);
 FrameLayout.LayoutParams tempparams= new
 FrameLayout.LayoutParams
 (LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT,Gravity.BOTTOM|
 Gravity.LEFT);
 relativelayoutevent.setLayoutParams(tempparams);
 framelayout1.addView(relativelayoutevent);

 And this is the exception it throws:

 android.view.InflateException: merge / can be used only with a valid
 ViewGroup root and attachToRoot=true


and whats not clear with this?

http://developer.android.com/reference/android/view/LayoutInflater.html#inflate(org.xmlpull.v1.XmlPullParser,
android.view.ViewGroup, boolean)

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: Android source

2011-12-02 Thread Neilz
It's the internal API code that led me to believe it was deprecated,
such as:

import com.android.internal.policy.PolicyManager;

And I've read we shouldn't build the source ourselves and rely on it,
as the internal APIs could change at any moment meaning our apps would
be scuppered...

 version 2.2 is not good enough?

 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google

 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] Sync adapter editing contacts

2011-12-02 Thread herschel
Hi. Could you tell me where I can find the documentation to implement
what is suggested a href=http://groups.google.com/group/android-
developers/msg/85f9304dfcc4e284here/a for both Gingerbread and
Honeycomb/ devices?
p/
For Gingerbread:  bthe trick is to insert a data row, Edit in
MyApp, which would take the user to your app and your app would then
provide an editor activity/b
For Honeycomb: bspecify two activities in your metadata xml file:
one for creating new contacts and one for editing existing ones/b
p/
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] Populating the Spinner/ArrayAdapter based on the value in the EditText in the onCreate() method

2011-12-02 Thread Shajahan
I have to query the db to populate the Spinner/ArrayAdapter based on the
value provided in the editText field in the onCreate() method.
How to achieve this ? Please suggest if any alternative way to go about to
achieve this task.

-- 
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 don't i get a full stacktrace?

2011-12-02 Thread chronozphere
I don't want to start some flamewar about languages. ;)

Can somebody just tell me what could cause this? A little insight in
how these stacktraces are generated would be really helpfull.
For example: what type of debug symbols are commonly used in C/C++
programs?

I'll give the NDK/porting group a try.

On 29 nov, 23:30, TreKing treking...@gmail.com wrote:
 On Sun, Nov 27, 2011 at 1:06 PM, chronozphere nscha...@gmail.com wrote:
  What must the freepascal developers do to make native android stacktraces
  work with their binaries?

 Stop using Pascal?

 Seriously, why are you using that language? In any case, you're not going
 to get much help with that here. You might try the NDK group or porting
 group, but I'd imagine even there you'll not get much help. Most Android
 development is Java or C++ if you're using the NDK.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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: Populating the Spinner/ArrayAdapter based on the value in the EditText in the onCreate() method

2011-12-02 Thread skink


Shajahan wrote:
 I have to query the db to populate the Spinner/ArrayAdapter based on the
 value provided in the editText field in the onCreate() method.
 How to achieve this ? Please suggest if any alternative way to go about to
 achieve this task.

if your data is in sqlite db you dont need ArrayAdapter, use
CursorAdapter instead

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


Re: [android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-02 Thread Mark Murphy
On Thu, Dec 1, 2011 at 8:26 PM, Saied saie...@gmail.com wrote:
 Can you please me tell me what a typical path may look like?

Typical is:

/data/data/your.package.name.goes.here/files/your-file-name-goes.here

That is not necessarily universal, which is why the other application
needs to give you the path to the file. It is also why creating a
ContentProvider for inter-application file sharing is a better idea.

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

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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 don't i get a full stacktrace?

2011-12-02 Thread Felipe Monteiro de Carvalho
On 29 nov, 23:30, TreKing treking...@gmail.com wrote:
 Stop using Pascal?

Seriously, why don't you stop trolling?

If you don't know the answer then please refrain from sending e-mails.

Felipe

-- 
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 do i know if i am on road between two points in android

2011-12-02 Thread cellurl
some api's return the accuracy, closeness to the point.
I would dig in google-map-api or ask on their group.

-cellurl
Speederaser: No more tickets
http://goo.gl/iIKqD



On Dec 2, 3:00 am, PaulH paul.harti...@gmail.com wrote:
 Roads don't necessarily travel in a straight line between two points.

 On Dec 2, 1:10 am, TreKing treking...@gmail.com wrote:







  On Thu, Dec 1, 2011 at 5:49 AM, PaulH paul.harti...@gmail.com wrote:
   how can I check if my current location is in the zone if I have only the
   start point and end point?

  If you're saying you have a set of points that define these zoned roads,
  than some basic math will allow you to find the nearest points to your
  location and the distance to the line formed by those points. This of
  course has nothing to do with Android specifically.

  --- 
  --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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


Re: [android-developers] Re: how do i know if i am on road between two points in android

2011-12-02 Thread Miguel Morales
This is really easy if you use your own server.
Simply store lat/long values for the points you'd like.
To get points near another point construct a lat/long perimeter around it.
Basically, like a rectangle you'll have a start x,y lat/long pair and an
end lat/long pair.
You can then query your database to pull points within that perimeter.

I suck at math so I used:
http://search.cpan.org/~asp/Geo-Calc-0.04/lib/Geo/Calc.pm
Some APIs may offer something like this.

FYI, as other have pointed out.  This has little to nothing to do with
Android.  Everyone has given you good tips, but come back with Android
specific questions plz.


On Fri, Dec 2, 2011 at 4:53 AM, cellurl gpscru...@gmail.com wrote:

 some api's return the accuracy, closeness to the point.
 I would dig in google-map-api or ask on their group.

 -cellurl
 Speederaser: No more tickets
 http://goo.gl/iIKqD



 On Dec 2, 3:00 am, PaulH paul.harti...@gmail.com wrote:
  Roads don't necessarily travel in a straight line between two points.
 
  On Dec 2, 1:10 am, TreKing treking...@gmail.com wrote:
 
 
 
 
 
 
 
   On Thu, Dec 1, 2011 at 5:49 AM, PaulH paul.harti...@gmail.com wrote:
how can I check if my current location is in the zone if I have only
 the
start point and end point?
 
   If you're saying you have a set of points that define these zoned
 roads,
   than some basic math will allow you to find the nearest points to your
   location and the distance to the line formed by those points. This of
   course has nothing to do with Android specifically.
 
  
 ---
 --
   TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
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] pausing games: dealing with Handler Messages timers

2011-12-02 Thread John Goche
Hello,

I have an android game which uses timers to update the screen sprites.
When the user wishes to pause the screen I have to know which timers
are pending and how long is missing before their expiration time. So this
means I have to maintain separate data structures for each Handler to
keep track of:

A. when the timer is set (timerSetTime) with System.nanoTime() and
B. how long before it expires (timerExpirationLength) so that

when the user pauses the game screen I cancel all timers
and then when the user unpauses for each paused timer I compute

unpauseTime = System.nanoTime()

and then reset each timer to timerExpirationLength - unpauseTime +
timerSetTime

and then when each timer expires unload the corresponding (timerSetTime and
timerExpirationLength)
data structure entry in the Handler subclass.

OK, I have described my solution to the problem. The android Handler system
does not seem
to provide a custom solution to this problem so I had to implement my own
code. If anyone has
a better solution to the problem of dealing with game state timers when the
game is paused (so
that they are saved as part of the game state) I'd like to hear your
alternative solutions.

Thanks,

John Goche

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

Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread Miguel Morales
Why are you using timers?  That seems needlessly complicated.
Use a game loop that keeps a constant frame rate.
Maintain state in your sprite objects, use the game loop to update this
state.
Then on a separate draw loop draw the sprite according to its state.

Then you dont have to worry about weird sync issues.

On Fri, Dec 2, 2011 at 5:45 AM, John Goche johngoch...@googlemail.comwrote:


 Hello,

 I have an android game which uses timers to update the screen sprites.
 When the user wishes to pause the screen I have to know which timers
 are pending and how long is missing before their expiration time. So this
 means I have to maintain separate data structures for each Handler to
 keep track of:

 A. when the timer is set (timerSetTime) with System.nanoTime() and
 B. how long before it expires (timerExpirationLength) so that

 when the user pauses the game screen I cancel all timers
 and then when the user unpauses for each paused timer I compute

 unpauseTime = System.nanoTime()

 and then reset each timer to timerExpirationLength - unpauseTime +
 timerSetTime

 and then when each timer expires unload the corresponding (timerSetTime
 and timerExpirationLength)
 data structure entry in the Handler subclass.

 OK, I have described my solution to the problem. The android Handler
 system does not seem
 to provide a custom solution to this problem so I had to implement my own
 code. If anyone has
 a better solution to the problem of dealing with game state timers when
 the game is paused (so
 that they are saved as part of the game state) I'd like to hear your
 alternative solutions.

 Thanks,

 John Goche

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
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] Farjad Habib wants to chat

2011-12-02 Thread Farjad Habib
---

Farjad Habib wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-be7d68f848-c940aedb14-k9mca7KyUH3Tgpo2AjY6URoRDl4
You'll need to click this link to be able to chat with Farjad Habib.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Farjad Habib, visit:
http://mail.google.com/mail/a-be7d68f848-c940aedb14-k9mca7KyUH3Tgpo2AjY6URoRDl4

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


Re: [android-developers] In-app purchasing server side API?

2011-12-02 Thread Nikolay Elenkov
On Thu, Dec 1, 2011 at 11:31 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Wed, Nov 30, 2011 at 8:24 AM, Tristan Waddington
 tristan.wadding...@gmail.com wrote:


 Are there any plans to implement such an API?



Just noticed it, but it turns out there is a way to bulk import
products using CSV files. I don't think this was available
from the beginning, so it must be new(?). Anyway, give it
a try:

http://developer.android.com/guide/market/billing/billing_admin.html#billing-bulk-add

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


Re: [android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-02 Thread Nikolay Elenkov
On Fri, Dec 2, 2011 at 9:04 PM, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Dec 1, 2011 at 8:26 PM, Saied saie...@gmail.com wrote:
 Can you please me tell me what a typical path may look like?

 Typical is:

 /data/data/your.package.name.goes.here/files/your-file-name-goes.here

 That is not necessarily universal, which is why the other application
 needs to give you the path to the file.

IIRC, 
Context.createPackageContext(some.other.package,0).openFileInput(somefile)
should let you access it it's world readable.

-- 
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: multitouch support again...

2011-12-02 Thread al
It works because returning true signals that the event has been
consumed. That's the signal for the parent ViewGroup to set this view
as a target. As a result, the pointer multitouch events are
delivered to this target view. I think, the corresponding code is in
ViewGroup.dispatchTouchEvent. You might want to take a look...

On 2 Dez., 00:05, John Goche johngoch...@googlemail.com wrote:
 On Thu, Dec 1, 2011 at 8:17 PM, al achim.leub...@googlemail.com wrote:
  OK, your yamtt results mean that your device supports multitouch, but
  only two simultanious touch points. For your purpose, that should be
  enough.

  I might be wrong, but do you return true as the methods result? If
  not, do so.

 Thanks, I was returning super.onTouchEvent(event);

 That made the whole difference, it now works. So somehow
 super.onTouchEvent(event) was consuming my event when
 it was not supposed to? Why does this solution work?

 Thanks,

 John Goche

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


Re: [android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-02 Thread Mark Murphy
On Fri, Dec 2, 2011 at 10:00 AM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 IIRC, 
 Context.createPackageContext(some.other.package,0).openFileInput(somefile)
 should let you access it it's world readable.

That's certainly much better than hard-wiring a path. I forgot about
createPackageContext() -- thanks!

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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: multitouch support again...

2011-12-02 Thread John Goche
Thanks Achim for the clarification, it makes sense.

Regards,

John Goche

On Fri, Dec 2, 2011 at 4:01 PM, al achim.leub...@googlemail.com wrote:

 It works because returning true signals that the event has been
 consumed. That's the signal for the parent ViewGroup to set this view
 as a target. As a result, the pointer multitouch events are
 delivered to this target view. I think, the corresponding code is in
 ViewGroup.dispatchTouchEvent. You might want to take a look...


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

Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread John Goche
On Fri, Dec 2, 2011 at 3:06 PM, Miguel Morales therevolti...@gmail.comwrote:

 Why are you using timers?  That seems needlessly complicated.
 Use a game loop that keeps a constant frame rate.
 Maintain state in your sprite objects, use the game loop to update this
 state.
 Then on a separate draw loop draw the sprite according to its state.

 Then you dont have to worry about weird sync issues.


Well, I am using timers with the state design pattern so that when each
timer expires
I transition to a new state or update a variable. It keeps my code sparated
into neat
modules.

I have a separate draw function which runs after calling update(deltaTime)
on the model (sprites).
Without timers the code could become a mess with lots of time-keeping
variables decremented
on each update to the game loop and lots of tests to see which state the
sprites are in accordingly...


 On Fri, Dec 2, 2011 at 5:45 AM, John Goche johngoch...@googlemail.comwrote:


 Hello,

 I have an android game which uses timers to update the screen sprites.
 When the user wishes to pause the screen I have to know which timers
 are pending and how long is missing before their expiration time. So this
 means I have to maintain separate data structures for each Handler to
 keep track of:

 A. when the timer is set (timerSetTime) with System.nanoTime() and
 B. how long before it expires (timerExpirationLength) so that

 when the user pauses the game screen I cancel all timers
 and then when the user unpauses for each paused timer I compute

 unpauseTime = System.nanoTime()

 and then reset each timer to timerExpirationLength - unpauseTime +
 timerSetTime

 and then when each timer expires unload the corresponding (timerSetTime
 and timerExpirationLength)
 data structure entry in the Handler subclass.

 OK, I have described my solution to the problem. The android Handler
 system does not seem
 to provide a custom solution to this problem so I had to implement my own
 code. If anyone has
 a better solution to the problem of dealing with game state timers when
 the game is paused (so
 that they are saved as part of the game state) I'd like to hear your
 alternative solutions.

 Thanks,


 John Goche

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




 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://solrpg.com/,
 http://www.youtube.com/user/revoltingx

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

-- 
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] Tabed pane Help

2011-12-02 Thread chowdary nani
Hi All,

In Tabedpane i have 2 tabs.I have to send data from  one tab to another tab.
Please help me how to do this in android.


Thanks
Naveen

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

Re: [android-developers] [OT] spelling (Was: Stealing an apk wirelessly)

2011-12-02 Thread Lew
Hey, I'm just trying to help.  It's information, it's accurate, it's 
useful, the poster clearly could benefit from it, and I offered no 
criticism.  What is your problem?

If I were posting in, say, French, and I made an error of similar scope, I 
would be thankful to a fluent French speaker who helped me out.  In fact, I 
have people correct my French, as I am not very fluent in it, and I cannot 
recall ever finding it offensive to be helped in my fluency.

So put down your dukes and chillax, net nannies.  Yeesh.  You guys are just 
spoiling for a fight, aren't you?  Perhaps it is you who should be banned 
for criticizing such helpful behavior.

-- 
Lew

On Thursday, December 1, 2011 9:21:36 PM UTC-8, mbanzon wrote:

 On Fri, Dec 2, 2011 at 6:06 AM, TreKing treki...@gmail.com wrote:
  On Thu, Dec 1, 2011 at 8:10 PM, Lew lewb...@gmail.com wrote:
 
  That's eavesdrop, one word.
  http://en.wiktionary.org/wiki/eavesdrop
 
  HTH.
 
  Wow. Eff your going two crate anew post too correct some won every time
  their is a typo on this list, your going two get banned four spamming.
  Eye hope this massage drives ewe crazy.

 Just woke up. Read this. Now I'm already rofl'ing! tywm

 Please keep in mind that many list subscribers don't have english as
 their main language - spelling sometimes gets in the way of
 understanding - but most of the time we all get the point. Right? ;o)

 -- 
 Michael Banzon
 http://michaelbanzon.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

Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread Christopher Van Kirk
GameDev.com is probably a better place to ask this question, as it's not 
really an 'android' question, per se.


On 12/2/2011 11:32 PM, John Goche wrote:



On Fri, Dec 2, 2011 at 3:06 PM, Miguel Morales 
therevolti...@gmail.com mailto:therevolti...@gmail.com wrote:


Why are you using timers?  That seems needlessly complicated.
Use a game loop that keeps a constant frame rate.
Maintain state in your sprite objects, use the game loop to update
this state.
Then on a separate draw loop draw the sprite according to its state.

Then you dont have to worry about weird sync issues.


Well, I am using timers with the state design pattern so that when 
each timer expires
I transition to a new state or update a variable. It keeps my code 
sparated into neat

modules.

I have a separate draw function which runs after calling 
update(deltaTime) on the model (sprites).
Without timers the code could become a mess with lots of time-keeping 
variables decremented
on each update to the game loop and lots of tests to see which state 
the sprites are in accordingly...



On Fri, Dec 2, 2011 at 5:45 AM, John Goche
johngoch...@googlemail.com mailto:johngoch...@googlemail.com
wrote:


Hello,

I have an android game which uses timers to update the screen
sprites.
When the user wishes to pause the screen I have to know which
timers
are pending and how long is missing before their expiration
time. So this
means I have to maintain separate data structures for each
Handler to
keep track of:

A. when the timer is set (timerSetTime) with System.nanoTime() and
B. how long before it expires (timerExpirationLength) so that

when the user pauses the game screen I cancel all timers
and then when the user unpauses for each paused timer I compute

unpauseTime = System.nanoTime()

and then reset each timer to timerExpirationLength -
unpauseTime + timerSetTime

and then when each timer expires unload the corresponding
(timerSetTime and timerExpirationLength)
data structure entry in the Handler subclass.

OK, I have described my solution to the problem. The android
Handler system does not seem
to provide a custom solution to this problem so I had to
implement my own code. If anyone has
a better solution to the problem of dealing with game state
timers when the game is paused (so
that they are saved as part of the game state) I'd like to
hear your alternative solutions.

Thanks,


John Goche --
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




-- 
~ Jeremiah:9:23-24

Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx
-- 
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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


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

Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread John Goche
Well, my code uses handlers, which are specific to android, so at least I
thought I'd post my code,
so anyone with any comments on this android-specific code feel free to drop
me a line.

John Goche

class TimeStampedMessage {

  TimeStampedMessage(Handler handler, long when, int what) {

this.handler = handler;

this.when = when;

this.what = what;

this.timeStamp = System.nanoTime();

  }

  static void pauseTimers() {

for (int k = 0; k  TimeStampedMessage.timeStampedMessages.size(); k++)
{

  TimeStampedMessage timeStampedMessage =
TimeStampedMessage.timeStampedMessages.get(k);

  long oldTimeStamp = timeStampedMessage.timeStamp;

  long newTimeStamp = System.nanoTime();

  System.out.println(When1:  + timeStampedMessage.when);

  System.out.println(oldTimeStamp);

  System.out.println(newTimeStamp);

  timeStampedMessage.when -= (newTimeStamp - oldTimeStamp) / 100L;

  System.out.println(When2:  + timeStampedMessage.when);

  timeStampedMessage.handler.removeMessages(timeStampedMessage.what);

}

  }

  static void resumeTimers() {

for (int k = 0; k  TimeStampedMessage.timeStampedMessages.size(); k++)
{

  Handler handler =
TimeStampedMessage.timeStampedMessages.get(k).handler;

  long when = TimeStampedMessage.timeStampedMessages.get(k).when;

  int what = TimeStampedMessage.timeStampedMessages.get(k).what;

  TimeStampedMessage.timeStampedMessages.get(k).timeStamp =
System.nanoTime();

  Message message = handler.obtainMessage(what);

  handler.sendMessageDelayed(message, when);

  System.out.println(resuming: when: + when);

}

  }

  static void unloadMessages(Handler handler, int what) {

for (int k = 0; k  TimeStampedMessage.timeStampedMessages.size(); k++)

  if (TimeStampedMessage.timeStampedMessages.get(k).handler == handler

  TimeStampedMessage.timeStampedMessages.get(k).what == what)

TimeStampedMessage.timeStampedMessages.remove(k);

  }

  Handler handler;

  long timeStamp;

  long when;

  int what;

  static ListTimeStampedMessage timeStampedMessages = new
ArrayListTimeStampedMessage();

}

abstract class WorldState {

  public abstract void enter(World world);

  public abstract void timerExpired(World world, Message msg);

  public abstract void update(World world, float deltaTime);

  public abstract void exit(World world);

  public void sendMessage(World world, long numMillis, int what) {

Message message = world.worldHandler.obtainMessage(what);

world.worldHandler.sendMessageDelayed(message, numMillis);

TimeStampedMessage timeStampedMessage = new
TimeStampedMessage(world.worldHandler, numMillis, what);

TimeStampedMessage.timeStampedMessages.add(timeStampedMessage);

  }

  public void removeMessages(World world, int what) {

TimeStampedMessage.unloadMessages(world.worldHandler, what);


world.worldHandler.removeMessages(World.WorldHandler.MESSAGE_WHAT_PRESENTATION_GHOST_ESCAPE);

  }

}

Regards,

John Goche

-- 
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] useing tabactvitygroup in on click listener

2011-12-02 Thread jaggu
Hi
iam getting tis error my actvity when pressing the button  can any one
help me in this

currentLoc = (Button) findViewById(R.id.Current);
currentLoc.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent lookup = new Intent(getParent(),
Lookup.class);
TabGroupActivity parentActivity = 
(TabGroupActivity) getParent();

parentActivity.startChildActivity(LookupActivity,
lookup);
}
});

error like this getting in logfile:
android.view.WindowManager$BadTokenException: Unable to add window --
token android.app.LocalActivityManager$LocalActivityRecord@4058a470 is
not valid; is your activity 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


Re: [android-developers] Tabed pane Help

2011-12-02 Thread John Goche
Not sure if this helps but have you tried implementing a class to hold your
data?
In the listener for your tabbed panes then read or write the data when the
tabs are
clicked. I think you might want to look at:

http://developer.android.com/reference/android/widget/TabWidget.html

and in particular

setOnClickListenerhttp://developer.android.com/reference/android/view/View.html#setOnClickListener%28android.view.View.OnClickListener%29
(View.OnClickListenerhttp://developer.android.com/reference/android/view/View.OnClickListener.htmll)

That should get you started. In practice though you might want to use an
SQLiteDB
to store your data.

Regards,

John Goche

On Fri, Dec 2, 2011 at 4:36 PM, chowdary nani naveenneeli...@gmail.comwrote:

 Hi All,

 In Tabedpane i have 2 tabs.I have to send data from  one tab to another
 tab.
 Please help me how to do this in android.


 Thanks
 Naveen

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

-- 
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] Constant Reboot of phone

2011-12-02 Thread saptesh palekar
Hi,
I am Using Sony Ericsson Xperia Neo V phone its having 2.3.4
Gingerbread operating system, however the phone keeps on restarting
when i use a heavy program like game and at times just like that.

When i contacted the service center it said to restart the phone i
have been doing that more than twice a day, even i remove the memory
card still the issue is unresolved and i don't think the service
center will help me as its software issue for all phones.

Kindly help me to resolve this problem as the phone suddenly gets off.

Also to validate this i am providing a review of the Phone by Tech 2
India.
http://tech2.in.com/reviews/smartphones/sony-ericsson-xperia-neo-v-review/261772#show
Please check the link the phone software has some issues its been
stated.

-- 
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] Workaround for GT-P1000 hdpi problem

2011-12-02 Thread Timo Drick
Hi,

it is already known that the Samsung Galaxy GT-P1000 uses hdpi
resolution but has mdpi. Same for the layout files. My App should work
on Tablets with right configuration too.
So my workaround for that is to use large-mdpi layouts and drawables
for normal tablets and define large-hdpi layouts and drawables
dedicated for the GT-P1000.
This works fine until the first HDPI Tablet will be available.

So what can i do?

Please need Help to future proof my app.
Is it possible to change the source of drawable and layouts per code?

regards

Timo

-- 
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: Handler().postDelayed() question

2011-12-02 Thread ravigomez
Can you show me an example ???

Please

On 1 dez, 13:12, JBirdVegas jbirdve...@gmail.com wrote:
 Works like a dream. Thanks Mark!

 On Dec 1, 7:34 am, Mark Murphy mmur...@commonsware.com wrote:







  On Wed, Nov 30, 2011 at 3:26 PM, JBirdVegas jbirdve...@gmail.com wrote:
   Ok I'm working on a splash screen that pauses for 1.5 seconds and
   works great, except for one thing.
   Once the timer is started in onCreate if the configuration
   (orientation) changes then the timer gets reset and then end result is
   it starts my ParchmentActivity.java twice.  How can I prevent the
   handler from sending the intent twice?

  If savedInstanceState is null in onCreate(), schedule your Runnable,
  otherwise, do not. The savedInstanceState parameter will be non-null
  if your activity is being created as a result of a configuration
  change.

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

  Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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] Opening a navigation window from an android application

2011-12-02 Thread Davie
Any ideas on how to pass the native naviation app a geolocation and
start navigating from an android app?

-- 
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: Handler().postDelayed() question

2011-12-02 Thread ravigomez
Can you show an example?

On 1 dez, 13:12, JBirdVegas jbirdve...@gmail.com wrote:
 Works like a dream. Thanks Mark!

 On Dec 1, 7:34 am, Mark Murphy mmur...@commonsware.com wrote:







  On Wed, Nov 30, 2011 at 3:26 PM, JBirdVegas jbirdve...@gmail.com wrote:
   Ok I'm working on a splash screen that pauses for 1.5 seconds and
   works great, except for one thing.
   Once the timer is started in onCreate if the configuration
   (orientation) changes then the timer gets reset and then end result is
   it starts my ParchmentActivity.java twice.  How can I prevent the
   handler from sending the intent twice?

  If savedInstanceState is null in onCreate(), schedule your Runnable,
  otherwise, do not. The savedInstanceState parameter will be non-null
  if your activity is being created as a result of a configuration
  change.

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

  Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Can we upgrade Android OS in a mobile??

2011-12-02 Thread kavya
hi all,

i am using samsung galaxy pro mobile which has Android 2.2. I want to
upgrade it to 3.0. Is it possible ??

If possible tell me how  ??

Thankyou

-- 
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] FAILED BINDER TRANSACTION after several hours

2011-12-02 Thread Christian
Hey guys,

I'm running out of ideas and could not find any help by searching the
web so I'm trying to get some help this way. It's like this:

We have an application, that basically consists of one service and one
activity. The activity binds to the service and keeps the Binder
reference that is passed by the onServiceConnected method. Through
this reference the Activity can access some objects that are held by
the service. The service, however, only updates the Activity by using
the Messenger/Handler concept described here
http://developer.android.com/guide/topics/fundamentals/bound-services.html
(Using a Messenger).

The application runs for several (5 to 10) hours and then it freezes.
During the whole time, nobody touched the phone. I can still use home
and power buttons and sometimes the ANR dialog comes up but not until
I touched the screen or changed the orientation. The logcat then shows
FAILED BINDER TRANSACTION every some milliseconds but nothing else
that could help me. The custom log from the service tells me that the
onPause, onStop, onDestroy methods were not called and no uncaught
exception was fired as I registered a handler to this event. As it
takes so long for the error to occur, I have not been able to see it
happening in the log. Before going into further details of the
architecture:

   - what are the basic rules to obey to not run into that error? I
have read that I should not keep Context objects as members. What
about the service? Some classes that are instantiated by the service
needs access to the context to e.g. get a system service. Therefore
the service implements an interface that it passed to those created
objects and, of course, they keep it as a member. Do I need to avoid
that?
   - I included a thread that asks the ActivityManager for lowMemory
state on regular bases but that did never occur, so I ruled out Memory
leaks ... for now.
   - The application is not handling large images or large byte
arrays.
   - The service (or subclasses) registers receiver to the Battery and
Time changed events and also requests location updates from GPS. Any
known problems with that?
   - I tested the application on 4 different phones, 3 HTC sensation
and 1 HTC Desire HD. It's the same on every phone.
   - I am using monodroid from xamarin (http://android.xamarin.com/
Welcome) - please don't tell me to not use it. I know it is not the
best approach but in my company we don't have another option right
now. Still, any known problems relating to it?

I really hope someone has an idea and thanks in advance for reading
Christian

-- 
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: About Phone GAP

2011-12-02 Thread ghenne
For an alternative to working with HTML/CSS/JS, have a look at NS Basic/App 
Studio http://www.nsbasic.com/app. It's got a drag and drop interface for 
creating forms and lets you code in a subset of VB or in JavaScript. The 
projects can be deployed as web apps or through a built in interface to 
PhoneGap.

It makes life much easier for people coming from VB like environments. 

-- 
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: Connecting android to hyper terminal and running AT commands

2011-12-02 Thread Satyadev Kini
Hi,

I am trying to do the same thing with my Google Nexus One and am failing. I 
have a windows application which works with dumb phones like Nokia, etc.

This app needs to connect to the phone as a GSM modem. Unfortunately, I 
have been unable to get Windows XP to show Nexus One as a GSM modem under 
device manager.

Can anyone 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] viewing source code

2011-12-02 Thread newtoandroid
hii
how could i view the sourcecode of an application

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


[android-developers] Something like JVM's hot-swap

2011-12-02 Thread Diesis
Is there something like JVM's hot-swap in android? Anything that
allows to change code parts in a loaded and running class?

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


Re: [android-developers] Re: multitouch support again...

2011-12-02 Thread muhamad yamin yamin 2_dsx
Thx

On 2011 Des 2 03:17, al achim.leub...@googlemail.com wrote:

OK, your yamtt results mean that your device supports multitouch, but
only two simultanious touch points. For your purpose, that should be
enough.

I might be wrong, but do you return true as the methods result? If
not, do so.




On 1 Dez., 19:07, John Goche johngoch...@googlemail.com wrote:
 Thank you for your reply,

 ...

 On Thu, Dec 1, 2011 at 10:41 AM, al achim.leub...@googlemail.com wrote:
  At first glance, I d...

-- 
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] want to install google contacts and google calender on my android 2.2.1 tablet.Pls help

2011-12-02 Thread pop
Hi there,

i just bought HCL ME tablet AE7-A1 having ANDROID 2.2.1. But I found
that its missing the google contacts and calender.

Can anyone please help me out how to install these two things in my
tablet and what files will be required and from where can i get the
same.

Loads of 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 prevent webview click through to Google Maps?

2011-12-02 Thread elsigh
I have a WebView app, and in my app there's an address string like:

div
b1022 Cole Street/b San Francisco, CA
/div

I have a JS listener for clicks on that DIV, but it looks like Android
is intercepting it and taking me to Google Maps for that address.

Is there a way for me to prevent that? Capture the geo intent or
something like that?

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 documentation in PDF

2011-12-02 Thread Tony
You can probably convert the html version to pdf or chm.


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

2011-12-02 Thread Kumar ravi
Thanks and Regards**



*Kumar Gourav*

* *

[image: cid:image003.gif@01CA87DB.FC4CCE40]

Global Economic Advantage**

708 Lindholm Court**

Naperville, IL 60565**

United States

*Direct :*  630-281-2478 ext 216

*E-Mail:* *u...@thegea.com* u...@thegea.com**

Yahoo_id =  gea.r...@yahoo.com





Please feel free to reach Arun Dua on 630-281-2478
Ext-206/u...@thegea.com630-281-2497%20Ext-205/arti.si...@thegea.com
(if I am not available)
.

-- 
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] please give me solution

2011-12-02 Thread sunkuru abhishek
hello,
 i am developing application,i am using CountDownTimer .

new CountDownTimer(a, 1000) {

public void onTick(long millisUntilFinished) {
edt5.setText(left:  + millisUntilFinished /
1000);
}

public void onFinish() {
edt5.setText(done!);
}
 }.start();


where a is the variable calculated dynamincally.but it is not
accepting dynamic values..
can anyone help me...?

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


[android-developers] hi all, one problem to intercept KEYCODE_BACK event

2011-12-02 Thread tuxpcd
then soft keyboard was pop,
I try to override onKeyDown()  dispatchKeyEvent() and onBackPressed()
method,but cannot intercept back key.
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] App or Do I need to make one.. transmit from 1 device to 2 receivers

2011-12-02 Thread Kirk Merrikh
I'm looking for an App or I may need to start working on one, to
transmit A2DP signal from 1 device (cell / tablet) to 2 or more
receivers (headsets)

I want to have the ability to transmit my bluetooth (A2DP) stereo
signal to more than one headset.  I am using an HTC Sensation phone w
Android.  This should be something that can be done easily and would
be very useful in certain situations, i.e. gym, watching a movie on a
flight (in pairs of course)..

Anyone know of any app that can handle this, or a quick workaround??

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


RE: [android-developers]

2011-12-02 Thread Nattachai Boonkam
Hi Android Developer ,

 

How to add 'keyword' when end-user search in Android market
?

 

BR,

Nattachai

-- 
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 hooking Android WebView with anytools(WebKit, etc.....)

2011-12-02 Thread Chae-Hoon Lim
Hello.

how to hooking Android WebView with andorid API or tools??

i wonder about it

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


[android-developers] Not able to get full App logs

2011-12-02 Thread Neel Singh
I am not able to get full App log for an application(In fact any 
application), based on Android 2.2 SDK, after updating ADT and SDK 
recently. Its not working even after setting the log level to VERBOSE.

Eclipse   : Helios
Android SDK  API   : 2.2
Android SDK Tools  : 15
Android SDK Platform Tools : 9
ADT   : 15.0.0

-- 
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] SUPL 2.0

2011-12-02 Thread Kira
Hi developers,

Any idea which android versions support SUPL 2.0.

-- 
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] Help! i dont receive value of attributes (parcelable)

2011-12-02 Thread diego scafati
Hi, im trying to send an object to another activity, but i dont
receive the value of attributes, i recive two simbols (like ??)

Clase1 extends activity{
 Intent i = new Intent(this, Clase2.class );
Bundle bundle = new Bundle();
bundle.putParcelable(user, user); //Usuario user;
i.putExtras(bundle);
startActivity(i);
finish();
}
Clase2 extends Activity{
Bundle b = getIntent().getExtras();
user = b.getParcelable(user);
}

public class Usuario implements Parcelable {
String codigodeusuario;

public Usuario(){
}

public Usuario(Parcel in){
codigodeusuario=in.readString();
readFromParcel(in);
}

@Override
public int describeContents() {
return 0;
}

@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(codigodeusuario);
}

public static final Parcelable.Creator CREATOR= new
Parcelable.Creator() {
public Usuario createFromParcel(Parcel in) {
return new Usuario(in);
}

public Usuario[] newArray(int size) {
return new Usuario[size];
}
};
private void readFromParcel(Parcel in) {
in.setDataPosition(0);
codigodeusuario=in.readString();
}

}


I speak spanish, 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] Problem getting Ice Scream Sandwich

2011-12-02 Thread Leo
I am trying to get ISC source code follow this instruction:
http://source.android.com/source/downloading.html

After sync repo, it started to download and took me about half a day
before stayed still and get nothing more. I have tried several times,
but the result stays the same. (I tried on both Mac Os and Ubuntu)

Anybody got any idea what is the problem? Is there any chance that
this happens because of Google server? If this is the case, can I have
the zip version of the source code?

Thanks and regards,

Leo

-- 
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 i use google app engine for android

2011-12-02 Thread yash kumar
i want to use google app engine in android.how can i use what is best
resource for that and what are the benifits of using google app engine

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


Re: [android-developers] Can we upgrade Android OS in a mobile??

2011-12-02 Thread Mark Murphy
First, this has nothing to do with this list.

Second, Android 3.0 is only for tablets.

Please contact your carrier, device manufacturer, or the ROM modding
community for further assistance.

On Fri, Dec 2, 2011 at 5:52 AM, kavya jabilideep...@gmail.com wrote:
 hi all,

 i am using samsung galaxy pro mobile which has Android 2.2. I want to
 upgrade it to 3.0. Is it possible ??

 If possible tell me how  ??

 Thankyou

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



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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] want to install google contacts and google calender on my android 2.2.1 tablet.Pls help

2011-12-02 Thread Mark Murphy
On Fri, Dec 2, 2011 at 2:01 AM, pop pushpak@gmail.com wrote:
 i just bought HCL ME tablet AE7-A1 having ANDROID 2.2.1. But I found
 that its missing the google contacts and calender.

 Can anyone please help me out how to install these two things in my
 tablet and what files will be required and from where can i get the
 same.

Those are not available as separately licensed components, sorry.

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

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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] ADB interface is too slow to install

2011-12-02 Thread qwesthead
I am using Windows 7. When I connect phones through USB port, adb
devices command lists the device. I can run any adb command like
uninstall, shell, etc. It works fine. But, when I install an apk, it
takes a long time. I used to get adb time out and I increased the
time out period. Now it takes a long time. Also, I notice that adb
logcat lists the log very slow.  This is happening on HTC, Motorola,
and Samsung devices. It does not happen on Nexus One.

Has any one faced this problem? Any solutions/work around?

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


Re: [android-developers] want to install google contacts and google calender on my android 2.2.1 tablet.Pls help

2011-12-02 Thread PUSHPAK PATEL
Thanks Mr. Murphy for the reply :).


But is there any way so that i call store my contacts on my tablet ?.

-- 
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] Unexpected NoSaveStateFrameLayout with support Fragment

2011-12-02 Thread randyv2
I'm using the v4 support package to get Fragment support in older
devices.  I've got a fragment that I would like to include in an
Activity, and I've done the following:

1.  Added the fragment to the Activity's XML layout via a fragment
tag.
2.  Added a layout for the fragment in my res/layouts/ folder.
3.  Added some Java code for my fragment (included below)

#1 and #2 appear to be working, but #3 gives me an error when I try to
call getView():

public class MyFragment extends Fragment {

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.awesome_layout, container,
false);
return view;
}

public void update() {
TextView name = (TextView) getView().findViewById(R.id.nameView);
name.setText(An awesome name!);
}
}

Specifically, I get back an
android.support.v4.app.NoSaveStateFrameLayout object from getView(),
when I'm expecting the view I inflated to be returned (or at least
null to tell me I messed up).  I call the update() method in my
Activity's onCreate() method, after calling setContentLayout().  I've
also tried calling update() well after my Activity has been created
and hanging around for a while, but I get the same behavior.

Does anyone have any pointers as to why I might be getting a different
object back from getView()?

Thanks,

Randy

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


Re: [android-developers] Something like JVM's hot-swap

2011-12-02 Thread Michael Banzon
Not that I'm aware of.

As far as I can tell - the case of developing in Eclipse will result
in the IDE producing a new APK file with each compile. My guess is
that swapping would require compilation and injection of single
classes/objects not whole program/APK files.

On Thu, Dec 1, 2011 at 9:31 PM, Diesis nicolealicia.ross...@gmail.com wrote:
 Is there something like JVM's hot-swap in android? Anything that
 allows to change code parts in a loaded and running class?

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




-- 
Michael Banzon
http://michaelbanzon.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


Re: [android-developers] Something like JVM's hot-swap

2011-12-02 Thread Michael Banzon
Not that I'm aware of.

As far as I can tell - the case of developing in Eclipse will result
in the IDE producing a new APK file with each compile. My guess is
that swapping would require compilation and injection of single
classes/objects not whole program/APK files.

On Thu, Dec 1, 2011 at 9:31 PM, Diesis nicolealicia.ross...@gmail.com wrote:
 Is there something like JVM's hot-swap in android? Anything that
 allows to change code parts in a loaded and running class?

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




-- 
Michael Banzon
http://michaelbanzon.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] Bind to service synchronously in local service scenario

2011-12-02 Thread goosedroid
I was wondering if there was any technique to bind to a local service
synchronously. Of course if the service was remote it would be an
especially bad idea, but binding to a local service seems to happen
quickly.

The situation i often run into is that
ServiceConnection.onServiceConnected() isn't called at a convenient
time. For example, if you want to invoke a method on a local service
in onActivityResult() but bind/unbind on onStart/onStop. The service
still won't be available by the time onActivityResult() is called.

I did come across this:

http://code.google.com/p/google-cache-invalidation-api/source/browse/trunk/src/java/com/google/ipc/invalidation/external/client/android/service/ServiceBinder.java

Which uses a CountdownLatch to gate the calling thread, but my
attempts to use it have resulted in deadlock.

I even tried binding to the service from another thread, hoping that
ServiceConnection.onServiceConnected() would be called from the thread
which called bindService, but this does not seem to be the case.

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


Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread Miguel Morales
Well, having neat code is pretty useless in a game is you are going have
sync issues.
Furthermore, it's standard to have a game loop and a draw loop.

Plus, you are adding the overhead of using message queues.  Also, if you
are launching or using a thread for each sprite the game is going to slow
down significantly from all the overhead.

On Fri, Dec 2, 2011 at 10:20 AM, John Goche johngoch...@googlemail.comwrote:


 Well, my code uses handlers, which are specific to android, so at least I
 thought I'd post my code,
 so anyone with any comments on this android-specific code feel free to
 drop me a line.

 John Goche

 class TimeStampedMessage {

   TimeStampedMessage(Handler handler, long when, int what) {

 this.handler = handler;

 this.when = when;

 this.what = what;

 this.timeStamp = System.nanoTime();

   }

   static void pauseTimers() {

 for (int k = 0; k  TimeStampedMessage.timeStampedMessages.size();
 k++) {

   TimeStampedMessage timeStampedMessage =
 TimeStampedMessage.timeStampedMessages.get(k);

   long oldTimeStamp = timeStampedMessage.timeStamp;

   long newTimeStamp = System.nanoTime();

   System.out.println(When1:  + timeStampedMessage.when);

   System.out.println(oldTimeStamp);

   System.out.println(newTimeStamp);

   timeStampedMessage.when -= (newTimeStamp - oldTimeStamp) / 100L;

   System.out.println(When2:  + timeStampedMessage.when);

   timeStampedMessage.handler.removeMessages(timeStampedMessage.what);

 }

   }

   static void resumeTimers() {

 for (int k = 0; k  TimeStampedMessage.timeStampedMessages.size();
 k++) {

   Handler handler =
 TimeStampedMessage.timeStampedMessages.get(k).handler;

   long when = TimeStampedMessage.timeStampedMessages.get(k).when;

   int what = TimeStampedMessage.timeStampedMessages.get(k).what;

   TimeStampedMessage.timeStampedMessages.get(k).timeStamp =
 System.nanoTime();

   Message message = handler.obtainMessage(what);

   handler.sendMessageDelayed(message, when);

   System.out.println(resuming: when: + when);

 }

   }

   static void unloadMessages(Handler handler, int what) {

 for (int k = 0; k  TimeStampedMessage.timeStampedMessages.size(); k++)

   if (TimeStampedMessage.timeStampedMessages.get(k).handler == handler
 
   TimeStampedMessage.timeStampedMessages.get(k).what == what)

 TimeStampedMessage.timeStampedMessages.remove(k);

   }

   Handler handler;

   long timeStamp;

   long when;

   int what;

   static ListTimeStampedMessage timeStampedMessages = new
 ArrayListTimeStampedMessage();

 }

 abstract class WorldState {

   public abstract void enter(World world);

   public abstract void timerExpired(World world, Message msg);

   public abstract void update(World world, float deltaTime);

   public abstract void exit(World world);

   public void sendMessage(World world, long numMillis, int what) {

 Message message = world.worldHandler.obtainMessage(what);

 world.worldHandler.sendMessageDelayed(message, numMillis);

 TimeStampedMessage timeStampedMessage = new
 TimeStampedMessage(world.worldHandler, numMillis, what);

 TimeStampedMessage.timeStampedMessages.add(timeStampedMessage);

   }

   public void removeMessages(World world, int what) {

 TimeStampedMessage.unloadMessages(world.worldHandler, what);


 world.worldHandler.removeMessages(World.WorldHandler.MESSAGE_WHAT_PRESENTATION_GHOST_ESCAPE);

   }

 }

 Regards,


 John Goche

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] Re: About Phone GAP

2011-12-02 Thread Miguel Morales
It's ok for what it is.
But, it's just all the layers of abstraction in HTML/JS that make it really
slow.
I doubt they will gain much more speed on mobile devices, perhaps by using
hardware acceleartion.

In either case, it's slow and it looks and feels like crap.
But it's perfect for simple apps, users just want things that work.
 Although they prefer things that work well.

On Fri, Dec 2, 2011 at 1:42 AM, ghenne g...@nsbasic.com wrote:

 For an alternative to working with HTML/CSS/JS, have a look at NS
 Basic/App Studio http://www.nsbasic.com/app. It's got a drag and drop
 interface for creating forms and lets you code in a subset of VB or in
 JavaScript. The projects can be deployed as web apps or through a built in
 interface to PhoneGap.

 It makes life much easier for people coming from VB like environments.

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] Bind to service synchronously in local service scenario

2011-12-02 Thread Kostya Vasilyev
That code has an interesting thing in it:

  /** The maximum amount of time to wait (milliseconds) for a successful
binding to the service */
  private static final int CONNECTION_TIMEOUT = 60 * 1000; And then:
connectLatch.await(CONNECTION_TIMEOUT, TimeUnit.SECONDS);

So it waits 60 thousand seconds, or about 16,6 hours for the service
binding to happen. I think that's a bit excessive, unless called on a very
heavily loaded Android device.

It should be possible to follow the general idea, as long as you're careful
with what thread you're on - but that strikes me as an ugly hack.

Can you bind in onCreate and unbind in onDestroy for this particular
activity?

Also, if the service is local, and already started at some earlier time,
well, local means within the same Java VM, so you can just store the
service instance in some global somewhere.

That too would be a hack, but less ugly and prone to breakage than trying
to hammer an event-driven system into a synchronous sequence by playing
games with threads and the message loop.

-- Kostya

3 декабря 2011 г. 2:04 пользователь goosedroid alexrhel...@gmail.comнаписал:

 I was wondering if there was any technique to bind to a local service
 synchronously. Of course if the service was remote it would be an
 especially bad idea, but binding to a local service seems to happen
 quickly.

 The situation i often run into is that
 ServiceConnection.onServiceConnected() isn't called at a convenient
 time. For example, if you want to invoke a method on a local service
 in onActivityResult() but bind/unbind on onStart/onStop. The service
 still won't be available by the time onActivityResult() is called.

 I did come across this:


 http://code.google.com/p/google-cache-invalidation-api/source/browse/trunk/src/java/com/google/ipc/invalidation/external/client/android/service/ServiceBinder.java

 Which uses a CountdownLatch to gate the calling thread, but my
 attempts to use it have resulted in deadlock.

 I even tried binding to the service from another thread, hoping that
 ServiceConnection.onServiceConnected() would be called from the thread
 which called bindService, but this does not seem to be the case.

 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

-- 
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] Moving shifting

2011-12-02 Thread unionmoversuae
Welcome
Enjoy world-class moving services at local rates!

www.unionmoversuae.com

Union Mover Dubai is the moving company created to make your moving
experience a stress free one. Our focus is on top notch customer
service, and fast, professional moving services. We aim to offer our
customers the quality of service they expect from the industry's
biggest names in removals, but at affordable prices.

Whether you're moving house or office locally, relocating
internationally, or just a few large items around Dubai, Abu Dhabi or
across the UAE, Union Mover removals promise to handle every detail
with speed, care and professionalism so you can relax and take it
easy.

To get your moving quote underway, simply click Get Your Easy Quote,
and we'll prepare your quote immediately.   Only pay for the services
you need.

When you move with Union Mover, you only pay for the removal services
you need. Our prices are based on the space you use in our trucks, the
items you need packed and boxed, bubble wrapped or dismantled. No
matter what your budget is you can tailor your move accordingly.

If you need a removal truck today... no problem. We have good network
of removal trucks, moving vans  packing crew across the country ready
to handle any job you throw their way.

So let's get started shall we? Please click on the Get Your Union
Quote button on the right, fill in the quote form and we'll get right
back to you with a great price today!

Our friendly team of highly trained packers will have you comfortably
set up in your new home, same day guaranteed!

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


[android-developers] Re: Is this template in java

2011-12-02 Thread Lew
On Friday, December 2, 2011 2:52:31 PM UTC-8, SL wrote:

 ... 

 Not only that, but almost nothing from 1996 Java applies today.  You  
  don't
  use 'Vector' or 'Hashmap' any more, you have Swing (well, not for  
  Android),
  a new threading model, generics, 'assert', for:each, enums, ...
 
  OMG!  The list is HUGE what's missing from a 15-year-old reference.  So
  much that it is essentially useless for a budding Android programmer.

 [snip]

 Mine, I am reading a 15-year old book (from a friend) to catch up on Java.

 I think you have over-emphasized somewhat, it can't be that nothing  
 applies.

I am not over-emphasizing.  I didn't say that nothing applies, I said that 
a 1996 book is essentially useless.  Does it even mention nested classes, 
which IIRC didn't exist in Java in 1996?

You underestimate the changes.  Java 1.1 was pretty much a different 
language from 1.0, adding inner classes and reflection.  1.2 introduced 
significant library changes.  1.4 brought in a new keyword, NIO, and other 
changes.  Java 5 once again pretty much reinvented the language, and 
changed the fundamental memory model.

You would do well not to be so dismissive of accurate information.

On second thought, may be I should sue my friend for (may be intentionlly  

 ) misleading me.

You would do well not to be so dismissive of accurate information.

-- 
Lew
 

-- 
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] Move to SD Card

2011-12-02 Thread bob
What determines whether an app lets you do a Move to SD Card or not?

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


Re: [android-developers] Move to SD Card

2011-12-02 Thread Mark Murphy
http://developer.android.com/guide/appendix/install-location.html

On Fri, Dec 2, 2011 at 7:44 PM, bob b...@coolgroups.com wrote:
 What determines whether an app lets you do a Move to SD Card or not?

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



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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: Why don't i get a full stacktrace?

2011-12-02 Thread TreKing
On Fri, Dec 2, 2011 at 6:46 AM, Felipe Monteiro de Carvalho 
felipemonteiro.carva...@gmail.com wrote:

 On 29 nov, 23:30, TreKing treking...@gmail.com wrote:
  Stop using Pascal?

 Seriously, why don't you stop trolling?

 If you don't know the answer then please refrain from sending e-mails.


I see you missed the fact that that was a joke.
You also missed the rest of my message, where I directed the OP to where he
might have better luck with his issue.
No need to get your panties in a bunch.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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] Does anyone Use the SBA API for City Data?

2011-12-02 Thread Tommy Hartz
Does anyone in this group use the SBA API for gathering city data?

http://api.sba.gov/geodata/all_data_for_city_of/City/StateAbrev.xml  ?

I noticed this is now throwing an Internal server error 500. I have been
unable to find any related posts on their site and was wondering if maybe
any one else had any useful information about this.

I use it to retrieve the county a certain city is in. Does anyone know of
another way I could find this data out?

I know this isn't exactly android related but I figured maybe someone else
has either used these services or knows of another free service I can use to
gather the county a city is located in.

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


Re: [android-developers] viewing source code

2011-12-02 Thread Miguel Morales
Unless the app is open source, you can't.
Otherwise it would be illegal and stealing.

In some countries they cut off your hands for stealing.  So, don't steal
someone's hard work.

On Thu, Dec 1, 2011 at 10:40 PM, newtoandroid shobana...@gmail.com wrote:

 hii
 how could i view the sourcecode of an application

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] please give me solution

2011-12-02 Thread Miguel Morales
This is a terrible question.
What the hell do you mean: but it is not
accepting dynamic values.. ???

Post a better description and a log.

Also, make sure you spend more than a minute typing up your question and
try really hard to use proper English.

On Thu, Dec 1, 2011 at 11:11 PM, sunkuru abhishek abhisheksunk...@gmail.com
 wrote:

 hello,
  i am developing application,i am using CountDownTimer .

 new CountDownTimer(a, 1000) {

public void onTick(long millisUntilFinished) {
edt5.setText(left:  + millisUntilFinished /
 1000);
}

public void onFinish() {
edt5.setText(done!);
}
 }.start();


 where a is the variable calculated dynamincally.but it is not
 accepting dynamic values..
 can anyone help me...?

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] How to hooking Android WebView with anytools(WebKit, etc.....)

2011-12-02 Thread Miguel Morales
You use the Android WebView with the Android SDK.
Now you dont have to wonder.

On Thu, Dec 1, 2011 at 10:59 PM, Chae-Hoon Lim caterp...@gmail.com wrote:

 Hello.

 how to hooking Android WebView with andorid API or tools??

 i wonder about it

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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
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: hi all, one problem to intercept KEYCODE_BACK event

2011-12-02 Thread tuxpcd
extends EditText and override dispathKeyEventpreIme()

On 12月2日, 下午2时51分, tuxpcd pcode...@gmail.com wrote:
 then soft keyboard was pop,
 I try to override onKeyDown()  dispatchKeyEvent() and onBackPressed()
 method,but cannot intercept back key.
 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


Re: [android-developers] Re: Android activity lifecycle bug/problem. Android team please help.

2011-12-02 Thread dnkoutso
Actually by using 'dumpsys activity' in the phone I see they are part of 
the same task!

WTF!

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

Re: [android-developers] Re: About Phone GAP

2011-12-02 Thread Subin Sebastian
Hi All,

The thing is that Phonegap and Sencha/JQuery mobile are not the same.
Phonegap is a framework which extends Android Webview. Sencha/JQMob
provides a wrapper to HTML/CSS to make it UX friendly. I have used phonegap
to run applications on Android before I started with native programming.
Phonegap cloud build is good place to hold source code and to build apps
for different platforms. But it doesn't mean that PhoneGap is the only
solution to develop cross platform mobile applications!!!

AnscaMobile's corona is a far more effective way. Even though they only
priced options and package becomes heavier, it is professionally written -
even for gaming! Anyway, I dont like PhoneGap or Corona just because of
their poor performance over native or NDK applications on Android.

Regards

On Sat, Dec 3, 2011 at 3:42 AM, Miguel Morales therevolti...@gmail.comwrote:

 It's ok for what it is.
 But, it's just all the layers of abstraction in HTML/JS that make it
 really slow.
 I doubt they will gain much more speed on mobile devices, perhaps by using
 hardware acceleartion.

 In either case, it's slow and it looks and feels like crap.
 But it's perfect for simple apps, users just want things that work.
  Although they prefer things that work well.


 On Fri, Dec 2, 2011 at 1:42 AM, ghenne g...@nsbasic.com wrote:

 For an alternative to working with HTML/CSS/JS, have a look at NS
 Basic/App Studio http://www.nsbasic.com/app. It's got a drag and drop
 interface for creating forms and lets you code in a subset of VB or in
 JavaScript. The projects can be deployed as web apps or through a built in
 interface to PhoneGap.

 It makes life much easier for people coming from VB like environments.

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




 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://solrpg.com/,
 http://www.youtube.com/user/revoltingx

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] how i use google app engine for android

2011-12-02 Thread Subin Sebastian
Hi Yesh,

GAE is a perfect place to run computationally heavy applications. GAE
instances are completely self managed cloud servers. It is not clear that
why do you want to use GAE for your application anyway. GAE servers respond
the same way as other web-servers do. But GAE is much reliable and easy to
use. Coding and deployment and even version controlling is easy as we speak
on GAE. If you want to know more about how to use it, deploy - you can
directly contact me as this list is specifically for Android threads. I
hope you know how to make an http client in Android by the way!

Regards.

On Fri, Dec 2, 2011 at 5:35 AM, yash kumar er.yashkumar...@gmail.comwrote:

 i want to use google app engine in android.how can i use what is best
 resource for that and what are the benifits of using google app engine

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] Opening a navigation window from an android application

2011-12-02 Thread Subin Sebastian
Devie,

How about throwing an intent with a bundle of data. I'm not sure how it
would work with the geolocation app, but if you really need it I could take
a look.

Regards

On Fri, Dec 2, 2011 at 11:28 PM, Davie davie1...@gmail.com wrote:

 Any ideas on how to pass the native naviation app a geolocation and
 start navigating from an android app?

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] TabHost and sub-activities

2011-12-02 Thread Subin Sebastian
Hi wBishop,

You should probably show us the code you have developed so far. I think it
is not big issue to run controlled child activities.

Thanks


On Fri, Dec 2, 2011 at 3:42 PM, wBishop walterb...@gmail.com wrote:

 Howdy,

 I'm using tabactivity to navigate between activities. In one activity
 when I press a butto I call other activity that's under the tab host.
 In other words: I have the following:

 Tab1:
  - Activity 1
 Tab2:
  - Activity 2
- Sub-activity 1

 When I press the tab2 while I'm on sub-activity I wanted to return to
 Activity 2, but I'm starting to run out of ideias on how to do this.

 Do you know how can I accomplish 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] Re: Need A web xml parsing code... Urgently please

2011-12-02 Thread Subin Sebastian
Hi Aniket,

You might probably want to take a look at SAX or JSoup.
By the way : http://www.catb.org/~esr/faqs/smart-questions.html

Regards.

On Fri, Dec 2, 2011 at 10:47 AM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 When I run that code, it never returns from -

 iHaveTheSkillToDoMyOwnWork()

 :-)

 Regards

 On Dec 2, 7:51 am, Streets Of Boston flyingdutc...@gmail.com wrote:
  Sorry Treking,
  But the example you provided won't work. He asked for Urgent*ly* ...
 slight
  typo on your part, can happen to the best of us
  :-D

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] Example to use setError in EditText

2011-12-02 Thread Subin Sebastian
Hi Xiao,

OnKey*();

Regards

On Thu, Dec 1, 2011 at 8:37 PM, Xiao-long Gou xiaolong@gmail.comwrote:

 Hey, guys.

 I just want to see where should I call setError(),if I want validation
 information to be poped each time the content is changed.

 Regards,
 XLG

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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-serialport-api reading from serial port problem

2011-12-02 Thread srinivasan shanmugam
Hi Everyone,

I am trying to read data from a serial port in the below given opencv
link, I have no problem with
sending bytes. Everything works fine. There is a problem when i
receive bytes. Every time a read a byte from ttymxc0 something happens
and the byte is not only read for the first time it is sending some
junk data  but after pressing the the two enter keys it is able to
read the data correctly but my concern to read the data without
pressing any enter keys in the beginning only.

http://code.google.com/p/android-serialport-api/source/checkout

So could any body provide sme corrected code to get rid of this
annoying serial port read problem,

Am new to this android applications development, pls help me.

Advanced Thanks,
Srinivasan S

-- 
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 useful testing actually possible?

2011-12-02 Thread Trev Sorbie
I've been developing in Java for several years and love TDD. I'm
fairly new to developing for Android and am having to spend lots of
time understanding how to test drive my Android development.

Why aren't there any useful tests for the examples that get promoted?
IOSched, for example, has 78 classes. How many tests does it have?
NONE!

Actually it does have a directory called tests.old. Let's look in
there...

How many tests are there? Seven...YES, just SEVEN!

What do those tests actually test? Four of them test a utility class
that parses XML. What about the other three? They test how to get
those XML records from a Provider and then mindlessly goes through
checking lots of strings and other entries match. One test is 160
lines long and has about 90 asserts!

Where are the tests for the Activities, the Fragments and all those
other Android components?

Why aren't we seeing a decent set of tests included with these
examples? Does anyone know how to write decent unit tests for Android?
Is this why we aren't seeing any examples with useful tests? Is it
because no-one knows how to write useful tests?

I have read in many other locations there are various TestCases
available for testing applications but where are some useful examples
for someone new to developing on Android?

I think this goes some way to explaining why there are many bad
practices in the Android examples and the API itself. The number of
bad smells in the code - static variables, feature envy, public member
variables, reliance on inheritance over composition. The list goes on.
It's as if we were back in the mid-nineties.

I think the lack of tests we're seeing is because the API wasn't
developed using tests. It wasn't designed for use and now it's
difficult to test.

I hope I get lots of people able to prove me wrong on this who have
useful tests based around ActivityUnitTestCase, some of the
Instrumentation test cases and using many of the mock objects that are
available.

Are we going to start seeing some tests being provided with these
example apps?

In the meantime, can anyone point me in the direction of some useful,
but elusive, examples?

Many thanks to anyone who can assist.

Trev

-- 
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] Video in Landscape mode

2011-12-02 Thread Ali Rangwala
Dear All,

We have an application playing video in Portrait mode and want to enable an
option to have users play it in Landscape mode as well. Any solutions,
pointers, directions ?

BR,
Ali

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