[android-developers] Android Project development cost

2012-03-21 Thread nvlakshmi vakiti
Hi ,

A senior android developer ,how much he will  cost for hourly or task or
project basis for Android Project development?

Please let me know.

Thanks in Advance.



--

Lakshmi

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

2012-03-21 Thread Zsolt Vasvari
I'll do it for US$100 a hour... 

On Wednesday, March 21, 2012 2:13:38 PM UTC+8, Lakshmi Vadupu wrote:


 Hi ,

 A senior android developer ,how much he will  cost for hourly or task or 
 project basis for Android Project development?

 Please let me know.

 Thanks in Advance.



 --

 Lakshmi 
  



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

2012-03-21 Thread Nicolas Embleton
Push notifications are availalbe since 2.3 or 2.2 ?  ( please remind me )

It is called C2DM, Cloud To Device Messaging.

And you can find the doc here: http://code.google.com/android/c2dm/

Nicolas.

On Wednesday, March 21, 2012 11:50:27 AM UTC+7, Hemant Chaudhari wrote:

 Hello All, 

 I want to implement Push Notifications for Android 4.0 Native app. 
 Is there any sdk available for it. 


 -Thanks 
 Hemant

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

2012-03-21 Thread Zsolt Vasvari
I have never noticed this and I have many-many Relative layouts.

On Wednesday, March 21, 2012 10:21:59 AM UTC+8, rdietrick wrote:

 I have a RelativeLayout that encapsulates several other views.  I have the 
 layout_width of the parent (RelativeLayout) set to wrap_content.  If I 
 set the layout_alignParentRight attribute of one of the child views to 
 true, it expands the parent layout horizontally to fill the screen.  Is 
 there a way around this?  I believe setting layout_alignParentBottom=true 
 does the same thing vertically, while left and top don't.

 Thanks.

 -rob


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Zsolt Vasvari
I have 2 users (out of thousands) reporting this problem.  I am at a loss 
as to why this is happening, also.  It doesn't have anything to the data as 
the user claims they few rows.  I even had them recreate their database (I 
have a backup facility that that backs up/restores from JSON) and the 
problem still occurs.

One guy took the phone back because he suspected a hardware issue.  The 
other person never followed up, so I don't know if he solved it or what.



On Wednesday, March 21, 2012 6:54:30 AM UTC+8, Dianne Hackborn wrote:

 You can get the SQLite version to perform acceptably.  You just need to 
 use it correctly -- set up indices as appropriate as needed for joins and 
 such.  I am not a SQL (lite or otherwise) expect in any way so I can't help 
 you with the particulars, but at the very least make sure you are actually 
 setting indices on the columns that are involved in deciding what rows are 
 included in the query result.

 Also all you are doing by putting your query in the main thread of your 
 process is causing your process to ANR when it takes a long time.  The 
 query all happens in native code down in SQLite, so you won't see anything 
 in your java traces (nor typically anything interesting in native traces 
 either since most likely, yes, you are executing the query in SQLite).

 On Tue, Mar 20, 2012 at 3:22 PM, momo dun...@gmail.com wrote:

 I'm rewriting a simple translation app with a SQLite db.  There is an 
 extreme hit to performance between two queries, but only on certain devices.

 One query lists the english words in a ListView, the other lists the 
 secondary language in a list view.  The data is structured differently, and 
 is from a remote server.

 Both are single SQL statements, run via db.rawQuery.  Both use AsyncTask 
 to keep heavy lifting in another thread.

 On both devices, the english query returns almost instantly (less than 
 1 second, every time): 

 return db.rawQuery(select _id as id, english as label from english_words 
 order by english collate nocase, null);

 On one device, the secondary_langauge query returns almost instantly as 
 well.  No problem there, ever.  This is a Samsung Galaxy SII.  On another 
 device (Samsung Nexus S), this query takes around 30 seconds.  This query 
 has some joins, as follows:

 return db.rawQuery(select definitions._id as id, secondary_language as 
 label from english_words join definition_bridge on 
 english_words._id=definition_bridge.word_id join definitions on 
 definitions._id=definition_bridge.definition_id order by 
 secondary_language, null);

 I ran it in the emulator once, and got the same result as the Nexus S 
 (the 30 second hang).  It took a little 1.5 hours to download and parse the 
 returns from the server on the emulator (which takes a few seconds on 
 either device), so I gave up on further debug with the emulator at that 
 point.

 This is the only difference between the two operations.  The listView is 
 the same, the adapter is the same, the AsyncTask is the same.  The number 
 of rows returned is different - there are about 2000 english words, and a 
 little over 3000 words in the other language.  I don't think this explains 
 the vast difference in performance.

 I took the query out of the AsyncTask to see if I could get some more 
 debug info, and did get an ANR:

   at android.database.sqlite.SQLiteQuery.native_fill_window(Native Method)
   at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:73)
   at 
 android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:287)
   at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:268)
   at 
 com.whatever.adapters.WordListAdapter.getCount(WordListAdapter.java:39)

 I rewrote the adapter's getCount method to return a cached count 
 (determined during instantiation).  After, I didn't get an ANR again, but 
 otherwise the performance was not improved and the query still took around 
 30 seconds.

 I'm totally at a loss.  As mentioned, everything but the queries is 
 identical.  And on the Galaxy SII, there is no problem at all - less than a 
 second to populate the ListView, even under abuse (touching the button that 
 launches the request as fast as I could).

 At this point, I'm wondering if it'd be better to abandon SQLite 
 entirely, and using a Java model to manage data.  Assuming I can't get the 
 SQLite version to perform reasonably, what could I expect in terms of 
 performance using Collections (with the number of entries mentioned above), 
 when I need to do a search for example (which I imaging would require 
 iterating over the whole thing on each key event).

 Any advice?

 TYIA.

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

[android-developers] SDK VERSION?

2012-03-21 Thread Abhilash baddam
Hi Friends,

 For my Application I am using target version as API Level 8 and I
mentioned minSdkVersion in manifest as 7.

1)  If the user is having SDCard automatically I want to install my
app in SDCard other wise in internal memory. For that I mentioned
android:installLocation=preferExternal in the manifest file, but if
the user is not having SDcard whether the app will automatically
install in internal memory or not.

2) Whether this app will also run in the mobiles which contains 2.1 Android OS.

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

2012-03-21 Thread android developer
---

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

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5dd04db2b3-947e5a6ec4-58Pk-rVJyUPbXJ3v-wyzurb-FlU
You'll need to click this link to be able to chat with android developer.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with android developer, visit:
http://mail.google.com/mail/a-5dd04db2b3-947e5a6ec4-58Pk-rVJyUPbXJ3v-wyzurb-FlU

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

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

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

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

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

Thanks,
The Google Team

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

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

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


[android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-21 Thread nvlakshmi vakiti
Hi,

Which framework is best one  to develop cross platform mobile applications?

Thanks in advance.

lakshmi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] which framework is best for to develop cross platform mobile applications?

2012-03-21 Thread Anirudh Loya
Check previous mails. Already lots of discussion happened on this topic .

On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti
lakshmi.vad...@gmail.comwrote:

 Hi,

 Which framework is best one  to develop cross platform mobile applications?

 Thanks in advance.

 lakshmi

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




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

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

2012-03-21 Thread Tomáš Hubálek
Hi, I'm getting error report from anonymous user with this stack trace 
listed bellow. 

I have no idea what is wrong as I checked permissions and I have  
uses-permission 
android:name=android.permission.ACCESS_WIFI_STATE/ in 
AndroidManifest.xml.

Could anybody give me a clue what this exception means?

Thanks

java.lang.RuntimeException: Unable to start receiver 
net.hubalek.android.apps.makeyourclock.widget.xml.ClockWidget_2x1: 
java.lang.SecurityException: Calling uid 10171 gave packageandroid which is 
owned by uid 1000
1 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1844)
2 at android.app.ActivityThread.access$2400(ActivityThread.java:117)
3 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:999)
4 at android.os.Handler.dispatchMessage(Handler.java:99)
5 at android.os.Looper.loop(Looper.java:123)
6 at android.app.ActivityThread.main(ActivityThread.java:3728)
7 at java.lang.reflect.Method.invokeNative(Native Method)
8 at java.lang.reflect.Method.invoke(Method.java:507)
9 at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
10 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
11 at dalvik.system.NativeStart.main(Native Method)
12 Caused by: java.lang.SecurityException: Calling uid 10171 gave 
packageandroid which is owned by uid 1000
13 at android.os.Parcel.readException(Parcel.java:1322)
14 at android.os.Parcel.readException(Parcel.java:1276)
15 at 
android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:683)
16 at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:612)
17 at 
net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onUpdate(SourceFile:98)
18 at 
android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:61)
19 at 
net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onReceive(SourceFile:337)
20 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1833)
21 ... 10 more
22 java.lang.SecurityException: Calling uid 10171 gave packageandroid which 
is owned by uid 1000
23 at android.os.Parcel.readException(Parcel.java:1322)
24 at android.os.Parcel.readException(Parcel.java:1276)
25 at 
android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:683)
26 at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:612)
27 at 
net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onUpdate(SourceFile:98)
28 at 
android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:61)
29 at 
net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onReceive(SourceFile:337)
30 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1833)
31 at android.app.ActivityThread.access$2400(ActivityThread.java:117)
32 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:999)
33 at android.os.Handler.dispatchMessage(Handler.java:99)
34 at android.os.Looper.loop(Looper.java:123)
35 at android.app.ActivityThread.main(ActivityThread.java:3728)
36 at java.lang.reflect.Method.invokeNative(Native Method)
37 at java.lang.reflect.Method.invoke(Method.java:507)
38 at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
39 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
40 at dalvik.system.NativeStart.main(Native Method)

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

Re: [android-developers] Strange Security exception while reading WiFi info

2012-03-21 Thread Swapnil Mondkar
Hi
  I have created the webservice
http://demo.polymerupdate.com/web/news-desk.asmx?op=DisplayNewsHeadLines
after filling the username and password  i get the response in xml
fromat every thing is working fine and smooth.
 But
when the other devloper adds the refrence of the webservice he is
getting the anytype error .He is working on android platform
only half of the responce i we are getting along with anytype keyword
in result


Log type Looks like this

 result= anyType{NewDataSet=anyType{Table=anyType{id=7222;
headline=Shell Chemicals nominates Asian MEG contract price for March;
newsdate=21 Feb 2012; newstime=15:00 ; YEAR=2012; IsImp=true; };
Table=anyType{id=7221; headline=SABIC nominates MEG contract price for
Asia for March; newsdate=21 Feb 2012; newstime=14:55 ; YEAR=2012;
IsImp=true; }; Table=anyType{id=7220; headline=Yuyao Domestic market
price of LLDPE as of 20th February 2012; newsdate=21 Feb 2012;
newstime=14:50 ; YEAR=2012; IsImp=false; }; Table=anyType{id=7219;
headline=Yuyao Domestic market price of LDPE as of 20th February 2012;
newsdate=21 Feb 2012; newstime=14:45 ; YEAR=2012; IsImp=false; };
Table=anyType{id=7218; headline=Yuyao Domestic market price of HDPE as
of 20th February 2012; newsdate=21 Feb 2012; newstime=14:40 ;
YEAR=2012; IsImp=false; }; Table=anyType{id=7217;
headline=International Market prices of Methanol as of 20th February
2012; newsdate=21 Feb 2012; newstime=14:35 ; YEAR=2012;
IsImp=false; }; Table=anyType{id=7216; headline=International Market
prices of Styrene as of 20th February 2012; newsdate=21 Feb 2012;
newstime=14:30 ; YEAR=2012; IsImp=false; };

On 21 March 2012 12:39, Tomáš Hubálek tom.huba...@gmail.com wrote:

 Hi, I'm getting error report from anonymous user with this stack trace
 listed bellow.

 I have no idea what is wrong as I checked permissions and I have  
 uses-permission
 android:name=android.permission.ACCESS_WIFI_STATE/ in
 AndroidManifest.xml.

 Could anybody give me a clue what this exception means?

 Thanks

 java.lang.RuntimeException: Unable to start receiver
 net.hubalek.android.apps.makeyourclock.widget.xml.ClockWidget_2x1:
 java.lang.SecurityException: Calling uid 10171 gave packageandroid which is
 owned by uid 1000
 1 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1844)
 2 at android.app.ActivityThread.access$2400(ActivityThread.java:117)
 3 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:999)
 4 at android.os.Handler.dispatchMessage(Handler.java:99)
 5 at android.os.Looper.loop(Looper.java:123)
 6 at android.app.ActivityThread.main(ActivityThread.java:3728)
 7 at java.lang.reflect.Method.invokeNative(Native Method)
 8 at java.lang.reflect.Method.invoke(Method.java:507)
 9 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
 10 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
 11 at dalvik.system.NativeStart.main(Native Method)
 12 Caused by: java.lang.SecurityException: Calling uid 10171 gave
 packageandroid which is owned by uid 1000
 13 at android.os.Parcel.readException(Parcel.java:1322)
 14 at android.os.Parcel.readException(Parcel.java:1276)
 15 at
 android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:683)
 16 at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:612)
 17 at
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onUpdate(SourceFile:98)
 18 at
 android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:61)
 19 at
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onReceive(SourceFile:337)
 20 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1833)
 21 ... 10 more
 22 java.lang.SecurityException: Calling uid 10171 gave packageandroid
 which is owned by uid 1000
 23 at android.os.Parcel.readException(Parcel.java:1322)
 24 at android.os.Parcel.readException(Parcel.java:1276)
 25 at
 android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:683)
 26 at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:612)
 27 at
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onUpdate(SourceFile:98)
 28 at
 android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:61)
 29 at
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onReceive(SourceFile:337)
 30 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1833)
 31 at android.app.ActivityThread.access$2400(ActivityThread.java:117)
 32 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:999)
 33 at android.os.Handler.dispatchMessage(Handler.java:99)
 34 at android.os.Looper.loop(Looper.java:123)
 35 at android.app.ActivityThread.main(ActivityThread.java:3728)
 36 at java.lang.reflect.Method.invokeNative(Native Method)
 37 at java.lang.reflect.Method.invoke(Method.java:507)
 38 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
 39 at 

