[android-developers] Questions reg. handling WiFi disconnects when device sleeps

2010-11-22 Thread Samuh
I am connecting to a remote server in my Android application. I have
noticed that when the device goes to sleep/standby WiFi is
disconnected and that when the device wakes up, it gets reconnected. A
check-Network-Connectivity code has been put before
httpClient.execute(..) call.

An assumption is made that when the data transfer is being done and if
the device goes to sleep then Android runtime will switch to another
medium for connectivity(3G,GPRS etc.). I have a few questions
regarding the same:
1. How seamless is the switch from WiFi to alternate cellular service
say 3G? Does the developer have to do anything at his end?
2. Sometimes, WiFi are preferred over other channels. Is it possible
to wait for WiFi to reconnect? Links to APIs and/or some sample code
would be great.
3. Should I make the thread to explicitly hold a wakelock before it
performs a network IO?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Query on Customs Map application

2010-11-22 Thread Satya
Hi trek,

Thanks for your response.
WRT the second point. If at all some application developer develops a
custom Maps application then how can he put that on to the target
because all custom Maps applications needs to include
com.google.android.maps in the respective Manifest files. By default
you wont get this library when downloaded from the net (Say Froyo
2.2).
So my undersatnding is we have to get intouch with Google to get these
additional packages.  Let me know  your thouts on this.

Thanks and Regards,
Satya



On Nov 20, 1:54 am, TreKing treking...@gmail.com wrote:
 On Mon, Nov 15, 2010 at 12:49 AM, Satya ksprasa...@gmail.com wrote:
  1. If we pull Google MAPS application from an Android phone say Nexus One
  and use the same on our target will the map application work?

 No. The Google Maps API Add-On (the library you have to link against) !=
 Google Maps App (a stand-alone application that may use said add-on).

  2. How and where do we get com.google.android.maps package?

 You don't, AFAIK. It comes pre-installed on some devices. I have no idea
 what goes into getting it installed on some devices.

 ---­--
 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] How to create a emulator for Samsung Galaxy

2010-11-22 Thread Marcin Orlowski
On 22 November 2010 07:48, Android Humanoid droid.hu...@gmail.com wrote:

 Can anyone tell me how to create an emulator for samsung phone. Is
 there any add-on for this.

New to internet search? http://innovator.samsungmobile.com/galaxyTab.do

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activity state

2010-11-22 Thread pedr0
Hi at all,

I want see the state of my activity (Pause Stop Resume etc etc)
without override each methods like this:

onPause(){
super();
Log.d(TAG, this activity+name+will come in Pause state);
}

There is a way to see that using an Android tools ?DDMS allow to see
this, I think not but I ask for be sure.

Thanks a lot.


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


[android-developers] onCallbackDied

2010-11-22 Thread Ravi Singh
Hi,
I have a remote service which has many clients connected(BINDed) to
it. In my service, I wish to perform some functionality when any of my
clients is crashed/killed unexpectedly.
I came to know about onCallbackDied() API but don't know how to use.
Any example or link showing usage of onCallbackDied(0 would be
helpful.

Thanks,
Ravi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Passing values from an Activity to a class that extends View Class

2010-11-22 Thread Kostya Vasilyev
It's typical in Android apps for Activity (or closely held code, like 
small inner class helpers) to coordinate setting values in views, based 
on data stored in the activity.


However, sometimes it doesn't work well, such as when you have a custom 
View subclass that does more than display a piece of text or one of 
pre-defined images (that could be pushed by the activity):


This is exactly what the OP was asking about:


In my Activity,i will pass some co-ordinate values to the class that
extends View... In this class,i will draw an image and place points
over the image on the required co-ordinates...


I ran into the same thing in my app, implementing a radar view for 
active WiFi networks. The list is stored in the activity, and can change 
at any time, and the view needs to be reflect those changes:


http://kmansoft.files.wordpress.com/2010/06/snap-en-radar.png

There is also a Settings object, that controls, in particular, how the 
radar should be drawn.


To me, that's a good place to use an MVC-like pattern.

It seems cleaner than pushing multiple objects into the view, with a 
set method for each. My Activity subclass always has correct 
(up-to-date) data objects, and thus the view is guaranteed to also 
always get fresh up-to-date values.


-- Kostya

22.11.2010 2:32, Frank Weiss пишет:
My understanding of MVC and the Android SDK is informed by the 
ListView/ListAdapter relationship.
I'm wondering why anyone would suggest and why the OP would suppose 
that the Activity should be supplying the model data to the View.

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



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Re: When is android market opening to India??

2010-11-22 Thread Vijay Vikrant
But the market is not yet open to Developers in India. Any clue if
that is on cards anytime soon??

Regards,
Vikrant




On Sat, Oct 9, 2010 at 2:43 AM, Pent tas...@dinglisch.net wrote:
 India got paid apps on the 6th and I have since had orders from
 customers in India.

 Ditto, though not many.

 Pent

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] ServerManagedPolicy not working as expected - getting many This app is not licensed responses.

2010-11-22 Thread kk
Hi all,

I've implemented the ServerManagedPolicy based on the sample in the
LVL libs.
My understanding was that it's much more flexible comparing to the
StringPolicy in the it  caches responses and it
doesn't always need to check.

In my dev panel I have the settings for my app returning LICENSED all
the time. This works quite a few of the times
but when I don't have signal (e.g. when I'm on the tube/underground) I
get:

com.android.vending.AsynchRequestRunner$1.runRequestRetrying
Failure(): Got IOException from async request: Host is unresolved:
android.clients.google.com:80

Am I missing something? Do I need to tweak any settings regarding the
caching?
I'm playing the game - all is fine. 5 minutes later I'm somewhere
without a signal and I get the App is not licensed dialog.
How soon does the caching expire?

cheers,
kk.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android market free app unchanged for the last 4 days

2010-11-22 Thread Evgeny V
The same for both paid and free applications.  No updates about 4 days.

Thanks,
Evgeny


On Mon, Nov 22, 2010 at 7:15 AM, narasimha rao knarasimha@gmail.comwrote:

 in android market i am publish app 4 days back , just the download numbers
 for my (free) app have been unchanged for the last 4
 days.only show in number of rating only . Doubtless they will get round to
 updating them eventually.

 --
 Thanks  Regards,

 KVL Narasimha Rao.
 Contact No: +91 9912656178

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-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

[android-developers] Re: Android market free app unchanged for the last 4 days

2010-11-22 Thread Nacho Pintos
Same here, both paid and Free, since last Thursday

On 22 nov, 11:25, Evgeny V evgen...@gmail.com wrote:
 The same for both paid and free applications.  No updates about 4 days.

 Thanks,
 Evgeny

 On Mon, Nov 22, 2010 at 7:15 AM, narasimha rao 
 knarasimha@gmail.comwrote:







  in android market i am publish app 4 days back , just the download numbers
  for my (free) app have been unchanged for the last 4
  days.only show in number of rating only . Doubtless they will get round to
  updating them eventually.

  --
  Thanks  Regards,

  KVL Narasimha Rao.
  Contact No: +91 9912656178

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@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] Re: order by clause

2010-11-22 Thread pramod.deore
I have still the problem. I read at

http://books.google.co.in/books?id=2XeNswkT_2YCpg=PA232lpg=PA232dq=order+by+clause+androidsource=blots=omdYC77sPUsig=xsqE8Pp29uTnjVAaxwDbr2vN7Xshl=enei=wjzqTKaLGMilcMGo_dUKsa=Xoi=book_resultct=resultresnum=4ved=0CCgQ6AEwAzgK#v=onepageq=order%20by%20clause%20androidf=false

as it write query as
constantsCursor = db.rawQuery(SELECT _ID ,title,value +
FROM constants ORDER BY title,null);

I also tried like above

Cursor c = sampleDB.rawQuery (SELECT
SwitchID,SwitchName,RoomID,RoomName+
From SwitchTable ORDER BY RoomID,null);

But still not getting output.


On Nov 22, 9:56 am, pramod.deore deore.pramo...@gmail.com wrote:
 I had also tried as

 Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
                             {SwitchID,SwitchName,RoomID,RoomName}, RoomID=
 ,null,null,null, ASC);

 But still it is not working.Any clue?

 On Nov 22, 9:13 am, pramod.deore deore.pramo...@gmail.com wrote:

  Hi ,
  I have a table that has 4 columns.There is no primary key in that
  table. Now I want to retrieve table data according to ascending order
  of one column (say ascending order of RoomID). I had tried it as

  Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
                              {SwitchID,SwitchName,RoomID,RoomName},
  RoomID+  ASC ,null, null, null, null);

  But it doesn't work. Anyone know what is wrong here?
  Thanks



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


[android-developers] How to embed an external Activity inside one of mine?

2010-11-22 Thread Francesco Vadicamo
Hi all,
I need an Activity showing a specified PDF and two buttons. Is
possibile to embed an external PDF viewer - showing a specified URI -
inside the view of my application?
How can I do it?
Thanks in advance,
Francesco

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Update to sdk have broken app building..

2010-11-22 Thread Namrata
Hi,

I am building an application which has one android lib. For android
lib android.library=true set in default.properties. In main
application have mentioned android.library.reference.1 with correct
path. Using ant it was building fine prior to update sdk to 2.2. Now
it is giving following error

 /home/xxx/project_path/android/build.xml:109: /home/xxx/lib_path/
android resolve to a path with no default.properties file for project /
home/xxx/project_path/android

Then I tried with new sdk installation with version 2.1 on which it
was working fine, but now on it also its giving same error. I have
tried with multiple combinations by changing properties file but no
luck.

Do anybody have idea what can be broken?

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] Re: order by clause

2010-11-22 Thread ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
I made this for myself and it works
I created a class named fro example dbFile
public class DbFile  {
static Cursor getAll(SQLiteDatabase db) {
return(db.rawQuery(SELECT * FROM TableName ORDER BY ColumnName,
null));
}
}

and from my activity class i declare
Cursor model=null;
and on create i call:
model=DbFile.getAll(db);


2010/11/22 pramod.deore deore.pramo...@gmail.com

 I have still the problem. I read at


 http://books.google.co.in/books?id=2XeNswkT_2YCpg=PA232lpg=PA232dq=order+by+clause+androidsource=blots=omdYC77sPUsig=xsqE8Pp29uTnjVAaxwDbr2vN7Xshl=enei=wjzqTKaLGMilcMGo_dUKsa=Xoi=book_resultct=resultresnum=4ved=0CCgQ6AEwAzgK#v=onepageq=order%20by%20clause%20androidf=false

 as it write query as
 constantsCursor = db.rawQuery(SELECT _ID ,title,value +
 FROM constants ORDER BY title,null);

 I also tried like above

 Cursor c = sampleDB.rawQuery (SELECT
 SwitchID,SwitchName,RoomID,RoomName+
From SwitchTable ORDER BY RoomID,null);

 But still not getting output.


 On Nov 22, 9:56 am, pramod.deore deore.pramo...@gmail.com wrote:
  I had also tried as
 
  Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
  {SwitchID,SwitchName,RoomID,RoomName},
 RoomID=
  ,null,null,null, ASC);
 
  But still it is not working.Any clue?
 
  On Nov 22, 9:13 am, pramod.deore deore.pramo...@gmail.com wrote:
 
   Hi ,
   I have a table that has 4 columns.There is no primary key in that
   table. Now I want to retrieve table data according to ascending order
   of one column (say ascending order of RoomID). I had tried it as
 
   Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
   {SwitchID,SwitchName,RoomID,RoomName},
   RoomID+  ASC ,null, null, null, null);
 
   But it doesn't work. Anyone know what is wrong here?
   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.comandroid-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

