[android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
So if I have the same background drawable suited for a G-S - 720×1280 - 
what folder should it be?
See my point? I don't see the guidelines for this. It's hard to make great 
looking apps this way.

On Thursday, March 8, 2012 8:05:54 AM UTC+2, Zsolt Vasvari wrote:

 Put it into NODPI and let the system scale it for you.  

 On Thursday, March 8, 2012 3:48:14 AM UTC+8, Alik Elzin wrote:

 Hi.
 I have a problem understanding how to match a full screen background 
 image (the resource) to the correct folder (drawable-what).
 Example: If I have a 480x800 pixels background image that should fill the 
 whole screen, what folder does it belong? And why? (I couldn't find it in 
 the documentation)
 Thanks.
  Alik.



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

2012-03-08 Thread Anirudh Loya
Create another Drawable folder above drawable-hdpi and paste all your
images there. It will work fine.

On Thu, Mar 8, 2012 at 1:26 AM, Alik Elzin kil...@gmail.com wrote:

 So if I have the same background drawable suited for a G-S - 720×1280 -
 what folder should it be?
 See my point? I don't see the guidelines for this. It's hard to make great
 looking apps this way.


 On Thursday, March 8, 2012 8:05:54 AM UTC+2, Zsolt Vasvari wrote:

 Put it into NODPI and let the system scale it for you.

 On Thursday, March 8, 2012 3:48:14 AM UTC+8, Alik Elzin wrote:

 Hi.
 I have a problem understanding how to match a full screen background
 image (the resource) to the correct folder (drawable-what).
 Example: If I have a 480x800 pixels background image that should fill
 the whole screen, what folder does it belong? And why? (I couldn't find it
 in the documentation)
 Thanks.
  Alik.

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

*The lingering question - WHAT NEXT?  is the mantra of Success  -- 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] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
What should the folder's name be?

On Thursday, March 8, 2012 11:37:42 AM UTC+2, Anirudh Loya wrote:

 Create another Drawable folder above drawable-hdpi and paste all your 
 images there. It will work fine.  




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

2012-03-08 Thread Anirudh Loya
Dude... Check this flow.

[image: Inline image 1]

On Thu, Mar 8, 2012 at 1:48 AM, Alik Elzin kil...@gmail.com wrote:

 What should the folder's name be?


 On Thursday, March 8, 2012 11:37:42 AM UTC+2, Anirudh Loya wrote:

 Create another Drawable folder above drawable-hdpi and paste all your
 images there. It will work fine.


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

*The lingering question - WHAT NEXT?  is the mantra of Success  -- 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=enimage.png

[android-developers] Scroll position is not the same when orientation changes.

2012-03-08 Thread Put_tiMe
I have a scroll view activity under which I have lot's of UI objects.
 
Now let's say when the activity starts up, the view is right on top.
 
Now if I change the orientation of the phone, I observe that my activity 
has automatically scrolled to a different position.
I don't want the scroll position to change, i.e. I want to see 
approximately the same content.
 
I tried fixing it by saving the scroll position in the 
'onSaveInstanceState' and then restoring it in 'onCreate'.
But didn't work.
 
How do I fix this?

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

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
Thanks you Anirudh. As I asked Zsolt:
So if I have the same background drawable suited for other resolution 
screen - 720×1280 - what folder should it be?


On Thursday, March 8, 2012 12:33:00 PM UTC+2, Anirudh Loya wrote:


 Dude... Check this flow.

 [image: Inline image 1]




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

2012-03-08 Thread Kostya Vasilyev
1280 * 720 by itself doesn't really mean much

Do you mean the Galaxy Nexus? That screen is extra high density, so its
folder is drawable-xhdpi.

A 8-9 tablet could conceivable have a 1280 * 720 screen, but that would be
medium density, drawable-mdpi.

Android running on a notebook with a 1280 * 720 screen would probably be
low density, or drawable-ldpi.

-- K

8 марта 2012 г. 15:24 пользователь Alik Elzin kil...@gmail.com написал:

 Thanks you Anirudh. As I asked Zsolt:
 So if I have the same background drawable suited for other resolution
 screen - 720×1280 - what folder should it be?


 On Thursday, March 8, 2012 12:33:00 PM UTC+2, Anirudh Loya wrote:


 Dude... Check this flow.

 [image: Inline image 1]


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

2012-03-08 Thread Seshu
Hi Vivek,
  Open this link and see this example..

http://www.vogella.de/articles/AndroidJSON/article.html

Thanks  Regards,
S.Seshu.

On Mar 8, 10:33 am, vivek elangovan elangovan.vi...@gmail.com wrote:
 Hi members,
                      Using HttpPost i am able to retrieve the following
 data in my response

 cities
        name stateID=01 cityID=01Chennai/name
        name stateID=01 cityID=02Trichy/name
        name stateID=01 cityID=03Madurai/name
 /cities

 Now i need to pass these values into my spinner i m getting the following
 error

 The method createFromResource(Context, int, int) in the type ArrayAdapter
 is not applicable for
  the arguments (HelloSpinner, String, int)

 How to change my string value obtained from my response to int ?

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

2012-03-08 Thread Kostya Vasilyev
Line breaks in emails are represented by CR/LF, not by a single \n.

http://www.ietf.org/rfc/rfc2045.txt

-- Kostya

8 марта 2012 г. 9:42 пользователь ravi . ravikanth...@gmail.com написал:
 I'm trying to send an email in Java but when I read the body of the
 email in Outlook, it's gotten rid of all my linebreaks. I'm putting \n
 at the ends of the lines but is there something special I need to do
 other than that?

 Thanks

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

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

2012-03-08 Thread vivek elangovan
Hi seshu,
thanks for the sample but i m not familiar with JSON and also
my query is i m able to retrieve the xml data from my server using HttpPost
, what i need is i need set that value to my second spinner.

On Thu, Mar 8, 2012 at 5:08 PM, Seshu s.seshu...@gmail.com wrote:

 Hi Vivek,
  Open this link and see this example..

 http://www.vogella.de/articles/AndroidJSON/article.html

 Thanks  Regards,
 S.Seshu.

 On Mar 8, 10:33 am, vivek elangovan elangovan.vi...@gmail.com wrote:
  Hi members,
   Using HttpPost i am able to retrieve the following
  data in my response
 
  cities
 name stateID=01 cityID=01Chennai/name
 name stateID=01 cityID=02Trichy/name
 name stateID=01 cityID=03Madurai/name
  /cities
 
  Now i need to pass these values into my spinner i m getting the following
  error
 
  The method createFromResource(Context, int, int) in the type ArrayAdapter
  is not applicable for
   the arguments (HelloSpinner, String, int)
 
  How to change my string value obtained from my response to int ?

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




-- 
thanks  regards,
Vivek . E
9841841099

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

2012-03-08 Thread Alik Elzin
The resolution means a lot.
It means a stretched(/squashed) vs. non stretched image.

On Thursday, March 8, 2012 1:35:50 PM UTC+2, Kostya Vasilyev wrote:

 1280 * 720 by itself doesn't really mean much

 Do you mean the Galaxy Nexus? That screen is extra high density, so its 
 folder is drawable-xhdpi.

 A 8-9 tablet could conceivable have a 1280 * 720 screen, but that would 
 be medium density, drawable-mdpi.

 Android running on a notebook with a 1280 * 720 screen would probably be 
 low density, or drawable-ldpi.

 -- K

 8 марта 2012 г. 15:24 пользователь Alik Elzin написал:

 Thanks you Anirudh. As I asked Zsolt:
 So if I have the same background drawable suited for other resolution 
 screen - 720×1280 - what folder should it be?




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

2012-03-08 Thread Kostya Vasilyev
This is what I get after clicking on the link:

Мы сожалеем.
Таблица по указанному URL не обнаружена. Проверьте правильность URL и
убедитесь в том, что владелец таблицы не удалил её.

Дополнительную информацию можно найти в справочном центре Документов Google.


Владелец Таблицы would be a great name for a resource management
game, and is definitely more fresh than the literally hundreds
Farm... whatever... Tycoon / Manager sound-alikes.

-- Kostya

7 марта 2012 г. 23:02 пользователь Fred fredrisch...@gmail.com написал:
 Nobody? :)

 Its just to choose the better names and confirm..

 Thanks!
 Fred

 On 6 mar, 23:01, Fred fredrisch...@gmail.com wrote:
 Hi Everybody,

 I'm developing a android game and i'm urgently needing to define a
 name to this game.. can you help on choosing the name?

 If you have 1 minute to check it up, please just choose the wanted
 names here:

 https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk...

 Thanks a lot,
 Fred

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

2012-03-08 Thread Aglets
I was able to launch a service from init.rc in Android 2.3.4 without a
problem. Now in Android 4.0 ICS the same application does not launch.
I can execute it successfully from the ADB command line but I can't
get it to launch from init.rc.  Any ideas?

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


[android-developers] Re: Emulator for nfc in india

2012-03-08 Thread Gaara
Checkout OpenNFC. 

Caution: works best only if you are working on a windows environment! Else 
if you are a linux hacker like me, you are gonna have one hell of a 
difficult time!

On Friday, March 2, 2012 12:50:24 AM UTC+5:30, Shantanu Jain wrote:

 Hi, I am a college student in India and my college project is based on 
 NFC. There is no nfc-enabled android phone that has been launched yet 
 in Indian market. So i can't deploy my app on any set available. 
 Is there any emulator for NFC with which i can deploy my app easily???

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

2012-03-08 Thread eddie
Everytime I plug a keyboard or scanner, the soft keyboard no longer
shows when EditText is in focus.

I've already tried to force the soft keyboard to always show using the
inputManager, but it only works when the physical keyboard is
unplugged.

 inputManager = (InputMethodManager)
context.getSystemService(Context.INPUT_METHOD_SERVICE);
 
inputManager.showSoftInputFromInputMethod(textView.getWindowToken(),InputMethodManager.SHOW_FORCED);
I'm using API 12 - Android 3.1.

I couldn't also find how to show the window pop-up where the user can
manually turn off the physical keyboard.

Any help is appreciated .
Thank you
Eddie

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

2012-03-08 Thread Robert Young
Serial port by definition is a string protocol, characters above 128 like (
0xFA ) are [control codes]. Examine the difference between binary and
string representation