[android-developers] How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Hello guys,

Still working on my IME (sheesh, it's taking too long... .). I was 
wondering if there was a way to get a reference or instance of the Activity 
that launches my IME. For example, if I was in the new contact activity of 
Contacts application and I click on an input field (like an EditText), then 
my IME would be launched (as expected). Now I want to get a reference to 
the new contact activity from which my IME was launched. Is this possible?

Please let me here your thoughts,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Zsolt Vasvari
Actually, just to respond to myself -- I don't believe this a SQLite issue.

For this only happens on the one query that runs in the AsyncTask.  

I run the exact same query twice in parallel:  once in the UI thread (I 
know I shouldn't, but it's fast) and then I run it again in the AsyncTask, 
this time reading through the entire cursor to find a particular row index. 
 (Is there a faster way to do that in SQL, btw?).

Anyway, the first query runs quick, the second one has this problem the OP 
saw for a couple of users.   Since the query is the same in both cases, I 
think this is a thread starvation issue instead of a SQLite query problem. 
 That's just my hunch based on 20 years of development experience.



On Wednesday, March 21, 2012 2:28:46 PM UTC+8, Zsolt Vasvari wrote:

 I have 2 users (out of thousands) reporting this problem.  I am at a loss 
 as to why this is happening, also.  It doesn't have anything to the data as 
 the user claims they few rows.  I even had them recreate their database (I 
 have a backup facility that that backs up/restores from JSON) and the 
 problem still occurs.

 One guy took the phone back because he suspected a hardware issue.  The 
 other person never followed up, so I don't know if he solved it or what.



 On Wednesday, March 21, 2012 6:54:30 AM UTC+8, Dianne Hackborn wrote:

 You can get the SQLite version to perform acceptably.  You just need to 
 use it correctly -- set up indices as appropriate as needed for joins and 
 such.  I am not a SQL (lite or otherwise) expect in any way so I can't help 
 you with the particulars, but at the very least make sure you are actually 
 setting indices on the columns that are involved in deciding what rows are 
 included in the query result.

 Also all you are doing by putting your query in the main thread of your 
 process is causing your process to ANR when it takes a long time.  The 
 query all happens in native code down in SQLite, so you won't see anything 
 in your java traces (nor typically anything interesting in native traces 
 either since most likely, yes, you are executing the query in SQLite).

 On Tue, Mar 20, 2012 at 3:22 PM, momo dun...@gmail.com wrote:

 I'm rewriting a simple translation app with a SQLite db.  There is an 
 extreme hit to performance between two queries, but only on certain devices.

 One query lists the english words in a ListView, the other lists the 
 secondary language in a list view.  The data is structured differently, and 
 is from a remote server.

 Both are single SQL statements, run via db.rawQuery.  Both use AsyncTask 
 to keep heavy lifting in another thread.

 On both devices, the english query returns almost instantly (less than 
 1 second, every time): 

 return db.rawQuery(select _id as id, english as label from 
 english_words order by english collate nocase, null);

 On one device, the secondary_langauge query returns almost instantly 
 as well.  No problem there, ever.  This is a Samsung Galaxy SII.  On 
 another device (Samsung Nexus S), this query takes around 30 seconds.  This 
 query has some joins, as follows:

 return db.rawQuery(select definitions._id as id, secondary_language as 
 label from english_words join definition_bridge on 
 english_words._id=definition_bridge.word_id join definitions on 
 definitions._id=definition_bridge.definition_id order by 
 secondary_language, null);

 I ran it in the emulator once, and got the same result as the Nexus S 
 (the 30 second hang).  It took a little 1.5 hours to download and parse the 
 returns from the server on the emulator (which takes a few seconds on 
 either device), so I gave up on further debug with the emulator at that 
 point.

 This is the only difference between the two operations.  The listView is 
 the same, the adapter is the same, the AsyncTask is the same.  The number 
 of rows returned is different - there are about 2000 english words, and a 
 little over 3000 words in the other language.  I don't think this explains 
 the vast difference in performance.

 I took the query out of the AsyncTask to see if I could get some more 
 debug info, and did get an ANR:

   at android.database.sqlite.SQLiteQuery.native_fill_window(Native 
 Method)
   at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:73)
   at 
 android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:287)
   at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:268)
   at 
 com.whatever.adapters.WordListAdapter.getCount(WordListAdapter.java:39)

 I rewrote the adapter's getCount method to return a cached count 
 (determined during instantiation).  After, I didn't get an ANR again, but 
 otherwise the performance was not improved and the query still took around 
 30 seconds.

 I'm totally at a loss.  As mentioned, everything but the queries is 
 identical.  And on the Galaxy SII, there is no problem at all - less than a 
 second to populate the ListView, even under abuse (touching the button that 
 launches 

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread Zsolt Vasvari
I don't believe so.  An IME is a completely separate app in Android.   
Just as you cannot get a reference to another app's activity, you cannot do 
this from an IME.  

On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the Activity 
 that launches my IME. For example, if I was in the new contact activity of 
 Contacts application and I click on an input field (like an EditText), then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro


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

2012-03-21 Thread Zsolt Vasvari
Is this error reproducible by your user?

You see some weird errors pop-up once in a while from user that I attribute 
to bugs in a) Android, b) the firmware, c) the custom skin of the device.

As long as it happens randomly and to not many users, I wouldn't worry 
about it too much.



On Wednesday, March 21, 2012 3:09:16 PM UTC+8, Tomáš Hubálek wrote:

 Hi, I'm getting error report from anonymous user with this stack trace 
 listed bellow. 

 I have no idea what is wrong as I checked permissions and I have  
 uses-permission 
 android:name=android.permission.ACCESS_WIFI_STATE/ in 
 AndroidManifest.xml.

 Could anybody give me a clue what this exception means?

 Thanks

 java.lang.RuntimeException: Unable to start receiver 
 net.hubalek.android.apps.makeyourclock.widget.xml.ClockWidget_2x1: 
 java.lang.SecurityException: Calling uid 10171 gave packageandroid which is 
 owned by uid 1000
 1 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1844)
 2 at android.app.ActivityThread.access$2400(ActivityThread.java:117)
 3 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:999)
 4 at android.os.Handler.dispatchMessage(Handler.java:99)
 5 at android.os.Looper.loop(Looper.java:123)
 6 at android.app.ActivityThread.main(ActivityThread.java:3728)
 7 at java.lang.reflect.Method.invokeNative(Native Method)
 8 at java.lang.reflect.Method.invoke(Method.java:507)
 9 at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
 10 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
 11 at dalvik.system.NativeStart.main(Native Method)
 12 Caused by: java.lang.SecurityException: Calling uid 10171 gave 
 packageandroid which is owned by uid 1000
 13 at android.os.Parcel.readException(Parcel.java:1322)
 14 at android.os.Parcel.readException(Parcel.java:1276)
 15 at 
 android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:683)
 16 at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:612)
 17 at 
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onUpdate(SourceFile:98)
 18 at 
 android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:61)
 19 at 
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onReceive(SourceFile:337)
 20 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1833)
 21 ... 10 more
 22 java.lang.SecurityException: Calling uid 10171 gave packageandroid 
 which is owned by uid 1000
 23 at android.os.Parcel.readException(Parcel.java:1322)
 24 at android.os.Parcel.readException(Parcel.java:1276)
 25 at 
 android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:683)
 26 at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:612)
 27 at 
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onUpdate(SourceFile:98)
 28 at 
 android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:61)
 29 at 
 net.hubalek.android.apps.makeyourclock.widget.ClockWidget.onReceive(SourceFile:337)
 30 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1833)
 31 at android.app.ActivityThread.access$2400(ActivityThread.java:117)
 32 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:999)
 33 at android.os.Handler.dispatchMessage(Handler.java:99)
 34 at android.os.Looper.loop(Looper.java:123)
 35 at android.app.ActivityThread.main(ActivityThread.java:3728)
 36 at java.lang.reflect.Method.invokeNative(Native Method)
 37 at java.lang.reflect.Method.invoke(Method.java:507)
 38 at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
 39 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
 40 at dalvik.system.NativeStart.main(Native Method)


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

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Thanks Zsolt Vasvari,

Hmmm... I can get the package name of the Activity that launched my IME, is 
there a way to use that information to create a dummy instance of an 
Activity?

On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android.   
 Just as you cannot get a reference to another app's activity, you cannot do 
 this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the Activity 
 that launches my IME. For example, if I was in the new contact activity of 
 Contacts application and I click on an input field (like an EditText), then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro



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

2012-03-21 Thread Narendra Singh Rathore
On Tue, Mar 20, 2012 at 2:24 PM, vivek elangovan
elangovan.vi...@gmail.comwrote:


  on clicking the button then only i need to display input field
 otherwise i have to hide fields and have to fill data



Why don't you set initial visibility of the fields to be INVISIBLE and on
Button click, set them to VISIBLE.

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

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread Zsolt Vasvari
No.  It's a completely separate app in different processes, signed with 
different certificates, etc, etc.

On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my IME, 
 is there a way to use that information to create a dummy instance of an 
 Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android.   
 Just as you cannot get a reference to another app's activity, you cannot do 
 this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the Activity 
 that launches my IME. For example, if I was in the new contact activity of 
 Contacts application and I click on an input field (like an EditText), then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro



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

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Noo. . ok, let me try a different angle at this. Let's say I 
were to make an IME that is not a subclass of InputMethodService, is it 
possible? I was thinking of launching a translucent Activity to hold my 
on-screen keyboard. Can this be done?

On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed with 
 different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my IME, 
 is there a way to use that information to create a dummy instance of an 
 Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android.   
 Just as you cannot get a reference to another app's activity, you cannot do 
 this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the 
 Activity 
 that launches my IME. For example, if I was in the new contact activity of 
 Contacts application and I click on an input field (like an EditText), 
 then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro



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

2012-03-21 Thread Hemant Chaudhari
Thanks Nicolas,

Is it also supported on Android 4.0?
-Hemant


On Wednesday, 21 March 2012 11:54:44 UTC+5:30, Nicolas Embleton wrote:

 Push notifications are availalbe since 2.3 or 2.2 ?  ( please remind me )

 It is called C2DM, Cloud To Device Messaging.

 And you can find the doc here: http://code.google.com/android/c2dm/

 Nicolas.

 On Wednesday, March 21, 2012 11:50:27 AM UTC+7, Hemant Chaudhari wrote:

 Hello All, 

 I want to implement Push Notifications for Android 4.0 Native app. 
 Is there any sdk available for it. 


 -Thanks 
 Hemant



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

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread Zsolt Vasvari
I mean, I take that back.  If you know the class name of an activity, you 
can start it with an Intent, but you cannot really control it in any 
meaningful way, so I am not sure what you would be able to accomplish.

On Wednesday, March 21, 2012 3:49:20 PM UTC+8, tsukishiro wrote:

 Noo. . ok, let me try a different angle at this. Let's say I 
 were to make an IME that is not a subclass of InputMethodService, is it 
 possible? I was thinking of launching a translucent Activity to hold my 
 on-screen keyboard. Can this be done?

 On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed with 
 different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my IME, 
 is there a way to use that information to create a dummy instance of an 
 Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android. 
   Just as you cannot get a reference to another app's activity, you cannot 
 do this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the 
 Activity 
 that launches my IME. For example, if I was in the new contact activity 
 of 
 Contacts application and I click on an input field (like an EditText), 
 then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro



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

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Oh, I take it you mean something similar to this 
onehttp://stackoverflow.com/questions/7914912/starting-activity-from-another-application-using-only-package-name
 right? 
Well, basically, if I already have a reference to the Activity that 
launched my IME, then I would be able to use that Activity's 
dispatchTouchEvent() method.

On Wednesday, March 21, 2012 5:07:55 PM UTC+9, Zsolt Vasvari wrote:

 I mean, I take that back.  If you know the class name of an activity, you 
 can start it with an Intent, but you cannot really control it in any 
 meaningful way, so I am not sure what you would be able to accomplish.

 On Wednesday, March 21, 2012 3:49:20 PM UTC+8, tsukishiro wrote:

 Noo. . ok, let me try a different angle at this. Let's say 
 I were to make an IME that is not a subclass of InputMethodService, is it 
 possible? I was thinking of launching a translucent Activity to hold my 
 on-screen keyboard. Can this be done?

 On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed with 
 different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my 
 IME, is there a way to use that information to create a dummy instance of 
 an Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android. 
   Just as you cannot get a reference to another app's activity, you 
 cannot 
 do this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the 
 Activity 
 that launches my IME. For example, if I was in the new contact activity 
 of 
 Contacts application and I click on an input field (like an EditText), 
 then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this 
 possible?

 Please let me here your thoughts,
 - tsukishiro



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