[android-developers] Re: order by clause

2010-11-22 Thread pramod.deore

Hi, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ yes it solves my problem. But I don't understand
what earlier query not work.

On Nov 22, 4:28 pm, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com wrote:
 I made this for myself and it works
 I created a class named fro example dbFile
 public class DbFile  {
 static Cursor getAll(SQLiteDatabase db) {
 return(db.rawQuery(SELECT * FROM TableName ORDER BY ColumnName,
 null));

 }
 }

 and from my activity class i declare
 Cursor model=null;
 and on create i call:
 model=DbFile.getAll(db);

 2010/11/22 pramod.deore deore.pramo...@gmail.com

  I have still the problem. I read at

 http://books.google.co.in/books?id=2XeNswkT_2YCpg=PA232lpg=PA232dq...

  as it write query as
  constantsCursor = db.rawQuery(SELECT _ID ,title,value +
  FROM constants ORDER BY title,null);

  I also tried like above

  Cursor c = sampleDB.rawQuery (SELECT
  SwitchID,SwitchName,RoomID,RoomName+
                                 From SwitchTable ORDER BY RoomID,null);

  But still not getting output.

  On Nov 22, 9:56 am, pramod.deore deore.pramo...@gmail.com wrote:
   I had also tried as

   Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
                               {SwitchID,SwitchName,RoomID,RoomName},
  RoomID=
   ,null,null,null, ASC);

   But still it is not working.Any clue?

   On Nov 22, 9:13 am, pramod.deore deore.pramo...@gmail.com wrote:

Hi ,
I have a table that has 4 columns.There is no primary key in that
table. Now I want to retrieve table data according to ascending order
of one column (say ascending order of RoomID). I had tried it as

Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
                            {SwitchID,SwitchName,RoomID,RoomName},
RoomID+  ASC ,null, null, null, null);

But it doesn't work. Anyone know what is wrong here?
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.comandroid-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


[android-developers] Display Calendar Instance

2010-11-22 Thread paresh mayani
Hello all,
i have referred the example given on: http://goo.gl/1uxXv ,
But it is not showing the exact DatePicker dialog as given in the book
example,

what i should do to display the same dialog box or Calendar instance
in my application ??

pls 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


Re: [android-developers] Re: order by clause

2010-11-22 Thread ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
If you work on Eclipse try to read carefully the Console and logCat window,
maybe there you'll find the answer

Στις 22 Νοεμβρίου 2010 1:38 μ.μ., ο χρήστης pramod.deore 
deore.pramo...@gmail.com έγραψε:


 Hi, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ yes it solves my problem. But I don't understand
 what earlier query not work.

 On Nov 22, 4:28 pm, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com wrote:
  I made this for myself and it works
  I created a class named fro example dbFile
  public class DbFile  {
  static Cursor getAll(SQLiteDatabase db) {
  return(db.rawQuery(SELECT * FROM TableName ORDER BY ColumnName,
  null));
 
  }
  }
 
  and from my activity class i declare
  Cursor model=null;
  and on create i call:
  model=DbFile.getAll(db);
 
  2010/11/22 pramod.deore deore.pramo...@gmail.com
 
   I have still the problem. I read at
 
  http://books.google.co.in/books?id=2XeNswkT_2YCpg=PA232lpg=PA232dq.
 ..
 
   as it write query as
   constantsCursor = db.rawQuery(SELECT _ID ,title,value +
   FROM constants ORDER BY title,null);
 
   I also tried like above
 
   Cursor c = sampleDB.rawQuery (SELECT
   SwitchID,SwitchName,RoomID,RoomName+
  From SwitchTable ORDER BY
 RoomID,null);
 
   But still not getting output.
 
   On Nov 22, 9:56 am, pramod.deore deore.pramo...@gmail.com wrote:
I had also tried as
 
Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
{SwitchID,SwitchName,RoomID,RoomName},
   RoomID=
,null,null,null, ASC);
 
But still it is not working.Any clue?
 
On Nov 22, 9:13 am, pramod.deore deore.pramo...@gmail.com wrote:
 
 Hi ,
 I have a table that has 4 columns.There is no primary key in that
 table. Now I want to retrieve table data according to ascending
 order
 of one column (say ascending order of RoomID). I had tried it as
 
 Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]

 {SwitchID,SwitchName,RoomID,RoomName},
 RoomID+  ASC ,null, null, null, null);
 
 But it doesn't work. Anyone know what is wrong here?
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-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

[android-developers] su: permission denied error

2010-11-22 Thread kamiomar
By using command prompt access the device shell/terminal. then use the
su command getting permission denied error. Why this happening?

how can i solve this problem.

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


[android-developers] Problem with playing sound

2010-11-22 Thread tina lincon
Hi all,
I am playing a sound in my application.Most of the time it plays
succesfully without any pause.It is a short duration type sound file
which lasts for 1 sec(a tick -tock sound of clock) which I am
repeatedly playing infinitely and most of the times there are no
issues.But rarely it happens that the sound suddenly stops playing and
will show the log as below:

TimedEventQueue :Event no:x was not found in the queue , already
cancelled

And once it is stopped, it never restarts.

Could anyone please help me to find a solution for this?
Thanks in advance,
Regards,
Tina Lincon

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 for OCR library?

2010-11-22 Thread Ray da Costa
Regards The cool, but runs on android? Have you ever done anything to Andoid
this api?

2010/11/21 JP joachim.pfeif...@gmail.com


 Assembly required.


 On Nov 21, 4:34 am, ko5tik kpriblo...@yahoo.com wrote:
  On Nov 20, 8:36 pm, JP joachim.pfeif...@gmail.com wrote:
 
   The Tessaract OCR engine:http://code.google.com/p/tesseract-ocr/
   has been integrated in Android. Here's a writeup by a team that's
   gotten it to work:
 http://www.itwizard.ro/mezzofanti-augmented-reality-through-text-reco...
 
  Could not install it on 2.1 - HTC Hero...

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




-- 
Ray da Costa
The best way to predict the future is to invent it.
Alan Kay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem in loading image on the layout on clicking button.

2010-11-22 Thread alok upadhyay
thanks for the hint!!

On Sat, Nov 20, 2010 at 12:54 AM, TreKing treking...@gmail.com wrote:

  On Wed, Nov 17, 2010 at 12:37 AM, Alok Upadhyay 
 maddy.luck...@gmail.comwrote:

 Problem:i am able to load images in next button click but as i click on
 back button no image got loaded.


 Look at the code you posted:

  case R.id.next:
Log.i(Tag,tag);
if(imageCounter  25)//if(imageCounter  arrayList.length())
{
imageCounter++;
imagePath = imageList[imageCounter];
}
break;
case R.id.back:
if(imageCounter  0)
{
imagePath = imageList[imageCounter];
}
break;



 Now ask yourself: What am I doing in case R.id.next that I'm not doing in
 case R.id.back?


 -
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Thanks  Regards
Alok Upadhyay
9555758721

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 for OCR library?

2010-11-22 Thread Ray da Costa
How to proceed to install the HTC 1.6?

2010/11/22 Ray da Costa raydaco...@gmail.com

 Regards The cool, but runs on android? Have you ever done anything to
 Andoid this api?

 2010/11/21 JP joachim.pfeif...@gmail.com


 Assembly required.


 On Nov 21, 4:34 am, ko5tik kpriblo...@yahoo.com wrote:
  On Nov 20, 8:36 pm, JP joachim.pfeif...@gmail.com wrote:
 
   The Tessaract OCR engine:http://code.google.com/p/tesseract-ocr/
   has been integrated in Android. Here's a writeup by a team that's
   gotten it to work:
 http://www.itwizard.ro/mezzofanti-augmented-reality-through-text-reco...
 
  Could not install it on 2.1 - HTC Hero...

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




 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay




-- 
Ray da Costa
The best way to predict the future is to invent it.
Alan Kay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bluetooth in Andoid?

2010-11-22 Thread Ray da Costa
Nanek Lance, thank you. I tried to do this, notice if it works. But still no
one in the group knows where or how to go about these ABIX pacontes, the
link:
http://developer.android.com/resources/samples/BluetoothChat/index.html not
have details.

2010/11/19 Lance Nanek lna...@gmail.com

 You need to include some sort of library on older version of Android,
 if I recall correctly. Newer versions you don't need to include
 anything. The Bluetooth chat sample shows how to prompt the user to
 enable it when needed and whatnot:
 http://developer.android.com/resources/samples/BluetoothChat/index.html

 On Nov 19, 4:03 am, Ray da Costa raydaco...@gmail.com wrote:
  Friends anyone have any tips on how to use Bluetooth in Andoid?
  You have to install anything?
  Or there is no single developer available for us?
 
  --
  Ray da Costa
  The best way to predict the future is to invent it.
  Alan Kay

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




-- 
Ray da Costa
The best way to predict the future is to invent it.
Alan Kay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bluetooth in Andoid?

2010-11-22 Thread Kostya Vasilyev

Bluetooth support in Android 2.0 is more complete than in previous releases.

If supporting 1.5 and 1.6 devices is a priority, take a look at this:

There is a library that fills some of the gaps, available here:

http://code.google.com/p/android-bluetooth/

It appears to have been abandoned (they talk about a future release in 
October 2009), but perhaps you can learn something from the code.


-- Kostya

22.11.2010 15:23, Ray da Costa ?:
Nanek Lance, thank you. I tried to do this, notice if it works. But 
still no one in the group knows where or how to go about these ABIX 
pacontes, the link: 
http://developer.android.com/resources/samples/BluetoothChat/index.html not 
have details.


2010/11/19 Lance Nanek lna...@gmail.com mailto:lna...@gmail.com

You need to include some sort of library on older version of Android,
if I recall correctly. Newer versions you don't need to include
anything. The Bluetooth chat sample shows how to prompt the user to
enable it when needed and whatnot:
http://developer.android.com/resources/samples/BluetoothChat/index.html

On Nov 19, 4:03 am, Ray da Costa raydaco...@gmail.com
mailto:raydaco...@gmail.com wrote:
 Friends anyone have any tips on how to use Bluetooth in Andoid?
 You have to install anything?
 Or there is no single developer available for us?

 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay

--
You received this 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




--
Ray da Costa
The best way to predict the future is to invent it.
Alan Kay
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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

[android-developers] Re: Issue loading native libraries (i.e. System.load()/dlopen) on my Nexus One after FRG83 System update

2010-11-22 Thread Piyush Khanna
Hi David,

Thanks so much for your post...very helpful :) I'll definitely try the
'user' build and check the issue.
I'm not exactly sure which tool to use for getting a dump of the
dynamic section and dynamic symbol table...is it 'nm'?

Thanks,
Piyush