2012/3/7 Todd Grigsby tgrigsby...@gmail.com

 0x implies that the characters that follow are byte data in hex
 notation.  The 0x is not part of the data.But if you don't know that,
 you're frankly on the wrong list.  You need to learn basic programming
 before you ask any further questions.
 On Mar 6, 2012 5:16 AM, mark2011 androidmark2...@gmail.com wrote:

 Dear Todd :

Thanks for your kindly hint. Could you give me a more detail?
 Thanks.

 BR,
 Mark

 On 3月6日, 下午6時57分, Todd Grigsby tgrigsby...@gmail.com wrote:
  Google hex notation and hexadecimal.
  On Mar 6, 2012 12:34 AM, mark2011 androidmark2...@gmail.com wrote:
 
 
 
   Dear All :
 
 I want to send out the hex code like 0xfa through the serial port.
   How do I send the 0x code in the program?
 
   Thanks in advanced.
 
   BR,
   Mark
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, 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

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

2012-03-08 Thread andyjohnson
I have made a simple web service which I return a list of values, this
is the code:

[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string HelloWorld() {

string[][] JaggedArray = new string[5][];
   int i = 0;
   for (int r = 0; r  5; r++)
   {
   JaggedArray[i] = new string[] { Title + r, Body +
r };
   i = i + 1;
   }

JavaScriptSerializer js = new JavaScriptSerializer();
string strJSON = js.Serialize(JaggedArray);
   return strJSON;
}

The string returns this:

[[Title0,Body0],[Title1,Body1],[Title2,Body2],
[Title3,Body3],[Title4,Body4]]

In my Android app I have used ksoap to call the service and return the
string, but I don't know how to turn it back in to an array. Can
anyone help?

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


[android-developers] TextView,Button and List view in the same screen

2012-03-08 Thread Rakesh Boyapally
I want Textview , List view and Button on the same screen.I'm using
customer list view adapter ... please help me ASAP !!

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

2012-03-08 Thread concave
Hi all, im a newbie here
I already try to search this solution but doesn't found any answer.
What i want to ask is, it's possible to save last coordinates ?if so,
can anybody here tell me how to do it's
Thanks, and sory for my bad english

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

2012-03-08 Thread Red Planet
Hi!

How can I protect my queries if I like to use rawQuery method? For
example, I wrote a query

String query = SELECT  + DbHelper.TABLE_WORDS + . +
DbHelper.WORDS_WORD + ,  +
DbHelper.TABLE_TRANS + . + DbHelper.TRANS_WORD +
 FROM  + DbHelper.TABLE_WORDS +
 INNER JOIN  + DbHelper.TABLE_TRANS +
 ON  + DbHelper.TABLE_WORDS + . + DbHelper.WORDS_ID + = +
DbHelper.TABLE_TRANS + . + DbHelper.TRANS_FOREIGN_ID_WORD + 
WHERE  +
DbHelper.TABLE_WORDS + . + DbHelper.WORDS_ID + =?;

Cursor cur = db.rawQuery(query, new String[]
{ Integer.toString(idSend) } );

I wrote it instead of

String query = SELECT  + DbHelper.TABLE_WORDS + . +
DbHelper.WORDS_WORD + ,  +
DbHelper.TABLE_TRANS + . + DbHelper.TRANS_WORD +
 FROM  + DbHelper.TABLE_WORDS +
 INNER JOIN  + DbHelper.TABLE_TRANS +
 ON  + DbHelper.TABLE_WORDS + . + DbHelper.WORDS_ID + = +
DbHelper.TABLE_TRANS + . + DbHelper.TRANS_FOREIGN_ID_WORD + 
WHERE  +
DbHelper.TABLE_WORDS + . + DbHelper.WORDS_ID + = + idSend;

Cursor cur = db.rawQuery(query, null);

Will using of selectionArgs parametr protect query?

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

2012-03-08 Thread agung wiguna johan
Update :
I found the solution,but still getting error. Use 2 location variable to
get the previous position before changed :

public void onLocationChanged(Location newLocation) {
prevLocation = currentPosition;
currentPosition = new Location (newLocation);
int lat1 = (int) (currentPosition.getLatitude()*1E6);
int longi1 = (int) (currentPosition.getLongitude()*1E6);
geoPoint = new GeoPoint (lat1, longi1);
showPosition();
mapView.getController().animateTo(geoPoint);
mapView.invalidate();
//Toast.makeText(getBaseContext(), position = + currentPosition,
Toast.LENGTH_LONG).show();
//mapView.postInvalidate();
 //showPosition();
bearing = prevLocation.bearingTo(currentPosition);
   }
};
  }

But when i running the program, it's take long to get the coordinates, and
get force close at the end.
Can somebody help me?

On Wed, Mar 7, 2012 at 11:43 AM, concave agung.wiguna.jo...@gmail.comwrote:

 Hi all, need help in here
 I developed Map android, and one of the feature is the map can rotate.
 I already tried to rotate map with sensor, and it's success. But now ,
 i need to developed map that can rotate without any sensor.
 So, i need to get an angle from 2 coordinates (first before the
 location changed/ or user change direction, second after location
 changed / user change direction)
 But i don't have any idea how to get coordinates before the location
 changed (before the value latitude and longitude updated).
 Can somebody help me to solved this ?
 Thanks

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

[android-developers] SharedPreferences

2012-03-08 Thread Alejandro Alves
Hello,
I want to have some preferences stored forever by my application,
for example username, remember me, etc...and other preferences to be
stored only until the application is closed, or the user logs out. So
basically my question is how do I delcare which preferences must be
stored for ever, and how to clear the preferences only when the
application is closed by the OS.
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-developers]

2012-03-08 Thread agung wiguna johan
Hi all
I have an problem here.
I was developing an map application, and it have feature to rotate the map
when user changed direction.
I know the easiest way to rotate it is, with the Orientation sensor.
But for know, i need to rotate it without sensor.
IMHO it's possible to rotating map with the angle from 2 coordinates
(Before location changed, and after location changed/updated)
But i don't have any idea to save the latitude and longitude before the
location changed.
Can anybody help me please ?i already tried it with minimum success for 3
weeks
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] Adding PushLink jar to my app to make it self-updating

2012-03-08 Thread Defozo
Welcome!
At first, I want to say that I'm beginner in Android programming.
I was trying to add the jar file from http://push-link.com/ to make my
application self-updating.

I've added the jar (this one) to the classpath (copied jar file -
right click - Build Path - Add to build path...), I've added
Internet permission to AndroidManifest.xml by pasting this code:
uses-permission android:name=android.permission.INTERNET /

after this code:
android:versionName=1.0 


and called PushLink.start method by writing:
PushLink.start(this, R.drawable.ic_launcher, 10, myApiKey, true);

after this code:
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


And now my application crashes at starts:
03-05 20:20:27.509: I/ActivityThread(26890): enter process activity
msg = 110
03-05 20:21:09.149: I/ActivityThread(26927): enter process activity
msg = 110
03-05 20:21:09.199: W/dalvikvm(26927): threadid=1: thread exiting with
uncaught exception (group=0x2aacc8a0)
03-05 20:21:09.219: E/AndroidRuntime(26927): FATAL EXCEPTION: main
03-05 20:21:09.219: E/AndroidRuntime(26927):
java.lang.RuntimeException: Unable to instantiate application
pl.defozo.gim1menager.PushLinkSetup: java.lang.ClassNotFoundException:
pl.defozo.gim1menager.PushLinkSetup in loader
dalvik.system.PathClassLoader[/data/app/pl.defozo.gim1menager-1.apk]
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.ActivityThread
$PackageInfo.makeApplication(ActivityThread.java:663)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
4274)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.ActivityThread.access$3000(ActivityThread.java:132)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.os.Looper.loop(Looper.java:123)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.ActivityThread.main(ActivityThread.java:4669)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
java.lang.reflect.Method.invokeNative(Native Method)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
java.lang.reflect.Method.invoke(Method.java:521)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:876)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
dalvik.system.NativeStart.main(Native Method)
03-05 20:21:09.219: E/AndroidRuntime(26927): Caused by:
java.lang.ClassNotFoundException: pl.defozo.gim1menager.PushLinkSetup
in loader dalvik.system.PathClassLoader[/data/app/
pl.defozo.gim1menager-1.apk]
03-05 20:21:09.219: E/AndroidRuntime(26927): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.Instrumentation.newApplication(Instrumentation.java:942)
03-05 20:21:09.219: E/AndroidRuntime(26927): at
android.app.ActivityThread
$PackageInfo.makeApplication(ActivityThread.java:658)
03-05 20:21:09.219: E/AndroidRuntime(26927): ... 11 more


How to implement it correctly?
Is there any tutorial which contains informations about push-link.com?
Any other idea how to simply make application self-updating?

Thanks in advance,
Defozo

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

2012-03-08 Thread ANKIT GUPTA
how can we develop file categorizer in android so that it can perform
follows

1.The application should be stored on the memory card.

2.Categorization of file types specified by the user should only be
done.

3.The application should be available to work in minimised mode.

4.The performance of the phone must not be severly affected.

5.Files with similar names should be notified to the user for removal
confirmation.

6.Files should be categorized automatically upon storing on the
device.

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

2012-03-08 Thread Emanuel
Hi!!! I try to write in English because my English isn't great. I only
hope that isn't late.

Well you try to show the dialog but you don't put the show() method
and I don't know why you put a return.
The code is the following:

case PEOPLE_CHOSING_DIALOG:
                         AlertDialog.Builder builder = new 
 AlertDialog.Builder(this);
                         builder.setTitle(Select Travellers);
                         builder.setMultiChoiceItems(peepses, results, this);
                         Looper.prepare();
                         AlertDialog alert = builder.create();
                         alert.show();
   break;

On 7 feb, 17:58, Juxtenia juxte...@googlemail.com wrote:
 As part of an app I'm writing I've got to get a multi choice dialog
 where the user can select people who are travelling on a holiday.
 However when i try to initiate this dialog it never appears and if I
 try to do anything else I get ANR. The initialising code in the
 onCreateDialog(int id) method is as follows:

                 case PEOPLE_CHOSING_DIALOG:
                         AlertDialog.Builder builder = new 
 AlertDialog.Builder(this);
                         builder.setTitle(Select Travellers);
                         builder.setMultiChoiceItems(peepses, results, this);
                         Looper.prepare();
                         AlertDialog alert = builder.create();
                         return alert;

 I know this code is being run but the dialog is not appearing. peepses
 contains the names of the people and results is an all false array of
 boolean. The class this is being run in is WorldActivity which
 implements the OnMultiChoiceClickListener interface.

 Any help would be much appreciated, thanks in advance.

 Juxtenia

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