2012-03-21 Thread Indraneel Kulkarni
hey all i have to create a basic animation. i want to make a stick
figure walk. how do i do it? i have no clue. please help!
thanks!

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


[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread Zsolt Vasvari
No, you cannot call methods in another process' Activity as you cannot get 
a reference to it.  You can start it via an Intent, but that won't give you 
a reference.  Nothing will.


On Wednesday, March 21, 2012 4:13:23 PM UTC+8, tsukishiro wrote:

 Oh, I take it you mean something similar to this 
 onehttp://stackoverflow.com/questions/7914912/starting-activity-from-another-application-using-only-package-name
  right? 
 Well, basically, if I already have a reference to the Activity that 
 launched my IME, then I would be able to use that Activity's 
 dispatchTouchEvent() method.

 On Wednesday, March 21, 2012 5:07:55 PM UTC+9, Zsolt Vasvari wrote:

 I mean, I take that back.  If you know the class name of an activity, you 
 can start it with an Intent, but you cannot really control it in any 
 meaningful way, so I am not sure what you would be able to accomplish.

 On Wednesday, March 21, 2012 3:49:20 PM UTC+8, tsukishiro wrote:

 Noo. . ok, let me try a different angle at this. Let's say 
 I were to make an IME that is not a subclass of InputMethodService, is it 
 possible? I was thinking of launching a translucent Activity to hold my 
 on-screen keyboard. Can this be done?

 On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed with 
 different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my 
 IME, is there a way to use that information to create a dummy instance of 
 an Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in 
 Android.   Just as you cannot get a reference to another app's activity, 
 you cannot do this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the 
 Activity 
 that launches my IME. For example, if I was in the new contact activity 
 of 
 Contacts application and I click on an input field (like an EditText), 
 then 
 my IME would be launched (as expected). Now I want to get a reference 
 to 
 the new contact activity from which my IME was launched. Is this 
 possible?

 Please let me here your thoughts,
 - tsukishiro



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

2012-03-21 Thread Zsolt Vasvari
Pay somebody.

On Wednesday, March 21, 2012 4:13:29 PM UTC+8, Indraneel Kulkarni wrote:

 hey all i have to create a basic animation. i want to make a stick 
 figure walk. how do i do it? i have no clue. please help! 
 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] Android instrumentation testing, how to start with clean database all the time

2012-03-21 Thread Dirk Vranckaert
I'm testing my application with Android Instrumentation tests.

So I have a test-class extending  ActivityInstrumentationTestCase2 which 
contains multiple tests. The code looks like this: 
http://pastebin.com/0Di3Hwug 

So the activity which is under test has a list of projects. The list of 
projects is retrieved from the database. And when no database is available, 
so when the DB is created, I insert one default project.

What I want it to do is to delete the database before every test is run 
(that's why I have the delete in the setUp() method), and so  if there is 
no database available the onCreate for the database should be called on 
creation of my activity (when loading the list of projects).

What it does, it deletes the DB, it creates the DB, then runs my first 
test, then it deletes the DB, but does not create it, and runs the second 
test.

In the test that is first run, I create (add) a project to the DB. In the 
second test, as I delete the DB, I don't want to see that project anymore 
but it's there!! No idea how that can happen but it seems that the 
instrumentation tests are keeping a DB instance in memory...
Or even an instance of the activity? Because when I put a breakpoint in the 
onCreate of my activity I only get there once for both the tests...

For the maintaining the DB I use ORMLite. You can see my helper class here: 
http://code.google.com/p/worktime/source/browse/trunk/android-app/src/eu/vranckaert/worktime/dao/utils/DatabaseHelper.java

So how can I work around this or is there another way to achieve what I 
want?

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

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Zannen (too bad in jap.) I guess this is a dead-end road. Thanks for 
your replies Zsolt Vasvari! Really helped me clarify a things.

On Wednesday, March 21, 2012 5:22:37 PM UTC+9, Zsolt Vasvari wrote:

 No, you cannot call methods in another process' Activity as you cannot get 
 a reference to it.  You can start it via an Intent, but that won't give you 
 a reference.  Nothing will.


 On Wednesday, March 21, 2012 4:13:23 PM UTC+8, tsukishiro wrote:

 Oh, I take it you mean something similar to this 
 onehttp://stackoverflow.com/questions/7914912/starting-activity-from-another-application-using-only-package-name
  right? 
 Well, basically, if I already have a reference to the Activity that 
 launched my IME, then I would be able to use that Activity's 
 dispatchTouchEvent() method.

 On Wednesday, March 21, 2012 5:07:55 PM UTC+9, Zsolt Vasvari wrote:

 I mean, I take that back.  If you know the class name of an activity, 
 you can start it with an Intent, but you cannot really control it in any 
 meaningful way, so I am not sure what you would be able to accomplish.

 On Wednesday, March 21, 2012 3:49:20 PM UTC+8, tsukishiro wrote:

 Noo. . ok, let me try a different angle at this. Let's 
 say I were to make an IME that is not a subclass of InputMethodService, 
 is it possible? I was thinking of launching a translucent Activity to hold 
 my on-screen keyboard. Can this be done?

 On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed 
 with different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my 
 IME, is there a way to use that information to create a dummy instance 
 of 
 an Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in 
 Android.   Just as you cannot get a reference to another app's 
 activity, 
 you cannot do this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I 
 was wondering if there was a way to get a reference or instance of the 
 Activity that launches my IME. For example, if I was in the new 
 contact 
 activity of Contacts application and I click on an input field (like 
 an 
 EditText), then my IME would be launched (as expected). Now I want to 
 get a 
 reference to the new contact activity from which my IME was launched. 
 Is 
 this possible?

 Please let me here your thoughts,
 - tsukishiro



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

2012-03-21 Thread tsukishiro
Hello all,

Is it possible to launch an Activity as you IME? By this, I mean, that 
instead of using a KeyboardView for the InputView of the IME, an Activity 
containing a few widgets will be launched. My purpose in doing this is so 
that I can control where the keyboard will be placed on screen. If I were 
to use the basic implementation for an IME, I would end up having the 
keyboard always at the bottom of the screen. I wanted to place my on-screen 
keyboard somewhere other than the bottom. 

Can someone share some ideas?
Thanks and best regards,
- tsukishiro

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

2012-03-21 Thread Oli Wright
Buy a small softcover book with plain pages.  On each page draw your stick 
figure in a slightly different position to the last page (through the 
progress of a walk).  Once done, hold the book in one hand and with the 
other hand flick through the pages at a constant pace.  Magical isn't it.

On a more serious note, read the how to ask questions FAQ in this group 
then come back with more structured questions (and some answers of your 
own).

On Wednesday, March 21, 2012 8:23:37 AM UTC, Zsolt Vasvari wrote:

 Pay somebody.

 On Wednesday, March 21, 2012 4:13:29 PM UTC+8, Indraneel Kulkarni wrote:

 hey all i have to create a basic animation. i want to make a stick 
 figure walk. how do i do it? i have no clue. please help! 
 thanks!



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

[android-developers] Re: about the online source codes of Android 1.0 and 1.1

2012-03-21 Thread Oli Wright
This is the wrong group to ask this in.  This group is for development 
using the SDK.  Approach the community offerings on 
http://source.android.com

On Wednesday, March 21, 2012 12:35:16 AM UTC, michael wrote:

 Is there any good sources that I can explore the source code online? 

 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

Re: [android-developers] Re: Android Project development cost

2012-03-21 Thread asheesh arya
nice joke!!! keep it up!!

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

2012-03-21 Thread suresh
As developer we used to think project complexity based on that we will
charge.


On Mar 21, 11:13 am, nvlakshmi vakiti lakshmi.vad...@gmail.com
wrote:
 Hi ,

 A senior android developer ,how much he will  cost for hourly or task or
 project basis for Android Project development?

 Please let me know.

 Thanks in Advance.

 --

 Lakshmi

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

2012-03-21 Thread BNReddy
 Project  basis in charge.
small app u 10k to 15k in 15 day working

-- 
Regards,
Narayanareddy.B
9032478372

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

2012-03-21 Thread lbendlin
You're welcome.

On Tuesday, March 20, 2012 7:35:10 PM UTC-4, ga...@deanblakely.com wrote:

 I was warned it would be weird over here. 
 Gary 

 On Mar 18, 7:09 pm, Zsolt Vasvari zvasv...@gmail.com wrote: 
  You didn't specify: 
  
  android:giveMeLatestMaps=true 
  
  
  
  On Monday, March 19, 2012 8:07:06 AM UTC+8, ga...@deanblakely.comwrote: 
  
   I'm going through some of the tutorials and just finished 
   HelloGoogleMaps tutorial.  It works alright but I notice that the map 
   is very old - much older than on Google.com. 
  
   Looking where  I live it's at least 7 years old.  On Google.com it's 
   no more than 2 years old.  Why would this be? 
  
   the main.xml is... 
   com.google.android.maps.MapView 
   xmlns:android=http://schemas.android.com/apk/res/android; 
   android:id=@+id/mapview 
   android:layout_width=fill_parent 
   android:layout_height=fill_parent 
   android:clickable=true 
   android:apiKey=removedmyapikey/ 
  
   thanks, 
   Gary- Hide quoted text - 
  
  - Show quoted text -

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

[android-developers] How to wait for file scanning finished before starting the launcher app

2012-03-21 Thread Chuan
Hi there

I am currently working on an Android launcher application, and I would like 
to play some intro video before the launcher starts. Knowing that playing 
video directly from assets or raw folder does not work on some devices, I 
include the video file in assets folder, and let the app copy the video 
file to SD card before playing it.

However, since launcher is always the first application to be started upon 
bootup, there is a media scanning process right after the bootup. So the 
problem is when the launcher is started, the SD card file system may still 
being scanned and not ready to be accessed, therefore the video cannot be 
played.

Any suggestions and comments are 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

[android-developers] get the IP List of HotSpot Clients

2012-03-21 Thread rakesh kumar
Hi,

 I am Using HotSpot on Nadroid Tablet to create the local network.

All the Clients are able to connect with the Tablet through HotSpot in
the local Network.

Issue:-

1. How can I get the  IP  List of HotSpot Clients.
2. How can my Application find out whether any new device going to
connect with the Hotspot.




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] Android, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Mark Murphy
Also, bear in mind that on 2.2 and below (and some 2.3 devices), we
are dealing with the YAFFS2 filesystem, so if some other app is doing
a bunch of disk I/O, you may be blocked by their work.

On Wed, Mar 21, 2012 at 3:22 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Actually, just to respond to myself -- I don't believe this a SQLite issue.

 For this only happens on the one query that runs in the AsyncTask.

 I run the exact same query twice in parallel:  once in the UI thread (I know
 I shouldn't, but it's fast) and then I run it again in the AsyncTask, this
 time reading through the entire cursor to find a particular row index.  (Is
 there a faster way to do that in SQL, btw?).

 Anyway, the first query runs quick, the second one has this problem the OP
 saw for a couple of users.   Since the query is the same in both cases, I
 think this is a thread starvation issue instead of a SQLite query problem.
  That's just my hunch based on 20 years of development experience.




 On Wednesday, March 21, 2012 2:28:46 PM UTC+8, Zsolt Vasvari wrote:

 I have 2 users (out of thousands) reporting this problem.  I am at a loss
 as to why this is happening, also.  It doesn't have anything to the data as
 the user claims they few rows.  I even had them recreate their database (I
 have a backup facility that that backs up/restores from JSON) and the
 problem still occurs.

 One guy took the phone back because he suspected a hardware issue.  The
 other person never followed up, so I don't know if he solved it or what.



 On Wednesday, March 21, 2012 6:54:30 AM UTC+8, Dianne Hackborn wrote:

 You can get the SQLite version to perform acceptably.  You just need to
 use it correctly -- set up indices as appropriate as needed for joins and
 such.  I am not a SQL (lite or otherwise) expect in any way so I can't help
 you with the particulars, but at the very least make sure you are actually
 setting indices on the columns that are involved in deciding what rows are
 included in the query result.

 Also all you are doing by putting your query in the main thread of your
 process is causing your process to ANR when it takes a long time.  The query
 all happens in native code down in SQLite, so you won't see anything in your
 java traces (nor typically anything interesting in native traces either
 since most likely, yes, you are executing the query in SQLite).

 On Tue, Mar 20, 2012 at 3:22 PM, momo dun...@gmail.com wrote:

 I'm rewriting a simple translation app with a SQLite db.  There is an
 extreme hit to performance between two queries, but only on certain 
 devices.

 One query lists the english words in a ListView, the other lists the
 secondary language in a list view.  The data is structured differently, and
 is from a remote server.

 Both are single SQL statements, run via db.rawQuery.  Both use AsyncTask
 to keep heavy lifting in another thread.

 On both devices, the english query returns almost instantly (less than
 1 second, every time):

 return db.rawQuery(select _id as id, english as label from
 english_words order by english collate nocase, null);

 On one device, the secondary_langauge query returns almost instantly
 as well.  No problem there, ever.  This is a Samsung Galaxy SII.  On 
 another
 device (Samsung Nexus S), this query takes around 30 seconds.  This query
 has some joins, as follows:

 return db.rawQuery(select definitions._id as id, secondary_language as
 label from english_words join definition_bridge on
 english_words._id=definition_bridge.word_id join definitions on
 definitions._id=definition_bridge.definition_id order by
 secondary_language, null);

 I ran it in the emulator once, and got the same result as the Nexus S
 (the 30 second hang).  It took a little 1.5 hours to download and parse the
 returns from the server on the emulator (which takes a few seconds on 
 either
 device), so I gave up on further debug with the emulator at that point.

 This is the only difference between the two operations.  The listView is
 the same, the adapter is the same, the AsyncTask is the same.  The number 
 of
 rows returned is different - there are about 2000 english words, and a
 little over 3000 words in the other language.  I don't think this explains
 the vast difference in performance.

 I took the query out of the AsyncTask to see if I could get some more
 debug info, and did get an ANR:

   at android.database.sqlite.SQLiteQuery.native_fill_window(Native
 Method)
   at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:73)
   at
 android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:287)
   at
 android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:268)
   at
 com.whatever.adapters.WordListAdapter.getCount(WordListAdapter.java:39)

 I rewrote the adapter's getCount method to return a cached count
 (determined during instantiation).  After, I didn't get an ANR again, but
 otherwise the performance was not improved and the query still took around
 30 seconds.

 