On Nov 18, 8:26 pm, David Turner di...@android.com wrote:
 On Wed, Nov 17, 2010 at 7:24 AM, Piyush Khanna 
 piyushkhann...@gmail.comwrote:



  Hi,

  I am an Android app developer, and I have purchased a Nexus One device
  which I use to continuously test my developed Android applications.

  Background:
  -
  One of the applications I developed uses a native shared library (e.g.
  myNativeLib.so). Only my application loads  uses this native library.
  I had developed this app before Android NDK came out. I pack my native
  library into my apk's 'assets' folder, and during my application start-
  up, I extract this native library from my package's assets folder to
  my app private directory (i.e. assets - /data/data/myappprocess/
  myNativeLib.so). Then I use System.load() API in my application to
  dynamically load this native library.

  Does your library depends on a system library that was not exposed through

 the NDK?
 If so, this behaviour is to be expected. Otherwise, this is strange.



  Problem:
  
  This application was developed during Android 1.5 (i.e. cupcake) days
  {I didn't have the Nexus One then}. The above procedure has been
  working without any problems right from Android 1.5 to Android 2.2
  (i.e. Froyo). I have also tested the same on my Nexus One for Android
  2.1 (i.e. Eclair) and Android 2.2.

  The problem began the moment I recently upgraded my Nexus One to
  Android 2.2.1 via the FRG83 system update. Now, whenever I try to load
  my native library, I get the following error:

  D/dalvikvm( 3653): Trying to load lib /data/data/myappprocess/
  mynativelib.so some address
  I/dalvikvm( 3653): Unable to dlopen(/data/data/myappprocess/
  mynativelib.so): Cannot load library: link_image[1995]: failed to
  link mynativelib.so

  I believe there should be an error message from the linker just before that

 which indicates what the problem with your library is
 (e.g. missing symbol or library dependency). Can you look at it?



  What I have Tried:
  --
  1. I tried my application using Android 2.2 SDK (emulator)...it works,
  no issues.
  2. I checked out the latest froyo  android2.2.1 source code from
  Android open-source, built  tested my application
    + native lib using the latest froyo source...it built  ran, no
  issues. This should've taken care of any changes in the
    native code dependencies between Android 2.2  Android 2.2.1
  3. I even checked Android 2.2.1 source code for dalvik (java System 
  Runtime classes)  + bionic (linker  dlopen
     sources) between Android 2.2  Android 2.2.1 (using source checked
  out from Android open-source), but couldn't
     find anything consequential
  4. I am unable to return my Nexus One to Android 2.2 :(

  I'm now confused...is the open-sourced-code for Android 2.2.1
  different from what's available on Nexus One? What can I do to make my
  application work on Nexus One?

 The FRG83 image does not correspond 100% to the content of the Android
 open-source tree,
 but the most likely reason for the difference might be that you are running
 a user build on the
 Nexus, while you built a user-debug or eng build from the source tree.
 They have a few
 differences related to security which might explain the issue.

 It's hard to tell without more information. For the record, can you dump the
 dynamic section and dynamic symbol table from your shared library?



  ---
  ---
  Device: Nexus One
  Carrier: Airtel
  Country / Language: India/en
  OS / build number (if applicable): Android 2.2.1 / FRG83
  ---

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-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


Re: [android-developers] Re: Android market free app unchanged for the last 4 days

2010-11-22 Thread Marcin Orlowski
On 22 November 2010 12:05, Nacho Pintos nacho.pin...@gmail.com wrote:
 Same here, both paid and Free, since last Thursday

Mine updates

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


[android-developers] Stopping activity problem

2010-11-22 Thread umakantpatil
I have app which has around 5 activities.

When App is loaded I open Activity A and IF user opens then menu and
click on button 2 then Activity B is opened, If users clicks button 3
from menu then Activity C is opened. Its just like instead of tab i m
using menu.

Now the problem is. If i m at Activity A and I click back button I
finish() the Activity A. But Activity B is shown. Now when again click
back on B then Activity C is shown.

What I want. If I'm at activity A and press back button then need to
close all other activities too.


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


[android-developers] Re: Stopping activity problem

2010-11-22 Thread umakantpatil
In short,
question is how to close B activity from activity A. ?

On Nov 22, 6:34 pm, umakantpatil umakantpat...@gmail.com wrote:
 I have app which has around 5 activities.

 When App is loaded I open Activity A and IF user opens then menu and
 click on button 2 then Activity B is opened, If users clicks button 3
 from menu then Activity C is opened. Its just like instead of tab i m
 using menu.

 Now the problem is. If i m at Activity A and I click back button I
 finish() the Activity A. But Activity B is shown. Now when again click
 back on B then Activity C is shown.

 What I want. If I'm at activity A and press back button then need to
 close all other activities too.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Crash Reports - new version of ACRA available for tests

2010-11-22 Thread mot12
Kevin,

This is great. I love the new integration and will start my own
testing soon. Thanks again for providing such a great tool.

Martin
mobitobi.com
Gentle Alarm, Sleep Now

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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: Stopping activity problem

2010-11-22 Thread paulb
Can you close the activities after you activate the next one? Then,
you will only ever have open one activity.

On Tue, Nov 23, 2010 at 12:50 AM, umakantpatil umakantpat...@gmail.com wrote:
 In short,
 question is how to close B activity from activity A. ?

 On Nov 22, 6:34 pm, umakantpatil umakantpat...@gmail.com wrote:
 I have app which has around 5 activities.

 When App is loaded I open Activity A and IF user opens then menu and
 click on button 2 then Activity B is opened, If users clicks button 3
 from menu then Activity C is opened. Its just like instead of tab i m
 using menu.

 Now the problem is. If i m at Activity A and I click back button I
 finish() the Activity A. But Activity B is shown. Now when again click
 back on B then Activity C is shown.

 What I want. If I'm at activity A and press back button then need to
 close all other activities too.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: Stopping activity problem

2010-11-22 Thread umakantpatil
Thanks paul.
That is the solution currently i have with me. But i dont want that
because:

Each activity fetches valued from db and renders them.
So when i move within the activities. Each time it doesn't fetch data
from and and re-render it. It just brings the activity to the front.
But If i keep closing the activity then each time it will fetch data
and render it.


On Nov 22, 7:20 pm, paulb pbizan...@gmail.com wrote:
 Can you close the activities after you activate the next one? Then,
 you will only ever have open one activity.







 On Tue, Nov 23, 2010 at 12:50 AM, umakantpatil umakantpat...@gmail.com 
 wrote:
  In short,
  question is how to close B activity from activity A. ?

  On Nov 22, 6:34 pm, umakantpatil umakantpat...@gmail.com wrote:
  I have app which has around 5 activities.

  When App is loaded I open Activity A and IF user opens then menu and
  click on button 2 then Activity B is opened, If users clicks button 3
  from menu then Activity C is opened. Its just like instead of tab i m
  using menu.

  Now the problem is. If i m at Activity A and I click back button I
  finish() the Activity A. But Activity B is shown. Now when again click
  back on B then Activity C is shown.

  What I want. If I'm at activity A and press back button then need to
  close all other activities too.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Re: Android market free app unchanged for the last 4 days

2010-11-22 Thread John Gaby
My paid apps are updating, but not my free apps.

On Nov 22, 5:21 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 22 November 2010 12:05, Nacho Pintos nacho.pin...@gmail.com wrote:

  Same here, both paid and Free, since last Thursday

 Mine updates

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Digest for android-developers@googlegroups.com - 25 Messages in 18 Topics

2010-11-22 Thread Qin Ding
I have two local html pages.  At start, one page is loaded with a few input
text fields and buttons. One button triggers the second pages to be loaded
with a few input fieds and buttons.  Now, my JavascriptInterface on the main
activity tris to populate the second page's input test by calling the
pages's javascript function, just as what I did on the first page.  However,
the function on the second page seems not visiable to the
javascriptInterface on main activity.  Error: refereenced var xxx not
defined.

Page1 has
function display1(data){
  document.getElementById('d1').value = data[1];
}
input id=d1 type=text/

Page2 has
 function display2(data){
  document.getElementById('d2').value = data[2];
}
input id=d2 type=text/

JavascriptInterface(){
   ..
*

public* *void* loadSecondPage(){

webView.loadUrl(file:///android_asset/second.html);

CollectionString c = *new* ArrayListString();

--

JSONArray ja = *new* JSONArray(c);

String url = javascript:display2( + ja.toString() +);

webView.loadUrl(url);

}
}

Error: the second page is loaded but the display2 is not define

This is just a test app.  I have a few pages and I need to make sure I know
how to navigate these pages and with one main android activity and one
javascriptinterface.

Otherwise, I guess I have to have one activity and one javascriptinterface
for each html page.

Thank you

QD

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using html in WebView to build UI

2010-11-22 Thread JavaMan
Hi all,
I've been building my app using the standard xml and Java Android
layout libraries. I don't like the set up very much; and I would
prefer to build the ui in html. I've been testing the speed of the
WebView; and it seems that it is quite fast at rendering. Does anyone
know if Google has ever said anything on the subject of building the
ui in html and rendering it in a WebView? I know it's perfectly legal
to render the UI in the WebView; but am I going to run into some
problem in the future?
Thanks,
Vance

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Just a concern on Async Task

2010-11-22 Thread umakantpatil
Hey,

I just have a concern about AsycnTask. If i have one activity which
starts a async task.
Now that activity goes in background and new activity gets opened 
visible to us.

So the async task opened by previous activity stops or it still keeps
going in background or it pauses or stops  ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] A scroll view with only part of the screen scrolling

2010-11-22 Thread darrinps
I've done this before but what worked for another project isn't
working now.

All I want to do is have a text field and some buttons at the top that
stay anchored and a scroll view under them that scrolls.

Here is what I have. All that does is show the button with everything
else writing over top of it!

What am I doing wrong?

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
 android:orientation=vertical
android:layout_width=fill_parent
 android:layout_height=fill_parent

   RelativeLayout
android:id=@+id/RelativeLayout01
android:layout_width=wrap_content
android:layout_height=wrap_content

 TextView android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:textStyle=bold
   android:text=Select Dog /

 LinearLayout android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
 TextView android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Selected is : 
 /TextView
 Button android:layout_width=100px
  android:layout_height=wrap_content
  android:text=Confirm Selection
  android:id=@+id/selected/
 /LinearLayout
/RelativeLayout

  ScrollView android:id=@+id/ScrollViewSounds
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scrollbars=vertical

 RadioGroup android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:orientation=vertical
  android:id=@+id/QueGroup1

 RadioButton android:checked=false
   android:id=@+id/option_none
   android:text=None/

 RadioButton android:checked=false
  android:id=@+id/option_light_rain
  android:text=Lab/

 RadioButton android:checked=false
  android:id=@+id/option_medium_rain
  android:text=Rotty/

 RadioButton android:checked=false
  android:id=@+id/option_heavy_rain
  android:text=Beagle/

 RadioButton android:checked=false
  android:id=@+id/option_thunder
  android:text=Terrier/

 /RadioGroup

 /ScrollView
/LinearLayout

Also, is there a GOOD tutorial on how to work with Android XML
layouts? I have three books and none of them really explain it well.

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] Just a concern on Async Task

2010-11-22 Thread Mark Murphy
The AsyncTask's background thread will keep running, and so
doInBackground() should run to completion. Work in publishProgress()
and onPostExecute() may be delayed until the activity is resumed -- I
have not tried that scenario.

On Mon, Nov 22, 2010 at 10:21 AM, umakantpatil umakantpat...@gmail.com wrote:
 Hey,

 I just have a concern about AsycnTask. If i have one activity which
 starts a async task.
 Now that activity goes in background and new activity gets opened 
 visible to us.

 So the async task opened by previous activity stops or it still keeps
 going in background or it pauses or stops  ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using html in WebView to build UI

2010-11-22 Thread Mark Murphy
Considering that PhoneGap, Rhodes, Titanium Mobile, and other
frameworks are all based on using WebView for rendering UIs, you are
in good company.

Bear in mind that *users* may or may not agree with your decision,
since your UI will tend to look and feel different than a native UI.

On Mon, Nov 22, 2010 at 10:11 AM, JavaMan vt903...@ohio.edu wrote:
 Hi all,
 I've been building my app using the standard xml and Java Android
 layout libraries. I don't like the set up very much; and I would
 prefer to build the ui in html. I've been testing the speed of the
 WebView; and it seems that it is quite fast at rendering. Does anyone
 know if Google has ever said anything on the subject of building the
 ui in html and rendering it in a WebView? I know it's perfectly legal
 to render the UI in the WebView; but am I going to run into some
 problem in the future?
 Thanks,
 Vance

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


[android-developers] View.computeScroll(): How to implement it correctly?

2010-11-22 Thread Jonas Schwertfeger
This has been asked before by Daren (here
http://groups.google.com/group/android-developers/browse_thread/thread/ab41256a0f57cd44/0c082d62ed206733
and here 
http://groups.google.com/group/android-developers/browse_thread/thread/3e6276e775b9685b/8b37670956c9b03f)
and even though Romain Guy replied, his replies didn't really answer
the questions.  Here's another try:

When doing scrolling animation in View's computeScroll(), we cannot
access the members mScrollX and mScrollY directly.  They are hidden
from the API;  funnily enough, Google doesn't seem to eat their own
dog food, meaning, they don implement their own apps against the API.
For instance, Launcher and Launcher2 both access these members
directly to create Android's home screen flinging (http://
android.git.kernel.org/?p=platform/packages/apps/
Launcher2.git;a=blob_plain;f=src/com/android/launcher2/
Workspace.java;hb=master).

Instead of accessing these members, one should call scrollTo() with
the desired X and Y parameters.  scrollTo() then in turn calls
invalidate() which should make the screen being redrawn and
computeScroll() being called again, thus, creating a sort of animation
loop.  Unfortunately, as Daren pointed out, invalidate() does not seem
to cause computeScroll() being called again.  Nothing animates.
Calling postInvalidate() however does the trick.  Hence, my current
workaround is to call scrollTo(), followed by postInvalidate().  This
seems ugly since now both invalidate() and postInvalidate() are being
called at the same time.

From looking at the postInvalidate() code I don't see how it is any
different from invalidate().  It is simply an invalidate() call posted
into the main thread's message queue.

1. Can anyone clarify why postInvalidate() works, while invalidate()
doesn't?

2. What is the correct way to implement computeScroll(), without
calling both invalidate() and postInvalidate()?

Thanks,
-Jonas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 for OCR library?

2010-11-22 Thread JP
See if you can find the Mezzonfanti app somewhere. I've tried it out
last year, it ran just fine.
Unless unpublished, it should still be in the Market.
I experimented with Tessaract OCR on a client project some three
months ago, but they put a stop on it before I could finish it. At any
rate, getting this to work is quite an advanced exercise.


On Nov 22, 4:14 am, Ray da Costa raydaco...@gmail.com wrote:
 Regards The cool, but runs on android? Have you ever done anything to Andoid
 this api?

 2010/11/21 JP joachim.pfeif...@gmail.com





  Assembly required.

  On Nov 21, 4:34 am, ko5tik kpriblo...@yahoo.com wrote:
   On Nov 20, 8:36 pm, JP joachim.pfeif...@gmail.com wrote:

The Tessaract OCR engine:http://code.google.com/p/tesseract-ocr/
has been integrated in Android. Here's a writeup by a team that's
gotten it to work:
 http://www.itwizard.ro/mezzofanti-augmented-reality-through-text-reco...

   Could not install it on 2.1 - HTC Hero...

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

 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] using sqlite in native code