2012-03-08 Thread Grontag
Hi all.

I am developing an application that draws icons on a map. But i need
to draw them dynamically: if the user does zoom in the map, if
zoomLevel is  10, draw this icon, in other case draw that other icon.
I've been the whole morning reading and searching the web, and found
nothing that works.

Any idea? Thank you in advance.

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


[android-developers] call receiver

2012-03-08 Thread deepu
hi dude i need src for local host call receiver to android

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


[android-developers] destroy every activity as soon as the user leaves it

2012-03-08 Thread roger
Hi
In android 4.0,click the 'developer options',there is a checkbox named
' don't keep activities'.
When it was checked, my app didn't work! When I launch another
activity from my main activity,the app will be closed!
so...anyone know how solve this problem?

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


[android-developers] i get an error when i try and launch my apk file saying there is a problem passing the package

2012-03-08 Thread alexb
I built an application in eclipse for testing purposes it works in the
emulator without any problems.
I then copied the project named listviews from my workspace to a
dropbox folder.
I then went onto my phone went to the drop-box went to the bin
directory and found the listviews.apk file.
I then clicked on it and an error was thrown which said There is a
problem passing the package.
Could someone suggest a solution to this problem.
Any help would be greatly 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] Advanced Features of ActionBar with ActionBarSherlock, v4 support library

2012-03-08 Thread David Ozersky
Hi, 

I'm a newbie Android programmer and I've been assigned a task to develop an 
App with Fragments and an ActionBar.  I'd like to develop an ActionBar with 
Tabs that lead to another dropdown.  My app will be an advanced RSS feed 
reader for tablets.  

The top level of tabs will hold categories of Feeds, or types, and the 
second level will hold the feeds themselves.  (If possible, I would like lo 
to learn how to add more levels).  Is this possible? 

I'm comfertable with Fragments and ActionBar's, but I haven't seen any 
examples with multi-level actionbars as of yet. 

Where should I get started? 

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] Re: Help about understanding screen size/density

2012-03-08 Thread Anirudh Loya
It should be in a single folder until i used in my app ! It works fine.
Check my structure above...

On Thu, Mar 8, 2012 at 3:47 AM, Alik Elzin kil...@gmail.com wrote:

 The resolution means a lot.
 It means a stretched(/squashed) vs. non stretched image.


 On Thursday, March 8, 2012 1:35:50 PM UTC+2, Kostya Vasilyev wrote:

 1280 * 720 by itself doesn't really mean much

 Do you mean the Galaxy Nexus? That screen is extra high density, so its
 folder is drawable-xhdpi.

 A 8-9 tablet could conceivable have a 1280 * 720 screen, but that would
 be medium density, drawable-mdpi.

 Android running on a notebook with a 1280 * 720 screen would probably be
 low density, or drawable-ldpi.

 -- K

 8 марта 2012 г. 15:24 пользователь Alik Elzin написал:

 Thanks you Anirudh. As I asked Zsolt:
 So if I have the same background drawable suited for other resolution
 screen - 720×1280 - what folder should it be?


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

*The lingering question - WHAT NEXT?  is the mantra of Success  -- 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] Does Android Beam work nicely with Google Wallet

2012-03-08 Thread miranosys1
Android Beam (SNEP) and Google Wallet (Card Emulation) are using 2 
different NFC technology and I was wondering if they work nicely together 
on phone with 4.0.3.

I can't test this on 4.0.3 since Google wallet will not run on my 
region/carrier (Canada).

My experience has been with 2.3.6 and the older NPP (prior to SNEP) and it 
seems when Google Wallet is running, NPP stops working.

Before I install Google wallet, I can negotiate NPP connections and able to 
push NDEF to a reader.
After I install Google wallet, I cannot negotiate NPP connections and not 
able to push NDEF to a reader. The phone only accepts EMV card requests.

So I was wondering if Android Beam has solved this problem with working 
nicely with Google Wallet.

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

2012-03-08 Thread Teddy
Hello sir,
actually in our project there is an option of favorites.
what i want to do is i want all those applications that has been
visited several times to be in favorites.
for this im going to use shared preferences.
i have thought having a counter i will increment that counter
everytime a particular application is being accessed.
This counter value will get reflected in the sharedpreferences for
each application.
As soon as the counter reaches to a certain value that application
will be in the list of favorites.
But i dont know how to proceed.
So if u can guide then it will be a great help.
thanks alot

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

2012-03-08 Thread EhyehAsherEhyeh
As someone recently said in an article I don't care enough about to
track down to link to (sorry, whoever wrote it); it's not the best
name, but it's not the worst name either. It's a fair point that no
name would be objectively best, as is proven by the plethora of
discussions about what would be.

Still, in that spirit (pointless discussion, I mean, not objectivity):
I understand the move from Android to Google; Google is more than
their mobile os and they probably want to expand their content
delivery platform, but Market to Play was weird, yeah... Market seems
to describe what it is exceedingly well, somewhere you can go to
browse a lot of different offers by a lot of different vendors (even
if the free samples are a bit more plentiful than most rl markets).

In the end though, what's in a name? An apk by any other name would
run as sweet. (Yah, it's a paraphrasing lollapalooza today!)

On Mar 8, 8:30 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Thu, Mar 8, 2012 at 4:15 PM, Michael Leung michaelchi...@gmail.com wrote:
  I like the name, Market more.

 Really :) 'Play Store' hurts my eyes every time I open
 The App Formerly Known as the Android Market...
 (TAFKAM?)

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

2012-03-08 Thread exiquio
Perhaps this is the wrong venue to make this request. If so, pardon me
and ignore.
I am not a decent Java developer and I am new to Android development,
but I want
to learn and I learn best by doing:

ArchWiki Offline: https://github.com/tetractysproductions/ArchWikiOffline

Alphas of the software are already available and the user base is
growing slowly, but
surely. I want to be able to provide its users with a stable,
efficient product and so on.

While I study more and continue to ad features towards beta and final
release, I think
it would be most valuable to have any willing folks to review my code,
tear it apart, and
chastise my mistakes. I am most interested in how I am using
contexts as use of
such confuses me and seems to be a common source of  memory leaks.

Any participation is much appreciated.

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


Re: [android-developers] Re: sqlite database on phone creash

2012-03-08 Thread harshita agrawal
check Your database that it has data what u have entered.if it has entered
value than check the value of cursor which are coming from query for
fetching the value from database.

On Tue, Mar 6, 2012 at 10:49 AM, Jagruti Sangani 
jagruti.sang...@inextrix.com wrote:

 hello below is my code of database that fetch value from database and fill
 in listview. when we click on tab then screen will crash the application.


  path = /data/data/
+ mContext.getApplicationContext().getPackageName()
  + /databases/ + call_history.db;
  db= ((Activity)
 mContext).openOrCreateDatabase(path,SQLiteDatabase.CREATE_IF_NECESSARY,null);
  db.setVersion(1);
  db.setLocale(Locale.getDefault());
  db.setLockingEnabled(true);

 cur=db.query(history, null,call_type='r',null, null, null,null);
 //Cursor cur = db.query(history,null, null, null, null, null, null);
 cur.moveToFirst();
 while (cur.isAfterLast() == false) {
hm = new HashMapString, Object();
hm.put(CONTACTKEY, cur.getString(1));
hm.put(DURATION,call duration:+ cur.getString(2));
hm.put(STIME,call start time:+cur.getString(3));
   myBooks2.add(hm);
   cur.moveToNext();
 }
   cur.close();






 On Tue, Mar 6, 2012 at 10:33 AM, moktarul anam mokta...@gmail.com wrote:

 Hi Jagruti Sangani,
 *There is some problem in ur program. one problem may be ur  not closing
 database after fetching data from database. *
 *better share ur database code *
 *
 *
 *Moktarul anam *
 *
 *
 On Monday, 5 March 2012 14:50:12 UTC+5:30, Jagruti Sangani wrote:

 hello,
 i have use the sqlite databse for storing and retrive the value during
 application run.It is work perfectly when i run my apllication on
 emulator but when i run my application on phone then when try to get
 data from database then it will crash the application.So anybody know
 hot to use the sqlit database on phone work.

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


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

2012-03-08 Thread boy on9
when i open the web carmera app of the avd, it seems automatically
choose my TVcard device for the camera, how do i correct it to choose
the right device?

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

2012-03-08 Thread harshita agrawal
have u closed database .if not ,close your database


On Tue, Mar 6, 2012 at 12:15 PM, abhijeet tomar abhijeet...@gmail.comwrote:

 Hello Developers,

 I got exception 'close() was never explicitly called on database /
 pkg/ db '
 and i am not closed the  database...where is the problem if u know
 about that
 pls comment on that...

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GALAXY TAB + ACR 122U RFID READER (HELP DRIVER)

2012-03-08 Thread andrea.vita...@gmail.com
Hi,

I'm developping android application for sansung galaxy tab 10.1 and
NFC reader (ACR 122U) usb

WHen I plug-in the usb (qith the usb adapter kit sansung) and run
dmesg in root mode I give this error:

usb usb2: New usb device found, idVendor 1d6b idProduct=0002
usb usb2:  New Usb device String:Mfr=3 Product=2 SerialNumber=1
Product Tetra EHCI Host Controller
Manufacturer Linux 2.6.36.3 ehci_hcd
serialNumber tegra-ehci.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detect


...
...

usb 2-1: new full speed USB device using tegra-ehci and address 2
usb 2-1: decvice v072f p2200 is not supported
host_notify: ndev name=tegra-ehci.0 from state=0 - to state=5
hub 2.0:1.0 unable to enumerate USB device on port 1

usb 2-1: new full speed USB device using tegra-ehci and address 3
usb 2-1: decvice v072f p2200 is not supported
etc
...

Can you guys HELP me ??

I think that the driver is not present.. How I can do ?

TNKS

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