RE: [android-developers] Re: Encoder???

2012-03-21 Thread Muhammad UMER

Hi skink,
 I want to ask some questions, I know this is not a personal 
discussion forum,  but i have to ask.
 1) I am new to android, and android camera to server live video 
streaming is my first application. please can you tell me that Can I sale out 
this application and how?

 2) I want some new project, can you please tell me how can i get 
the new project.


thanks and Regards.

umer

 Date: Mon, 13 Feb 2012 08:20:22 -0800
 Subject: [android-developers] Re: Encoder???
 From: psk...@gmail.com
 To: android-developers@googlegroups.com
 
 
 
 Muhammad UMER wrote:
  Hi pskink,
 
Thank you for your kind help. I have done this app with your 
  help. I have handle the file header on server side and now 3gp file is 
  playable. You are such a great great great. man.
 
  Thanks and Regards,
  umer
 
 
 
 
 
 
 you are welcome, no problem
 
 pskink
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
  

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

2012-03-21 Thread Pinheiro
Hi!
I'm trying to create a shape with a border on 3 sides (top and sides, not 
at the bottom):

shape xmlns:android=http://schemas.android.com/apk/res/android;
solid android:color=#000 /
stroke android:width=2dp android:color=#888 /
corners android:topLeftRadius=2dip android:topRightRadius=2dip /
/shape

Unfortunately, I haven't found a way to hide the bottom stroke. Is it 
possible to do it in Android 2.2+?
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: animation

2012-03-21 Thread Anirudh Loya
PAY ME !!

On Wed, Mar 21, 2012 at 2:49 PM, Oli Wright oli.wri...@gmail.com wrote:

 Buy a small softcover book with plain pages.  On each page draw your stick
 figure in a slightly different position to the last page (through the
 progress of a walk).  Once done, hold the book in one hand and with the
 other hand flick through the pages at a constant pace.  Magical isn't it.

 On a more serious note, read the how to ask questions FAQ in this group
 then come back with more structured questions (and some answers of your
 own).


 On Wednesday, March 21, 2012 8:23:37 AM UTC, Zsolt Vasvari wrote:

 Pay somebody.

 On Wednesday, March 21, 2012 4:13:29 PM UTC+8, Indraneel Kulkarni wrote:

 hey all i have to create a basic animation. i want to make a stick
 figure walk. how do i do it? i have no clue. please help!
 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




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Zsolt Vasvari
But that should effect both the UI thread query and the worker thread 
query.  But only one runs slow.

On Wednesday, March 21, 2012 7:11:43 PM UTC+8, Mark Murphy (a Commons Guy) 
wrote:

 Also, bear in mind that on 2.2 and below (and some 2.3 devices), we
 are dealing with the YAFFS2 filesystem, so if some other app is doing
 a bunch of disk I/O, you may be blocked by their work.

 On Wed, Mar 21, 2012 at 3:22 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
  Actually, just to respond to myself -- I don't believe this a SQLite 
 issue.
 
  For this only happens on the one query that runs in the AsyncTask.
 
  I run the exact same query twice in parallel:  once in the UI thread (I 
 know
  I shouldn't, but it's fast) and then I run it again in the AsyncTask, 
 this
  time reading through the entire cursor to find a particular row index. 
  (Is
  there a faster way to do that in SQL, btw?).
 
  Anyway, the first query runs quick, the second one has this problem the 
 OP
  saw for a couple of users.   Since the query is the same in both cases, I
  think this is a thread starvation issue instead of a SQLite query 
 problem.
   That's just my hunch based on 20 years of development experience.
 
 
 
 
  On Wednesday, March 21, 2012 2:28:46 PM UTC+8, Zsolt Vasvari wrote:
 
  I have 2 users (out of thousands) reporting this problem.  I am at a 
 loss
  as to why this is happening, also.  It doesn't have anything to the 
 data as
  the user claims they few rows.  I even had them recreate their database 
 (I
  have a backup facility that that backs up/restores from JSON) and the
  problem still occurs.
 
  One guy took the phone back because he suspected a hardware issue.  The
  other person never followed up, so I don't know if he solved it or what.
 
 
 
  On Wednesday, March 21, 2012 6:54:30 AM UTC+8, Dianne Hackborn wrote:
 
  You can get the SQLite version to perform acceptably.  You just need to
  use it correctly -- set up indices as appropriate as needed for joins 
 and
  such.  I am not a SQL (lite or otherwise) expect in any way so I can't 
 help
  you with the particulars, but at the very least make sure you are 
 actually
  setting indices on the columns that are involved in deciding what rows 
 are
  included in the query result.
 
  Also all you are doing by putting your query in the main thread of your
  process is causing your process to ANR when it takes a long time.  The 
 query
  all happens in native code down in SQLite, so you won't see anything 
 in your
  java traces (nor typically anything interesting in native traces either
  since most likely, yes, you are executing the query in SQLite).
 
  On Tue, Mar 20, 2012 at 3:22 PM, momo dun...@gmail.com wrote:
 
  I'm rewriting a simple translation app with a SQLite db.  There is an
  extreme hit to performance between two queries, but only on certain 
 devices.
 
  One query lists the english words in a ListView, the other lists the
  secondary language in a list view.  The data is structured 
 differently, and
  is from a remote server.
 
  Both are single SQL statements, run via db.rawQuery.  Both use 
 AsyncTask
  to keep heavy lifting in another thread.
 
  On both devices, the english query returns almost instantly (less 
 than
  1 second, every time):
 
  return db.rawQuery(select _id as id, english as label from
  english_words order by english collate nocase, null);
 
  On one device, the secondary_langauge query returns almost instantly
  as well.  No problem there, ever.  This is a Samsung Galaxy SII.  On 
 another
  device (Samsung Nexus S), this query takes around 30 seconds.  This 
 query
  has some joins, as follows:
 
  return db.rawQuery(select definitions._id as id, secondary_language 
 as
  label from english_words join definition_bridge on
  english_words._id=definition_bridge.word_id join definitions on
  definitions._id=definition_bridge.definition_id order by
  secondary_language, null);
 
  I ran it in the emulator once, and got the same result as the Nexus S
  (the 30 second hang).  It took a little 1.5 hours to download and 
 parse the
  returns from the server on the emulator (which takes a few seconds on 
 either
  device), so I gave up on further debug with the emulator at that 
 point.
 
  This is the only difference between the two operations.  The listView 
 is
  the same, the adapter is the same, the AsyncTask is the same.  The 
 number of
  rows returned is different - there are about 2000 english words, and a
  little over 3000 words in the other language.  I don't think this 
 explains
  the vast difference in performance.
 
  I took the query out of the AsyncTask to see if I could get some more
  debug info, and did get an ANR:
 
at android.database.sqlite.SQLiteQuery.native_fill_window(Native
  Method)
at 
 android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:73)
at
  android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:287)
at
  

Re: [android-developers] Re: Push Notification Services for 4.0

2012-03-21 Thread Android Developer
yes, it is. C2DM Supports from 2.2 and higher.


Mani.

On Wed, Mar 21, 2012 at 1:33 PM, Hemant Chaudhari 
hemant.newslet...@gmail.com wrote:

 Thanks Nicolas,

 Is it also supported on Android 4.0?
 -Hemant



 On Wednesday, 21 March 2012 11:54:44 UTC+5:30, Nicolas Embleton wrote:

 Push notifications are availalbe since 2.3 or 2.2 ?  ( please remind me )

 It is called C2DM, Cloud To Device Messaging.

 And you can find the doc here: 
 http://code.google.com/**android/c2dm/http://code.google.com/android/c2dm/

 Nicolas.

 On Wednesday, March 21, 2012 11:50:27 AM UTC+7, Hemant Chaudhari wrote:

 Hello All,

 I want to implement Push Notifications for Android 4.0 Native app.
 Is there any sdk available for it.


 -Thanks
 Hemant

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

2012-03-21 Thread arun kumar
I want to dispaly alert dailog in asyn task( in post method..) am getting
the alert dailog but in log it show the errorandroid.view.WindowLeaked:
Activity com.androi.LoginScreen has leaked window



protected void onPostExecute(Void result) {
// TODO Auto-generated method stub
super.onPostExecute(result);

// ACTIVITY_INSTANCE.dismissDialog(PROGRESS_DIALOG);

if (error == 100) {

AlertDialog.Builder builder = new AlertDialog.Builder(Login.this);
builder.setTitle(Login Details);
builder.setMessage(INvalid Login details)

   .setCancelable(false)
   .setPositiveButton(Yes, new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int id) {
// TODO Auto-generated method stub
 }

   });
AlertDialog alert = builder.create();
 // AlertDialog dialog=alert.create();
alert.show();
}












03-21 18:29:57.888: INFO/ActivityManager(59): Starting activity: Intent {
cmp=com.androi/.YearDetails }
03-21 18:29:58.258: DEBUG/AndroidRuntime(292): --- registering native
functions ---
03-21 18:29:59.038: INFO/ActivityManager(59): Displayed activity
com.androi/.YearDetails: 1082 ms (total 1082 ms)
03-21 18:29:59.608: ERROR/WindowManager(282): Activity
com.androi.LoginScreen has leaked window
com.android.internal.policy.impl.PhoneWindow$DecorView@44e78238 that was
originally added here
03-21 18:29:59.608: ERROR/WindowManager(282): android.view.WindowLeaked:
Activity com.androi.LoginScreen has leaked window
com.android.internal.policy.impl.PhoneWindow$DecorView@44e78238 that was
originally added here
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.view.ViewRoot.init(ViewRoot.java:247)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.view.Window$LocalWindowManager.addView(Window.java:424)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.app.Dialog.show(Dialog.java:241)
03-21 18:29:59.608: ERROR/WindowManager(282): at
com.androi.LoginScreen$Task.onPostExecute(LoginScreen.java:327)
03-21 18:29:59.608: ERROR/WindowManager(282): at
com.androi.LoginScreen$Task.onPostExecute(LoginScreen.java:1)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.os.AsyncTask.finish(AsyncTask.java:417)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.os.AsyncTask.access$300(AsyncTask.java:127)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.os.Looper.loop(Looper.java:123)
03-21 18:29:59.608: ERROR/WindowManager(282): at
android.app.ActivityThread.main(ActivityThread.java:4627)
03-21 18:29:59.608: ERROR/WindowManager(282): at
java.lang.reflect.Method.invokeNative(Native Method)
03-21 18:29:59.608: ERROR/WindowManager(282): at
java.lang.reflect.Method.invoke(Method.java:521)
03-21 18:29:59.608: ERROR/WindowManager(282): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-21 18:29:59.608: ERROR/WindowManager(282): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-21 18:29:59.608: ERROR/WindowManager(282): at
dalvik.system.NativeStart.main(Native Method)
03-21 18:30:00.188: DEBUG/dalvikvm(282): GC_FOR_MALLOC freed 2945 objects /
206072 bytes in 247ms
03-21 18:30:00.878: DEBUG/dalvikvm(220): GC_EXPLICIT freed 497 objects /
28456 bytes in 162ms
03-21 18:30:01.237: DEBUG/PackageParser(59): Scanning package:
/data/app/vmdl30936.tmp
03-21 18:30:01.258: INFO/PackageParser(59): com.androi: compat added
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.READ_PHONE_STATE
03-21 18:30:01.518: INFO/PackageManager(59): Removing non-system
package:com.androi
03-21 18:30:01.518: INFO/ActivityManager(59): Force stopping package
com.androi uid=10036
03-21 18:30:01.578: INFO/Process(59): Sending signal. PID: 282 SIG: 9
03-21 18:30:01.578: INFO/ActivityManager(59):   Force finishing activity
HistoryRecord{45067938 com.androi/.SecondScreen}
03-21 18:30:01.648: INFO/UsageStats(59): Unexpected resume of
com.android.launcher while already resumed in com.androi
03-21 18:30:01.847: INFO/WindowManager(59): WIN DEATH: Window{44f7f068
com.androi/com.androi.SecondScreen paused=true}
03-21 18:30:01.847: INFO/WindowManager(59): WIN DEATH: Window{44fd0210
com.androi/com.androi.YearDetails paused=false}
03-21 18:30:01.847: INFO/WindowManager(59): WIN DEATH: Window{450c1f70
com.androi/com.androi.YearDetails paused=false}
03-21 18:30:01.987: DEBUG/PackageManager(59): Scanning package com.androi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this 

[android-developers] Re: How to make autocompletetextview list border as transparent

2012-03-21 Thread Android Developer
Hi

I am not sure whether i can achieve this or not. because its default list
attributes i dont know how to change this.