2010-11-22 Thread manigault
Hi all i have a library written in C which implements some complicated
algorithm over two databases and as a result produce new one. I am
trying to import it in android using android-ndk. What is the correct
wat to use sqlite in you native libraries, i was able to build the
sqlite manually using the ndk but when i use it gives some strange
errors when trying to fetch rows from db which is on phone storate -
after i fetch some data i got SQL:database not opened. So any ideas
how can use sqlite in native code on android.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Guidelines on using Webview to render UI - getting approval for Market

2010-11-22 Thread Marcin Orlowski
 Do however expect
 lot of negative comments and 1 star rates for doing this.

 Not necessarily - it all depends on how it's done. Last I checked, for
 example, EverNote was using a webview to implement their native
 Android app, and it has 12457 ratings with an average of 4.08 stars.

Correct. Unfortunately most of that kind is crappy wrap on some sort
of mobile website. Plus tons of ads ;)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 market free app unchanged for the last 4 days

2010-11-22 Thread Marcin Orlowski
On 22 November 2010 15:39, John Gaby jg...@gabysoft.com wrote:
 My paid apps are updating, but not my free apps.

Free of mine are, so it seems like random pattern :/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Developing and debugging on Logitech Revue

2010-11-22 Thread Marcin Orlowski
Hi,

Anyone using Logitech Revue for GTV's development? I mean - are these
any restrictions (Logitech ships within US only for now) or once can i.e.
debug/test their apps outside US w/o much hassle? Any info appreciated

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android Flicker Login

2010-11-22 Thread TreKing
On Wed, Nov 17, 2010 at 9:01 AM, QuocTan queo1...@gmail.com wrote:

 How to login flickr on my android program.


This has nothing to do with Android:
http://www.flickr.com/services/api/

-
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] Developing and debugging on Logitech Revue

2010-11-22 Thread Mark Murphy
You cannot write apps for Google TV at present.

On Mon, Nov 22, 2010 at 10:45 AM, Marcin Orlowski
webnet.andr...@gmail.com wrote:
 Hi,

 Anyone using Logitech Revue for GTV's development? I mean - are these
 any restrictions (Logitech ships within US only for now) or once can i.e.
 debug/test their apps outside US w/o much hassle? Any info appreciated

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] problems reloading map in android.

2010-11-22 Thread TreKing
On Wed, Nov 17, 2010 at 5:19 PM, Riz iz.gem@gmail.com wrote:

 how can i solve this problem ??


Debug your app. Look at the LogCat output to find out what the error is, for
starters.

-
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: how to build android.jar?

2010-11-22 Thread Hal
In very general terms, you can try the following:

- use jar or ant to create the jar file

jar destfile=${lib.home}/android.jar
 basedir=${build.home}/classes/

- This jar file needs to be part of your Eclipse/android project.

This works in general.

On Nov 21, 8:15 pm, Shuo dengshuoama...@gmail.com wrote:
 Hi All,

 I am writing an app which is using the android.jar in dir:

 sdk/platforms/android-4/

 Then I modified some code in the file:

 sdk/platforms/android-4/sources/org/apache/harmony/nio/internal/
 SocketChannelImpl.java

 So how can I rebuild the android.jar and make my app use the code I
 modified?

 Thanks!

 Shuo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: make JPEG image has map

2010-11-22 Thread sal
Hi Kostya,

Thanks for ur concern.

I dont want precision and reliabilty,

I just want a source code of sample application which lets me draw
image has a map and allow me to mark the location on the map.

pointer to sample source code would be appreciated

rgds
Sal

On Nov 20, 3:24 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Are you sure you can get high enough precision from GPS to make
 navigating within an apartment meaningful? Especially considering this
 is presumably indoors, i.e. with the roof blocking the view?

 Unless, of course, your apartment is the size of Taj Mahal :)

 I'd say - download one of applications that let you monitor GPS state,
 and see if your phone can provide enough precision and reliability.

 -- Kostya

 20.11.2010 13:00, suhail ahmed ?:











  Hi guys

  i have a JPEG sketch of my apartment i wish to write android app
  which loads this JPEG file and behaves as a map to the user so that
  user can track is movement.

  I am really confused wheather JPEG file can be used as a map, if it
  can used as a map then please let me know how i can mark the movement
  of the user on that map

  Any sample code would be really appreciated

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

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com

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


[android-developers] Re: Using html in WebView to build UI

2010-11-22 Thread JavaMan
Ok, thanks. I planned on changing the UI look and feel a little
anyway.
I just hope it's fast enough!
Thanks
Vance

On Nov 22, 10:32 am, Mark Murphy mmur...@commonsware.com wrote:
 Considering that PhoneGap, Rhodes, Titanium Mobile, and other
 frameworks are all based on using WebView for rendering UIs, you are
 in good company.

 Bear in mind that *users* may or may not agree with your decision,
 since your UI will tend to look and feel different than a native UI.



 On Mon, Nov 22, 2010 at 10:11 AM, JavaMan vt903...@ohio.edu wrote:
  Hi all,
  I've been building my app using the standard xml and Java Android
  layout libraries. I don't like the set up very much; and I would
  prefer to build the ui in html. I've been testing the speed of the
  WebView; and it seems that it is quite fast at rendering. Does anyone
  know if Google has ever said anything on the subject of building the
  ui in html and rendering it in a WebView? I know it's perfectly legal
  to render the UI in the WebView; but am I going to run into some
  problem in the future?
  Thanks,
  Vance

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] changes to Android Market

2010-11-22 Thread TreKing
2010/11/18 Éva Lovrencsics lovi...@gmail.com

 What is a feature graphic? I googled it but didn't find any example.


I think we're all waiting for Google to explain what the hell these required
graphics are for.

-
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] Custom view in gallery

2010-11-22 Thread TreKing
On Thu, Nov 18, 2010 at 12:59 AM, Shalini coolcool.shal...@gmail.comwrote:

 i want a custom view which will contain one textview and one imageview ,in
 a gallery as an item.


OK.


  can anyone send me the code for that?


No one is going to do your work for you, sorry.


  Please tell me how to do this.


Read the documentation and look at the samples. This is basic Android stuff.
Show your work if you get stuff or need help with specifics.

-
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: Handling Android device without Menu button

2010-11-22 Thread Stephen Lebed
Thanks for the feedback Mark!

It turns out that the device has a menu button in the status bar, and
the user wants me to not display my app full frame in order for him to
access it.  I wonder if devices without a dedicated menu button will
be a major issue in the future.  I really don't want to design my app
with a title or status bar showing unless its necessary.

Best,
Stephen

On Nov 21, 9:17 am, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Nov 21, 2010 at 11:48 AM, Stephen Lebed srle...@gmail.com wrote:
  I have a couple of apps currently in the marketplace and they follow
  the Android design guidelines as close as possible.  One of the people
  who purchased my app says he's using it on a device without a 'menu'
  button.  The device is  a Eken M0002, a 7 tablet running Android 1.6

  I know that tablets are not officially supported yet.  My question is,
  has anyone started dealing with this potential issue, and if so how?

 For applications distributed via the Android Market, all devices the
 app is installed upon should have a MENU button, as that is required
 by the Compatibility Definition Document. Hence, the scenarios in
 which your app will not encounter a MENU button include:

 -- The device manufacturer has pirated the Android Market app

 -- The user is running a pirated Android Market app (e.g., included
 incorrectly in some modded ROM, like SlateDroid)

 -- The user is running a pirated version of your app

 -- You are distributing your app outside of the Android Market

 Of course, there's a big difference between the first three and the last one.

 Here are some options:

 -- Offer each option menu also as a context menu on some likely
 widget, or perhaps on the activity background

 -- Only do the context menu trick on devices known to lack a MENU
 button (use android.os.Build)

 -- Display the menu yourself on some overloaded key for such devices
 (e.g., Eken M001 has MENU printed on the up direction of its
 navigation ring/D-pad-ish-thingy), or based on some gesture using a
 gesture library,

 -- Ignore them, if you are distributing solely on the Android Market

 Tactically, for the Eken M002, the MENU button may be in the status
 bar. It is that way on the ARCHOS 5, plus on the Eken M001 running
 Slatedroid.

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

 Android App Developer 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: Handling Android device without Menu button