2012-03-08 Thread Janhouse
Anyone tried it on ICS yet?
And are there new patches or something?

On Friday, February 10, 2012 9:47:18 PM UTC+2, malls wrote:

 When the card emulation is detected, the call is routed 
 to nfc_jni_transaction_callback() of SecureElement. From here the event is 
 posted to NfcService for example AID_SELECTED events are all posted to 
 NfcService. I was wondering if there is way to communicate to SecureElement 
 through this handle. If I try to open SecureElement parallel y, the call 
 throws error that External RF Field is detected, when this channel is 
 open, I believe there must be a way to wait until this mode is finished and 
 communicate back to SecureElement or use the same channel to communicate.

 In fact, If I view the ice-scream sandwich code, there is new event 
 subscription  APDU_RECIEVED in the secure element callback.  It looks like 
 the PICC interface is open now. Hopefully we should be able to communicate.




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

2012-03-08 Thread abruzzo
I'm currently implementing the registration of a device for C2DM 
notifications and so far I'm able to get a notification id back when I send 
a valid gmail account as the sender id so I think that the process is 
working correctly. My question is does anybody understand why I would get a 
SERVICE_NOT_AVAILABLE back rather than an INVALID_SENDER when I send 
the registration request with a bad email.

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

2012-03-08 Thread Alexandros
I am trying to change the drawable used as background in the spinner 
dialog. Prior 3.0 it works fine, I just change the AlertDialog style to use 
my images, but that does not work when the activity is inheriting from a 
Holo theme. I am trying to find which style I have to override but I simply 
cannot find which one is responsible for this. I have tried inheriting from 
Theme.Holo.Dialog with no success.

Additionally, I am not able to completely override the selection selector 
drawable. Even when I supply my selector as background in the inherited 
@android:style/Widget.DropDownItem.Spinner, the device list selection is 
still visible under my selector.

Thanks in advanced.

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

2012-03-08 Thread Jay Khimani


I'm developing an Android 2.2+ app with SQLite db support. I'm trying to 
define referential integrity constraints while creating the tables. I've 
also enabled the foreign key support by executing db.execSQL( PRAGMA 
foreign_keys=ON; ); in onCreate and onOpen methods of SQLiteOpenHelper. 
Afteer setting up my tables and proper foreign key references, it still 
allows me to insert rows in tables where reference records are missing. For 
e.g. I've following structure

CREATE TABLE Questions(_id integer primary key,question text not null);
CREATE TABLE Ques_Ans(_id integer primary key autoincrement,qid integer not 
null,
  aid integer not null,is_correct integer default 0, 
  FOREIGN KEY (qid) REFERENCES Questions(_id));

and following my data in the table

INSERT INTO Questions VALUES(1, 'Some text');
INSERT INTO Ques_Ans(qid, aid, is_correct) VALUES(20, 1, 0);

If foreign key is properly set on Ques_Ans table, 2nd insert should have 
failed as there is no record in Questionstable with id 20, but somehow my 
app does not thrown any error and inserts the 2nd insert statement. Can 
anybody tell me whats wrong over here or am I missing any configuration 
over here? Below is what I've already tested...

   - Using sqlite3 tool, switching on PRAGMA foreign_keys=ON; foreign key 
   works as expected
   - Same thing if used via app on Emulator or on Phone does not work
   - Insert statements executed using insert() or execSQL(). None of them 
   throw foreign key constraint failed error
   - PRAGMA integrity_check returns ok. So database is not corrupt.

Any help in this regards would be great.

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

2012-03-08 Thread Filip Lukic
Does anyone know what is the best way of cashing and displaying data
from internet (web service)?
concepts, tutorials, examples are very welcome.

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

2012-03-08 Thread Iain King
In order to minimise the required security for my apps I would like to 
split them into 2: the core app which has effectively no required 
permissions, and a manager app which will have internet access/write to 
SD/etc permissions.  That way users can happily install the base app 
without having to grant anything, but opt into the advanced features with 
the manager if they want to.  I'd rather not use the external storage to 
store data, so what methods can I use to get information from the core app 
to the manager?  It looks like SharedPreferences and SQLite don't allow 
access from another app (even one from the same developer).  Storing to 
Internal Storage?  Any problems with that?  Links to examples would be 
appreciated!

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

Re: [android-developers]

2012-03-08 Thread harshita agrawal
use the  IsPressed(),IsFocused() method.if it is true ,change the button
images

On Mon, Mar 5, 2012 at 4:12 PM, teja divya loud.te...@gmail.com wrote:


 how to change the button images according to the state of the button that
 is button pressed,button focussed ???
 --
 ..divyateja

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

2012-03-08 Thread Jane Wayne
i am having problems trying to update/replace Fragments in a
ViewPager. the problem is that the old fragments simply won't get
replaced by the new ones. i have read a couple of solutions on
stackoverflow, and tried them, but it still doesn't work. anyone have
any ideas why? i will explain what i am trying to do below.

i have a Pojo class

public class Pojo {
 public String text;
 public Pojo(String text) { this.text = text; }
}

i have a group class, PojoGroup

public class PojoGroup {
 public String title;
 public ListPojo pojos;
 public PojoGroup(String title, ListPojo pojos) {
  this.title = title;
  this.pojos = pojos;
 }
}

the idea is that i will bind the PojoGroup to a Fragment. the XML of
the fragment, pojogroup_frag.xml, looks like the following. as you can
see, i will set the tvTitle to PojoGroup.title and bind the list of
Pojo to the ListView.

LinearLayout xmlns:android=...
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=vertical
 TextView android:id=@+id/tvTitle android:layout_width=...
android_layout_height=.../
 ListView android:id=@+id/listView android:layout_width=...
android_layout_height=.../
/LinearLayout

for completeness, here is my pojo adapter to bind the list of pojos to
the ListView.

public class PojoAdapter extends ArrayAdapterPojo {
 public PojoAdapter(Context ctx, int resId, ListPojo objects) {
  super(ctx, resId, objects);
 }
 public View getView(int pos, View convertView, ViewGroup parent) {
  View v = convertView;
  if(null == v) {
Context ctx = getContext();
LayoutInflater vi =
(LayoutInflater)ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflat(R.layout.pojo_row, null);
  }
  TextView tv = (TextView)v.findViewById(R.id.tvText);
  Pojo pojo = getItem(pos);
  tv.setText(pojo.text);
 }
}

my pojo_row.xml file looks like the following.

LinearLayout xmlns:android=...
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=vertical
 TextView android:id=@+id/tvText android:layout_width=...
android_layout_height=.../
/LinearLayout

my main.xml has a Button and a ViewPager. my MainActivity class looks
like the following.

public class MainActivity extends FragmentActivity {
 PojoGroupPagerAdapter pagerAdapter;
 ViewPager viewPager;

 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  Button b = (Button)findViewById(R.id.bReplace);
  b.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) { generateAndReplaceFrags(); }
  });

  pagerAdapter = new
PojoGroupPagerAdapter(getSupportFragmentManager());
  viewPager = (ViewPager)findViewById(R.id.pager);
  viewPager.setAdapter(pagerAdapter);
 }

 void generateAndReplaceFrags() {
  //PojoGroupFactory just generates a random List of PojoGroups
  ListPojoGroup groups = PojoGroupFactory.getPojoGroups();
  pagerAdater.setPojoGroups(groups);
 }
}

my pojo fragment, PojoFrag, looks like the following.

public class PojoFrag extends Fragment {
 PojoGroup pojoGroup;
 View view;
 TextView tvTitle;
 ListView listView;

 public PojoFrag(PojoGroup group) { pojoGroup = group; }

 public View onCreateView(LayoutInflater inflater, ViewGroup
container, Bundle savedInstanceState) {
  view = inflater.inflate(R.layout.pojogroup_frag, null);
  listView = (ListView)view.findViewById(R.id.listView);
  tvTitle = (TextView)view.findViewById(R.id.tvTitle);

  ListPojo objects = pojoGroup.getPojos();
  listView.setAdapter(new PojoAdapter(getActivity(), R.id.tvText,
objects));
  tvTitle.setText(pojoGroup.title);
  return view;
 }
}

the PojoGroupPagerAdapter class is not too complex, and this class is
where some of the suggestions on stackoverflow previously suggested
modifications be made. however, it is still not working. i can provide
the full project source code if needed.

public class PojoGroupPagerAdapter extends FragmentPagerAdapter {
 ListPojoGroup pojoGroups;
 MapInteger, Fragment fragments;

 public PojoGroupPagerAdapter(FragmentManager fm) {
  super(fm);
  fragments = new HashMapInteger, Fragment();
 }

 public Fragment getItem(int position) {
  Integer key = new Integer(position);
  if(fragments.containsKey(key)) {
   return fragments.get(key);
  }

  PojoGroup group = pojoGroups.get(position);
  PojoFrag frag = new PojoFrag(group);
  fragments.put(key, frag);
  return frag;
 }

 public int getCount() {
  return (null == pojoGroups) ? 0 : pojoGroups.size();
 }

 public int getItemPosition(Object object) {
  if(!fragments.containsKey(object))
   return POSITION_NONE;
  return POSITION_UNCHANGED;
 }

 public void setPojoGroups(ListPojoGroup pojoGroups) {
  this.pojoGroups = pojoGroups;
  fragments.clear();
  int total = pojoGroups.size();
  for(int i=0; i  total; i++) {
   Integer key = new Integer(i);
   PojoGroup group = pojoGroups.get(i);
   PojoFrag frag = new PojoFrag(group);
   fragments.put(key, frag);
  }
  notifyDataSetChanged();
 }
}

as you 

[android-developers] Cursor Subclass onChange() notifications

2012-03-08 Thread Deepwinter
I have written a custom subclass of MatrixCursor which handles some
behind the scenes  data updates (from the network) asynchronously.
When new data has been added to the data store (not sqlite), the
MatrixCursor subclass calls onChange(true).   I have a dataSetObserver
registered as

documentsCursor.registerDataSetObserver(new MapDataObserver());

with

private class MapDataObserver extends DataSetObserver {

@Override
public void onChanged(){
super.onChanged();
Log.v(TAG, DataSetObserver onChanged());

updateOverlays();
}

}

However, the MapDataObserver function onChanged() is never called, and
I've tested that execution of onChange(true) definitely happens.
What is missing here?  Why is MapDataObserver() never updated, and is
my understanding that calling onChange(true) on a cursor should update
it's registered DataObservers ?

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