On Wed, Mar 21, 2012 at 1:37 PM, Android Developer
c2dmdevelo...@gmail.comwrote:

 Hi,

 I have autocompletetextview while tying its shows the list. how to i make
 the list border as transparent.

 Code :

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

  AutoCompleteTextView android:id=@+id/autocomplete_country
  style=@style/InputBox
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_marginLeft=5dp/

 /LinearLayout


  ArrayAdapterString adapter = new ArrayAdapterString(this,
 android.R.layout.simple_dropdown_item_1line, COUNTRIES);

 i tried with :

 adapter.setDropDownViewResource(R.color.transparent);



 Thanks in Advance


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

[android-developers] TypeError: Result of expression 'navigator.camera'

2012-03-21 Thread subrat kumar panda
Hi All,

i am using coredova-1.5.0.js. when i press  a button to
capture image i always have the error: TypeError: Result of
expression 'navigator.camera' [undefined] is not an object

i think it's  coredova-1.5.0 problem / eclipse problem.

anyway the the coredova-1.5.0.js file is not able to compile.

Any help will be appreciated


Regards,
Subrat

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

2012-03-21 Thread bob

Is there a significant performance penalty for opening files on the SD card?

For instance, if you try to play a movie by opening 1000 PNG files in a 
directory on the sd card, is this way worse than having them all 
concatenated in one file?

My (probably flawed analysis) is this:

Since the SD card is not a hard drive, the 10ms or so seek penalty is not 
there.  So, there probably isn't much difference.

Anyone have any other views?  

FYI, I'm basically working on a hi-res loss-less movie player.

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

2012-03-21 Thread JP


On Mar 18, 10:22 pm, TreKing treking...@gmail.com wrote:
 On Sun, Mar 18, 2012 at 7:07 PM, g...@deanblakely.com
 g...@deanblakely.comwrote:

  Why would this be?

 The Google Maps add-on has essentially been abandoned. It has not received
 an update of any sort in several years now.

There was one last update back about maybe one and half years ago when
the font sizes were updated for readability on the higher res screens.
At least we're not getting charged for it unlike the online users of
the Google Maps API...

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

2012-03-21 Thread Chris Stratton
On Wednesday, March 21, 2012 12:47:09 AM UTC-4, kiran nayak wrote:

 hi all 

 i have booted android on my beagleboard.. but when i try to install a 
 simple helloworld.apk android crashes. 


This question doesn't belong on android-developers since it's a system 
problem with a custom build; it might fit on android-porting or better on 
something beagleboard android specific.

Nonetheless 

E/PackageManager( 1041): Couldn't create temp file for downloaded package 
file. 

Might be something to look into.  But please take followups to an 
appropriate forum.

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

2012-03-21 Thread Chris Stratton
Is the content of your udev rules file correct, and will it match the 
device you are connecting?  Ie, post the content of your rules file.

On Tuesday, March 20, 2012 7:59:49 AM UTC-4, Hera wrote:

 Hello, 

 I have installed the android SDK but I’m getting an error when using a 
 hardware device, executing “./adb device$ I get this error: 

 List of devices attached 
 no permissions 

 While if I execute “sudo ./adb device” there is no error: 

 List of devices attached 
 HT019P80XXX device 

 Adb must work for all users (also when eclipse starts it) but It only 
 works as root. The permissions of the related files are: 

 -rwxr-xr-x 1 root root 72 2012-03-20 09:53 /etc/udev/rules.d/51- 
 android.rules 
 -rwxr-xr-x 1 ariadna ariadna 159620 2012-03-19 13:45 adb 

 I have googled and tried different solutions but none off then works 
 on my Ubuntu, any idea? 

 Thank you 


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

Re: [android-developers] Android, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Kostya Vasilyev
Are you perhaps running multiple instances of this query at the same
time, causing contention inside SQLite?

From what you've described, it seems possible - since AsyncTask uses a
pool of more than one thread, and you also mentioned running this
query on the UI thread as well.

I would try to use AsyncQueryHandler, which processes requests one at
a time, or some other mechanism to ensure that these queries are
serialized -- if only for the sake of debugging.

As far as finding an index, two things come to mind.

One is a cache of prior query results (perhaps using a SparseArray or
something like it) and then looking up indices in this cache.

The other is writing a count(*) type query just to get the index.

Perhaps you've already considered both, given your vast experience, if
so, my apologies for suggesting something so obvious.

-- K

21 марта 2012 г. 16:54 пользователь Zsolt Vasvari zvasv...@gmail.com написал:
 But that should effect both the UI thread query and the worker thread query.
  But only one runs slow.

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

2012-03-21 Thread TreKing
On Tue, Mar 20, 2012 at 6:22 PM, g...@deanblakely.com
g...@deanblakely.comwrote:

 The com.google.android.maps.MapView has been abandoned??


Yes. Google, AFAICT, has given up on updating the entire Google Maps Addon
Library.


 I must misunderstand.  What tool do android developers use when they want
 to
 display Google Maps in Android applications?


Well, it still works as is, but don't expect anything new from it, is what
I'm saying.


 Where are those docs or tutorials.


On the internet. You can find them via a Bing search.


 I figured that going to the Android developers center would be the right
 place to go to learn about developing on Android. No?


Yes. That's different than the subject of your post.

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

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 9:02 AM, bob b...@coolfone.comze.com wrote:

 For instance, if you try to play a movie by opening 1000 PNG files in a
 directory on the sd card, is this way worse than having them all
 concatenated in one file?


Try both, profile both, compare.

-
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: Android adb permision error

2012-03-21 Thread Kostya Vasilyev
FWIW, I remember seeing this with some (not all) of my devices, even
when my UPnP ids were correct.

To fix, I specified my actual user and group to the udev file, like this:

SUBSYSTEM==usb, ATTR{idVendor}==0bb4, MODE=0666, OWNER=kman,
GROUP=kman

... changing from the usual GROUP=plugdev (IIRC) in the documentation.

-- K

21 марта 2012 г. 18:14 пользователь Chris Stratton cs07...@gmail.com написал:
 Is the content of your udev rules file correct, and will it match the device
 you are connecting?  Ie, post the content of your rules file.


 On Tuesday, March 20, 2012 7:59:49 AM UTC-4, Hera wrote:

 Hello,

 I have installed the android SDK but I'm getting an error when using a
 hardware device, executing ./adb device$ I get this error:

 List of devices attached
 no permissions

 While if I execute sudo ./adb device there is no error:

 List of devices attached
 HT019P80XXX device

 Adb must work for all users (also when eclipse starts it) but It only
 works as root. The permissions of the related files are:

 -rwxr-xr-x 1 root root 72 2012-03-20 09:53 /etc/udev/rules.d/51-
 android.rules
 -rwxr-xr-x 1 ariadna ariadna 159620 2012-03-19 13:45 adb

 I have googled and tried different solutions but none off then works
 on my Ubuntu, any idea?

 Thank you

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

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


Re: [android-developers] Re: How to change shortcut icons dynamically on home screen in Android ?

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 12:08 AM, Abhishek Kumar Gupta akgaec2...@gmail.com
 wrote:

 Thanks for the reply. I am able to change the shortcut icon of application
 only when I am moving the application from launcher screen to home screen(
 i.e. when I am creating the shortcut icon of application). But, my
 requirement is to change the icon of existing shortcut of application on
 home screen. If you give any suggestion that would be very helpful to me.


Sorry, I don't have much more to offer on this topic besides what I've
already posted. Good luck.

-
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] type of connector?

2012-03-21 Thread bob
I found this connector on an Android device:

http://s11.postimage.org/wu78mfoar/connector.jpg

Can someone help me identify what type of connector this is?

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] type of connector?

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 10:01 AM, bob b...@coolfone.comze.com wrote:

 Can someone help me identify what type of connector this is?


Can you stop using this group as a dumping ground for silly questions that
have NOTHING to do with actual Android Development?

Thanks.

-
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 do you get the Activity that launches the IME?

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 2:15 AM, tsukishiro tsukishir...@gmail.com wrote:

 Now I want to get a reference to the new contact activity from which my
 IME was launched. Is this possible?


If you explain what you hoped to accomplish with such functionality,
perhaps someone could offer alternative suggestions.

-
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: Android adb permision error

2012-03-21 Thread Nadeem Hasan
Make sure you have the correct Vendor id listed for your device. Use lsusb 
to get this. Then make sure you are a member of the group that gets the 
permission (plugdev in this case).

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

2012-03-21 Thread νιяιη¢нソ
Hello everyone,

Is it mandatory for a developer to buy an android publisher account with an
amount of $25.
cant he publish his applications without paying this amount ,like for free
apps ...

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

2012-03-21 Thread Kristopher Micinski
I think this goes in the i want to extend another app category,
which is asked a lot here..

kris

On Wed, Mar 21, 2012 at 11:10 AM, TreKing treking...@gmail.com wrote:
 On Wed, Mar 21, 2012 at 2:15 AM, tsukishiro tsukishir...@gmail.com wrote:

 Now I want to get a reference to the new contact activity from which my
 IME was launched. Is this possible?


 If you explain what you hoped to accomplish with such functionality, perhaps
 someone could offer alternative suggestions.

 -
 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

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

2012-03-21 Thread Yaron Reinharts

Hi,

This error means that you are trying to show a dialog after the activity 
exit.

In the AsyncTask sample there is no call to super.onPostExecute(result);

Hope this helps
/Yaron

--
Yaron Reinharts
Smart Drive Applications
http://www.poncho.co.il/gateaway.php
https://market.android.com/details?id=com.poncho.gsm.gate.activities





On 03/21/2012 03:08 PM, arun kumar wrote:
I want to dispaly alert dailog in asyn task( in post method..)am 
getting the alert dailog but in log it show the 
errorandroid.view.WindowLeaked: Activity com.androi.LoginScreen has 
leaked window




protected void onPostExecute(Void result) {
// TODO Auto-generated method stub
super.onPostExecute(result);

//ACTIVITY_INSTANCE.dismissDialog(PROGRESS_DIALOG);

if (error == 100) {

AlertDialog.Builder builder = new AlertDialog.Builder(Login.this);
builder.setTitle(Login Details);
builder.setMessage(INvalid Login details)
  .setCancelable(false)
  .setPositiveButton(Yes, new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int id) {
// TODO Auto-generated method stub
}
  });
AlertDialog alert = builder.create();
//AlertDialog dialog=alert.create();
alert.show();
}












03-21 18:29:57.888: INFO/ActivityManager(59): Starting activity: 
Intent { cmp=com.androi/.YearDetails }
03-21 18:29:58.258: DEBUG/AndroidRuntime(292): --- registering native 
functions ---
03-21 18:29:59.038: INFO/ActivityManager(59): Displayed activity 
com.androi/.YearDetails: 1082 ms (total 1082 ms)
03-21 18:29:59.608: ERROR/WindowManager(282): Activity 
com.androi.LoginScreen has leaked window 
com.android.internal.policy.impl.PhoneWindow$DecorView@44e78238 that 
was originally added here
03-21 18:29:59.608: ERROR/WindowManager(282): 
android.view.WindowLeaked: Activity com.androi.LoginScreen has leaked 
window com.android.internal.policy.impl.PhoneWindow$DecorView@44e78238 
that was originally added here
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.view.ViewRoot.init(ViewRoot.java:247)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.view.Window$LocalWindowManager.addView(Window.java:424)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.app.Dialog.show(Dialog.java:241)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
com.androi.LoginScreen$Task.onPostExecute(LoginScreen.java:327)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
com.androi.LoginScreen$Task.onPostExecute(LoginScreen.java:1)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.os.AsyncTask.finish(AsyncTask.java:417)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.os.AsyncTask.access$300(AsyncTask.java:127)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.os.Handler.dispatchMessage(Handler.java:99)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.os.Looper.loop(Looper.java:123)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
android.app.ActivityThread.main(ActivityThread.java:4627)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
java.lang.reflect.Method.invokeNative(Native Method)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
java.lang.reflect.Method.invoke(Method.jaerrorandroid.view.WindowLeakedva:521)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-21 18:29:59.608: ERROR/WindowManager(282): at 
dalvik.system.NativeStart.main(Native Method)
03-21 18:30:00.188: DEBUG/dalvikvm(282): GC_FOR_MALLOC freed 2945 
objects / 206072 bytes in 247ms
03-21 18:30:00.878: DEBUG/dalvikvm(220): GC_EXPLICIT freed 497 objects 
/ 28456 bytes in 162ms
03-21 18:30:01.237: DEBUG/PackageParser(59): Scanning package: 
/data/app/vmdl30936.tmp
03-21 18:30:01.258: INFO/PackageParser(59): com.androi: compat added 
android.permission.WRITE_EXTERNAL_STORAGE 
android.permission.READ_PHONE_STATE
03-21 18:30:01.518: INFO/PackageManager(59): Removing non-system 
package:com.androi
03-21 18:30:01.518: INFO/ActivityManager(59): Force stopping package 
com.androi uid=10036

03-21 18:30:01.578: INFO/Process(59): Sending signal. PID: 282 SIG: 9
03-21 18:30:01.578: INFO/ActivityManager(59):   Force finishing 
activity HistoryRecord{45067938 com.androi/.SecondScreen}
03-21 18:30:01.648: INFO/UsageStats(59): Unexpected resume of 
com.android.launcher while already resumed in com.androi
03-21 18:30:01.847: INFO/WindowManager(59): WIN DEATH: Window{44f7f068 
com.androi/com.androi.SecondScreen 

Re: [android-developers] free publisher account

2012-03-21 Thread TreKing
2012/3/21 νιяιη¢нソ joinvir...@gmail.com

 Is it mandatory for a developer to buy an android publisher account with
 an amount of $25.


Yes. You're not buying an account, you're paying a fee, presumably to
curtail spammers and non-serious developers.

cant he publish his applications without paying this amount ,like for free
 apps ...


No.

-
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] SDK VERSION?