2010-11-22 Thread Mark Murphy
On Mon, Nov 22, 2010 at 2:20 PM, Stephen Lebed srle...@gmail.com wrote:
 It turns out that the device has a menu button in the status bar, and
 the user wants me to not display my app full frame in order for him to
 access it.  I wonder if devices without a dedicated menu button will
 be a major issue in the future.  I really don't want to design my app
 with a title or status bar showing unless its necessary.

Well, in general, showing the status bar is a good idea for most
activities. Games, video players, camera apps, etc. are reasonable for
hiding the status bar, but users frequently like to know signal
strength, notifications, battery life, what time it is, etc.

That being said, I'll be somewhat surprised if Google relaxes the MENU
button requirement from the Android Market CDD. In that case, the
question then becomes how popular non-CDD-compliant devices become and
how much overlap there is between those users and users of any given
app. For example, if non-CDD-compliant devices become popular in Asia,
that would be a problem for many apps, but less so for ones targeting
a US audience, for example.

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Anyone seeing mysterious application crashes lately?

2010-11-22 Thread Kostya Vasilyev
I've am seeing some pretty mysterious crash reports in the Market 
Console lately.


One is an OutOfMemoryError in Bitmap.nativeCreate, which is actually a 2 
by 2 bitmap for a hatched Paint object.


Another is a NullPointerException in String.concat - in code that calls 
getTitle on an Activity, appends some non-null strings, and updates the 
title.


There is no device or Android version information in these reports.

I am wondering if anyone else is seeing strange errors like these, and 
whether they can be caused by devices that have really low-quality 
firmware, either custom, or on devices that were not verified by Google.


--

Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Re: Stopping activity problem

2010-11-22 Thread Kostya Vasilyev

Hi,

Take a look at Activity lifecycle chart:

http://developer.android.com/guide/topics/fundamentals.html#actlife

(scroll down a bit to see the chart)

You may need to override onStart or onRestart, and fetch data there.

If you still need to change how your activities behave, take a look at 
various Intent flags that can be used with startActivity. The flag 
constants all start with FLAG_ACTIVIVITY_, and are documented starting here:


http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP

-- Kostya

22.11.2010 17:35, umakantpatil пишет:

Thanks paul.
That is the solution currently i have with me. But i dont want that
because:

Each activity fetches valued from db and renders them.
So when i move within the activities. Each time it doesn't fetch data
from and and re-render it. It just brings the activity to the front.
But If i keep closing the activity then each time it will fetch data
and render it.


On Nov 22, 7:20 pm, paulbpbizan...@gmail.com  wrote:

Can you close the activities after you activate the next one? Then,
you will only ever have open one activity.







On Tue, Nov 23, 2010 at 12:50 AM, umakantpatilumakantpat...@gmail.com  wrote:

In short,
question is how to close B activity from activity A. ?
On Nov 22, 6:34 pm, umakantpatilumakantpat...@gmail.com  wrote:

I have app which has around 5 activities.
When App is loaded I open Activity A and IF user opens then menu and
click on button 2 then Activity B is opened, If users clicks button 3
from menu then Activity C is opened. Its just like instead of tab i m
using menu.
Now the problem is. If i m at Activity A and I click back button I
finish() the Activity A. But Activity B is shown. Now when again click
back on B then Activity C is shown.
What I want. If I'm at activity A and press back button then need to
close all other activities too.

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



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Re: make JPEG image has map

2010-11-22 Thread Kostya Vasilyev

Ok, then.

Subclass ImageView, implement onTouch to handle user interaction, handle 
scrolling, etc.


http://developer.android.com/guide/topics/ui/ui-events.html

Trying to get location from GPS is *probably* going to be meaningless. 
My Motorola Milestone shows location precision of about 30-100 meters 
(per Google Maps), and in reality it's off by up to 100-200 meters and . 
This is indoors, inside the apartment.


You might want to think about letting the user mark their current 
location on the map.


But just in case, here is a link for how to get location information:

http://developer.android.com/guide/topics/location/obtaining-user-location.html

-- Kostya

22.11.2010 21:34, sal пишет:

Hi Kostya,

Thanks for ur concern.

I dont want precision and reliabilty,

I just want a source code of sample application which lets me draw
image has a map and allow me to mark the location on the map.

pointer to sample source code would be appreciated

rgds
Sal

On Nov 20, 3:24 pm, Kostya Vasilyevkmans...@gmail.com  wrote:

Are you sure you can get high enough precision from GPS to make
navigating within an apartment meaningful? Especially considering this
is presumably indoors, i.e. with the roof blocking the view?

Unless, of course, your apartment is the size of Taj Mahal :)

I'd say - download one of applications that let you monitor GPS state,
and see if your phone can provide enough precision and reliability.

-- Kostya

20.11.2010 13:00, suhail ahmed ?:












Hi guys
i have a JPEG sketch of my apartment i wish to write android app
which loads this JPEG file and behaves as a map to the user so that
user can track is movement.
I am really confused wheather JPEG file can be used as a map, if it
can used as a map then please let me know how i can mark the movement
of the user on that map
Any sample code would be really appreciated
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Re: Market statistics stall

2010-11-22 Thread David Erosa García
I got the following response from Google:


Hello,

Thank you for taking the time to write to us.  Our team is currently
investigating multiple reports of metrics in the Developer Console
being out-of-date.

We hope to have a resolution soon, and will contact you if we need
further information.

Thank you for your patience.

On Sun, Nov 21, 2010 at 12:58 PM, Adam Hammer adamhamm...@gmail.com wrote:
 I think android attests to the fact that they get plenty of things
 right.

 I also however have had downloads stuck since the planned outtage.

 On Nov 21, 1:29 am, DraganA dand...@gmail.com wrote:
 Same here, it's a shame google cannot get the simplest things right.

 On Nov 21, 5:47 am, Peter Webb r.peter.w...@gmail.com wrote:

  Stalled for me as well. Still getting new comments as always, just the
  download numbers for my (free) app have been unchanged for the last 4
  days. Doubtless they will get round to updating them eventually.

  On Nov 21, 1:30 am, David Erosa García soul...@gmail.com wrote:

   Hi all.

   Does anyone else have their download statistics stalled? Mines are
   showing the same number since the 17th. The apps are published and are
   visible from the market's client, so I hope it's a(nother) temporal
   problem from the Market...

   Regards.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Market statistics stall

2010-11-22 Thread Kumar Bibek
Aah, Patience :)

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Nov 23, 2010 at 2:06 AM, David Erosa García soul...@gmail.comwrote:

 I got the following response from Google:


 Hello,

 Thank you for taking the time to write to us.  Our team is currently
 investigating multiple reports of metrics in the Developer Console
 being out-of-date.

 We hope to have a resolution soon, and will contact you if we need
 further information.

 Thank you for your patience.

 On Sun, Nov 21, 2010 at 12:58 PM, Adam Hammer adamhamm...@gmail.com
 wrote:
  I think android attests to the fact that they get plenty of things
  right.
 
  I also however have had downloads stuck since the planned outtage.
 
  On Nov 21, 1:29 am, DraganA dand...@gmail.com wrote:
  Same here, it's a shame google cannot get the simplest things right.
 
  On Nov 21, 5:47 am, Peter Webb r.peter.w...@gmail.com wrote:
 
   Stalled for me as well. Still getting new comments as always, just the
   download numbers for my (free) app have been unchanged for the last 4
   days. Doubtless they will get round to updating them eventually.
 
   On Nov 21, 1:30 am, David Erosa García soul...@gmail.com wrote:
 
Hi all.
 
Does anyone else have their download statistics stalled? Mines are
showing the same number since the 17th. The apps are published and
 are
visible from the market's client, so I hope it's a(nother) temporal
problem from the Market...
 
Regards.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-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.comandroid-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

[android-developers] Re: Guidelines on using Webview to render UI - getting approval for Market

2010-11-22 Thread Rukksi
Thanks all for your input,  I realise it is the easy way to get an app
up there which is perhaps why crappy ones are often Webview based.
Hopefully with a focus on quality it won't have to be the case
:-)
Thanks again
Russ

On Nov 23, 4:47 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
  Do however expect
  lot of negative comments and 1 star rates for doing this.

  Not necessarily - it all depends on how it's done. Last I checked, for
  example, EverNote was using a webview to implement their native
  Android app, and it has 12457 ratings with an average of 4.08 stars.

 Correct. Unfortunately most of that kind is crappy wrap on some sort
 of mobile website. Plus tons of ads ;)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Handling Android device without Menu button

2010-11-22 Thread String
On Nov 22, 7:20 pm, Stephen Lebed srle...@gmail.com wrote:

 It turns out that the device has a menu button in the status bar, and
 the user wants me to not display my app full frame in order for him to
 access it.

Recommended reading:
http://blog.radioactiveyak.com/2010/07/how-to-display-android-status-bar-in.html

String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: LVL - Yay or Nay?

2010-11-22 Thread Sheado
thanks for the feedback guys,

Pent - have you noticed if your sales have increased since adding LVL?
I know it's different on a case-by-case basis, but I always like
hearing specific cases.

JP - we're definitely going freemium with one of our apps, but the
other niche ones we need to charge some $ upfront for since in-app
payments or ads won't work well in those cases.

It be great if there was a study linking (or not) app sale increase
with LVL on Android (if anybody knows of one please let me know!)

thanks!
-Chad


On Nov 20, 7:34 am, JP joachim.pfeif...@gmail.com wrote:
 In case you have the luxury to think concept - as far as I can tell,
 there's a seismic shift going on in what independent developers
 consider viable business approaches to the generation of revenue
 through apps. 'round where I live (San Francisco), you hear the high
 velocity, app market style app sales model declared dead, and you
 won't find many devs any more announcing apps that do not emphasize
 monetization through user engagement. This trend has a few drivers, $.
 99 a pop apps mostly, but also, in Android, the absence of a viable
 and convenient solution in Android Market to buy and sell apps the old
 fashioned way. Based on that, perhaps think about giving away the app
 for three, which serves as a vehicle for in-app payment that points
 back to you (and only your), and that allows you to control
 authorization at the point of payment.

 On Nov 19, 4:09 pm, Sheado chad...@gmail.com wrote:

  Hi All,

  Sorry for starting yet another post on this subject. We're trying to
  decide on whether to go with LVL or just un-protect our apps
  altogether (currently using the copy protection feature). So my
  question:

  * Are you copy protecting/DRM/LVL licensing your apps?

  Some of our concerns include:
  * ROI on time spent with LVL code/testing/bugs versus actual increase
  in sales
  * lack of copy protection in other markets

  Some info we found in other posts:
  * piracy breakdown of a popular app:http://keyeslabs.com/joomla/
  projects/auto-app-licensing/152-a-global-piracy-heat-map
  * some have mentioned going free (ad-only) - some of our apps are
  niche apps, therefore this strategy will not work well for some of
  those apps.

  On a side note: we liked the deprecated copy-protection feature
  because it involved no extra development work and seemed secure enough
  to thwart a casual pirate from easily sharing an app with all of
  their friends. (another side note: we have incurred the wrath of tons
  android1.5 users after removing the copy protection feature - proceed
  with caution if you do so)

  any feedback would be awesome!
  thanks,
  Chad

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Query on Customs Map application