2012-03-08 Thread harshita agrawal
  if you enter only 5002 the it gets null value in space1 so it's
crashed.To solve these problem you can do like this:

str=txt.getText().toString();
int space1=str.indexOf( );
if(space!=null){
s=str.substring(0, space1);
}
else
{
s=str;
}

On Tue, Mar 6, 2012 at 11:06 AM, Jagruti Sangani 
jagruti.sang...@inextrix.com wrote:

 Hello,
 I have textbox in that some time i will enter the onlu number like
 96350254 or  5002 those are not in fix length.and sometimes if select from
 contact then in text box number will be with the name like 5002
 jagruti.when i press the button then i want to pass only the number to the
 other page so how can i send only number from textbox value.I made the
 function and in that
str=txt.getText().toString();
 int space1=str.indexOf( );
 s=str.substring(0, space1);

 this work perfectly if in tye textbox 5002 jagruti but when i enter only
 5002 then it will crash the application.so can anybody know how to do
 successfully pass the number.

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

2012-03-08 Thread harshita agrawal
I think emulator is getting old database whatever u have used before. so
uninstall the application, run the new application.it'll be also crash..

There is problem in your code not in phone.can you tell me what's error
coming.

On Mon, Mar 5, 2012 at 9:23 PM, Chris Stratton cs07...@gmail.com wrote:

 On Monday, March 5, 2012 4:20:12 AM UTC-5, Jagruti Sangani wrote:

 i have use the sqlite databse for storing and retrive the value during
 application run.It is work perfectly when i run my apllication on
 emulator but when i run my application on phone then when try to get
 data from database then it will crash the application.So anybody know
 hot to use the sqlit database on phone work.


 Most likely your code is not correct, but you are getting away with it on
 the emulator for some fairly randomand  reason.

 Look in the log avaiable from logcat or DDMS, find the error message, and
 investigate the indicated line of code.

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

2012-03-08 Thread Ifor
I have been gathering quite a lot of personal battery usage stats with my 
biking app while testing mostly with a SE Xperia Active but there is quite 
a lot of variation with differenrt devices.  I have a number of options to 
vary what is on.  With these options the runtime varies from a worst of 
about 3.5 hours for bright screen, gps, high zoom map being contstantly 
downloaded to 24 hours with screen off, gps off only datalogging using ANT.
 
The screen is the biggest cost the brighter the worse it is.
Network usage looks to be the next big cost if I have the map data 
downloading live.  No coverage areas can be a big hit on some phones (not 
the Active), airplane mode is a good thing in these cases.
 
In a long ride senarion last week I had the gps on for 6.5 hours, screen on 
for only 90 mins at 25% brightness. Airplane mode on with the map 
precached.  Battery was 51% at the end of the ride.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Advanced Features of ActionBar with ActionBarSherlock, v4 support library

2012-03-08 Thread Mark Murphy
On Wed, Mar 7, 2012 at 12:13 PM, David Ozersky da...@mobicartel.com wrote:
 The top level of tabs will hold categories of Feeds, or types, and the
 second level will hold the feeds themselves.  (If possible, I would like lo
 to learn how to add more levels).  Is this possible?

The action bar itself does not support multiple levels of tabs. At
most, you would put one level of tabs in the action bar and the second
level of tabs in the Fragment itself.

Personally, I don't think this is an effective UI design, as you will
waste way too much screen space rendering tabs.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] Android 2.2 + SQLite + Defining Enforcing referential integrity constraints

2012-03-08 Thread Chalavadi Sagar
I think foreign key in Quens_Ans table must be a primary key.

Kind Regards,

Ch.B.Sagar

On Mon, Mar 5, 2012 at 4:04 PM, Jay Khimani jay.khim...@gmail.com wrote:

 I'm developing an Android 2.2+ app with SQLite db support. I'm trying to
 define referential integrity constraints while creating the tables. I've
 also enabled the foreign key support by executing db.execSQL( PRAGMA
 foreign_keys=ON; ); in onCreate and onOpen methods of SQLiteOpenHelper.
 Afteer setting up my tables and proper foreign key references, it still
 allows me to insert rows in tables where reference records are missing.
 For e.g. I've following structure

 CREATE TABLE Questions(_id integer primary key,question text not null);
 CREATE TABLE Ques_Ans(_id integer primary key autoincrement,qid integer not 
 null,
   aid integer not null,is_correct integer default 0,
   FOREIGN KEY (qid) REFERENCES Questions(_id));

 and following my data in the table

 INSERT INTO Questions VALUES(1, 'Some text');
 INSERT INTO Ques_Ans(qid, aid, is_correct) VALUES(20, 1, 0);

 If foreign key is properly set on Ques_Ans table, 2nd insert should have
 failed as there is no record in Questionstable with id 20, but somehow my
 app does not thrown any error and inserts the 2nd insert statement. Can
 anybody tell me whats wrong over here or am I missing any configuration
 over here? Below is what I've already tested...

- Using sqlite3 tool, switching on PRAGMA foreign_keys=ON; foreign key
works as expected
- Same thing if used via app on Emulator or on Phone does not work
- Insert statements executed using insert() or execSQL(). None of them
throw foreign key constraint failed error
- PRAGMA integrity_check returns ok. So database is not corrupt.

 Any help in this regards would be great.

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

2012-03-08 Thread Mark Murphy
The stuff that should be cleared when the application is closed by
the OS are not preferences, so do not implement them as such. Use
static data members or something along those lines, so they will go
away automatically when Android terminates the process.

On Tue, Mar 6, 2012 at 10:00 AM, Alejandro Alves
alejandro.al...@gmail.com wrote:
 Hello,
 I want to have some preferences stored forever by my application,
 for example username, remember me, etc...and other preferences to be
 stored only until the application is closed, or the user logs out. So
 basically my question is how do I delcare which preferences must be
 stored for ever, and how to clear the preferences only when the
 application is closed by the OS.
 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



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


[android-developers] Re: Scroll position is not the same when orientation changes.

2012-03-08 Thread Put_tiMe
I think I have a hint as to what is going on.
 
Basically my first focussable item is not right on top.
So when the layout changes, the current focussable item is brought into 
view. During this calculation, the scroll is set.
That is why my top portion of the layout is scrolled out.
 
How do I prevent this?
 

On Thursday, March 8, 2012 4:51:52 PM UTC+5:30, Put_tiMe wrote:

 I have a scroll view activity under which I have lot's of UI objects.
  
 Now let's say when the activity starts up, the view is right on top.
  
 Now if I change the orientation of the phone, I observe that my activity 
 has automatically scrolled to a different position.
 I don't want the scroll position to change, i.e. I want to see 
 approximately the same content.
  
 I tried fixing it by saving the scroll position in the 
 'onSaveInstanceState' and then restoring it in 'onCreate'.
 But didn't work.
  
 How do I fix this?


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

Re: [android-developers] Problem launching service from init.rc in Android 4.0

2012-03-08 Thread Mark Murphy
Firmware questions belong on http://source.android.com.

On Mon, Mar 5, 2012 at 11:16 AM, Aglets singerisl...@gmx.com wrote:
 I was able to launch a service from init.rc in Android 2.3.4 without a
 problem. Now in Android 4.0 ICS the same application does not launch.
 I can execute it successfully from the ADB command line but I can't
 get it to launch from init.rc.  Any ideas?

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



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] Exception coming while shutting down android device

2012-03-08 Thread Mark Murphy
On Thu, Mar 8, 2012 at 5:25 AM, Abhishek Sharma abhitec...@gmail.com wrote:
 I want to shutdown android device from application on pressing key.

This is not possible from an ordinary SDK application.

 Code snippet:
 public void poweroff()
 {
   ShutdownThread.shutdown(context, true);
 }

There is no ShutdownThread in the Android SDK.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] Re: UI design

2012-03-08 Thread Ricardo Santos
A table view with three rows would do the job too...

On Wed, Mar 7, 2012 at 6:00 AM, moktarul anam mokta...@gmail.com wrote:

 Hi
 this will be simple listview and use custom adapter

 Moktarul anam

 On Wednesday, 7 March 2012 11:37:06 UTC+5:30, megha agrawal wrote:

 Hello All,

 I want to create a UI for my app as shown in image attached with this
 mail. I am not getting what type of widget they have used??

 Can somebody explain, how to go for this type of design?

 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


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

2012-03-08 Thread Mark Murphy
Don't check the checkbox. Or, fix the bugs in your application, by
using adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and looking at the stack trace generated by your error.

On Thu, Mar 8, 2012 at 3:49 AM, roger chenmeng0...@gmail.com wrote:
 Hi
 In android 4.0,click the 'developer options',there is a checkbox named
 ' don't keep activities'.
 When it was checked, my app didn't work! When I launch another
 activity from my main activity,the app will be closed!
 so...anyone know how solve this problem?

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



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] destroy every activity as soon as the user leaves it

2012-03-08 Thread 陈孟
thanks Mark,I tried in debug mode.But there is no information in the
LogCat...so what should I do if I wanna fix this bug in my app?

2012/3/8 Mark Murphy mmur...@commonsware.com

 Don't check the checkbox. Or, fix the bugs in your application, by
 using adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and looking at the stack trace generated by your error.

 On Thu, Mar 8, 2012 at 3:49 AM, roger chenmeng0...@gmail.com wrote:
  Hi
  In android 4.0,click the 'developer options',there is a checkbox named
  ' don't keep activities'.
  When it was checked, my app didn't work! When I launch another
  activity from my main activity,the app will be closed!
  so...anyone know how solve this problem?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
 Available!

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Difficulty rendering an octahedron (2 pyramids attached at the bottom to each other)

2012-03-08 Thread geoklee
I am having difficulty with my homework project rendering an
octahedron by modifying an existing project that renders a pyramid.
The hint given is to change the vertices, colors, and indices objects.
I did that but the best I could generate is the existing pyramid with
1 or 2 faces of the inverted pyramid shown while it is rotating on
screen. I have been changing the order of the indices and vertices but
still can not solve the problem. I think these values are correct if I
draw it on paper. I would appreciate some tips to solve the problem as
I have not make any progress after days of fruitless tinkering.
Perhaps I need to modify other code? Thanks in advance! Here are the
values of the vertices, colors, and indices:

private float[] vertices = { // 6 vertices of the pyramid in (x,y,z)
-1.0f, -1.0f, -1.0f, // 0. left-bottom-back
1.0f, -1.0f, -1.0f, // 1. right-bottom-back
1.0f, -1.0f, 1.0f, // 2. right-bottom-front
-1.0f, -1.0f, 1.0f, // 3. left-bottom-front
0.0f, 1.0f, 0.0f, // 4. top

//added vertex
0.0f, -3.0f, 0.0f // 4. bottom
};

private float[] colors = { // Colors of the 6 vertices in RGBA
0.0f, 0.0f, 1.0f, 1.0f, // 0. blue
0.0f, 1.0f, 0.0f, 1.0f, // 1. green
0.0f, 0.0f, 1.0f, 1.0f, // 2. blue
0.0f, 1.0f, 0.0f, 1.0f, // 3. green
1.0f, 0.0f, 0.0f, 1.0f, // 4. red

//added color
1.0f, 1.0f, 0.0f, 0.0f // 5. yellow
};

private byte[] indices = {
2, 4, 3, // front face (CCW) - same as 4,3,2 or 3,2,4
4, 2, 1, // right face - same as 2,1,4 or 1,4,2
0, 4, 1, // back face - same 4,1,0 or 1,0,4
4, 0, 3, // left face - same 0,3,4 or 3,4,2

// inverted pyramid
3, 5, 2,
2, 5, 1,
1, 5, 0,
3, 5, 0,
};

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


[android-developers] What is the cause of the RemoteException sending setActive(false) notification?

2012-03-08 Thread Aramaki
Hello,

I have in my application, a custom View that draws a calendar.
Everything is working fine except that, when I am flipping right or left 
the calendar, I often get the message bellow from logcat:

03-07 12:27:45.843: W/InputManagerService(1652): Got RemoteException 
 sending setActive(false) notification to pid 2660 uid 10074


I found that some other people got that same issue, but I couldn't get why 
this exception happens. 

Thank you,
Aramaki

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

2012-03-08 Thread masood shaik

Hi All,

How to fetch album art from media provider database. please provide
some sample code

Thanks  Regards
Masood

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

2012-03-08 Thread ~JAI~
hi friends,

i'm new to android. i'm using the code below to create a new intent
activity based on if condition validation.. but it doesn't work... pls
help me..



CODE


package com.example.helloandroid;

public class Main extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


ImageButton next2 = (ImageButton)
findViewById(R.id.imageButton1);
next2.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {

EditText pin =
(EditText)findViewById(R.id.editText1); //value from edit text

 Log.v(EditText, pin.getText().toString()); //
this works in log

if (pin.equals()){
Intent myIntent = new Intent(view.getContext(),
home.class);
startActivityForResult(myIntent, 1);
 }
}
});
}
@Override
public void onBackPressed() {
return;

}
}


the log file gets the value from text box, but the if condition does
not work.. pls help me.. 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] about caller uid xxxxx is different than the authenticator's uid message

2012-03-08 Thread yons
 

Hi, I need to solve Android AccountManager's issue.

These days, I have made a login system using AccountManager.


I'd made an app which uses Android AccountManager. (I will call it A app)

After, I made another app which use A app's AccountManager's account data. 
(I will call it B app)

But when I run B app, I have met caller kid  is different than the 
authenticator's uid error message.

So, I  signed B app with A app's keystore file, then issue was cleared.

But, I still want to know the reason and without using the same keystone 
file can not solve the other to want to know how.

If anyone knows the answer, please comment.


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] Android app connect with SQLServer, Solve problem

2012-03-08 Thread Mohit kumawat
Hello to all,
I have a project for connect a sqlserver with my app, i search related
this but dont find a satisfaction post or article for this.
I have problem that how can i connect a remote SQL database table with
android, and want to show in a activity same as,
and also a synchronization with a time duration.
Please help me...

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] HTTPS Post not working with the device but working in emulator

2012-03-08 Thread mahesh
Hi ,

Below is the code snippet which I am using to post data to HTTPS url.
It is working fine with the emulator. But it is not working in Device.
Even it is not throwing any error/exception in the device I have check
by degugging. Can someone please help me out , As I am trying this
from so many days. I am unable to figure out the issue.


public Boolean postData(String data) throws IOException {
  Boolean response = false;
  TrustManager[] trustAllCerts = new TrustManager[] {new
X509TrustManager() {
@Override
public java.security.cert.X509Certificate[]
getAcceptedIssuers() {
  return null;
}

@Override
public void checkClientTrusted(
java.security.cert.X509Certificate[] certs, String
authType) {
}

@Override
public void checkServerTrusted(
java.security.cert.X509Certificate[] certs, String
authType) {
}
  }};

  // Install the all-trusting trust manager
  try {
SSLContext sc = SSLContext.getInstance(TLS);
sc.init(null, trustAllCerts, new
java.security.SecureRandom());
 
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
  } catch (Exception e) {
  }


  HostnameVerifier hostnameVerifier =
 
org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;


  SchemeRegistry registry = new SchemeRegistry();
  registry.register(new Scheme(http,
PlainSocketFactory.getSocketFactory(), 80));
  SSLSocketFactory socketFactory =
SSLSocketFactory.getSocketFactory();
  socketFactory.setHostnameVerifier((X509HostnameVerifier)
hostnameVerifier);
  registry.register(new Scheme(https, socketFactory, 443));

  // Set verifier
  StringBuilder postDataBuilder = new StringBuilder();
  postDataBuilder.append(data).append(=).append(data);
  byte[] postData = postDataBuilder.toString().getBytes(UTF-8);

  URL postURL = new URL(url);

  HttpURLConnection conn = (HttpURLConnection)
postURL.openConnection();
  conn.setDoOutput(true);
  conn.setUseCaches(false);
  HttpsURLConnection.setDefaultHostnameVerifier(new
CustomizedHostnameVerifier());
  conn.setRequestMethod(POST);
  conn.setConnectTimeout(3);
  conn.setRequestProperty(Content-Type, application/x-www-form-
urlencoded);
  conn.setRequestProperty(Content-Length,
Integer.toString(postData.length));

  // --
  OutputStream out = conn.getOutputStream();
  // --
  out.write(postData, 0, postData.length);
  out.flush();
  out.close();
  conn.disconnect();
  return response;
}
  }
  private static class CustomizedHostnameVerifier implements
HostnameVerifier {
@Override
public boolean verify(String hostname, SSLSession session) {
  return true;
}
  }

Thanks ,
Mahesh

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

2012-03-08 Thread James
I know there is the onVisibilityChanged() method in WallpaperService,
however this does not get triggered when, for example, the
applications menu is opened and the wallpaper is hidden behind the
list of installed applications.

My wallpaper responds to touch and move events, and these are getting
triggered when the user is scrolling through their installed
applications. Processing these events in my wallpaper is quite
expensive and it is causing menu browsing to be quite sluggish.

Is there a way to check that the wallpaper is not longer visible, or
perhaps if the menu has been opened so I can intercept the touch
events?



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


[android-developers] Canvas in SurfaceView - hardware acceleration

2012-03-08 Thread NazguL
Hi,

I'm developing on ICS and trying to understand why a
Canvas.isHardwareAccelerated() will always return FALSE when using a
Canvas inside a SurfaceView.

I've tried a very basic example like this:
http://android-coding.blogspot.com/2011/05/drawing-on-surfaceview.html
Or this one: http://jmsliu.com/199/android-canvas-example.html

I even modified them to not have any canvas calls inside the draw loop
thinking that I might have got in some unsupported HW accel operations
for certain drawing calls.
I checked this list under Unsupported Drawing Operations
http://developer.android.com/guide/topics/graphics/hardware-accel.html
but I'm not doing any of that.

I am using the Force GPU rendering flag inside the Developer Options
together with application android:hardwareAccelerated=true ...
inside the manifests, also I'm specifying minSDK/targetSDK = 14.

The View.isHardwareAccelerated will return TRUE, while the
Canvas.isHardwareAccelerated will return always FALSE.

So my question is, can a Canvas inside a SurfaceView be HW
accelerated?

Thanks,
N

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

2012-03-08 Thread Mai
Hi,
I am new to Android and was wondering if there was a way (API call,
etc..) to write a program that checks the incoming number against a
list and hangs up the phone if there is a match before letting the
call go to voice mail.
These telemarketers are really annoying and there doesn't seem to be
an app available that works properly.
I suspect that this is not possible due to security but thought I'd
ask.
I am thinking;
1- grab the incoming number
2- check it against a list
3- hangup if match found, preferably before the phone even rings.

Am I dreaming? or possible?

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

2012-03-08 Thread monica michelle villegas arias
Hi, i wanted to know if there is any problem with Google Play on Android
ICS, i haven't been able to make it work, i installed it and when i try to
run it, it stops and gets closed, i don't know what the problem could be.
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: testing ACTION_CANCEL

2012-03-08 Thread matt
// create an event -- this will probably work
MotionEvent eventCancelAction = MotionEvent.obtain(3,
System.currentTimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0);

// then inject or force it into the system
view.dispatchGenericMotionEvent(eventCancelAction );

// might do the trick, but the docs are unclear about where this comes
from -- gesture is canceled
view.dispatchTouchEvent(eventCancelAction );

// is something you could try, but maybe your test should focus on how
your app interpretes Gesture instances

On Mar 5, 6:53 pm, Omri omrikalin...@gmail.com wrote:
 Hey All,
   Anybody know what to do to invoke an ACTION_CANCEL event for testing
 purposes? My app is an OpenGL ES JNI based app using GLSurfaceView.
 Any thoughts?

 Thanks,
    Omri

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

2012-03-08 Thread Levi Ribeiro
Hi, I'm trying to do a simple test, where the screen turn off and on
several times. something like that:

new CountDownTimer(2000, 1000) {
//  boolean change = true;
public void onTick(long millisUntilFinished) {

if(change){
Toast.makeText(getApplicationContext(), SCREEN OFF!,
Toast.LENGTH_SHORT).show();
change = false;
lp.screenBrightness = 0;
getWindow().setAttributes(lp);
}
else{
Toast.makeText(getApplicationContext(), SCREEN ON!,
Toast.LENGTH_SHORT).show();
change = true;

  lp.screenBrightness = 1;
getWindow().setAttributes(lp);
}
}

public void onFinish() {

}
 }.start();