2012-03-21 Thread TreKing
Did you have a question?

-
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: Bug: Google Analytics JAR is generating corrupt data for PageViews and Events

2012-03-21 Thread Lathe26
On further investigation, it was found that this bug only manifests when 
setDryRun(true) is called.  The good news is that when it is set to false 
(or not called), then the LogCat output and any network capture logs (ex: 
WireShark) show that the correct data is actually uploaded to the servers.

Since the real data being sent to the service is not being corrupted, this 
lowers the severity of this bug.

Without seeing the source code, I'm guessing that when setDryRun(true) is 
called, all tracking calls stop going to the SQLite DB and instead go to an 
alternative in-memory data structure and that this data structure either 
has some bugs or is not fully thread-safe.

On Monday, March 19, 2012 10:05:45 AM UTC-7, Lathe26 wrote:

 I should add that a Issue 200 has been filed in the 
 analytics-issueshttp://code.google.com/p/analytics-issues/bug database at 
 this link location: 
 http://code.google.com/p/analytics-issues/issues/detail?can=2start=0num=100q=eventcolspec=ID%20Component%20Type%20Status%20Priority%20Stars%20Summarygroupby=sort=id=200


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bug: Google Analytics JAR is generating corrupt data for PageViews and Events

2012-03-21 Thread Lathe26


On Monday, March 19, 2012 10:01:55 AM UTC-7, Lathe26 wrote:

 I'm wondering if anyone else is seeing this severe data corruption bug.  
 I've confirmed this behavior in the Android simulator and on my own phone 
 using the libGoogleAnalytics.jar version 1.4.2

 If I use the Google Analytics JAR for Android to track several page views 
 or events and then dispatch them, the data being sent to the server does 
 not match what I'm tracking (LogCat output shows this too).  Example: if I 
 track 8 different events and then dispatch, then 8 event packets are sent 
 but only the 1st and 8th packets are correct while the packets between are 
 random repeats or skips of the events in between.

 If I call the following:
 tracker = GoogleAnalyticsTracker.getInstance();
 tracker.setDebug( true );
 tracker.setDryRun( true );
 tracker.setAnonymizeIp( true );
 tracker.setProductVersion(myProductVersion, 1.0);
 tracker.startNewSession(UA-24601666-42, this);
 tracker.trackEvent( Clicks, Button, down1, 1 );
 tracker.trackEvent( Clicks, Button, up2, 2 );
 tracker.trackEvent( Clicks, Button, down3, 3 );
 tracker.trackEvent( Clicks, Button, up4, 4 );
 tracker.trackEvent( Clicks, Button, down5, 5 );
 tracker.trackEvent( Clicks, Button, up6, 6 );
 tracker.trackEvent( Clicks, Button, down7, 7 );
 tracker.trackEvent( Clicks, Button, up8, 8 );
 tracker.dispatch();

 then in LogCat I'll see the debug put for the following events in this 
 order: down1, down3, down5, down7, down5, down7, down7, up8

 For anyone that wants to see a demo, see the attached source code.


On further investigation, it was found that this bug only manifests when 
setDryRun(true) is called.  The good news is that when it is set to false 
(or not called), then the LogCat output and any network capture logs (ex: 
WireShark) show that the correct data is actually uploaded to the servers.

Since the real data being sent to the service is not being corrupted, this 
lowers the severity of this bug.

Without seeing the source code, I'm guessing that when setDryRun(true) is 
called, all tracking calls stop going to the SQLite DB and instead go to an 
alternative in-memory data structure and that this data structure either 
has some bugs or is not fully thread-safe. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bug: Google Analytics JAR is generating corrupt data for PageViews and Events

2012-03-21 Thread Lathe26
On further investigation, it was found that this bug only manifests when 
setDryRun(true) is called.  The good news is that when it is set to false 
(or not called), then the LogCat output and any network capture logs (ex: 
WireShark) show that the correct data is actually uploaded to the servers.

Since the real data being sent to the service is not being corrupted, this 
lowers the severity of this bug.

Without seeing the source code, I'm guessing that when setDryRun(true) is 
called, all tracking calls stop going to the SQLite DB and instead go to an 
alternative in-memory data structure and that this data structure either 
has some bugs or is not fully thread-safe.

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

2012-03-21 Thread Kostya Vasilyev
21 марта 2012 г. 19:06 пользователь TreKing treking...@gmail.com написал:
 On Wed, Mar 21, 2012 at 10:01 AM, bob b...@coolfone.comze.com wrote:

 Can someone help me identify what type of connector this is?

That's a 5-pin Mini-USB Type B.

http://www.svyaznoy.ru/catalog/accessories/2704/567250

 Can you stop using this group as a dumping ground for silly questions that
 have NOTHING to do with actual Android Development?

+1 to that :)

-- K


 Thanks.

 -
 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] video not playing in mdpi devices..

2012-03-21 Thread vani reddy
HI friends,

I have a video in mp4 format its playing in hdpi devices but not in mdpi
devices?
How to resolve this

-- 
Regards,
Vani Reddy

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

2012-03-21 Thread Ted Scott

This is somewhat off topic, but I couldn't think of a better place to ask.

Is anyone successfully using maven and eclipse to develop android apps? 
If so, are they complex apps? I really like the dependency management 
aspects of maven, but getting eclipse to play nicely with maven in an 
android project is problematic. In my ideal world I would be able to 
build and deploy in eclipse for development/debugging and use maven to 
do production builds.


So, have you tried and rejected using maven? Or have you tried and 
gotten it to work nicely?


I'm about ready to give up on getting it all to play nicely.

-Ted

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

2012-03-21 Thread Franzi Roesner
Hi,

I'm trying to send a custom Parcelable to another application (in another 
process). 

I have a client and a remote service, as well as an abstract class (say, 
AbstractCustomParcelable) that I added to the Android framework itself (for 
research purposes). The remote service should receive an object from the 
client that is an instantiation of this abstract class, and then call a 
method on it.

The problem is that if I extend AbstractCustomParcelable in the client 
(say, MyCustomParcelable) and then pass it to the service (by putting it in 
a Bundle with some other stuff and sending it via a Message), I get a 
ClassNotFoundError in the service:

android.os.BadParcelableException: ClassNotFoundException when 
unmarshalling: com.my.package.Client$MyCustomParcelable

I've done some searches and it appears I need to do something with the 
classloader, but I'm not sure where to set which classloader, and nothing 
I've tried has worked so far (e.g., doing 
setClassLoader(MyCustomParcelable.class.getClassLoader()) on the Bundle). 
Is there a way to make this work?


Thanks in advance!

Franzi

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

2012-03-21 Thread AndroidGirl8
Hi all ,

I'm using Vitamio api for streaming youtube videos for live channel on 
youtube, but when i tested it on 3.2 emulator it gave this message : 
 Vitamio is not compatible with your device .
is this because i'm testing in emulator or caused by another problem ?
Any help will be appreciated .

Thanks


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

[android-developers] Disable NumberPicker EditText for editing

2012-03-21 Thread Pankaj Chawla
Hi

I am trying to use the NumberPicker in ICS 4.0.3. NumberPicker has a EditText 
widget that goes into edit state every time I swipe the control to pick a new 
value. This results in the virtual keyboard popping up.I will like to disable 
the editing in the EditText of the NumberPicker so that the user only picks 
values by swiping the values up or down. 

---
Cheers
Pankaj

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

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 1:23 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 I'll do it for US$100 a hour...


I'll do it for $90 / hour. A Happy Ending will cost an extra $5. An
Exciting Conclusion an extra $10.

-
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: Android Project development cost

2012-03-21 Thread Nadeem Hasan
I will do it for $85/hr with no extra charge for any ending of your choice. 
Don't you love competition.

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

2012-03-21 Thread Harri Smått
Hi,

Did you try asking for support from serv...@vov.io already? There's rather 
strong clause right after Android SDK example download link (@ 
http://vov.io/vitamio/) Vitamio ought to be willing to provide support via 
email.

--
H

On Mar 21, 2012, at 6:45 PM, AndroidGirl8 wrote:

 Hi all ,
 
 I'm using Vitamio api for streaming youtube videos for live channel on 
 youtube, but when i tested it on 3.2 emulator it gave this message :  Vitamio 
 is not compatible with your device .
 is this because i'm testing in emulator or caused by another problem ?
 Any help will be appreciated .
 
 Thanks
 
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 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: Android Project development cost

2012-03-21 Thread Bob Plantz
Recommendation: Take the bid just before the one that says $n/hr with 
the ending of MY choice. :-)


On 3/21/2012 10:00 AM, Nadeem Hasan wrote:
I will do it for $85/hr with no extra charge for any ending of your 
choice. Don't you love competition. --


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

2012-03-21 Thread AndroidGirl8
Ok i sent an email to  serv...@vov.io  , but do you think it because i'm 
testing on emulator , actually i tried to play videos on 3.2 emulator and 
it's working just fine but i don't know what is the problem now in this ?
and if i should test on real device and currently i don't have one , is 
there any other options , i heard about IRC or something like that ??

Thanks

On Wednesday, March 21, 2012 7:03:37 PM UTC+2, harism wrote:

 Hi,

 Did you try asking for support from serv...@vov.io already? There's 
 rather strong clause right after Android SDK example download link (@ 
 http://vov.io/vitamio/) Vitamio ought to be willing to provide support 
 via email.

 --
 H

 On Mar 21, 2012, at 6:45 PM, AndroidGirl8 wrote:

  Hi all ,
  
  I'm using Vitamio api for streaming youtube videos for live channel on 
 youtube, but when i tested it on 3.2 emulator it gave this message : 
  Vitamio is not compatible with your device .
  is this because i'm testing in emulator or caused by another problem ?
  Any help will be appreciated .
  
  Thanks
  
  
  
  -- 
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  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] one time Registration after installation of an application??

2012-03-21 Thread muhammad.ume...@hotmail.com
hi,
  I want to register the user only one time when he use after
installation and save it's name locally on mobile. how can i do this?
please give any suggestion.


Thanks and Regards,

umer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] one time Registration after installation of an application??

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 12:34 PM, muhammad.ume...@hotmail.com 
muhammad.ume...@hotmail.com wrote:

 I want to register the user only one time when he use after
 installation and save it's name locally on mobile. how can i do this?


Check SharedPreferences.

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

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

[android-developers] How to use cp (Copy) command in system function in native C code on Android

2012-03-21 Thread A B
I want to copy file from on directory to another in my native C program. I
tried using system function but it's not working.

I tried this code in native code of Android

int result = system(cp /mnt/test /Download/); // It's not working

This system function returns 256 (error code) integer value. So we can say
system function is working in Android. I also installed BusyBox so I can
use the cp command also.

If I execute directly cp /mnt/test /Download/ command then it's working
fine.

So what is problem here in system function. Have I missed something?

Thanks

Sam Jona

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

2012-03-21 Thread vaggos von karajan


Solved..!

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

2012-03-21 Thread Abhishek Singh
On Wed, Mar 21, 2012 at 1:26 AM, android-developers@googlegroups.comwrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/android-developers/topics

- Progress bar and get info #13631af38aed2f8d_group_thread_0 [1
Update]
- need for speed class #13631af38aed2f8d_group_thread_1 [1 Update]
- Does the file Manifest.java in Android source codes contain all the
list of permissions? #13631af38aed2f8d_group_thread_2 [1 Update]
- OnTouchListener with multiple views 
 problem#13631af38aed2f8d_group_thread_3[2 Updates]
- Email-dependent app #13631af38aed2f8d_group_thread_4 [4 Updates]
- Casting string as a class (ie. 
 RadioButton)#13631af38aed2f8d_group_thread_5[4 Updates]
- app freezes and get stucks #13631af38aed2f8d_group_thread_6 [1
Update]
- SMS as techinque for chatting #13631af38aed2f8d_group_thread_7 [2
Updates]
- implementing fade-in/fade-out effects in Java with frame-based
animation #13631af38aed2f8d_group_thread_8 [2 Updates]
- Is there way of using NFC without Secure 
 Element?#13631af38aed2f8d_group_thread_9[1 Update]
- Testing AndroidTestCase as well as 
 ActivityInstrumentationTestCase2#13631af38aed2f8d_group_thread_10[1 Update]
- convert #13631af38aed2f8d_group_thread_11 [1 Update]
- Can I customize the size of notification icon on the status 
 bar?#13631af38aed2f8d_group_thread_12[1 Update]
- Gps not working in phonegap-1.5.0 
 android#13631af38aed2f8d_group_thread_13[2 Updates]
- serverSocket.accept(); #13631af38aed2f8d_group_thread_14 [1 Update]

   Progress bar and get 
 infohttp://groups.google.com/group/android-developers/t/2d9d53566c431045

oneking onekingg...@gmail.com Mar 20 12:27PM -0700

Thanks but no this doesn't help me




   need for speed 
 classhttp://groups.google.com/group/android-developers/t/ceaaf9b310de8982

bob b...@coolfone.comze.com Mar 20 12:20PM -0700