2010-11-22 Thread TreKing
On Mon, Nov 22, 2010 at 2:32 AM, Satya ksprasa...@gmail.com wrote:

  If at all some application developer develops a custom Maps application
 then how can he put that on to the target because all custom Maps
 applications needs to include com.google.android.maps in the respective
 Manifest files.


Right. You put your maps application on any device that already has the
library support installed.

By default you wont get this library when downloaded from the net (Say Froyo
 2.2).


I don't know what this means. You get this library by default on most
devices or in the emulator by choosing the right AVD.


 So my undersatnding is we have to get intouch with Google to get these
 additional packages.


Perhaps if you're making your own device or firmware. Otherwise, no, not
really.

-
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] Anyone seeing mysterious application crashes lately?

2010-11-22 Thread Jonas Petersson

Hi Kostya,

On 11/22/2010 09:00 PM, Kostya Vasilyev wrote:

I've am seeing some pretty mysterious crash reports in the Market
Console lately.
[...]
I am wondering if anyone else is seeing strange errors like these, and
whether they can be caused by devices that have really low-quality
firmware, either custom, or on devices that were not verified by Google.


I've not seen your particular ones, but I certainly see odd stuff - like 
6 months old versions of my free apps crashing on 1.0 firmware 
(seemingly G1) as well as on seemingly lab boards. Some of these apps 
are very much tailored for use ONLY in Sweden, but they still seem to 
originate from Spain, Russia, China and the like...


My best guess is that there is a fair amount of people who just randomly 
rip apps from the Market and use them to monkey test their 
hardware/firmware with.


Initially I was curious, I've given up to try to make sense of it. 
Sometimes their extreme test cases are actually somewhat useful - I've 
caught a few odd states (the last one was the system be unable to select 
an image - seems unlikely, but...)


My few eurocents / Jonas

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] List child item focus change

2010-11-22 Thread TreKing
On Fri, Nov 19, 2010 at 12:53 AM, Mutturaj muttur...@gmail.com wrote:

 1) Background of the button should change to blue if user clicks on list
 child item.
 2) Background of the button should change to white if user clicks on other
 views.


Track the currently selected item and reset it's color as necessary when a
new one is clicked.

// Pseudo-code
onClick(View newItem)
{
 newItem.setBackColor(Blue);

  if (lastItem != null)
   lastItem.setBackColor(White);

 lastItem = newItem;
}

-
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: LVL - Yay or Nay?

2010-11-22 Thread Pent
 Pent - have you noticed if your sales have increased since adding LVL?
 I know it's different on a case-by-case basis, but I always like
 hearing specific cases.

Sorry, can't say. I put it in very shortly after release.

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Determining the subset of text that is visible in a TextView

2010-11-22 Thread TreKing
On Fri, Nov 19, 2010 at 10:00 PM, HippoMan hippo.mail...@gmail.com wrote:

 Is there any way that I can then query this TextView or some other
 component in order to find out the subset of the text which is actually
 being displayed?


If nothing else, you can look at the source code for TextView to see how it
does the truncating and go from there.

-
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] Intent loading issue in MenuItem

2010-11-22 Thread TreKing
On Sun, Nov 21, 2010 at 5:06 AM, Chandana Napagoda cnapag...@gmail.comwrote:

 Is any body know fix this? I cannot open Google map Activity from menu
 item.


Make sure your uses library element in the manifest is in the right place
(withing the application element).

-
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] Detecting Task Resume

2010-11-22 Thread TreKing
On Fri, Nov 19, 2010 at 9:32 AM, Some Coder somecoder...@gmail.com wrote:

 What is the cleanest way to do this?


Initialization code should go in onCreate. Here you get a null Bundle if
it's starting from scratch, otherwise it's non-null if you were killed and
need to resume what you were doing.


 Is there an API for monitoring Task state?


Don't think so, beyond the standard activity lifecycle methods.

-
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] AdMob ads only display for a second

2010-11-22 Thread TreKing
On Mon, Nov 22, 2010 at 1:31 AM, CrazyH huang...@gmail.com wrote:

 The ad only displays for a brief moment, no more
 than a second, then it goes away and becomes empty space again (no
 ad).  So it just repeats like this:  no ads for while, brief display
 of ad, no ads again for while, and so on.


Is this debug or release mode?

-
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: New MiKandi Launch with Support For Paid Apps

2010-11-22 Thread Shane Isbell
And just out is the MiKandi App Store demo video:
http://www.youtube.com/watch?v=Qk7Kbc8S12I

It shows how the new client works with virtual currency and the theater
section.

On Sun, Nov 21, 2010 at 10:32 AM, Shane Isbell shane.isb...@gmail.comwrote:

 New MiKandi launch, check out the promotional vid:
 http://www.youtube.com/watch?v=s3qNsDmRWlo

 If you guys have paid apps, publish them and start making some money.

 Shane


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Mutating of nine-patch images

2010-11-22 Thread Dianne Hackborn
2010/11/16 Евгений Григорьев grigoriev.evgen...@gmail.com

 I understand stretching of image, but there is some other changing
 of image.
 There is simple way to see this: Just create 1-pixel thin round-
 rectangle line.
 And using draw9patch set top stretchable area: 1 middle pixel, and
 left stretchable area: 1 middle pixel.
 If use this picture as background of any view - you can see that
 result will have a bit other color, and angles will be a bit changed.


Have you verified this actually happens on the device?  The semantics of
9-patches are very well defined, simple, and not going to cause the
artifacts I think you are describing if the stretchable areas don't include
things that would result in such artifacts.

9-patches are used for the vast majority of the UI -- button frames, dialogs
borders, and on and on and on.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

[android-developers] ListAdapter source

2010-11-22 Thread Bret Foreman
I want to look at the source code for the ListAdapter class without
downloading the entire Android source code tree. Is there a way to do
that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [TabActivity]Encountered NullPointerException. Could anyone give me a hand ?Thanks

2010-11-22 Thread Shawn_Chiu
Hi, all
  I encountered an excepiton when I used TabActivity. Each tab content
is a seperate activity.
Could anyone give me a hand ?Thanks :-)

The exception stack trace is as follow:
-
Thread [3 main] (Suspended (exception NullPointerException))
TabHost.dispatchWindowFocusChanged(boolean) line: 295
FrameLayout(ViewGroup).dispatchWindowFocusChanged(boolean) line: 661
LinearLayout(ViewGroup).dispatchWindowFocusChanged(boolean) line:
661
PhoneWindow$DecorView(ViewGroup).dispatchWindowFocusChanged(boolean)
line: 661
ViewRoot.handleMessage(Message) line: 1819
ViewRoot(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4363
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 860
ZygoteInit.main(String[]) line: 618
NativeStart.main(String[]) line: not available [native method]
-

layout/main.xml
-
?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/tabhost
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1

TabWidget android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content/

FrameLayout android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=wrap_content
android:paddingTop=64dip
/FrameLayout
/TabHost
-
strings.xml

?xml version=1.0 encoding=utf-8?
resources
string name=helloHello World, HelloTabActivity!/string
string name=app_nameHelloTabWidget/string
string name=songsong/string
string name=albumalbum/string
string name=accacc/string
/resources
---


classes are placed into com.qiu.test package.

HelloTabActivity.java
--
package com.qiu.test;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.ScrollView;
import android.widget.TabHost;

public class HelloTabActivity extends TabActivity {
protected TabHost tabs;

protected void OnCreate (Bundle bundle)
{
super.onCreate (bundle);
setContentView(R.layout.main);

tabs = getTabHost();

Resources res = getResources();

TabHost.TabSpec syncTabSpec = tabs.newTabSpec(sync);
syncTabSpec.setContent (new Intent (this,
SongActivity.class));
syncTabSpec.setIndicator(sync);
tabs.addTab(syncTabSpec);

TabHost.TabSpec accTabSpec = tabs.newTabSpec(acc);
accTabSpec.setContent (new Intent (this,
AlbumsActivity.class));
accTabSpec.setIndicator(acc);
tabs.addTab(accTabSpec);

tabs.setCurrentTab(0);
}
}
--


SongActivity.java
--
package com.qiu.test;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class SongActivity extends Activity {


public void onCreate (Bundle savedInstanceState)
{
super.onCreate (savedInstanceState);

TextView textview = new TextView (this);
textview.setText(This is the song tab);
setContentView (textview);
}
}

AlbumsActivity.java
--
package com.qiu.test;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class AlbumsActivity extends Activity {

public void onCreate (Bundle savedInstanceState)
{
super.onCreate (savedInstanceState);

TextView textview = new TextView 

[android-developers] Re: ListAdapter source

2010-11-22 Thread Bret Foreman
What I'm really trying to figure out is how ListAdapters and ListViews
handle the Views that are off-screen and how they reuse View objects.

On Nov 22, 5:48 pm, Bret Foreman bret.fore...@gmail.com wrote:
 I want to look at the source code for the ListAdapter class without
 downloading the entire Android source code tree. Is there a way to do
 that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ListAdapter source

2010-11-22 Thread Mark Murphy
On Mon, Nov 22, 2010 at 8:48 PM, Bret Foreman bret.fore...@gmail.com wrote:
 I want to look at the source code for the ListAdapter class without
 downloading the entire Android source code tree. Is there a way to do
 that?

Use Google Code Search:

http://www.google.com/codesearch

Search on:

package:android ListAdapter

Though I suspect more of the logic you want is in Adapter.

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: order by clause

2010-11-22 Thread pramod.deore
Ok, Thanks for your help.

On Nov 22, 4:54 pm, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com wrote:
 If you work on Eclipse try to read carefully the Console and logCat window,
 maybe there you'll find the answer

 Στις 22 Νοεμβρίου 2010 1:38 μ.μ., ο χρήστης pramod.deore 
 deore.pramo...@gmail.com έγραψε:



  Hi, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ yes it solves my problem. But I don't understand
  what earlier query not work.

  On Nov 22, 4:28 pm, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com wrote:
   I made this for myself and it works
   I created a class named fro example dbFile
   public class DbFile  {
   static Cursor getAll(SQLiteDatabase db) {
   return(db.rawQuery(SELECT * FROM TableName ORDER BY ColumnName,
   null));

   }
   }

   and from my activity class i declare
   Cursor model=null;
   and on create i call:
   model=DbFile.getAll(db);

   2010/11/22 pramod.deore deore.pramo...@gmail.com

I have still the problem. I read at

   http://books.google.co.in/books?id=2XeNswkT_2YCpg=PA232lpg=PA232dq.
  ..

as it write query as
constantsCursor = db.rawQuery(SELECT _ID ,title,value +
FROM constants ORDER BY title,null);

I also tried like above

Cursor c = sampleDB.rawQuery (SELECT
SwitchID,SwitchName,RoomID,RoomName+
                               From SwitchTable ORDER BY
  RoomID,null);

But still not getting output.

On Nov 22, 9:56 am, pramod.deore deore.pramo...@gmail.com wrote:
 I had also tried as

 Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]
                             {SwitchID,SwitchName,RoomID,RoomName},
RoomID=
 ,null,null,null, ASC);

 But still it is not working.Any clue?

 On Nov 22, 9:13 am, pramod.deore deore.pramo...@gmail.com wrote:

  Hi ,
  I have a table that has 4 columns.There is no primary key in that
  table. Now I want to retrieve table data according to ascending
  order
  of one column (say ascending order of RoomID). I had tried it as

  Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[]

  {SwitchID,SwitchName,RoomID,RoomName},
  RoomID+  ASC ,null, null, null, null);

  But it doesn't work. Anyone know what is wrong here?
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-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