But, when i run the application, the screen turns off and doesnt come
back, so, i though i should disable the keyguard, and i done that wich
this:

//unlock phone
KeyguardManager km = (KeyguardManager)
getSystemService(Context.KEYGUARD_SERVICE);
KeyguardLock mKeyguardLock = km.newKeyguardLock(TEST);
mKeyguardLock.disableKeyguard();

But, using this, i still have to press the power button to turn the
screen on again So i tryed to wake up it with this:
  //wake phone
PowerManager pm = (PowerManager)
getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock mWakeLock =
pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK |
PowerManager.ACQUIRE_CAUSES_WAKEUP, TEST);
mWakeLock.acquire();
mWakeLock.release();


But without success i tried something with system settings too,
but i dont know how to use it, so i tryed this:

android.provider.Settings.System.putInt(getContentResolver(),
android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE,
android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
android.provider.Settings.System.putInt(getContentResolver(),
android.provider.Settings.System.SCREEN_BRIGHTNESS, 1);

Can comeone please  help me?

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


[android-developers] Problem with Google Play on Android ICS

2012-03-08 Thread monimi
Hi, i downloaded Google Play and installed it on Android ICS (running
on Pandaboard) but it didn't work, when i try to run it, it just gets
closed and never works, i don't know what could be the problem with
it, the same behavior was with the Android Market App, neither of both
have worked, if someone could help me it would be great, thanks in
advanced.

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


[android-developers] Re: How to progressively make invisible a polygon?

2012-03-08 Thread Nicolas Embleton
I suppose that you could use 2 technics. I haven't tested them so it's just 
my straight guesses:

1. Draw a gradient with 1 of the 2 sides having alpha = 0.0 and move the 
gradient so that the invisible alpha grows inside the polygon. It will make 
your polygon disappear. I'm not too sure about this technic. Should give it 
a proof of concept.
2. Draw a mesh of polygons, and make the bottoms rows becoming alpha = 0 
gradually ( meaning that the row 0 is alpha 0.0 when the row 1 is alpha 0.5 
so if fades smoothly )

Should do it.

On Tuesday, March 6, 2012 6:55:29 PM UTC+7, saex wrote:

 I need to make progressively invisible a polygon with OpenGL ES 1.1. I'm 
 developing for Android, but i think that other platforms will do the same 
 code with some minor changes.

 How i can do that? i can't find any info on google or stackoverflow.

 Any help and tutorials will be apreciated.

 Thanks a lot


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

[android-developers] My app not showing in the launcher

2012-03-08 Thread Joey Selah
Hi,

I am just learning android development and I'm encountering an issue
where my application is showing up under settings-applications-
manager applications but it's not showing up under the launcher
(where I'd like it to appear).  My suspicion is that my manifest file
is set up wrong in some way but I admit, I'm just wildly guessing.  I
will note that this application has shown up in the launcher
previously.

Any ideas on what could cause this situation?  I haven't found
anything in my research yet that describes the cause of this situation.

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

2012-03-08 Thread lbendlin
byzantine means antiquated. It is like referring to the modern Istanbul by 
its ancient name Byzantion.

On Wednesday, March 7, 2012 2:53:04 PM UTC-5, goodline wrote:

 Hi Chris, 

 I just copied the solution for the java problem from 
 http://stackoverflow.com/questions/1678122/must-override-a-superclass... 
 I myself don't understand what this line (This byzantine menu / 
 dialog interface is typical of Eclipse's poor UI design. ) means in 
 the original post! 
 Sorry for including that line here... 

 Regards, 
 Surekha 


 On Mar 7, 5:32 am, bergstr sell.bergst...@googlemail.com wrote: 
   This byzantine menu / dialog interface is typical of Eclipse's poor UI 
   design. 
  
  what exactly do you find byzantine about Eclipse's UI design? 
  Remember, it's not made for iFanboys, but for software development 
  experts. Thats a huge difference. 
  
  I dont think the emulator supports NFC properly. 
  Chris

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

2012-03-08 Thread Put_tiMe
I need to have a background and a foreground image views in a LinearLayout.
 
Obviously the background has to be drawn before the foreground.
 
How can I do it?
 
 

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

Re: [android-developers] Problem with Google Play on Android ICS

2012-03-08 Thread Mark Murphy
On Wed, Mar 7, 2012 at 8:29 PM, monimi m.michelle.villega...@gmail.com wrote:
 Hi, i downloaded Google Play and installed it on Android ICS (running
 on Pandaboard) but it didn't work, when i try to run it, it just gets
 closed and never works, i don't know what could be the problem with
 it, the same behavior was with the Android Market App, neither of both
 have worked, if someone could help me it would be great, thanks in
 advanced.

Stop pirating software.

You cannot download Google Play from an authorized source. It is
licensed to device manufacturers only.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] destroy every activity as soon as the user leaves it

2012-03-08 Thread Mark Murphy
On Thu, Mar 8, 2012 at 7:34 AM, 陈孟 chenmeng0...@gmail.com wrote:
 thanks Mark,I tried in debug mode.But there is no information in the
 LogCat...so what should I do if I wanna fix this bug in my app?

Use a debugger. Or, sprinkle in Log statements. See what happens.

In other words, you debug it like you debug anything else.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] Background and foreground image views

2012-03-08 Thread sha m
FrameLayout helps to draw one view above another


On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe putt...@gmail.com wrote:

 I need to have a background and a foreground image views in a LinearLayout.

 Obviously the background has to be drawn before the foreground.

 How can I do it?



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

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

2012-03-08 Thread Mark Murphy
To have an icon appear in the launcher, you need to have an activity
element in the AndroidManifest.xml file with the following
intent-filter:

intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter

Most Android sample projects will have such an activity, such as:

https://github.com/commonsguy/cw-android/tree/master/Skeleton/Now

On Mon, Mar 5, 2012 at 11:20 PM, Joey Selah josephsela...@gmail.com wrote:
 Hi,

 I am just learning android development and I'm encountering an issue
 where my application is showing up under settings-applications-
manager applications but it's not showing up under the launcher
 (where I'd like it to appear).  My suspicion is that my manifest file
 is set up wrong in some way but I admit, I'm just wildly guessing.  I
 will note that this application has shown up in the launcher
 previously.

 Any ideas on what could cause this situation?  I haven't found
 anything in my research yet that describes the cause of this situation.

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



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] if condition not working in intent activity

2012-03-08 Thread Mark Murphy
Newcomers to Java should spend time learning Java before starting in
on Android development.

You appear to be attempting to compare an EditText to the value 0 in
your if() statement. This will not work.

On Mon, Mar 5, 2012 at 2:15 PM, ~JAI~ jayakarthik2...@gmail.com wrote:
 hi friends,

 i'm new to android. i'm using the code below to create a new intent
 activity based on if condition validation.. but it doesn't work... pls
 help me..



 CODE


 package com.example.helloandroid;

 public class Main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);


        ImageButton next2 = (ImageButton)
 findViewById(R.id.imageButton1);
        next2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {

            EditText pin =
 (EditText)findViewById(R.id.editText1);     //value from edit text

                         Log.v(EditText, pin.getText().toString());     //
 this works in log

                                                if (pin.equals()){
                Intent myIntent = new Intent(view.getContext(),
 home.class);
                startActivityForResult(myIntent, 1);
                 }
                        }
                    });
    }
    @Override
    public void onBackPressed() {
        return;

    }
 }


 the log file gets the value from text box, but the if condition does
 not work.. pls help me.. 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



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

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


Re: [android-developers] if condition not working in intent activity

2012-03-08 Thread sha m
pin is the edittext object.
compare the value of the pin pin.getText().toString() to compare the
value that u expect



On Tue, Mar 6, 2012 at 12:45 AM, ~JAI~ jayakarthik2...@gmail.com wrote:

 hi friends,

 i'm new to android. i'm using the code below to create a new intent
 activity based on if condition validation.. but it doesn't work... pls
 help me..



 CODE


 package com.example.helloandroid;

 public class Main extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


ImageButton next2 = (ImageButton)
 findViewById(R.id.imageButton1);
next2.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {

EditText pin =
 (EditText)findViewById(R.id.editText1); //value from edit text

 Log.v(EditText, pin.getText().toString()); //
 this works in log

if (pin.equals()){
Intent myIntent = new Intent(view.getContext(),
 home.class);
startActivityForResult(myIntent, 1);
 }
}
});
}
@Override
public void onBackPressed() {
return;

}
 }


 the log file gets the value from text box, but the if condition does
 not work.. pls help me.. 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

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

2012-03-08 Thread Seshu
Hi Jai,
  Below this sample it ll work f9 now. go though once.. u ll
understand.

package com.self;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;

public class DummyActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}

public void buttonClicked(View v) {
EditText pin = (EditText) findViewById(R.id.edittext1);
Log.v(EditText, pin.getText().toString()); //
int pinno = Integer.parseInt(pin.getText().toString());
if (pinno != 0) {
Log.d(TAG, +pinno); //
} else
Log.d(TAG, +pinno); //
}
}


?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical android:layout_width=fill_parent
android:layout_height=fill_parent
Button android:layout_width=fill_parent
android:layout_height=wrap_content android:text=button1
android:id=@+id/imagebutton1 android:onClick=buttonClicked 
/
EditText android:layout_width=fill_parent
android:layout_height=wrap_content android:id=@+id/edittext1
android:inputType=number /
/LinearLayout



Thanks and Regards,
S.Seshu.
s.seshu143(at)gmail(dot)com

On Mar 6, 12:15 am, ~JAI~ jayakarthik2...@gmail.com wrote:
 hi friends,

 i'm new to android. i'm using the code below to create a new intent
 activity based on if condition validation.. but it doesn't work... pls
 help me..

 CODE

 package com.example.helloandroid;

 public class Main extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         ImageButton next2 = (ImageButton)
 findViewById(R.id.imageButton1);
         next2.setOnClickListener(new View.OnClickListener() {
             public void onClick(View view) {

             EditText pin =
 (EditText)findViewById(R.id.editText1);     //value from edit text

                          Log.v(EditText, pin.getText().toString());     //
 this works in log

                                                 if (pin.equals()){
                 Intent myIntent = new Intent(view.getContext(),
 home.class);
                 startActivityForResult(myIntent, 1);
                  }
                         }
                     });
     }
     @Override
     public void onBackPressed() {
         return;

     }

 }

 the log file gets the value from text box, but the if condition does
 not work.. pls help me.. 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: if condition not working in intent activity