Is there any way to determine what the speed class is of an SD Card on
an
Android device? (i.e. 600x read speed)



   Does the file Manifest.java in Android source codes contain all the
 list of 
 permissions?http://groups.google.com/group/android-developers/t/bc7b06856a5e8169

michael xuetao@gmail.com Mar 20 12:00PM -0700

Could I say that the Manifest.java file contains all the permissions
for one version of Android?



   OnTouchListener with multiple views 
 problemhttp://groups.google.com/group/android-developers/t/353a983d8dbe1bd8

metro rotems...@gmail.com Mar 20 11:28AM -0700

Hi
I've seen it all... :)
They are all talking about dragdrop functionality implemented since
Honeycomb
(Api level 11)
Any other example please?
Thanks!


On Tuesday, March 20, 2012 6:43:02 PM UTC+2, MagouyaWare wrote:




Bill Lahti bill.la...@gmail.com Mar 20 11:49AM -0700

I have worked with some code that was in the API 8 Android Launcher. I
have
found that it is a pretty good framework for drag-drop.
For more about the sample apps I built, see my answer on
StackOverflow:


 http://stackoverflow.com/questions/9661536/dragging-and-dropping-a-button-from-one-linear-layout-to-another-linear-layout/9683018

Bill

On Tuesday, March 20, 2012 2:28:00 PM UTC-4, metro wrote:



   Email-dependent 
 apphttp://groups.google.com/group/android-developers/t/c8d429ee7416d996

Kristopher Micinski krismicin...@gmail.com Mar 20 01:24PM -0400


 Can you have behaviour dependent on a foreground process like this?
Is
 there another way of doing this?

 Thanks.

No, this is a frequently asked question, but basically, you can't
extend apps you didn't write with arbitrary functionality like this.

kris




johnlugh hanshen.t...@gmail.com Mar 20 10:51AM -0700

Thanks very much for the advice. So I would have to write my own
separate email application if I wanted to have any kind of customised
'extended' features like I want? It seems like I'm biting off more
than i can chew so to speak...




TreKing treking...@gmail.com Mar 20 01:02PM -0500


 So I would have to write my own separate email application if I
wanted to
 have any kind of customised 'extended' features like I want?

Basically. Then there's the minor task of getting people to use it to
get
actually relevant stats.



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




Kristopher Micinski krismicin...@gmail.com Mar 20 02:08PM -0400

That's right. The only way to extend functionality is to actually
write your own app, there's no way in existing apps to extend them...
(Unless they provide specific broadcasts, intents, etc... that you can
use, but this rarely happens, and it's almost never enough to actually
provide 

Re: [android-developers] Re: preferences.xml

2012-03-21 Thread Mark Phillips
How??

If you are going to ask for help,   and then say the problem is solved,
you have an obligation to tell the  list the solution, so the next bloke
with a similar problem can help him/herself.

Mark
On Mar 21, 2012 10:40 AM, vaggos von karajan vaggo...@otenet.gr wrote:



 Solved..!

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

2012-03-21 Thread Justin Anderson
Be grateful that it is a one-time low fee... Apple charges a yearly fee
that is much more than that and Amazon is going to start charging $99 every
year beginning next year...
On Mar 21, 2012 9:25 AM, TreKing treking...@gmail.com wrote:

 2012/3/21 νιяιη¢нソ joinvir...@gmail.com

 Is it mandatory for a developer to buy an android publisher account with
 an amount of $25.


 Yes. You're not buying an account, you're paying a fee, presumably to
 curtail spammers and non-serious developers.

 cant he publish his applications without paying this amount ,like for free
 apps ...


 No.


 -
 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

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

2012-03-21 Thread Franzi Roesner
I figured this out, in case someone else needs this one day. In the remote 
service, I did:

Context c = createPackageContext(com.my.package, 
Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);
bundle.setClassLoader(c.getClassLoader());


However, what are the security implications of this (particularly the 
CONTEXT_IGNORE_SECURITY flag)?

Thanks!

Franzi

On Wednesday, March 21, 2012 9:36:19 AM UTC-7, Franzi Roesner wrote:

 Hi,

 I'm trying to send a custom Parcelable to another application (in another 
 process). 

 I have a client and a remote service, as well as an abstract class (say, 
 AbstractCustomParcelable) that I added to the Android framework itself (for 
 research purposes). The remote service should receive an object from the 
 client that is an instantiation of this abstract class, and then call a 
 method on it.

 The problem is that if I extend AbstractCustomParcelable in the client 
 (say, MyCustomParcelable) and then pass it to the service (by putting it in 
 a Bundle with some other stuff and sending it via a Message), I get a 
 ClassNotFoundError in the service:

 android.os.BadParcelableException: ClassNotFoundException when 
 unmarshalling: com.my.package.Client$MyCustomParcelable

 I've done some searches and it appears I need to do something with the 
 classloader, but I'm not sure where to set which classloader, and nothing 
 I've tried has worked so far (e.g., doing 
 setClassLoader(MyCustomParcelable.class.getClassLoader()) on the Bundle). 
 Is there a way to make this work?


 Thanks in advance!

 Franzi



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

2012-03-21 Thread rdietrick
I don't make this stuff up.  Try this one on for size:

Take out the android:layout_alignParentRight=true attribute from the 
child view and you'll see that the parent_layout reverts back to it's 
min_width of 280dp.  But with that attribute set to true the parent_layout 
expands horizontally to fill its parent.  

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/root_container
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_gravity=center
android:background=#FF
android:gravity=center_horizontal 

RelativeLayout
android:id=@+id/parent_layout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:minWidth=280dp
android:minHeight=200dp
android:layout_centerInParent=true
android:background=#FF 
android:padding=0dp

TextView
android:id=@+id/title
android:layout_width=280dp
android:layout_height=wrap_content
android:layout_centerHorizontal=true
android:gravity=center
android:background=#66
android:text=Title
android:textSize=23sp
android:textStyle=bold /

TextView
android:id=@+id/child
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/title
android:layout_marginLeft=15dp
android:layout_marginTop=40dp
android:text=PROBLEM ELEMENT
android:textSize=18sp
android:textStyle=bold 
android:background=#66
android:layout_alignParentRight=true
/

/RelativeLayout

On Tuesday, March 20, 2012 11:24:46 PM UTC-7, Zsolt Vasvari wrote:

 I have never noticed this and I have many-many Relative layouts.

 On Wednesday, March 21, 2012 10:21:59 AM UTC+8, rdietrick wrote:

 I have a RelativeLayout that encapsulates several other views.  I have 
 the layout_width of the parent (RelativeLayout) set to wrap_content.  If 
 I set the layout_alignParentRight attribute of one of the child views to 
 true, it expands the parent layout horizontally to fill the screen.  Is 
 there a way around this?  I believe setting layout_alignParentBottom=true 
 does the same thing vertically, while left and top don't.

 Thanks.

 -rob



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

2012-03-21 Thread rdietrick
Forgot to paste the closing RelativeLayout tag.  Just add this to the end 
of the XML:

/RelativeLayout


On Wednesday, March 21, 2012 11:28:53 AM UTC-7, rdietrick wrote:

 I don't make this stuff up.  Try this one on for size:

 Take out the android:layout_alignParentRight=true attribute from the 
 child view and you'll see that the parent_layout reverts back to it's 
 min_width of 280dp.  But with that attribute set to true the parent_layout 
 expands horizontally to fill its parent.  

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/root_container
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:layout_gravity=center
 android:background=#FF
 android:gravity=center_horizontal 

 RelativeLayout
 android:id=@+id/parent_layout
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:minWidth=280dp
 android:minHeight=200dp
 android:layout_centerInParent=true
 android:background=#FF 
 android:padding=0dp

 TextView
 android:id=@+id/title
 android:layout_width=280dp
 android:layout_height=wrap_content
 android:layout_centerHorizontal=true
 android:gravity=center
 android:background=#66
 android:text=Title
 android:textSize=23sp
 android:textStyle=bold /

 TextView
 android:id=@+id/child
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_below=@+id/title
 android:layout_marginLeft=15dp
 android:layout_marginTop=40dp
 android:text=PROBLEM ELEMENT
 android:textSize=18sp
 android:textStyle=bold 
 android:background=#66
 android:layout_alignParentRight=true
 /

 /RelativeLayout

 On Tuesday, March 20, 2012 11:24:46 PM UTC-7, Zsolt Vasvari wrote:

 I have never noticed this and I have many-many Relative layouts.

 On Wednesday, March 21, 2012 10:21:59 AM UTC+8, rdietrick wrote:

 I have a RelativeLayout that encapsulates several other views.  I have 
 the layout_width of the parent (RelativeLayout) set to wrap_content.  If 
 I set the layout_alignParentRight attribute of one of the child views to 
 true, it expands the parent layout horizontally to fill the screen.  Is 
 there a way around this?  I believe setting layout_alignParentBottom=true 
 does the same thing vertically, while left and top don't.

 Thanks.

 -rob



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

2012-03-21 Thread Kostya Vasilyev
Yep, I've seen this too.

Makes RelativeLayout less useful, but, oh well :)

-- unless I'm missing something, like
android:layout_alignParentRightButDontMakeSelfAsWideAsParent=true.

21 марта 2012 г. 22:28 пользователь rdietrick rdietr...@gmail.com написал:
 I don't make this stuff up.  Try this one on for size:

 Take out the android:layout_alignParentRight=true attribute from the
 child view and you'll see that the parent_layout reverts back to it's
 min_width of 280dp.  But with that attribute set to true the parent_layout
 expands horizontally to fill its parent.

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

2012-03-21 Thread Kostya Vasilyev
Are you asking about the security implications of something called
IGNORE_SECURITY?

What this does is loads code from one application into another app's
process -- that's arbitrary code that the loading application has no
control over.

There is no finer granularity control like load only parcelables and
whatever code they reference (which might pull in more and more code,
making the whole thing moot).

In short, I wouldn't touch it with a ten foot pole, and would instead
use a combination of basic data types supported by Parcelable out of
the box.

Using custom parcelables within the same package is another story, of course.

-- K

21 марта 2012 г. 22:20 пользователь Franzi Roesner
franzi.roes...@gmail.com написал:
 I figured this out, in case someone else needs this one day. In the remote
 service, I did:

 Context c = createPackageContext(com.my.package,
 Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);
 bundle.setClassLoader(c.getClassLoader());


 However, what are the security implications of this (particularly the
 CONTEXT_IGNORE_SECURITY flag)?

 Thanks!

 Franzi


 On Wednesday, March 21, 2012 9:36:19 AM UTC-7, Franzi Roesner wrote:

 Hi,

 I'm trying to send a custom Parcelable to another application (in another
 process).

 I have a client and a remote service, as well as an abstract class (say,
 AbstractCustomParcelable) that I added to the Android framework itself (for
 research purposes). The remote service should receive an object from the
 client that is an instantiation of this abstract class, and then call a
 method on it.

 The problem is that if I extend AbstractCustomParcelable in the client
 (say, MyCustomParcelable) and then pass it to the service (by putting it in
 a Bundle with some other stuff and sending it via a Message), I get a
 ClassNotFoundError in the service:

 android.os.BadParcelableException: ClassNotFoundException when
 unmarshalling: com.my.package.Client$MyCustomParcelable

 I've done some searches and it appears I need to do something with the
 classloader, but I'm not sure where to set which classloader, and nothing
 I've tried has worked so far (e.g., doing
 setClassLoader(MyCustomParcelable.class.getClassLoader()) on the Bundle). Is
 there a way to make this work?


 Thanks in advance!

 Franzi

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

2012-03-21 Thread Dianne Hackborn
Another way to look at it is if you are using subclassing with Parcelable,
you are probably going in the wrong direction.  Parcelable is pretty dumb,
and doesn't really support subclassing completely.  You should always stay
with concrete implementations of Parcelable objects that do not make use of
subclassing.

At that point you still need to keep in mind what ABI you are actually
creating.  When you use a Parcelable, the data ABI you are creating is the
concrete class name + the implementation of writeToParcel().  That is what
is actually going across the wire, and what the two sides need to be
compatible with.  So you could solve your problem by putting the concrete
Parcelable implementation in a static library that both sides like with...
 but you need to be very, very careful with this because if either side
changes that implementation in any way, it will break the communication.

2012/3/21 Kostya Vasilyev kmans...@gmail.com

 Are you asking about the security implications of something called
 IGNORE_SECURITY?

 What this does is loads code from one application into another app's
 process -- that's arbitrary code that the loading application has no
 control over.

 There is no finer granularity control like load only parcelables and
 whatever code they reference (which might pull in more and more code,
 making the whole thing moot).

 In short, I wouldn't touch it with a ten foot pole, and would instead
 use a combination of basic data types supported by Parcelable out of
 the box.

 Using custom parcelables within the same package is another story, of
 course.

 -- K

 21 марта 2012 г. 22:20 пользователь Franzi Roesner
 franzi.roes...@gmail.com написал:
  I figured this out, in case someone else needs this one day. In the
 remote
  service, I did:
 
  Context c = createPackageContext(com.my.package,
  Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);
  bundle.setClassLoader(c.getClassLoader());
 
 
  However, what are the security implications of this (particularly the
  CONTEXT_IGNORE_SECURITY flag)?
 
  Thanks!
 
  Franzi
 
 
  On Wednesday, March 21, 2012 9:36:19 AM UTC-7, Franzi Roesner wrote:
 
  Hi,
 
  I'm trying to send a custom Parcelable to another application (in
 another
  process).
 
  I have a client and a remote service, as well as an abstract class (say,
  AbstractCustomParcelable) that I added to the Android framework itself
 (for
  research purposes). The remote service should receive an object from the
  client that is an instantiation of this abstract class, and then call a
  method on it.
 
  The problem is that if I extend AbstractCustomParcelable in the client
  (say, MyCustomParcelable) and then pass it to the service (by putting
 it in
  a Bundle with some other stuff and sending it via a Message), I get a
  ClassNotFoundError in the service:
 
  android.os.BadParcelableException: ClassNotFoundException when
  unmarshalling: com.my.package.Client$MyCustomParcelable
 
  I've done some searches and it appears I need to do something with the
  classloader, but I'm not sure where to set which classloader, and
 nothing
  I've tried has worked so far (e.g., doing
  setClassLoader(MyCustomParcelable.class.getClassLoader()) on the
 Bundle). Is
  there a way to make this work?
 
 
  Thanks in advance!
 
  Franzi
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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




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