[android-developers] Re: Passing values from an Activity to a class that extends View Class

2010-11-22 Thread hari
i am still facing  a minor problem with this...

I created the view... But i donno where i should enter the xml layout
for it... Let me paste the code here... pls have a look n tell me what
to do ...

This is the initial code that will load a simple form
--
package hari.rts;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class supermarket extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button yes=(Button)findViewById(R.id.yes);
yes.setOnClickListener(onYes);
}
private View.OnClickListener onYes=new View.OnClickListener()
{
public void onClick(View v)
{
Intent i=new Intent(supermarket.this, List.class);
startActivity(i);
}
};
}

This is the layout for the above code (main.xml):
-
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Welcome to the market
/
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Do you want to use the easy-shopping service?
 /
Button android:id=@+id/yes
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Yes
/
Button android:id=@+id/no
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=No
/
/LinearLayout

This is the 2nd form that gives a list of items with checkboxes:
--
package hari.rts;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
public class List extends Activity
{
String i1;
String i2;
String i3;
String i4;
String i5;
@Override
public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.details);
 final CheckBox checkbox1 = (CheckBox) findViewById(R.id.check1);
 final CheckBox checkbox2 = (CheckBox) findViewById(R.id.check2);
 final CheckBox checkbox3 = (CheckBox) findViewById(R.id.check3);
 final CheckBox checkbox4 = (CheckBox) findViewById(R.id.check4);
 final CheckBox checkbox5 = (CheckBox) findViewById(R.id.check5);
 checkbox1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks, depending on whether it's now
checked
if (((CheckBox) v).isChecked()) {
i1=item1;
}
else
{
i1=;
}
}
});
 checkbox2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks, depending on whether it's now
checked
if (((CheckBox) v).isChecked()) {
i2=item2;
}
else
{
i2=;
}
}
});
 checkbox3.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks, depending on whether it's now
checked
if (((CheckBox) v).isChecked()) {
i3=item3;

}
else
{
i3=;
}
}
});
 checkbox4.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks, depending on whether it's now
checked
if (((CheckBox) v).isChecked()) {
i4=item4;

}
else
{
i4=;
}
}
});
 checkbox5.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks, depending on whether it's now
checked
if (((CheckBox) v).isChecked()) {
i5=item5;

}
else
{
  i5=;
}
}
});
 Button submit=(Button)findViewById(R.id.submit);
 

[android-developers] SAX- \n \r not recognized

2010-11-22 Thread Android Humanoid
Hi All,

I'm using a SAX Parser where it is not recognizing \n \r symbols that
am getting from it, but when I save the file instead of parsing
through a parser they are seen in the file. My xml file is of utf-8
format.

Please cay anyone help me.

Thanks  Regards.

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


[android-developers] Re: Encountered NullPointerException. Could anyone give me a hand ?Thanks

2010-11-22 Thread pramod.deore

Hi Shawn_Chiu,

You have not override onCreate method in HelloTabActivity class
correctly.
override it as

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

And remove statement
super.onCreate (savedInstanceState);
Because your activity is extending from TabActivity.

and try to run program.

On Nov 23, 6:50 am, Shawn_Chiu qiuping...@gmail.com wrote:
 Hi, all
   I encountered an excepiton when I used TabActivity. Each tab content
 is a seperate activity.
 Could anyone give me a hand ?Thanks :-)

 The exception stack trace is as follow:
 -
 Thread [3 main] (Suspended (exception NullPointerException))
         TabHost.dispatchWindowFocusChanged(boolean) line: 295
         FrameLayout(ViewGroup).dispatchWindowFocusChanged(boolean) line: 661
         LinearLayout(ViewGroup).dispatchWindowFocusChanged(boolean) line:
 661
         PhoneWindow$DecorView(ViewGroup).dispatchWindowFocusChanged(boolean)
 line: 661
         ViewRoot.handleMessage(Message) line: 1819
         ViewRoot(Handler).dispatchMessage(Message) line: 99
         Looper.loop() line: 123
         ActivityThread.main(String[]) line: 4363
         Method.invokeNative(Object, Object[], Class, Class[], Class, int,
 boolean) line: not available [native method]
         Method.invoke(Object, Object...) line: 521
         ZygoteInit$MethodAndArgsCaller.run() line: 860
         ZygoteInit.main(String[]) line: 618
         NativeStart.main(String[]) line: not available [native method]
 -

 layout/main.xml
 -
 ?xml version=1.0 encoding=utf-8?
 TabHost xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/tabhost
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:layout_weight=1

     TabWidget android:id=@android:id/tabs
         android:layout_width=fill_parent
         android:layout_height=wrap_content/

     FrameLayout android:id=@android:id/tabcontent
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:paddingTop=64dip
     /FrameLayout
 /TabHost
 -
 strings.xml
 
 ?xml version=1.0 encoding=utf-8?
 resources
     string name=helloHello World, HelloTabActivity!/string
     string name=app_nameHelloTabWidget/string
     string name=songsong/string
     string name=albumalbum/string
     string name=accacc/string
 /resources
 ---

 classes are placed into com.qiu.test package.

 HelloTabActivity.java
 --
 package com.qiu.test;

 import android.app.Activity;
 import android.app.TabActivity;
 import android.content.Intent;
 import android.content.res.Resources;
 import android.os.Bundle;
 import android.widget.ScrollView;
 import android.widget.TabHost;

 public class HelloTabActivity extends TabActivity {
         protected TabHost tabs;

     protected void OnCreate (Bundle bundle)
     {
         super.onCreate (bundle);
         setContentView(R.layout.main);

         tabs = getTabHost();

         Resources res = getResources();

         TabHost.TabSpec syncTabSpec = tabs.newTabSpec(sync);
         syncTabSpec.setContent (new Intent (this,
 SongActivity.class));
         syncTabSpec.setIndicator(sync);
         tabs.addTab(syncTabSpec);

         TabHost.TabSpec accTabSpec = tabs.newTabSpec(acc);
         accTabSpec.setContent (new Intent (this,
 AlbumsActivity.class));
         accTabSpec.setIndicator(acc);
         tabs.addTab(accTabSpec);

         tabs.setCurrentTab(0);
     }}

 --

 SongActivity.java
 --
 package com.qiu.test;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.TextView;

 public class SongActivity extends Activity {

         public void onCreate (Bundle savedInstanceState)
         {
             super.onCreate (savedInstanceState);

             TextView textview = new TextView (this);
             textview.setText(This is the song tab);
             setContentView (textview);
         }}

 

Re: [android-developers] SAX- \n \r not recognized

2010-11-22 Thread Frank Weiss
Please provide more details.

1. Since you mention symbols, are you using a push or pull SAX parser?
2. Newlines between *opening* XML elements are typically ignored, not by the
parser itself, but by the handler.
3. Newlines in a text node (characters) are significant. Is this the case
you are talking about?
4. Newlines in CDATA nodes should also be signifacnt. Is this the case you
are talking about?
5. Newlines and carriage returns, 0x0A, 0x0D, are identical whether encode
in Latin-1 or UTF-8. I doubt this is the issue.

Can you give a concrete example, please.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Web Slice for Android

2010-11-22 Thread Bobby
I would like to know how to implement the Web Slice functionality in
Android Web browser. Is there any app already that you people know ?
Please guide me as I am very new to the webkit and browser !!

ref:http://en.wikipedia.org/wiki/Web_Slice

Regards
Phani Kanth

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] twitter integration

2010-11-22 Thread akt
Hi Folks


Could you please any one help for twitter integration with android.

i have implemented game application there user can post there status on
facebook as well as twitter

i have done integrating facebook.

i failed with twitter.please anyone help me


i searched on net by using that only one user post there message

if you any source code please share with me.its very urgent to me


Thanks in advance

Aswan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Apps not showing in Market

2010-11-22 Thread stymie
I just updated to Froyo(2.2).Now when I search for my apps in the
marketPlace they are not showing up in my search.I had the minSDK set
to 1.6(4) when I developed them.

Why would the apps not show now.This worry me.

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


[android-developers] Re: Encountered NullPointerException. Could anyone give me a hand ?Thanks

2010-11-22 Thread pramod.deore
Hi Shawn_Chiu,

you had not override onCreate() method of HelloTabActivity class.
override it as

 public void onCreate(Bundle savedInstanceState)
{
  super.onCreate (savedInstanceState);
   }

your activity is extending from TabActivity, so remove line
setContentView(R.layout.main); from onCreate () method.



On Nov 23, 6:50 am, Shawn_Chiu qiuping...@gmail.com wrote:
 Hi, all
   I encountered an excepiton when I used TabActivity. Each tab content
 is a seperate activity.
 Could anyone give me a hand ?Thanks :-)

 The exception stack trace is as follow:
 -
 Thread [3 main] (Suspended (exception NullPointerException))
         TabHost.dispatchWindowFocusChanged(boolean) line: 295
         FrameLayout(ViewGroup).dispatchWindowFocusChanged(boolean) line: 661
         LinearLayout(ViewGroup).dispatchWindowFocusChanged(boolean) line:
 661
         PhoneWindow$DecorView(ViewGroup).dispatchWindowFocusChanged(boolean)
 line: 661
         ViewRoot.handleMessage(Message) line: 1819
         ViewRoot(Handler).dispatchMessage(Message) line: 99
         Looper.loop() line: 123
         ActivityThread.main(String[]) line: 4363
         Method.invokeNative(Object, Object[], Class, Class[], Class, int,
 boolean) line: not available [native method]
         Method.invoke(Object, Object...) line: 521
         ZygoteInit$MethodAndArgsCaller.run() line: 860
         ZygoteInit.main(String[]) line: 618
         NativeStart.main(String[]) line: not available [native method]
 -

 layout/main.xml
 -
 ?xml version=1.0 encoding=utf-8?
 TabHost xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/tabhost
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:layout_weight=1

     TabWidget android:id=@android:id/tabs
         android:layout_width=fill_parent
         android:layout_height=wrap_content/

     FrameLayout android:id=@android:id/tabcontent
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:paddingTop=64dip
     /FrameLayout
 /TabHost
 -
 strings.xml
 
 ?xml version=1.0 encoding=utf-8?
 resources
     string name=helloHello World, HelloTabActivity!/string
     string name=app_nameHelloTabWidget/string
     string name=songsong/string
     string name=albumalbum/string
     string name=accacc/string
 /resources
 ---

 classes are placed into com.qiu.test package.

 HelloTabActivity.java
 --
 package com.qiu.test;

 import android.app.Activity;
 import android.app.TabActivity;
 import android.content.Intent;
 import android.content.res.Resources;
 import android.os.Bundle;
 import android.widget.ScrollView;
 import android.widget.TabHost;

 public class HelloTabActivity extends TabActivity {
         protected TabHost tabs;

     protected void OnCreate (Bundle bundle)
     {
         super.onCreate (bundle);
         setContentView(R.layout.main);

         tabs = getTabHost();

         Resources res = getResources();

         TabHost.TabSpec syncTabSpec = tabs.newTabSpec(sync);
         syncTabSpec.setContent (new Intent (this,
 SongActivity.class));
         syncTabSpec.setIndicator(sync);
         tabs.addTab(syncTabSpec);

         TabHost.TabSpec accTabSpec = tabs.newTabSpec(acc);
         accTabSpec.setContent (new Intent (this,
 AlbumsActivity.class));
         accTabSpec.setIndicator(acc);
         tabs.addTab(accTabSpec);

         tabs.setCurrentTab(0);
     }}

 --

 SongActivity.java
 --
 package com.qiu.test;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.TextView;

 public class SongActivity extends Activity {

         public void onCreate (Bundle savedInstanceState)
         {
             super.onCreate (savedInstanceState);

             TextView textview = new TextView (this);
             textview.setText(This is the song tab);
             setContentView (textview);
         }}

 