2012-03-08 Thread Kristopher Micinski
f9 means ... fine?

that's a new one..


On Thu, Mar 8, 2012 at 7:54 AM, Seshu s.seshu...@gmail.com wrote:
 Hi Jai,
      Below this sample it ll work f9 now. go though once.. u ll
 understand.

 package com.self;

 import android.app.Activity;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.widget.EditText;

 public class DummyActivity extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);
        }

        public void buttonClicked(View v) {
                EditText pin = (EditText) findViewById(R.id.edittext1);
                Log.v(EditText, pin.getText().toString()); //
                int pinno = Integer.parseInt(pin.getText().toString());
                if (pinno != 0) {
                        Log.d(TAG, +pinno); //
                } else
                        Log.d(TAG, +pinno); //
        }
 }


 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
        android:orientation=vertical android:layout_width=fill_parent
        android:layout_height=fill_parent
        Button android:layout_width=fill_parent
                android:layout_height=wrap_content android:text=button1
                android:id=@+id/imagebutton1 android:onClick=buttonClicked 
 /
        EditText android:layout_width=fill_parent
                android:layout_height=wrap_content 
 android:id=@+id/edittext1
                android:inputType=number /
 /LinearLayout



 Thanks and Regards,
 S.Seshu.
 s.seshu143(at)gmail(dot)com

 On Mar 6, 12:15 am, ~JAI~ jayakarthik2...@gmail.com wrote:
 hi friends,

 i'm new to android. i'm using the code below to create a new intent
 activity based on if condition validation.. but it doesn't work... pls
 help me..

 CODE

 package com.example.helloandroid;

 public class Main extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         ImageButton next2 = (ImageButton)
 findViewById(R.id.imageButton1);
         next2.setOnClickListener(new View.OnClickListener() {
             public void onClick(View view) {

             EditText pin =
 (EditText)findViewById(R.id.editText1);     //value from edit text

                          Log.v(EditText, pin.getText().toString());     //
 this works in log

                                                 if (pin.equals()){
                 Intent myIntent = new Intent(view.getContext(),
 home.class);
                 startActivityForResult(myIntent, 1);
                  }
                         }
                     });
     }
     @Override
     public void onBackPressed() {
         return;

     }

 }

 the log file gets the value from text box, but the if condition does
 not work.. pls help me.. 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

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

2012-03-08 Thread Bob
I am trying to run a simple PhoneGap demo program in the Android simulator 
on a Mac. The code builds fine but when the emulator is running I get a 
message in the console window of Eclipse saying:

...Failed to install HelloPhoneGap.apk on device 'emulator-5556!
...(null)
...Failed to install HelloPhoneGap.apk on device 'emulator-5556!: 
Connection reset by peer
...com.android.ddmlib.InstallException: Connection reset by peer
...Launch canceled!

The emulator though comes up and I can run my app which puts up 3 buttons. 
When I touch (click) on a button it should use PhoneGap to display a web 
page but nothing happens and I don't see the console log message showing 
the onDeviceReady() function got called which is not surprising given the 
above error messages. I am running sample code I downloaded and I got the 
nearly identical code working in the iOS version.

Not sure if this is at all related but I cannot update the sdk. I get 
connection refusal errors when trying to update the sdk. At least on the 
Mac I got the sdk initially installed using the archive method. I tried 
installing it on Windows 7 and cannot get it installed at all. Seems that 
is a problem a lot of people are having. Running as Administrator, 
disabling the virus checking, etc, are not helping.

Any ideas what the emulator errors and what I can do about them to get this 
to run?

Thanks!

Bob

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

2012-03-08 Thread ravindra bhavsar
Hello sir /Madam,
   
 I m new in android development i want send email for 
verifying that email address.how to i do that.if any on know please tell me 
procedure and  tutorial .  Thanks in advanced...

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

2012-03-08 Thread Parth Amin
Hello,

I want to integrate Magento with my Android App.

Can anyone guide me to start with it ?

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


[android-developers] Javascript in Android

2012-03-08 Thread Tunarock
Hello, i explain my situation:

I have an application that connects a web page to collect html
information.
Part of this information is generate via Javascript, particularly i
need to get a map with all of his overlay. That map is create
dinamically after a research direction.

I think about solutions:

-Interpret the Javascript code, inside my application, and visualize
the map in webview

-Get only the overlay, and convert it to object to put in a Mapview

-other solution???

so, i ask you, which of that solution is right for me, and how can i
realize it?

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] Which Android Device should I buy for Testing Apps...???

2012-03-08 Thread RR
Hello, I want to develop some apps on Android and I need to buy an Android 
Phone or Tablet for testing my apps. 

Which model should I buy? 
Do you think it is better to buy a tablet directly? Just like iPad, I can 
test both HD and Normal apps on one device easily. 


Thanks.

Raymond

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

[android-developers] App installed on Motorola RAZR Android (version 2.3.6) device in not going thru proxy

2012-03-08 Thread pp_newbie
I'm looking for the solution/thoughts about this question posted on
stack overflow:

http://stackoverflow.com/questions/9594056/app-installed-on-motorola-razr-android-version-2-3-6-device-in-not-going-thru

Copying here to ease reading:

I'm seeing a weird issue with setting up a wifi proxy in Motorola Razr
with android version 2.3.6. I'm able to set the wifi proxy properly.
I've tested it by running browser from phone and seeing data passing
by the proxy debugging tool (charles). But when I fire up the app,
requests doesn't flow thru charles anymore. Do you have any idea, why
apps behave differently than 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] Rounded Rectangle Image

2012-03-08 Thread Pricillia
Hello guys, actually I am a newbie here
I am not too really understand about android programming
but I am trying to make a rounded rectangle image overview
I try to googling but somehow it's show about shape,
but I need to make rounded rectangle image from rectangle image.
Can you guys help me?

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


[android-developers] Problems refreashing CustomViewGroup

2012-03-08 Thread Renaud FAVIER
Hello !

First i'm a very new developper, I do android sinse a month and had
very little experience in programation before that. So i'm learning
while coding, don't expect to see beautiful code there :( :).

In my app, i'm asked to have a different formed menu : it scroll from
the right of the screen and move my main view to the left, it has to
be an independent layout in witch I can code.
I precise that I dont wan't if possible to change the way I'm doing
it, it's already implement it in numerous activity of a very big app.

that is the code of one of my problematic activity:

I concieved my own class extending ViewGroup :

http://pastie.org/3505807

That is the activity (bug there is 10+ others where this problem
appears)

http://pastie.org/3505833

few explanations :
PressesControllerJson is my controller whitch download and map data
from my WS (with Jackson)
PracticalGuideCategory is a member of the object I map, it's inside
this one where i find the data I'm interressed in
PracticalSubGuideDetails un membre of this one


here are my three xml's:
my main view ( the list view ) : http://pastie.org/3505904
my menu : http://pastie.org/3505911
my activity layout : http://pastie.org/3505917
and finaly the layout of my list view items : http://pastie.org/3505921

The problem is the following : when my data are well download and
mapped, my list view is up to date and well notified but nothing is
displayed.
But when I push menu Button, everything appear in an instant, like
everything was there from the begining just invisible.
I tried to refresh my view by every means i found on the internet, but
nothing did the trick.

The same problem appears in an activity where my main view is a google
map, and the poi appears uppon it at the moment where i move the map.
And when i bush back button on every of these activity, i see the
content appear during the leaving animation.

I hope someone could help me !

regards :)

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


[android-developers] How do I change the SDK version used in an application?

2012-03-08 Thread R Keith Beal
How do I change the SDK version used in an application?

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

[android-developers] Android Application

2012-03-08 Thread ru
Hello people,
I wanted to ask if you'll can suggest me a tutorial for connectivity
between web server and android application. My application is about
ordering food from android mobile. So when the user enters the
restaurant name, he should get the details about the restaurant. On
further the menu.These details will b given to the user from web
server. Also the order details should be recorded in the server. So
basically, I want to connect my sever with my android phone to send
and receive data. How can I do this? Where can I find tutorial for it?
I read about JSON but don't know to use it. Can you'll suggest me any
tutorial?

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

2012-03-08 Thread Ratul Roy
Hi all,

I am very new to this android development, in order to reduce boot
time on OMAP 3 , I have taken care of kernel which is taking 7 sec to
come up, but from android side it is taking 25 sec


Total 32 sec it takes to show boot complete in android logcat

later on I found boot animation takes long time around 15 sec , so I
deleted bootanimation program in /system/bin

after this it showed an error
[14.477905] init: Cannot find '/system/bin/bootanimation' disabling
'bootanim'

looking to this error I commented bootanim in init.rc , then also it
shows an error and same 14 sec is wasted

so I stopped property_set in surfaceflinger ,, every thing goes well
but then also
boot complete in android logcat comes in 32 sec


please suggest something so that I can bring down this boot time to at
least to 30 sec

Regards
Ratul Roy




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

2012-03-08 Thread R Keith Beal
TreKing,

Your message was flagged as Important.
This results in a priority notification in my e-mail.
Do you really believe this message is Important to ANYONE?

On Tue, Mar 6, 2012 at 7:42 AM, TreKing treking...@gmail.com wrote:

 http://www.catb.org/~esr/faqs/smart-questions.html


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

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

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

2012-03-08 Thread Sanjit Mohanty
Hi,
  Currently, I've a web-based application which is communicating with an
existing IdP (Identity Provider on the server side) that does the
authentication  authorization through SAML. These are implemented in Java.

Now i want to extend this solution and have a native android app which
should do exactly the same as my current web based application i.e.
communicate with the existing server side IdP through SAML and maintain
sessions of the logged in user.

I want to keep my android app as thin as possible. It should take the
credential inputs from the user and then communicate with th IdP on the
server side.
*
*
*What i'm not sure of is how can i maintain the sessions of the current
logged-in user in such scenario?*

_Sanjit

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

  1   2   3   >