Re: [android-developers] How to use cp (Copy) command in system function in native C code on Android

2012-03-21 Thread Dianne Hackborn
No shell commands are part of the SDK, so this is not supported.  Even if
you get this to work, you are likely to break on different devices.

The correct way to do this is to use the File etc APIs to implement your
copying.  For example, this is some code in the platform:

// copy a file from srcFile to destFile, return true if succeed, return
// false if fail
public static boolean copyFile(File srcFile, File destFile) {
boolean result = false;
try {
InputStream in = new FileInputStream(srcFile);
try {
result = copyToFile(in, destFile);
} finally  {
in.close();
}
} catch (IOException e) {
result = false;
}
return result;
}

/**
 * Copy data from a source stream to destFile.
 * Return true if succeed, return false if failed.
 */
public static boolean copyToFile(InputStream inputStream, File
destFile) {
try {
if (destFile.exists()) {
destFile.delete();
}
FileOutputStream out = new FileOutputStream(destFile);
try {
byte[] buffer = new byte[4096];
int bytesRead;
while ((bytesRead = inputStream.read(buffer)) = 0) {
out.write(buffer, 0, bytesRead);
}
} finally {
out.flush();
try {
out.getFD().sync();
} catch (IOException e) {
}
out.close();
}
return true;
} catch (IOException e) {
return false;
}
}


On Wed, Mar 21, 2012 at 10:38 AM, A B saurbh...@gmail.com wrote:

  I want to copy file from on directory to another in my native C program.
 I tried using system function but it's not working.

 I tried this code in native code of Android

 int result = system(cp /mnt/test /Download/); // It's not working

  This system function returns 256 (error code) integer value. So we can
 say system function is working in Android. I also installed BusyBox so I
 can use the cp command also.

 If I execute directly cp /mnt/test /Download/ command then it's working
 fine.

 So what is problem here in system function. Have I missed something?

 Thanks

 Sam Jona

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@​googlegroups.comandroid-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=enhttp://groups.google.com/group/android-developers?hl=en




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

Re: [android-developers] How do you launch an Activity for your IME?

2012-03-21 Thread Dianne Hackborn
Sorry, you can't, and the IME is deliberately kept at the bottom because
allowing it more flexibility would place a much greater burden on app
developers to try to deal with whatever it could do.

On Wed, Mar 21, 2012 at 1:30 AM, tsukishiro tsukishir...@gmail.com wrote:

 Hello all,

 Is it possible to launch an Activity as you IME? By this, I mean, that
 instead of using a KeyboardView for the InputView of the IME, an Activity
 containing a few widgets will be launched. My purpose in doing this is so
 that I can control where the keyboard will be placed on screen. If I were
 to use the basic implementation for an IME, I would end up having the
 keyboard always at the bottom of the screen. I wanted to place my on-screen
 keyboard somewhere other than the bottom.

 Can someone share some ideas?
 Thanks and best regards,
 - tsukishiro

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@​googlegroups.comandroid-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=enhttp://groups.google.com/group/android-developers?hl=en




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

Re: [android-developers] io.vov.vitamio.VitamioInstaller$VitamioNotCompatibleException

2012-03-21 Thread Harri Smått
On Mar 21, 2012, at 7:25 PM, AndroidGirl8 wrote:
 Ok i sent an email to  serv...@vov.io  , but do you think it because i'm 
 testing on emulator , actually i tried to play videos on 3.2 emulator and 
 it's working just fine but i don't know what is the problem now in this ?
 and if i should test on real device and currently i don't have one , is there 
 any other options , i heard about IRC or something like that ??

So you had it working on other emulator version, did I understand your problem 
correctly? Unfortunately I can't help you out much as I don't have time to set 
up testing environment but only hope you receive response for your email. As 
for Internet Relay Chat I don't know if there's much activity for Android. This 
mailing list and StackOverflow have been most active discussion forums for 
developers I've seen so far.

--
H

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

2012-03-21 Thread bob
Does anyone know the easiest way to play back an SWF file on an Android 
device?

Thank you.

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

[android-developers] Re: io.vov.vitamio.VitamioInstaller$VitamioNotCompatibleException

2012-03-21 Thread Nadeem Hasan
From their FAQ:

Q: What does VitamioInstaller.VitamioNotCompatibleException mean ?

A: A VitamioInstaller.VitamioNotCompatibleException indicates that you're 
using a device which is not supported by Vitamio. By now, Vitamio can work 
with most ARMv6 and ARMv7 based devices, but not x86/MIPS/ARMv5 devices. 
However, most Android devices are build upon ARM CPU. The Android emulator 
is a specialized ARMv5 based 'device' which is not supported.

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

2012-03-21 Thread Android_n00b
The Android developer website talks about Grid Lists (
http://developer.android.com/design/building-blocks/grid-lists.html) - 
these magical controls that scroll both vertically and horizontally 
allowing you to create beautiful applications. However, besides that one 
article, there is no mention of horizontal scrolling using GridView. Is 
this even possible?

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] Android, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Mark Murphy
2012/3/21 Kostya Vasilyev kmans...@gmail.com:
 From what you've described, it seems possible - since AsyncTask uses a
 pool of more than one thread, and you also mentioned running this
 query on the UI thread as well.

Actually... on ICS, that's apparently no longer true.

Somebody tweeted this year-old commit today:

https://github.com/android/platform_frameworks_base/commit/81de61bfddceba0eb77b3aacea317594b0f1de49

which looks like they're only doing one at a time by default in ICS,
unless you use an Executor with a thread pool.

I need to run some tests to confirm that this indeed is the ICS implementation.

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

Android Training...At Your Office: http://commonsware.com/training

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

2012-03-21 Thread Mark Murphy
On Wed, Mar 21, 2012 at 5:01 PM, Android_n00b nikhil...@gmail.com wrote:
 The Android developer website talks about Grid Lists
 (http://developer.android.com/design/building-blocks/grid-lists.html) -
 these magical controls that scroll both vertically and horizontally allowing
 you to create beautiful applications. However, besides that one article,
 there is no mention of horizontal scrolling using GridView. Is this even
 possible?

Not with the current GridView AFAIK. There are lots of things that the
Android Design guys cooked up that are not in the SDK, much to my
frustration.

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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, SQLite, massive (5000%+) loss of performance on a certain query, on a certain device

2012-03-21 Thread Kostya Vasilyev
Wow. Just checked my 4.0.1 and 4.0.3 sources - yes, it's there:

/**
 * An {@link Executor} that can be used to execute tasks in parallel.
 */
public static final Executor THREAD_POOL_EXECUTOR
= new ThreadPoolExecutor(CORE_POOL_SIZE,
MAXIMUM_POOL_SIZE, KEEP_ALIVE,
TimeUnit.SECONDS, sPoolWorkQueue, sThreadFactory);

/**
 * An {@link Executor} that executes tasks one at a time in serial
 * order.  This serialization is global to a particular process.
 */
public static final Executor SERIAL_EXECUTOR = new SerialExecutor();

private static volatile Executor sDefaultExecutor = SERIAL_EXECUTOR;

The documentation is still somewhat lacking: After HONEYCOMB, it is
planned to change this back to a single thread to avoid common
application errors caused by parallel execution.

Planned to change is not the same as Yes, we did it.

Anyway, back to the original issue - Zsolt didn't mention which
executor his code is using and which Android version his customer is
running.

Also of interest: AsyncTaskLoader explicitly uses THREAD_POOL_EXECUTOR.

-- K

22 марта 2012 г. 1:29 пользователь Mark Murphy
mmur...@commonsware.com написал:
 2012/3/21 Kostya Vasilyev kmans...@gmail.com:
 From what you've described, it seems possible - since AsyncTask uses a
 pool of more than one thread, and you also mentioned running this
 query on the UI thread as well.

 Actually... on ICS, that's apparently no longer true.

 Somebody tweeted this year-old commit today:

 https://github.com/android/platform_frameworks_base/commit/81de61bfddceba0eb77b3aacea317594b0f1de49

 which looks like they're only doing one at a time by default in ICS,
 unless you use an Executor with a thread pool.

 I need to run some tests to confirm that this indeed is the ICS 
 implementation.

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

 Android Training...At Your Office: http://commonsware.com/training

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

2012-03-21 Thread Doug
You can do this the same way you would do anything that changes the data 
displayed in a ListView.  Make the data change in the adapter that's hooked 
up to the ListView, then call notifyDataSetChanged on the adapter.  That 
will cause the ListView to refresh with the new data in the adapter.

Doug

On Tuesday, March 20, 2012 7:34:00 AM UTC-7, radhakrishna wrote:

 @seshu 

 You mean updating onListItemClick method in 
 TestListItemsView1Activity : 
 -
  

 protected void onListItemClick(ListView l, View v, int position, 
 long id) { 
 super.onListItemClick(l, v, position, id); 
 Toast.makeText(this, Click- + String.valueOf(position), 
 Toast.LENGTH_SHORT).show(); 
  dataValues..remove(position); 
 } 
 -
  


 This does not work for me, I need to click remove button to remove 
 listrow. 

 My ListView contains [TextView and delete Button], I need to delete 
 list row, when I click on Delete button, When I click On Delete button 
 it will not enter into onListItemClick method under 
 TestListItemsView1Activity class , it will enter only when I select 
 TextView (Text). 

 Onlick method for delete button located in EfficientAdapter class. 

 On Mar 20, 2:20 pm, Seshu s.seshu...@gmail.com wrote: 
  dataValues..remove(position);  will deletes the entire row only... 
  
  On Mar 20, 6:58 pm, radhakrishna radhakrishna.kotako...@gmail.com 
  wrote: 
  
  
  
  
  
  
  
   Thank  you for your response Seshu, But I would like to delete list 
   row, when I click on delete button from List view. 
  
   On Mar 20, 1:12 pm, Seshu s.seshu...@gmail.com wrote: 
  
Hi radhakrishna, 
if u want to delete the list row in the list view. 
  
protected void onListItemClick(ListView l, View v, int position, 
long id) { 
super.onListItemClick(l, v, position, id); 
Toast.makeText(this, Click- + String.valueOf(position), 
Toast.LENGTH_SHORT).show(); 
  
 dataValues..remove(position); 
  
} 
  
Thanks and Regards, 
S.Seshu 
  
On Mar 20, 2:41 am, radhakrishna radhakrishna.kotako...@gmail.com 
wrote: 
  
 Hi All, 
  
 I am trying to remove an item from  listview, 
 My Listview contains Text and Delete button in each row, 
 when I click on delete button its removing Last row from List 
 view, 
 not the actual one which I clicked 
  
 Here is the Activity Class: 
 
 --- 
 -- 
  
 public class TestListItemsView1Activity extends ListActivity { 
 /** Called when the activity is first created. */ 
  
 private EfficientAdapter efficientAdapter; 
 private static String[] data = new String[] { BBC, 
 Yahoo, CNN, 
 Eenadu, Hindu }; 
 private static ListString dataValues = 
 Arrays.asList(data); 
  
 @Override 
 public void onCreate(Bundle savedInstanceState) { 
 super.onCreate(savedInstanceState); 
  
 requestWindowFeature(Window.FEATURE_NO_TITLE); 
 setContentView(R.layout.main); 
 efficientAdapter = new EfficientAdapter(this, dataValues); 
  
 setListAdapter(efficientAdapter); 
 } 
  
 @Override 
 protected void onListItemClick(ListView l, View v, int 
 position, 
 long id) { 
 super.onListItemClick(l, v, position, id); 
 Toast.makeText(this, Click- + String.valueOf(position), 
 Toast.LENGTH_SHORT).show(); 
 } 
  
 Here is the Adapter class 
 
 --- 
 -- 
  
 public class EfficientAdapter extends BaseAdapter implements 
 Filterable{ 
  
 private LayoutInflater mInflater; 
 private Context context; 
 final private ListString data= new ArrayListString(); 
 private HashMapString,EfficientAdapter.ViewHolder 
 holders= new 
 HashMapString, EfficientAdapter.ViewHolder(); 
  
 public EfficientAdapter(Context context,ListString data) 
 { 
 //super(context, R.layout.main, values); 
 mInflater = LayoutInflater.from(context); 
 this.context=context; 
 this.data.addAll(data); 
 } 
  
 public View getView(final int position, View convertView, 
 ViewGroup 
 parent) { 
 ViewHolder holder; 
  
 if(convertView == null){ 
 convertView = 
 mInflater.inflate(R.layout.adaptor_content, null); 
  
 holder = new ViewHolder(); 
 holder.textLine = (TextView) 
 

  1   2   >