[android-developers] Apps not showing in Market

2010-11-22 Thread stymie
I just updated to Froyo(2.2).Now when I search for my apps in the
marketplace they are not showing up.I had the minSDK set to 1.6(4)
when I developed them.

Why are the not showing with Froyo?This worries me somewhat,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] twitter integration

2010-11-22 Thread Kumar Bibek
I would suggest that you don't write your own Twitter client, but use
existing apps for this. Write a generic share module, which would show
different channels through which the user could share his scores. This will
also take care of facebook. You just have to pass the message, and let the
user choose the app that he wants to use.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Nov 23, 2010 at 10:12 AM, akt ensisinf...@gmail.com wrote:

 Hi Folks


 Could you please any one help for twitter integration with android.

 i have implemented game application there user can post there status on
 facebook as well as twitter

 i have done integrating facebook.

 i failed with twitter.please anyone help me


 i searched on net by using that only one user post there message

 if you any source code please share with me.its very urgent to me


 Thanks in advance

 Aswan

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-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

[android-developers] How to fix imageviews in customized 2d shapes

2010-11-22 Thread sunrises
Hi,
I need to fix images in customized 2D shapes,for example if we have a
2D diamond shape,I need to insert the image to that shape,I extended
the ImageView class and Im able to create diamond shape with the help
of canvas in onDraw() method..But Im unable to insert the image into
that diamond shape,please 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] Re: SAX- \n \r not recognized

2010-11-22 Thread Android Humanoid
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();

XMLReader xr = sp.getXMLReader();
SearchHandler sh=new SearchHandler();
xr.setContentHandler(sh);
String query=xml query;

Log.e(Query:Disaplay mail, query);
URL url=new URL(query);
InputSource is=new InputSource();
is.setEncoding(UTF-8);
is.setByteStream(url.openStream());
xr.parse(is);

This is the parser am using... SearchHandler extends DefaultHandler.
My problem is in XML file.. i have a node called emial under that
content is the attribute, in that content I'll get some text that
text is have \n and \r.

Does my SearchHandler recognize the \n or \r symbol or should I use
any different parser.
On Nov 23, 9:31 am, Frank Weiss fewe...@gmail.com wrote:
 Please provide more details.

 1. Since you mention symbols, are you using a push or pull SAX parser?
 2. Newlines between *opening* XML elements are typically ignored, not by the
 parser itself, but by the handler.
 3. Newlines in a text node (characters) are significant. Is this the case
 you are talking about?
 4. Newlines in CDATA nodes should also be signifacnt. Is this the case you
 are talking about?
 5. Newlines and carriage returns, 0x0A, 0x0D, are identical whether encode
 in Latin-1 or UTF-8. I doubt this is the issue.

 Can you give a concrete example, please.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] twitter integration

2010-11-22 Thread guru sagar
HI Kumar,


 can you please elaborate generic share
module with some example .,



Thanks,
Gurusagar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Testing

2010-11-22 Thread kampy
hi

while testing a activity can we move from that activity to the another
activity . i think it is possible as i found that we can deploy a
complete test application a android app but i am not gettig how i can
move from one acitivity to another activity 

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


[android-developers] Raising intent to child of tab activity

2010-11-22 Thread Anzi
Hi,

How to raise an intent to child of tab activity, so that activity
manager displays respective tab activity as a foreground activity to
handle the intent in onNewIntent().

I was tried raising an intent, but activity is displaying as a
separate activity instead of child of my tab activity.


Regards,
Anzi.

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


[android-developers] Re: Problem with playing sound

2010-11-22 Thread tina lincon
Anyone have an idea about this?If, so, pls do help...

On Nov 22, 5:11 pm, tina lincon tina.theresalin...@wipro.com wrote:
 Hi all,
 I am playing a sound in my application.Most of the time it plays
 succesfully without any pause.It is a short duration type sound file
 which lasts for 1 sec(a tick -tock sound of clock) which I am
 repeatedly playing infinitely and most of the times there are no
 issues.But rarely it happens that the sound suddenly stops playing and
 will show the log as below:

 TimedEventQueue :Event no:x was not found in the queue , already
 cancelled

 And once it is stopped, it never restarts.

 Could anyone please help me to find a solution for this?
 Thanks in advance,
 Regards,
 Tina Lincon

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] twitter integration

2010-11-22 Thread Kumar Bibek
Something like this.

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
sendIntent.putExtra(Intent.EXTRA_TEXT, message);
sendIntent.setType(text/plain);

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Nov 23, 2010 at 10:38 AM, guru sagar gurusagar...@gmail.com wrote:


 HI Kumar,


  can you please elaborate generic share
 module with some example .,



 Thanks,
 Gurusagar



 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-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

[android-developers] SQL Injection

2010-11-22 Thread Kevin
Does using the insert or update method of an SQLiteDatabase object
offer any protection against SQL injection?  Would I need to escape
strings before inserting them with these functions?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SQL Injection

2010-11-22 Thread Kumar Bibek
Well,

If you don't have a content provider, you don't have to worry about this at
all. Since, you DB cannot be accessed by other applications.

And, for ContentProviders, there are well defined contracts for implementing
one. If you comply to these, then, it's pretty safe.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Nov 23, 2010 at 11:03 AM, Kevin khant...@hotmail.com wrote:

 Does using the insert or update method of an SQLiteDatabase object
 offer any protection against SQL injection?  Would I need to escape
 strings before inserting them with these functions?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-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

[android-developers] Re: SQL Injection

2010-11-22 Thread Chris Stratton
On Nov 23, 12:36 am, Kumar Bibek coomar@gmail.com wrote:

 If you don't have a content provider, you don't have to worry about this at
 all. Since, you DB cannot be accessed by other applications.

Not so fast.  If you have a text field for user entry, or pull a
string out of an email or off a website or from any uncontrolled
source which then goes into the DB, not sanitizing it creates an
attack route.

See for example the infamous Bobby Tables... http://xkcd.com/327/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: AdMob ads only display for a second

2010-11-22 Thread CrazyH
Sorry, I am pretty new to android development.  My app has not been
released to the market yet if that's what you mean.

Additional info:  I found that the ads display perfectly in landscape
mode.  The problem only happens when phone is in portrait mode.

Thanks!


On Nov 22, 3:04 pm, TreKing treking...@gmail.com wrote:
 On Mon, Nov 22, 2010 at 1:31 AM, CrazyH huang...@gmail.com wrote:
  The ad only displays for a brief moment, no more
  than a second, then it goes away and becomes empty space again (no
  ad).  So it just repeats like this:  no ads for while, brief display
  of ad, no ads again for while, and so on.

 Is this debug or release mode?

 --- 
 --
 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: SQL Injection

2010-11-22 Thread Kumar Bibek
Well, if you user Raw query, then yeah, I guess it's possible. But if you
use the query method of the SQLiteDatabase, then I guess, you are safe.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Nov 23, 2010 at 11:16 AM, Chris Stratton cs07...@gmail.com wrote:

 On Nov 23, 12:36 am, Kumar Bibek coomar@gmail.com wrote:

  If you don't have a content provider, you don't have to worry about this
 at
  all. Since, you DB cannot be accessed by other applications.

 Not so fast.  If you have a text field for user entry, or pull a
 string out of an email or off a website or from any uncontrolled
 source which then goes into the DB, not sanitizing it creates an
 attack route.

 See for example the infamous Bobby Tables... http://xkcd.com/327/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-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

[android-developers] Re: LVL - Yay or Nay?

2010-11-22 Thread Zsolt Vasvari
Why would the sales increase by adding LVL?  The vast majority of
pirates wouldn't pay for your app in the frist place, this has been
shown many times since the very early days of personal computers.

So I wouldn't add the LVL to increase sales, but to make it harder for
people to simply steal my work.

I had a pirate just yesterday having the nerve to send me a long
feature request e-mail.  I looked up his name and I saw he pirated my
app over a month ago.  So I asked him how come he's using the paid
version of my app, and he actually responded saying that he canceled
the purchase, but was considering buying it if I add feature X.  OK,
right.

These are the people I would like to stop with the LVL.



On Nov 23, 5:17 am, Sheado chad...@gmail.com wrote:
 thanks for the feedback guys,

 Pent - have you noticed if your sales have increased since adding LVL?
 I know it's different on a case-by-case basis, but I always like
 hearing specific cases.

 JP - we're definitely going freemium with one of our apps, but the
 other niche ones we need to charge some $ upfront for since in-app
 payments or ads won't work well in those cases.

 It be great if there was a study linking (or not) app sale increase
 with LVL on Android (if anybody knows of one please let me know!)

 thanks!
 -Chad

 On Nov 20, 7:34 am, JP joachim.pfeif...@gmail.com wrote:



  In case you have the luxury to think concept - as far as I can tell,
  there's a seismic shift going on in what independent developers
  consider viable business approaches to the generation of revenue
  through apps. 'round where I live (San Francisco), you hear the high
  velocity, app market style app sales model declared dead, and you
  won't find many devs any more announcing apps that do not emphasize
  monetization through user engagement. This trend has a few drivers, $.
  99 a pop apps mostly, but also, in Android, the absence of a viable
  and convenient solution in Android Market to buy and sell apps the old
  fashioned way. Based on that, perhaps think about giving away the app
  for three, which serves as a vehicle for in-app payment that points
  back to you (and only your), and that allows you to control
  authorization at the point of payment.

  On Nov 19, 4:09 pm, Sheado chad...@gmail.com wrote:

   Hi All,

   Sorry for starting yet another post on this subject. We're trying to
   decide on whether to go with LVL or just un-protect our apps
   altogether (currently using the copy protection feature). So my
   question:

   * Are you copy protecting/DRM/LVL licensing your apps?

   Some of our concerns include:
   * ROI on time spent with LVL code/testing/bugs versus actual increase
   in sales
   * lack of copy protection in other markets

   Some info we found in other posts:
   * piracy breakdown of a popular app:http://keyeslabs.com/joomla/
   projects/auto-app-licensing/152-a-global-piracy-heat-map
   * some have mentioned going free (ad-only) - some of our apps are
   niche apps, therefore this strategy will not work well for some of
   those apps.

   On a side note: we liked the deprecated copy-protection feature
   because it involved no extra development work and seemed secure enough
   to thwart a casual pirate from easily sharing an app with all of
   their friends. (another side note: we have incurred the wrath of tons
   android1.5 users after removing the copy protection feature - proceed
   with caution if you do so)

   any feedback would be awesome!
   thanks,
   Chad- Hide quoted text -

 - Show quoted text -

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


  1   2   3   >