[android-developers] Re: How to block incoming call?

2009-09-07 Thread feeling3_4

Thanks Roman. Have you ever tried this 
http://www.cyrket.com/package/com.dragon.pandafirewall
?

the call blocking works. My G1 doesn't even ring.

On Sep 7, 1:18 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 I am not aware that you can intercept an incoming call only from SDK
 level. Firewall programs which are claiming to block incoming calls
 are not working on my phone.

 If there is a mechanism out there, please let me know.

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 6, 8:50 pm, feeling3_4 lanwen.ban...@gmail.com wrote:

  Hi, all

    I know there are some posts from the group have talked about this
  ( 
  likehttps://groups.google.com/group/android-developers/browse_thread/thre...
  andhttps://groups.google.com/group/android-beginners/browse_thread/threa...),
  but I can not find exactly the offical answer of this issue.

  in android market, there are some apps which can set up a black list
  and block the incoming call, seehttp://www.cyrket.com/search?q=block+call
  for details. is there something like backdoor or unkown api for
  blocking incoming call.

  any idea?  thanks .


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



[android-developers] Re: How to block incoming call?

2009-09-07 Thread Kai

I tried Panda firewall.  The call blocking works.  My G1 doesn't even
ring.  The call goes straight to voicemail.

so there must be a way to do it.

On Sep 6, 10:18 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 I am not aware that you can intercept an incoming call only from SDK
 level. Firewall programs which are claiming to block incoming calls
 are not working on my phone.

 If there is a mechanism out there, please let me know.

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 6, 8:50 pm, feeling3_4 lanwen.ban...@gmail.com wrote:

  Hi, all

    I know there are some posts from the group have talked about this
  ( 
  likehttps://groups.google.com/group/android-developers/browse_thread/thre...
  andhttps://groups.google.com/group/android-beginners/browse_thread/threa...),
  but I can not find exactly the offical answer of this issue.

  in android market, there are some apps which can set up a black list
  and block the incoming call, seehttp://www.cyrket.com/search?q=block+call
  for details. is there something like backdoor or unkown api for
  blocking incoming call.

  any idea?  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: buttons hidden

2009-09-07 Thread Andrei Bucur
I would recommend using the RelativeLayout instead of the linear layout. You
could place them like this:
- first label aligned top parent (Band)
- second label below first label (Members)
- second edit text (Members list) right of second label, aligned top with
second label and aligned parent right
- first edit text (Band name) right of first label, aligned top with first
label, aligned left with second edit text and aligned parent right
- Ok button below second label, aligned parent left
- Cancel button below second lable, right of Ok button

I placed the Band edit box relative to the Members edit box because it's
label will always have more pixels so if we want to obtain a nice effect
where the edit boxes have the same sizes and fill the usable space. As you
can see there are no hard coded dimensions or anything.

On Mon, Sep 7, 2009 at 2:12 AM, Mark Murphy mmur...@commonsware.com wrote:


 Carl wrote:
  Thanks, I'm such an idiot! The docs say LinearLayout aligns all
  children in a single direction, I expected the items to wrap around
  and continue underneath.

 Ah!

 Android lacks that sort of FlowLayout like you see in Swing. That'd be a
 nice project for somebody...

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

 Android Development Wiki: http://wiki.andmob.org

 


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

2009-09-07 Thread zhao lifeng

These feature need google licences! It's a bad thing!

On Mon, Sep 7, 2009 at 11:34 AM, Chi Kit Leungmichaelchi...@gmail.com wrote:
 I found in HTC Magic, Settings- About Phone - Legal Information- Google
 Legal.
 I found somethings looks like license.


 On Sun, Sep 6, 2009 at 8:29 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com
 wrote:

 Don't think anyone here where can tell you the answer ;)
 because I have been looking for it myself for a VERY LONG time but no
 answer.

 Eric

 On Sep 6, 5:05 am, MC mikecpc...@gmail.com wrote:
  Where can I find information to license Google closed source apps for
  Android devices? These apps include
 
  * Gmail
  * Google Map
  * Google Talk
  * Android Market




 --
 Regards,
 Michael Leung
 http://www.itblogs.info
 http://www.michaelleung.info

 


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

2009-09-07 Thread FlyVenus

Who knows the answer? thx

On Jul 28, 11:53 pm, Peacemoon tran.bin...@gmail.com wrote:
 I user a webview control  in my app to display some local data (load
 loadData method) . Now i want to display some unicode characters and i
 have used tag: font face=Arialsomething herer/font . But it
 seems that webview can not find the Arial font because i can only see
 UFO - Characters .
 Do i have to copy arial.ttf to somewhere or how can i use this true-
 type-font with webview?
 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] easy way to synchronize data between phone and server

2009-09-07 Thread Kai

Hi,
if I write a app that'd store local data on phone as well as online,
and users can modify the data on their phones with a Android client
and modify the remote data stored in a server through a browser
interface.  The assumption is that the app would need to work offline
and synch. when it's online.

One example is that you have address book data on a server and a
android client.

what's the best way to keep the data synchronized and detect
conflicts?

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

2009-09-07 Thread Dianne Hackborn
Well it seems pretty broken to me what you are doing, anyway.  For example,
if the locale changes your activity will be destroyed and recreated for the
new locale, blowing away your list.  Either make your list a member variable
of the activity and initialize it in onCreate(), or have it static and
really deal with it as a true global (not blowing it away when an activity
happens to be created); mixing the two models up like that is just going to
cause problems.

On Sun, Sep 6, 2009 at 10:51 PM, indra indrad...@gmail.com wrote:


 ok Dianne, then,

 Class MySingleton
 {
 static List myList;
 }

 //This activity is singleTop
 Class MyActivity
 {
 onCreate(Bundle)
 {
 initStaticList(); //say the init size is 2
 }

 //Now suppose in between some other activity add 2 more objects in
 myList
 map()
 {
 int size = MySingleton.myList.size();
 }

 }

 When I run this scenario using singleTask/singleInstance root
 activity, I always get size 2.
 But when I run this activity standalone, I get the desired result as
 4.
 I am not saying it is because of singleTask or singleTop, but this is
 what is happening.

 Is there something I am doing wrong here? Please suggest something!


 On Sep 6, 11:24 pm, Dianne Hackborn hack...@android.com wrote:
  Sorry I can't understand what you are doing enough to help.  If you have
 a
  static variable holding a singleton, it will hold whatever the last value
  you put into it is (until your process gets killed, and then of course
 the
  next time it is restarted it will be re-initialized to its default
 value).
   There is nothing about activities or anything else in Android that has
 an
  impact on this fundamental behavior.
 
 
 
  On Sun, Sep 6, 2009 at 3:48 AM, indra indrad...@gmail.com wrote:
 
   Hi,
   Here I come across a strange problem. I am using a static list (say
   myList) in a Singleton class, which I use in a activity (say
   myActivity) which is run by a singleTask root activity (rootActivty).
   But when i try to access myList in the myActivity, I do not get a
   refreshed version of that myList, instead I get the value one which I
   first time accessed in myActivity.
   Strangle when I run this myActivity standalone I get correct values of
   myList each time.
   Please help me out.
   Thanks and Regards
   Indra
 
   On Aug 25, 9:46 pm, Dianne Hackborn hack...@android.com wrote:
Please read the documentation.  As I said in my original post, this
 is
   for
when your activity gets killed while it is in the background.  When
 you
press back, the default implementation is to finish() the activity so
   there
is no longer any instance data.
 
On Tue, Aug 25, 2009 at 6:57 AM, sdphil phil.pellouch...@gmail.com
   wrote:
 
 hm...  okay, so I check for null in my onCreate() method.
 
 public void onCreate(Bundle savedInstanceData) {
if (savedInstanceData == null) {
// do everything I did before.
// show splash screen
super.onCreate(savedInstanceState);
}
 }
 
 However, now if I'm in my app, I click on home, and then click on
 the icon again, it behaves as expected, it simply brings the app
 back
 in the expected state.  If I hit back and then click on the icon
 again, it behaves like I launched a brand new app - shows the
 splash
 screen, etc...
 
 On Aug 24, 11:24 pm, Dianne Hackborn hack...@android.com wrote:
  The simple fact that it is non-null tells you.  And you can have
   placed
  anything else you want in there in onSaveInstanceState() for
 whatever
 other
  data you want to retain.  See here:
 
 
 http://developer.android.com/guide/topics/fundamentals.html#actlife
 
  and here:
 
 http://developer.android.com/reference/android/app/Activity.html
 
  On Mon, Aug 24, 2009 at 10:51 PM, sdphil 
 phil.pellouch...@gmail.com
 
 wrote:
 
   You can use the state passed in to onCreate() to determine
 whether
   you are starting for the first time or not.
 
   How do I do that?
 
   I'm looking at onCreate --
 
  public void onCreate(Bundle savedInstanceState) {
 
   and I look at savedInstanceState, nothing jumps out at me...
 
   On Aug 24, 10:39 pm, Dianne Hackborn hack...@android.com
 wrote:
If you just want pressing back to not close the activity,
 just
   catch
 the
BACK key and call Activity.moveTaskToBack() instead of
 letting it
   do
 the
default behavior (of calling finish()).
 
There is no need to use launchMode nor alwaysRetainTaskState.
 
However, you DO need to deal with the normal lifecycle
 behavior
   -- in
particular, when you are in the background, regardless of how
   this
   happened,
the system is free to kill your process, so when the user
 next
 returns to
your app a new instance of your activity will be created.
  You
   can
 use
   the
state passed in to onCreate() to 

[android-developers] Re: easy way to synchronize data between phone and server

2009-09-07 Thread javame_android

Hi,

For synching with the server you can either use Web Services or have a
look at the Funambol Server. It is SyncML Server and is open source.

Hope this helps you out.



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

2009-09-07 Thread javame_android

Hi,

Can we use onDraw(Canvas canvas) method for drawing opengl es
application? Will rendering take place on Canvas object?

Hope to get a quick reply soon.




Regards
Sunil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 retain EditText data when BACK key is pressed

2009-09-07 Thread Dianne Hackborn
Just make a Handler, have your thread post messages to it, and update the UI
when receiving the message.  Don't run your thread/service in another
process, that adds a whole lot more complexity for nothing you need.

On Sun, Sep 6, 2009 at 9:20 PM, pink 444 pnk...@gmail.com wrote:



 First of all thanks for ur explanation.I have one more doubt.

 I have to run a thread in background till my forcing to stop it.the
 thread running in background needs to update my main activity's UI
 elements.

 How can i implement this . Do i need to use Services component .If it
 all that is the case , one more process is created and added to my
 application .Further i need to establish IPC between Main activity and
 the Services component to update main activity UI element data , i
 need to save Activity UI element's  data . I think ,this is a clumsy
 solution.Because simple application has lot of overhead.


 Thanks,
 -Siva.



 On Sep 2, 9:49 pm, Dianne Hackborn hack...@android.com wrote:
  On Wed, Sep 2, 2009 at 5:16 AM, pink 444 pnk...@gmail.com wrote:
   I got one way to solve my problem and it resembels your solution.What
   i did is i made my EditText as static.Whenever oncreate() is called i
   check EditText for previous version of instance,if at all previous
   EditText was there i am getting it's data using EditText's standard
   way EditText.getText().toString().It is working up to the mark in all
   three situations ,when orientation is changed, Home button pressed
   and BACK button is pressed.
 
  That is really broken, in many ways:
 
  - It leaks the whole activity and everything it owns (which the EditText
 is
  part of).
  - It fails if the system needs to kill your process after the user
 leaves.
  - There are no guarantees about the state of a widget after its host
 window
  has been destroyed and view hierarchy torn down.
 
  At the very very least, extract the data out and store only that in a
  static.  But that still has the problem that this will not work
  consistently, since you will lose the data whenever the system kills your
  process (which if the user has many background things running may be
  immediately).  You should really use something like the solution I
  previously proposed.
 
  But the thing i think , i am not using properly is onSaveInstanceData
 
   (),onRestoreInstanceData().Because those methods are standard
   ones.Moreover there should be some reason why they are there.
 
  They are standard ones, there for the standard flow: the user leaves the
  activity to go somewhere else WITHOUT closing it (by pressing home, using
  the notification panel, simply pressing a button in your activity that
  causes it to start another), and while your activity is in the background
  the system needs to kill its process.  Then when the user next returns to
  it, onCreate() will be called with the previously saved instance state so
  that they return to it in the same state as they left it (since from
 their
  perspective, they didn't close it).
 
  The standard behavior of back is close activity.  If you want to do
  something different, you will need to do something non-standard.
 
   My question is , Am i doing correct??
 
  No.
 
   Is there any standard way to retain EditText data when BACK button
   is pressed.Why onSaveInstanceData() call back is not called when
   BACK pressed.I have seen google home web page on android has on
   EditText to accept data and it is retaining data in all the three
   senarios.
 
  onSaveInstanceState() is not relevant because you are trying to do
 something
  different than the standard UI flow it supports.  The browser also does a
  lot of special things for its navigation (pressing back all occurs in the
  same activity for example), so it is not a good example of what the
  -standard- behavior is.
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



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

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

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



[android-developers] Re: Opening local HTML file via browser intent: Reaches wrong page

2009-09-07 Thread raja sekhar

ok i understand the problem.here is the solution for ur problem
//crete a intent like this and add it in ur appliction
Intent intent = new Intent();
 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 intent.setAction(android.content.Intent.ACTION_VIEW);
String type = getMIMEType(f);
 intent.setDataAndType(Uri.fromFile(f), type);
 startActivity(intent);
//now create method to get mime type

private String getMIMEType(File f)
{
 String end = f.getName().substring(f.getName().lastIndexOf(.)
+1, f.getName().length()).toLowerCase();
 String type = ;
 if(end.equals(mp3) || end.equals(aac) || end.equals(aac) ||
end.equals(amr) || end.equals(mpeg) || end.equals(mp4)) type =
audio;
 else if(end.equals(jpg) || end.equals(gif) || end.equals
(png) || end.equals(jpeg)) type = image;
 else if(end.equals(htm) || end.equals(html) ) type = text;

 type += /*;
 return type;
}
//but it opens the html viewer not browser remember it.i think it is
enough to u.


On Aug 31, 4:22 pm, Nicolas Raoul nicolas.ra...@gmail.com wrote:
 Hello all,

 Myopensource application needs to browse local HTML files on the SD
 card, and WebView is not enough because I need history and bookmarks.

 I wrote the following code. It correctly opens thebrowser, but fails
 to reach catalog.html and in fact it just opens whatever page was last
 browsed:

 Uri uri = Uri.parse(content://com.android.htmlfileprovider/sdcard/
 myapp/catalog.html);
 Intent intent = new Intent();
 intent.setData(uri);
 intent.setClassName(com.android.browser,
 com.android.browser.BrowserActivity);
 startActivity(intent);

 Any idea why it does notopencatalog.html ?
 Thank you very much!

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



[android-developers] Re: Can't see my USB connected Galaxy in the adb devices command

2009-09-07 Thread 6real

It's nice if you can help the owners of Galaxy phones :-)

I tried with the SDK r3 ut with no success (And I am now on snow
leoppard, I don't know (but I guess) if it changes somethings)

Best regards,

Cyril

On 31 août, 08:21, white kyungtak@gmail.com wrote:
 Maybe it's not matched ID Code.

 I think we can compile that on the platform source code..

 I will try that and send to you~

 But, it will take someday...

 On Aug 29, 3:50 am, 6real xirgon...@gmail.com wrote:

  Dear all,

  I am under Mac OS X 5.8
  I have a SamsungGalaxywith the G8 update

  I configuremyphone with the following parameters:
  Settings  Application  Unknown sources (checked)
  Settings  Application  Development USBDebug checked
  Settings  About this phone  Advanced Parameters  Mass storage
  (unchecked)

  When I connect it viaUSBIcan'tseethe phone when I try the command
  line :
  adb devices

  Did I miss a point ?

  PS : Iseemyemulator when I start it and do the same command line.

  Thanks for your help. I'd like to install and testmyapk before
  posting it on the market ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] check the mounted device

2009-09-07 Thread tstanly

hi all,

I use the code to check whether the mouted device is exist,
but always get false..I can't understand?

I try unmount it (just insert the device but not use mount in
console mode)
and mount device (use mount command in console mode) status but get
the same result.

thanks!


public boolean isExternalStorageReady(){

  return Environment.getExternalStorageState().equals
(Environment.MEDIA_MOUNTED);

}

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

2009-09-07 Thread migo

Application: Local Agents
Category: Misc
http://local-agents.appspot.com/
Desc: This application can be used for managing small location-based
tasks. For example, you want to check whether the Leaning Tower of
Pisa is still standing there. So you simply create a photo task,
define its location on the map as city of Pisa. Local Agents will find
a person near the place willing to do you this small favor - the
picture is taken and you'll get it right on you Android device.

Started originally as university project, and with some (a lot of...)
additional effort was decided to submit it to ADC. At some point of
time I've got help from graphical designer, which helped to add some
color to the application.

I have many ideas on how to extend the concept, but, as usual, there's
no time to work on it too much.

The most appropriate category would be Social, but in ADC list there
was no such term, but Social Networking (BTW, on the Market it's
called simply Social), so I've submitted it as Misc.


On Sep 1, 5:41 pm, Lout lout.r...@googlemail.com wrote:
 While you developers relax... would you mind sharing what apps to
 expect through this challenge.. and anything else you wish to share
 about ADC2 submissions... well anything including the fact: 'thank
 God, no more sleep less nights'!

 Am collecting information about the challenge (ADC2) for a news
 article as am with cnet (and AP). Pitch your app if you have already
 published or would soon publish on the market too.

 Your app name and description, web link if any, experience with
 ADC2, ... anything would be useful for our article(s).

 And do you feel that there would have been more submissions than in
 ADC1?
 Is the competition going to be tougher or less profound as you were
 allowed to put up apps not published before 1st Aug only?

 Do you think that all apps that didn't try for ADC1 should have had a
 chance?

 Congratulations on your submissions while you wait for the next
 phase.
 Thanks,
 Lout Reilly
 ps: Moderators we request you to let this through so that you too get
 some feedback.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MapView with itemizedOverlay still don't work

2009-09-07 Thread sweet

I've try to make a mapview with itemized overlay and it's not work.
I share my code if anyone see anything :

java class mapview:

import java.util.List;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.LinearLayout;
import android.widget.ZoomControls;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;


public class Map extends MapActivity {
ListOverlay mapOverlays;
Drawable drawable;
NewItemizedOverlay itemizedOverlay;
LinearLayout linearLayout;
MapView mapView;
ZoomControls mZoom;


@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.map);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
mapView.setSatellite(true);

mapOverlays = mapView.getOverlays();

drawable = this.getResources().getDrawable
(R.drawable.androidmarker);
itemizedOverlay = new NewItemizedOverlay(drawable);

GeoPoint point = new GeoPoint(1924,-9912);
OverlayItem overlayitem = new OverlayItem(point, , );
itemizedOverlay.addOverlay(overlayitem);

}
protected boolean isRouteDisplayed() {
return false;
}

java ItemizedOverlay class:

import java.util.ArrayList;
import android.graphics.drawable.Drawable;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class NewItemizedOverlay extends ItemizedOverlay {

private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem
();

public NewItemizedOverlay(Drawable defaultMarker) {
super(boundCenterBottom(defaultMarker));
// TODO Auto-generated constructor stub
}
public void addOverlay(OverlayItem overlay) {
mOverlays.add(overlay);
populate();
}

@Override
protected OverlayItem createItem(int i) {
  return mOverlays.get(i);
}


@Override
public int size() {
return mOverlays.size();
}

}

xml mapview file :

?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
com.google.android.maps.MapView
android:id=@+id/mapview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:clickable=true
android:apiKey=0G***fwcg/
LinearLayout
android:id=@+id/zoomview
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignBottom=@id/mapview
android:layout_centerHorizontal=true/
/LinearLayout


Thanks for your help
Sweet

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

2009-09-07 Thread Nivek

As Menu Items are generated only once in the onCreateOptionsMenu(),
you might try to keep a reference to each item in instance variables
and enable/disable them in the handlers that receive task results ?

Nivek

On 7 sep, 05:24, sam hrlixi...@gmail.com wrote:
 Hi guys,

 Any help on this? I believe android application like browser implement
 this,
 does the android engineer from google have any comments?

 Thanks

 On Sep 3, 9:38 am, sam hrlixi...@gmail.com wrote:

  Hi Mark,

  Thank for reply.
  let me describe my question in more details,
  I do not want to press the Menu button again, when the menu items are
  displayed as disabled, after I finished some work , i want the menu
  items to be repainted automatically.
  Any suggestions?

  thanks

  On Sep 2, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote:

I would like to know how to dynamically change the my option menu
items status from disable to enabled .

at first all my menu items are set to disabled and when click the menu
key , they are shown as gray and disabled.

when my other task finished, i want to enable all the menu items,
change them from gray to dark color from the screen.

do you know how can i implement this?

   Implement onPrepareOptionMenu() instead of onCreateOptionMenu().
   onPrepareOptionMenu() is called every time the MENU button is pressed. At
   that time, you know whether your menu items should be enabled/disabled, so
   enable/disable them as part of loading up the menu contents.

   --
   Mark Murphy (a Commons Guy)http://commonsware.com
   Android App Developer Books:http://commonsware.com/books.html-Hide quoted 
   text -

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



[android-developers] View from Which application?

2009-09-07 Thread GPU

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



[android-developers] Re: Android market application on emulator

2009-09-07 Thread amit singh

Any pointers people? Thanks :)

On Sep 4, 3:48 pm, amit singh amitsing...@gmail.com wrote:
 How do I get theAndroidmarketapplicationonemulator? I dont have
 the actual device.

 I searched forums - but no one seems to have discussed this.

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



[android-developers] Re: SingleTask...

2009-09-07 Thread indra

Like you said, the design may be revisited and may be corrected.
Thanks.
But how i am getting different results while running it standalone
(singleTop) and by running it through root activity which is
(singleInstance)?
can you throw some light on that? well I really appreciate your help.

On Sep 7, 11:17 am, Dianne Hackborn hack...@android.com wrote:
 Well it seems pretty broken to me what you are doing, anyway.  For example,
 if the locale changes your activity will be destroyed and recreated for the
 new locale, blowing away your list.  Either make your list a member variable
 of the activity and initialize it in onCreate(), or have it static and
 really deal with it as a true global (not blowing it away when an activity
 happens to be created); mixing the two models up like that is just going to
 cause problems.



 On Sun, Sep 6, 2009 at 10:51 PM, indra indrad...@gmail.com wrote:

  ok Dianne, then,

  Class MySingleton
  {
  static List myList;
  }

  //This activity is singleTop
  Class MyActivity
  {
  onCreate(Bundle)
  {
  initStaticList(); //say the init size is 2
  }

  //Now suppose in between some other activity add 2 more objects in
  myList
  map()
  {
  int size = MySingleton.myList.size();
  }

  }

  When I run this scenario using singleTask/singleInstance root
  activity, I always get size 2.
  But when I run this activity standalone, I get the desired result as
  4.
  I am not saying it is because of singleTask or singleTop, but this is
  what is happening.

  Is there something I am doing wrong here? Please suggest something!

  On Sep 6, 11:24 pm, Dianne Hackborn hack...@android.com wrote:
   Sorry I can't understand what you are doing enough to help.  If you have
  a
   static variable holding a singleton, it will hold whatever the last value
   you put into it is (until your process gets killed, and then of course
  the
   next time it is restarted it will be re-initialized to its default
  value).
    There is nothing about activities or anything else in Android that has
  an
   impact on this fundamental behavior.

   On Sun, Sep 6, 2009 at 3:48 AM, indra indrad...@gmail.com wrote:

Hi,
Here I come across a strange problem. I am using a static list (say
myList) in a Singleton class, which I use in a activity (say
myActivity) which is run by a singleTask root activity (rootActivty).
But when i try to access myList in the myActivity, I do not get a
refreshed version of that myList, instead I get the value one which I
first time accessed in myActivity.
Strangle when I run this myActivity standalone I get correct values of
myList each time.
Please help me out.
Thanks and Regards
Indra

On Aug 25, 9:46 pm, Dianne Hackborn hack...@android.com wrote:
 Please read the documentation.  As I said in my original post, this
  is
for
 when your activity gets killed while it is in the background.  When
  you
 press back, the default implementation is to finish() the activity so
there
 is no longer any instance data.

 On Tue, Aug 25, 2009 at 6:57 AM, sdphil phil.pellouch...@gmail.com
wrote:

  hm...  okay, so I check for null in my onCreate() method.

  public void onCreate(Bundle savedInstanceData) {
     if (savedInstanceData == null) {
         // do everything I did before.
         // show splash screen
         super.onCreate(savedInstanceState);
     }
  }

  However, now if I'm in my app, I click on home, and then click on
  the icon again, it behaves as expected, it simply brings the app
  back
  in the expected state.  If I hit back and then click on the icon
  again, it behaves like I launched a brand new app - shows the
  splash
  screen, etc...

  On Aug 24, 11:24 pm, Dianne Hackborn hack...@android.com wrote:
   The simple fact that it is non-null tells you.  And you can have
placed
   anything else you want in there in onSaveInstanceState() for
  whatever
  other
   data you want to retain.  See here:

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

   and here:

  http://developer.android.com/reference/android/app/Activity.html

   On Mon, Aug 24, 2009 at 10:51 PM, sdphil 
  phil.pellouch...@gmail.com

  wrote:

You can use the state passed in to onCreate() to determine
  whether
you are starting for the first time or not.

How do I do that?

I'm looking at onCreate --

   public void onCreate(Bundle savedInstanceState) {

and I look at savedInstanceState, nothing jumps out at me...

On Aug 24, 10:39 pm, Dianne Hackborn hack...@android.com
  wrote:
 If you just want pressing back to not close the activity,
  just
catch
  the
 BACK key and call Activity.moveTaskToBack() instead of
  letting it
do
  the
 default behavior (of calling finish()).

 There is no need to use launchMode nor 

[android-developers] notification for the message sent by native application

2009-09-07 Thread Honest

Hello,

can some one tell me how can i get notification when user send message
from mobile ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] A sample mobile banking solution

2009-09-07 Thread Sudeep Jha
Hi all,
Can anybody tell me something about the security architecture
required to build a mobile banking solution in android?
Warm Regards,
Sudeep

-- 
Warm Regards,
Sudeep

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

2009-09-07 Thread pink 444


Where to start my new thread.It should be on of the methods of
Activity class.Let us assume onCreate().Whenever Orientation is
changed or HOME is pressed or BACK is pressed onCreate() is
called.Means each time one new thread is created.

How can we stop this?



On Sep 7, 11:40 am, Dianne Hackborn hack...@android.com wrote:
 Just make a Handler, have your thread post messages to it, and update the UI
 when receiving the message.  Don't run your thread/service in another
 process, that adds a whole lot more complexity for nothing you need.



 On Sun, Sep 6, 2009 at 9:20 PM, pink 444 pnk...@gmail.com wrote:

  First of all thanks for ur explanation.I have one more doubt.

  I have to run a thread in background till my forcing to stop it.the
  thread running in background needs to update my main activity's UI
  elements.

  How can i implement this . Do i need to use Services component .If it
  all that is the case , one more process is created and added to my
  application .Further i need to establish IPC between Main activity and
  the Services component to update main activity UI element data , i
  need to save Activity UI element's  data . I think ,this is a clumsy
  solution.Because simple application has lot of overhead.

  Thanks,
  -Siva.

  On Sep 2, 9:49 pm, Dianne Hackborn hack...@android.com wrote:
   On Wed, Sep 2, 2009 at 5:16 AM, pink 444 pnk...@gmail.com wrote:
I got one way to solve my problem and it resembels your solution.What
i did is i made my EditText as static.Whenever oncreate() is called i
check EditText for previous version of instance,if at all previous
EditText was there i am getting it's data using EditText's standard
way EditText.getText().toString().It is working up to the mark in all
three situations ,when orientation is changed, Home button pressed
and BACK button is pressed.

   That is really broken, in many ways:

   - It leaks the whole activity and everything it owns (which the EditText
  is
   part of).
   - It fails if the system needs to kill your process after the user
  leaves.
   - There are no guarantees about the state of a widget after its host
  window
   has been destroyed and view hierarchy torn down.

   At the very very least, extract the data out and store only that in a
   static.  But that still has the problem that this will not work
   consistently, since you will lose the data whenever the system kills your
   process (which if the user has many background things running may be
   immediately).  You should really use something like the solution I
   previously proposed.

   But the thing i think , i am not using properly is onSaveInstanceData

(),onRestoreInstanceData().Because those methods are standard
ones.Moreover there should be some reason why they are there.

   They are standard ones, there for the standard flow: the user leaves the
   activity to go somewhere else WITHOUT closing it (by pressing home, using
   the notification panel, simply pressing a button in your activity that
   causes it to start another), and while your activity is in the background
   the system needs to kill its process.  Then when the user next returns to
   it, onCreate() will be called with the previously saved instance state so
   that they return to it in the same state as they left it (since from
  their
   perspective, they didn't close it).

   The standard behavior of back is close activity.  If you want to do
   something different, you will need to do something non-standard.

My question is , Am i doing correct??

   No.

Is there any standard way to retain EditText data when BACK button
is pressed.Why onSaveInstanceData() call back is not called when
BACK pressed.I have seen google home web page on android has on
EditText to accept data and it is retaining data in all the three
senarios.

   onSaveInstanceState() is not relevant because you are trying to do
  something
   different than the standard UI flow it supports.  The browser also does a
   lot of special things for its navigation (pressing back all occurs in the
   same activity for example), so it is not a good example of what the
   -standard- behavior is.

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

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

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

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 

[android-developers] Re: Will there be an Android 1.6 SDK release?

2009-09-07 Thread Al Sutton

Given the changes to Android Manifest and other sections to support
different resolution devices I'm pretty sure Google will make a
release. If you want to get a feel for what may be in it feel free to
pull down the SDKs I compiled from the donut tree in the open source
repo from http://andappstore.com/AndroidApplications/sdk/

Al.

On Sep 7, 6:22 am, Chi Kit Leung michaelchi...@gmail.com wrote:
 http://source.android.com/release-features
 the current release of Android is still 1.5.
 I believe there will be a 1.6 release for SDK, after the OS upgarded.

 On Mon, Sep 7, 2009 at 2:47 PM, pawpaw17 georgefraz...@yahoo.com wrote:

  Does anyone know?

 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] list view

2009-09-07 Thread Sasi Kumar

I have a list view with 2300 items.

When i'm using settextfilterenabled=true.

It is very slow to get the data.
there is any way to get the data very fast..
any one can suggess some idea for this.

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

2009-09-07 Thread Keean Schupke

Actually you can use:

onPrepareOptionsMenu

which is called just before the menu is displayed to add or remove
items.

Regards,
Keean.

On Sep 7, 9:50 am, Nivek kevin.gau...@gmail.com wrote:
 As Menu Items are generated only once in the onCreateOptionsMenu(),
 you might try to keep a reference to each item in instance variables
 and enable/disable them in the handlers that receive task results ?

 Nivek

 On 7 sep, 05:24, sam hrlixi...@gmail.com wrote:



  Hi guys,

  Any help on this? I believe android application like browser implement
  this,
  does the android engineer from google have any comments?

  Thanks

  On Sep 3, 9:38 am, sam hrlixi...@gmail.com wrote:

   Hi Mark,

   Thank for reply.
   let me describe my question in more details,
   I do not want to press the Menu button again, when the menu items are
   displayed as disabled, after I finished some work , i want the menu
   items to be repainted automatically.
   Any suggestions?

   thanks

   On Sep 2, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote:

 I would like to know how to dynamically change the my option menu
 items status from disable to enabled .

 at first all my menu items are set to disabled and when click the menu
 key , they are shown as gray and disabled.

 when my other task finished, i want to enable all the menu items,
 change them from gray to dark color from the screen.

 do you know how can i implement this?

Implement onPrepareOptionMenu() instead of onCreateOptionMenu().
onPrepareOptionMenu() is called every time the MENU button is pressed. 
At
that time, you know whether your menu items should be enabled/disabled, 
so
enable/disable them as part of loading up the menu contents.

--
Mark Murphy (a Commons Guy)http://commonsware.com
Android App Developer 
Books:http://commonsware.com/books.html-Hidequoted text -

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



[android-developers] Android WVGA support

2009-09-07 Thread Al Sutton

We've added support for WVGA devices to the AndAppStore using the features from 
Donut and I'd recommend everyone interested in running their apps on WVGA 
devices takes a look at the donut SDK because there is a new manifest tag 
(supports-screens) which, if not used, can make your app look a bit rough.

If you don't use it the docs say Based on the target device screen density, 
the Android framework will scale down assets by a factor of 0.75 (low dpi 
screens) or scale them up by a factor of 1.5 (high dpi screens). and in our 
case that meant the icons in the app had zoom performed on them in order to 
scale them up for WVGA and it looked pretty fuzzy. We've also been told that on 
some builds of donut the display was limited to a HVGA portion of a WVGA screen 
with a big black border around it, but I'm not sure how up to date those builds 
were.

The supports-screens manifest tag appears to be backwards compatible and 
doesn't cause problems for earlier devices. We're using it in the 1.4.6 version 
of the AndAppStore client and we've tested it on a few cupcake devices without 
any problems, and the 1.4.6 release is now public so if you want to test the 
compatibility you can grab it from http://tinyurl.com/aasclient

Anyway, I thought I'd give you guys a heads up so when donut hits the streets 
you guys don't start wondering why you're getting comments like The graphics 
are poor or Everything looks fuzzy.

Hope it's' useful,

Al.

-- 

* Looking for Android apps?, try http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.



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

2009-09-07 Thread Dianne Hackborn
Well, something is happening differently in your program flow.  You know
your app better than I.  Look at the output of adb shell dumpsys activity
to see the activity stacks that are happening; look at the logcat to see
what the activity manager is doing.  Obviously, singleTask and
singleInstance can have significant impacts on flow through activities as
decribed in the documentation, and this can certainly cause differences in
behavior.  Given that what you are doing is highly questionable from the
start, I'm not sure how much I can really help beyond this.

On Mon, Sep 7, 2009 at 2:00 AM, indra indrad...@gmail.com wrote:


 Like you said, the design may be revisited and may be corrected.
 Thanks.
 But how i am getting different results while running it standalone
 (singleTop) and by running it through root activity which is
 (singleInstance)?
 can you throw some light on that? well I really appreciate your help.

 On Sep 7, 11:17 am, Dianne Hackborn hack...@android.com wrote:
  Well it seems pretty broken to me what you are doing, anyway.  For
 example,
  if the locale changes your activity will be destroyed and recreated for
 the
  new locale, blowing away your list.  Either make your list a member
 variable
  of the activity and initialize it in onCreate(), or have it static and
  really deal with it as a true global (not blowing it away when an
 activity
  happens to be created); mixing the two models up like that is just going
 to
  cause problems.
 
 
 
  On Sun, Sep 6, 2009 at 10:51 PM, indra indrad...@gmail.com wrote:
 
   ok Dianne, then,
 
   Class MySingleton
   {
   static List myList;
   }
 
   //This activity is singleTop
   Class MyActivity
   {
   onCreate(Bundle)
   {
   initStaticList(); //say the init size is 2
   }
 
   //Now suppose in between some other activity add 2 more objects in
   myList
   map()
   {
   int size = MySingleton.myList.size();
   }
 
   }
 
   When I run this scenario using singleTask/singleInstance root
   activity, I always get size 2.
   But when I run this activity standalone, I get the desired result as
   4.
   I am not saying it is because of singleTask or singleTop, but this is
   what is happening.
 
   Is there something I am doing wrong here? Please suggest something!
 
   On Sep 6, 11:24 pm, Dianne Hackborn hack...@android.com wrote:
Sorry I can't understand what you are doing enough to help.  If you
 have
   a
static variable holding a singleton, it will hold whatever the last
 value
you put into it is (until your process gets killed, and then of
 course
   the
next time it is restarted it will be re-initialized to its default
   value).
 There is nothing about activities or anything else in Android that
 has
   an
impact on this fundamental behavior.
 
On Sun, Sep 6, 2009 at 3:48 AM, indra indrad...@gmail.com wrote:
 
 Hi,
 Here I come across a strange problem. I am using a static list (say
 myList) in a Singleton class, which I use in a activity (say
 myActivity) which is run by a singleTask root activity
 (rootActivty).
 But when i try to access myList in the myActivity, I do not get a
 refreshed version of that myList, instead I get the value one which
 I
 first time accessed in myActivity.
 Strangle when I run this myActivity standalone I get correct values
 of
 myList each time.
 Please help me out.
 Thanks and Regards
 Indra
 
 On Aug 25, 9:46 pm, Dianne Hackborn hack...@android.com wrote:
  Please read the documentation.  As I said in my original post,
 this
   is
 for
  when your activity gets killed while it is in the background.
  When
   you
  press back, the default implementation is to finish() the
 activity so
 there
  is no longer any instance data.
 
  On Tue, Aug 25, 2009 at 6:57 AM, sdphil 
 phil.pellouch...@gmail.com
 wrote:
 
   hm...  okay, so I check for null in my onCreate() method.
 
   public void onCreate(Bundle savedInstanceData) {
  if (savedInstanceData == null) {
  // do everything I did before.
  // show splash screen
  super.onCreate(savedInstanceState);
  }
   }
 
   However, now if I'm in my app, I click on home, and then
 click on
   the icon again, it behaves as expected, it simply brings the
 app
   back
   in the expected state.  If I hit back and then click on the
 icon
   again, it behaves like I launched a brand new app - shows the
   splash
   screen, etc...
 
   On Aug 24, 11:24 pm, Dianne Hackborn hack...@android.com
 wrote:
The simple fact that it is non-null tells you.  And you can
 have
 placed
anything else you want in there in onSaveInstanceState() for
   whatever
   other
data you want to retain.  See here:
 
  http://developer.android.com/guide/topics/fundamentals.html#actlife
 
and here:
 
   
 http://developer.android.com/reference/android/app/Activity.html

[android-developers] How to do sorting on cursor?

2009-09-07 Thread Alam

Hi,

I want to do customised sorting on cursor which is returned after
query is done. Is it possible to do? Is there any way to do updates on
Cursor?

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

2009-09-07 Thread Abeto Dorado

This is  an adult personals, adult dating and swingers community
offering
full uncensored sex personals, erotic videos, chat and much more.

http://getiton.surfthisweb.info
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do sorting on cursor?

2009-09-07 Thread Mark Murphy

Alam wrote:
 I want to do customised sorting on cursor which is returned after
 query is done. Is it possible to do?

Only by creating a new Cursor.

 Is there any way to do updates on Cursor?

None of the existing Cursor implementations support re-sorting their
contents, AFAIK.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

2009-09-07 Thread Mark Murphy

Sasi Kumar wrote:
 I have a list view with 2300 items.
 
 When i'm using settextfilterenabled=true.
 
 It is very slow to get the data.
 there is any way to get the data very fast..
 any one can suggess some idea for this.

Put fewer than 2300 items in the list. Design a UI that presents fewer
options at one time.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

2009-09-07 Thread Tom

Hi,

I've developped an application which communicates with a Rest server.
Althought I know it's not a android issue, I would like to some advice
in order to securizing the web server.

I wonder which it's the best pratice, way to securize the server?
Which authentication and authorization do I use (Basic, Digest, NLM,
Cookies, user session)?

Thanks.
Bes regards
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stop Soft Keyboard from appearing

2009-09-07 Thread kalyan simhan
Hi all..
Is there any way to prevent the soft keyboard from appearing through out my
application??
I have implemented my custom keyboard and do not want the soft keyboard from
appearing
on focus of the EditText.  is there any way or is setting the input type for
each EditText as
TYPE_NULL the only way.Kindly help!
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] Re: Stop Soft Keyboard from appearing

2009-09-07 Thread Andrei Bucur
I guess Window.setSoftInputMode() with
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#SOFT_INPUT_STATE_ALWAYS_HIDDENshould
do the trick. Haven't tested it though.

On Mon, Sep 7, 2009 at 2:19 PM, kalyan simhan kalyansim...@gmail.comwrote:

 Hi all..
 Is there any way to prevent the soft keyboard from appearing through out my
 application??
 I have implemented my custom keyboard and do not want the soft keyboard
 from appearing
 on focus of the EditText.  is there any way or is setting the input type
 for each EditText as
 TYPE_NULL the only way.Kindly help!
 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] Re: How to do sorting on cursor?

2009-09-07 Thread Mark Murphy

Alam wrote:
 Can you please elaborate in creating a new cursor?

Option #1: Re-run whatever query got you your first Cursor, except you
substitute in the other ORDER BY clause to get the results sorted the
way you want.

Option #2: Build up a MatrixCursor with the data you want in the order
you want.

Option #3: Rather than sort the data, build an ArrayList of positions
in the proper sort order. Then, use a CursorWrapper to wrap your
original Cursor, returning rows the desired order. This is the most
efficient (at least in terms of memory consumption) but is the most
complicated to set up.

There are probably other options, but those should give you a starting
point.

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

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

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

2009-09-07 Thread Alam

Can you please elaborate in creating a new cursor?

Regards
Irshad

Mark Murphy wrote:
 Alam wrote:
  I want to do customised sorting on cursor which is returned after
  query is done. Is it possible to do?

 Only by creating a new Cursor.

  Is there any way to do updates on Cursor?

 None of the existing Cursor implementations support re-sorting their
 contents, AFAIK.

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

 _Android Programming Tutorials_ Version 1.0 In Print!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App Widget and Orientation Changes

2009-09-07 Thread Lee

  On my G1 it's not possible.

 The standard G1's home screen rotates when you slide out the keyboard.

Right, thanks.

lilbyrdie, I can confirm that my caching solution also works when
the screen is rotated.

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

2009-09-07 Thread SIDIBE Ali-Broma



This is one exemple whitch give me all time some error  . Also this
code is simular on the codeprojet.

I ast some help for to solve this problem. Problem of Firewall! or
other! I dont know

package org.me.xmlrpc.org;

import java.util.Vector;

import org.me.xmlrpc.R;
import org.xmlrpc.android.XMLRPCClient;
import org.xmlrpc.android.XMLRPCException;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

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

XMLRPCClient client = new XMLRPCClient(http://foo.bar.com;);
 // add 2 to 4
 try {
int sum = (Integer) client.call(add, 2, 4);

 // check whether x is inside range 4..10
 boolean isInside = (Boolean) client.call(isInside, 6, 4, 10);
 // capitalize string
 String capitalized = (String) client.call(capitalize, to be or
not to be);
 tv= new TextView(this);
 tv.setText(Sumfff+sum);
 setContentView(tv);

 } catch (XMLRPCException e) {
 tv= new TextView(this);
 tv.setText(Error-+e.toString());
 setContentView(tv);

}

}


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

2009-09-07 Thread the.victim

Hey,

I'm supposed to develop an app which behave like that:
The User starts the app and can select between different
configurations. Depending on the selection there are different colors,
drawables and strings (e.g. urls for webservice-calls) to display. All
the code-stuff is the same.

My first intention to do so was themes
- is it possible to include somehow strings in themes?
- what shall I do with styles which are referenced in some layout-xml
(which are the same for all configs) and should use different colors.
can't define colors or styles multiple times and don't want to change
that manually (when user selects by code).

someone has any ideas? pls ask, if it's not understandable...

thanks, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: multiple configurations/styles in app

2009-09-07 Thread the.victim

Is it maybe somehow possible to use different values-dirs depending on
user-selection?



On 7 Sep., 15:32, the.victim tim.hannem...@gmail.com wrote:
 Hey,

 I'm supposed to develop an app which behave like that:
 The User starts the app and can select between different
 configurations. Depending on the selection there are different colors,
 drawables and strings (e.g. urls for webservice-calls) to display. All
 the code-stuff is the same.

 My first intention to do so was themes
 - is it possible to include somehow strings in themes?
 - what shall I do with styles which are referenced in some layout-xml
 (which are the same for all configs) and should use different colors.
 can't define colors or styles multiple times and don't want to change
 that manually (when user selects by code).

 someone has any ideas? pls ask, if it's not understandable...

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

2009-09-07 Thread Alam

Thanks Murphy for your replies.

I've one question w.r.t MatrixCursor. I've done one implemetation
where one class implements the Cursor. This class is implementing all
cursor method. The class also contains one multidimensional string
array which stores each column records from the database.

If I am not wrong than my above said class is similar to
MatrixCursor?

How can we use CursorWrapper to wrap our original cursor? Can you give
some examples on this?

Thanks and Regards
Irshad

Mark Murphy wrote:
 Alam wrote:
  Can you please elaborate in creating a new cursor?

 Option #1: Re-run whatever query got you your first Cursor, except you
 substitute in the other ORDER BY clause to get the results sorted the
 way you want.

 Option #2: Build up a MatrixCursor with the data you want in the order
 you want.

 Option #3: Rather than sort the data, build an ArrayList of positions
 in the proper sort order. Then, use a CursorWrapper to wrap your
 original Cursor, returning rows the desired order. This is the most
 efficient (at least in terms of memory consumption) but is the most
 complicated to set up.

 There are probably other options, but those should give you a starting
 point.

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

 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do sorting on cursor?

2009-09-07 Thread Mark Murphy

Alam wrote:
 I've one question w.r.t MatrixCursor. I've done one implemetation
 where one class implements the Cursor. This class is implementing all
 cursor method. The class also contains one multidimensional string
 array which stores each column records from the database.
 
 If I am not wrong than my above said class is similar to
 MatrixCursor?

Yes.

 How can we use CursorWrapper to wrap our original cursor? Can you give
 some examples on this?

http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/Database/JoinCursor

(or http://bit.ly/KRDlt if that URL is too long)

This is one of the examples from my book _The Busy Coder's Guide to
*Advanced* Android Development_. Here, I use a CursorWrapper to
implement a JoinCursor -- akin to the built-in CursorJoiner, but with
greater flexibility.

A SortingCursor would not need to be quite so complex. Mostly, it would
need to override the move...() series of methods to translate positions
in the sorted results to positions in the original unsorted results.

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

Looking for Android opportunities? http://wiki.andmob.org/hado

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

2009-09-07 Thread SIDIBE Ali-Broma

Hello

Alltime I get this error about 4 projet!

Help me to solve this!

org.xmlrpc.android.XMLRPCException : java.io.IOException : cannot
serialize null

xmlrpc.android.XMLRPCException:
org.xmlpull v1.XmlPullParserException : expected START_TAG {null}
methodResponse ( position: start_tag html qxmls=http://www.w3.og/
1999/xhtml'@2:44 in java.io.
 inputstreamrea...@435fi2a0)

Regards

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



[android-developers] Can any expert give me some suggestions that whether should I use Content Provider or Service?

2009-09-07 Thread FayGU

Regarding to following situation, can any expert give me some
suggestions that whether should I use Content Provider or Service.

Use case:
I'm developing two applications (say consumer and producer).
1. when the phone powers up, consumer will read a collection of item
names, which are provided by producer. These item names are predefined
in producer at compile time and they will not be changed at runtime.
2. For each item, consumer can request the detail information from
producer by specifying the item name at anytime. Please note that the
item detail information is changed dynamically at runtime. producer
has the responsibility to maintain each item detail information.
3. From consumer point of view, all the items provided by producer are
read only. consumer will never add, insert or delete these items.
4. In later phase, we may have more producers. The new producers will
provide and maintain more new items.

I have figured out two solutions:
solution1 (content provider):
For case1, since the item names are static information, I can put them
into AndroidManifest.xml of producer. In this way, consumer can get
all the items name even without launching producer.
For case2, I can implement a content provider in producer. consumer
will use the content provider to access the item detail information.
For case4, all producers supported the content URI with same prefix.
For example producer1 supports producer.items.xxx, while producer2
supports producer.items.yyy. In this way, consumer app can easily
query all the producers.

Solution2(Service):
For case1: same to solution1.
For case2: I can implement a service in producer. Consumer can firstly
bindService and call the service method to access the item detail
information.


My question is which solution should I choose, considering following
aspects:
1. Design principle of Content Provider and Service
2. Performance of Content Provider and Service.
3. Extensible and maintainable.

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

2009-09-07 Thread andersg

I believe you should use android.intent.category.EMBED and not
android.intent.category.EMBEDDED

On Sep 3, 12:38 pm, jouke jouke.hijlk...@gmail.com wrote:
 Nobody has this strange behaviour ??? I'll try to upgrade to the r3
 sdk 1.5 ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do sorting on cursor?

2009-09-07 Thread Alam

Hi Murphy,

I've one query regarding sorting on chinese characters which can be
used in displaying contact information on screen. Can you provide some
logic or way to do sorting on contact db for chinese contacts?

I've done with RuleBasedCollator for Locale CHINA and CHINESE but I am
not getting the desired result. What exactly I've done is copied the
database information to my class which implements the cursor and than
set the rules for Locale CHINA and CHINESE and generated the
CollationKeys for each contact information. After that I passed the
keys to Array.sort() methods and displayed the result. It do the sort
but not perfectly.

Can you please help me in this regard or let us know any other way to
work around.

Thanks
Irshad

Mark Murphy wrote:
 Alam wrote:
  I've one question w.r.t MatrixCursor. I've done one implemetation
  where one class implements the Cursor. This class is implementing all
  cursor method. The class also contains one multidimensional string
  array which stores each column records from the database.
 
  If I am not wrong than my above said class is similar to
  MatrixCursor?

 Yes.

  How can we use CursorWrapper to wrap our original cursor? Can you give
  some examples on this?

 http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/Database/JoinCursor

 (or http://bit.ly/KRDlt if that URL is too long)

 This is one of the examples from my book _The Busy Coder's Guide to
 *Advanced* Android Development_. Here, I use a CursorWrapper to
 implement a JoinCursor -- akin to the built-in CursorJoiner, but with
 greater flexibility.

 A SortingCursor would not need to be quite so complex. Mostly, it would
 need to override the move...() series of methods to translate positions
 in the sorted results to positions in the original unsorted results.

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

 Looking for Android opportunities? http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread Toby Knothe

Some very, very nice apps in this thread! (And good to see we weren't
the only ones with sleepless nights...)

Our app is called Inserty and is basiaclly an advanced text template
tool, which lets you create templates that contain dynamic text - like
your current street address or a link to google maps showing your
current location.
The text can be copied to the clipboard or inserted into a new email,
sms, twitter message etc.

Screenshots can be found at http://roomfour0four.com
and you can find the app in the android market by searching for
Inserty.

We (Max and I, we met at university) started out tinkering with
android because we thought the API is designed really well, and the
toolchain is a pleasure to work with (both of us coming from an
embedded-c background). A random idea quickly turned into a concept,
and after 2 weeks of coding we managed to meet the ADC2 deadline, just
in time.

Our main difficulties encountered were making the app robust and
efficient, as not all finesses of the API were known to us, or
documented extensively. This resulted in a lot of tinkering and field-
testing (especially for the location services) to get the app
performing well, even in unpredictable situations.

Personally, I think the ADC is great for the incentive it gives
developers, and the publicity it creates for cool apps that only few
users would notice otherwise. Also, the community it created for
developers like us was great fun.

Best Regards
Toby

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] error: killing myApp because provider com.android.Browser.Browserprovider is dying

2009-09-07 Thread r3

Hi,

when i run my application for long time then my applicatiojn gets
killed:

i always get the same logs which are attached with this post.

kindly help me out...


Thanks  Regrads,
Rakesh



Logs:


I/ActivityManager(  587): Start proc com.android.browser for content
provider com.android.browser/.BrowserProvider: pid=2732 uid=10018 gids=
{3003}
I/jdwp( 2732): received file descriptor 20 from ADB
I/ActivityThread( 2732): Publishing provider browser:
com.android.browser.BrowserProvider
I/ActivityThread( 2483): Removing dead content provider: browser
I/ActivityManager(  587): Process com.android.browser (pid 2732) has
died.
I/ActivityManager(  587): Killing myApp (pid 2483) because provider
com.android.browser.BrowserProvider is in dying process
com.android.browser
I/Process (  587): Sending signal. PID: 2483 SIG: 9
I/ActivityManager(  587): Low Memory: No more background processes.
D/dalvikvm(  587): GC freed 1516 objects / 56120 bytes in 877ms
I/WindowManager(  587): WIN DEATH: Window{43746410 myApp activity
paused=false}
D/dalvikvm(  719): GC freed 11 objects / 360 bytes in 1103ms
D/dalvikvm(  671): GC freed 136 objects / 7456 bytes in 1223ms
D/dalvikvm( 2722): GC freed 835 objects / 55600 bytes in 1152ms
D/dalvikvm( 2463): GC freed 7 objects / 240 bytes in 1339ms
I/ActivityManager(  587): Start proc com.android.browser for content
provider com.android.browser/.BrowserProvider: pid=2745 uid=10018 gids=
{3003}
I/ActivityManager(  587): Process myApp has died (pid 2483) has died.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to use gluUnProject

2009-09-07 Thread Gameboy

I'm trying to use gluUnProject for checking touch selection on a 3D
object, but seems I can not do with current 1.5 emulator.

The method needs to know current viewport, model view matrix and
project matrix, I'm trying to use G11 gl to query but get nothing with
below codes:

int[] viewport = new int[4] ;
gl.glGetIntegerv(GL11.GL_VIEWPORT, viewport, 0) ;
float[] modelview = new float[16] ;
gl.glGetFloatv(gl.GL_MODELVIEW_MATRIX, modelview, 0) ;
float[] project = new float[16] ;
gl.glGetFloatv(gl.GL_PROJECTION_MATRIX, project, 0) ;

Questions:
1) Is there other way to get these params?
2) Does current 1.5 emulator support these G11 feature?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] apk validation by file size

2009-09-07 Thread Lee

I had the thought of checking for tampering with the apk by embedding
a couple of checks against it's size once installed on  the
device.

I was just a bit concerned that maybe the size would change dependent
on the device (e.g. different FS format or whatever).

Thanks,

Lee

p.s. no debates about whether this is worthwhile or not please :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Free space required for a package install

2009-09-07 Thread Dan Sherman
Hey guys,

The package installer looks to take up a good amount of space when
installing applications.  We've published a very large game (ProjectINF -
6mb).  And it looks to be taking up a good amount of space during the
install process, to the point that we have a lot of users emailing us with
complaints/requests to fix it.

From what we've seen, it looks to take about 22mb of free space to install a
6mb apk.  While I can imagine taking double or so for unpacking and temp
locations, almost 4x the size seems a bit high.  After an install with 22mb
free, the device has 16mb free (which makes perfect sense).

Users also seem to be getting errors on the market when trying to install
with less than that amount of space (with no real clear error message, just
Install Failed.

I doubt theres anything we can do on our side (besides shrinking our app all
around), but figured I'd ask :)

- Dan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: error: killing myApp because provider com.android.Browser.Browserprovider is dying

2009-09-07 Thread Mark Murphy

r3 wrote:
 when i run my application for long time then my applicatiojn gets
 killed:
 
 i always get the same logs which are attached with this post.
 
 kindly help me out...

snip

 I/ActivityManager(  587): Low Memory: No more background processes.

Something on your device or emulator is leaking memory. Eventually,
Android has to start killing things off to free up memory, and
eventually that causes com.android.Browser.BrowserProvider to be killed,
which kills your application.

Use DDMS to identify what application is leaking memory. If it is yours,
fix the leak.

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

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



[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread Maps.Huge.Info (Maps API Guru)

Name: Radar Now!
Category: Travel
By: John Coryat, USNaviguide LLC

Description:
Radar Now carefully fixes your location to display the animated
weather radar and current conditions closest to you.

The beauty of this application is its speed and simplicity. Radar Now
requires no user input or configuration to retrieve the display.

Website: (screen shots anyway)

http://maps.huge.info/blog/2009/09/new_android_app_radar_now.html

This app is on the market now (free).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customizing alert dialog

2009-09-07 Thread gshetty

Hi All

I want to custmize an alert dialog. I can set the content using
setContentView and other api's, but Android always gives a white
border with rounded edges around the Alert dialog. Is it possible to
remove this white border from the dialog box?

Regards
gshetty
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] (unofficial) Bluetooth API v. 0.2

2009-09-07 Thread Stefano Sanna

Hi all.

I've just published an update version (0.2) of the (unofficial)
Bluetooth API for Android 1.1 and 1.5.

Library source code, binaries and Javadoc have been published under
Apache 2.0 License at:

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

New version includes: basic SDP, RemoteDevice signal level (RSSI)
fixed, I/O stream close fixed. Features already implemented on first
release are localBluetooth service enabling/disabling, remote device
discovery and support for RFCOMM client connections.

This release has been tested on HTC Dream, HTC Magic and Samsung
Galaxy. As already highlighted on this list, the API uses Java
Reflection: therefore, it is not guaranteed that it will work on
future releases of Android.

Have fun with Android and Bluetooth!

Ciao,
Stefano

PS: old name of project was Experimental Bluetooth Library, which
was hard to find on Google, since most people use Bluetooth API as
key...

-- 
Stefano Sanna
gerda...@gmail.com (Skype: gerdavax)

Personal blog: http://www.gerdavax.it
Linkedin profile: http://www.linkedin.com/in/gerdavax
QuadraSpace Project: http://www.quadraspace.org

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

2009-09-07 Thread karthikr

Hi Guys,

Im trying to open an image edit it and save it back.

And im using the below code,

mScanner = new MediaScannerConnection(this, new
MediaScannerConnection.MediaScannerConnectionClient() {
public void onMediaScannerConnected() { 
 mScanner.scanFile
(fileName, null /* mimeType */);
}
public void onScanCompleted(String path, Uri uri) {
if (path.equals(fileName.toString())) {
mScanner.disconnect();
 }
 }
});
mScanner.connect();

I do get the Uri from onScanCompleted, but the thumbnail is not
updated in the gallery.

Also how do i make the MediaScanner to rescan all the image files or
all video or all music files?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free space required for a package install

2009-09-07 Thread Maps.Huge.Info (Maps API Guru)

You might start with an app that installs just the framework, then use
an internal function to install the graphics and anything that takes
up a lot of space. That way the package installer won't hog all the
space.

-John Coryat

What Zip Code?

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



[android-developers] Re: Customizing alert dialog

2009-09-07 Thread iPaul Pro

Check out the API Demos : App/Activity/Custom Dialog

Paul

On Sep 7, 11:49 am, gshetty gshett...@gmail.com wrote:
 Hi All

 I want to custmize an alert dialog. I can set the content using
 setContentView and other api's, but Android always gives a white
 border with rounded edges around the Alert dialog. Is it possible to
 remove this white border from the dialog box?

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

2009-09-07 Thread Josh

I am using the following code to send an mp3 via sms/mms.

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(sms_body, message body test);

sendIntent.putExtra(Intent.EXTRA_STREAM, newUri);
sendIntent.setType(audio/mpeg);

startActivity(sendIntent);

When the code runs is opens gmail(compose) with the file attached
instead of opening sms.

What am I doing wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 use motion events with multiple layouts

2009-09-07 Thread andr0id

Please help me.

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] gps with gmap, and routing information issue

2009-09-07 Thread tstanly

hi all,

I used google map to do gps location service,
and then I want to use it to do routing schedule function,
eg:
google map knows user location(longtitudlatitude),and user
can input his destination, then via the routing schedule function,
google map will display the routing information,
just like this photo shows:
http://img2.pict.com/39/96/b4/1584599/0/routing.jpg


I know there has method that must send start and destination point
to google server for computing and displaying on the browser(web),
but now I don't want the routing information shows via browser to
server,
in other word, I want the routing information download in my app .

is it possible?
I hoped that someone can help me for this issue.

thanks!!

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



[android-developers] Re: How to block incoming call?

2009-09-07 Thread Roman ( T-Mobile USA)

I tried Panda and indeed the call gets blocked ... interesting 

When I am looking at the logcat I can see that after the intent
InCallScreen was received that the phone application gets paused.

Now I am also curious how to achieve this ...

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 6, 11:01 pm, feeling3_4 lanwen.ban...@gmail.com wrote:
 Thanks Roman. Have you ever tried 
 thishttp://www.cyrket.com/package/com.dragon.pandafirewall
 ?

 the call blocking works. My G1 doesn't even ring.

 On Sep 7, 1:18 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-

 mobile.com wrote:
  I am not aware that you can intercept an incoming call only from SDK
  level. Firewall programs which are claiming to block incoming calls
  are not working on my phone.

  If there is a mechanism out there, please let me know.

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Sep 6, 8:50 pm, feeling3_4 lanwen.ban...@gmail.com wrote:

   Hi, all

     I know there are some posts from the group have talked about this
   ( 
   likehttps://groups.google.com/group/android-developers/browse_thread/thre...
   andhttps://groups.google.com/group/android-beginners/browse_thread/threa...),
   but I can not find exactly the offical answer of this issue.

   in android market, there are some apps which can set up a black list
   and block the incoming call, seehttp://www.cyrket.com/search?q=block+call
   for details. is there something like backdoor or unkown api for
   blocking incoming call.

   any idea?  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: Problem with MediaScannerConnection scanFile

2009-09-07 Thread karthikr


Also is there a way to resccan the files in the sdcard?

Can someone help me with 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
-~--~~~~--~~--~--~---



[android-developers] Re: error: killing myApp because provider com.android.Browser.Browserprovider is dying

2009-09-07 Thread Dianne Hackborn
Also if you are keeping an open cursor or client reference on the bookmarks
content provider, I would really recommend against that, since that requires
that the browser stay running as long as your app is (and the browser can
use a lot of memory).  Also as you have seen, if it does get killed, any
apps that are currently using it also get killed as well.

On Mon, Sep 7, 2009 at 8:20 AM, Mark Murphy mmur...@commonsware.com wrote:


 r3 wrote:
  when i run my application for long time then my applicatiojn gets
  killed:
 
  i always get the same logs which are attached with this post.
 
  kindly help me out...

 snip

  I/ActivityManager(  587): Low Memory: No more background processes.

 Something on your device or emulator is leaking memory. Eventually,
 Android has to start killing things off to free up memory, and
 eventually that causes com.android.Browser.BrowserProvider to be killed,
 which kills your application.

 Use DDMS to identify what application is leaking memory. If it is yours,
 fix the leak.

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

 Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

 



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

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

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



[android-developers] Re: apk validation by file size

2009-09-07 Thread Dianne Hackborn
The best way is to check the certificate it is signed with, since nobody can
sign with a certificate that they haven't been given the private key for.
That said, if they have tampered with your .apk, they can also tamper with
your code, and change whatever check you may have.

On Mon, Sep 7, 2009 at 8:04 AM, Lee lee.wil...@googlemail.com wrote:


 I had the thought of checking for tampering with the apk by embedding
 a couple of checks against it's size once installed on  the
 device.

 I was just a bit concerned that maybe the size would change dependent
 on the device (e.g. different FS format or whatever).

 Thanks,

 Lee

 p.s. no debates about whether this is worthwhile or not please :-)
 



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

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

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



[android-developers] Re: Free space required for a package install

2009-09-07 Thread Dianne Hackborn
If your app is forward locked, it can take significantly more space, even
after the install is done (unfortunately all of the resources currently have
to be installed twice).

On Mon, Sep 7, 2009 at 8:13 AM, Dan Sherman impact...@gmail.com wrote:

 Hey guys,

 The package installer looks to take up a good amount of space when
 installing applications.  We've published a very large game (ProjectINF -
 6mb).  And it looks to be taking up a good amount of space during the
 install process, to the point that we have a lot of users emailing us with
 complaints/requests to fix it.

 From what we've seen, it looks to take about 22mb of free space to install
 a 6mb apk.  While I can imagine taking double or so for unpacking and temp
 locations, almost 4x the size seems a bit high.  After an install with 22mb
 free, the device has 16mb free (which makes perfect sense).

 Users also seem to be getting errors on the market when trying to install
 with less than that amount of space (with no real clear error message, just
 Install Failed.

 I doubt theres anything we can do on our side (besides shrinking our app
 all around), but figured I'd ask :)

 - Dan

 



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

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

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



[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread Sebastián Marconi

Application: Uloops
Category: Media
Website: http://www.uloops.net
Description: Music composition environment.
Has three main instruments:
 * Polyphonic synthesizer: 7-octave sequencer, 10-synths with filters
like Cutoff and Resonance. (e.g. 
http://uloops.net/adc2/banks/4aa1b1096d8e1/409.mp3)
 * Drum machine: 17-components and 6-drumkits (e.g.
http://uloops.net/adc2/banks/4aa1b1096d8e1/437.mp3)
 * Modulator: Analog-like modular synthesizer (e.g.
http://uloops.net/adc2/banks/4aa1b1096d8e1/415.mp3)

Then you mix them making loops, small music pieces of roughly 8
seconds (e.g http://uloops.net/adc2/banks/4aa1b1096d8e1/412.mp3)
After playing around, you can arrange them into songs (e.g.
http://uloops.net/adc2/banks/4aa1b1096d8e1/446.mp3)
Once finished you can publish the song and its parts, so everybody can
rate them and use in their own songs.

ADC experience: Great! Juan Bordón did the server-side thing and I
made the android stuff. We became almost workalcoholics :D

Cheers
Sebastiá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] Re: apk validation by file size

2009-09-07 Thread Lee

 The best way is to check the certificate it is signed with, since nobody can
 sign with a certificate that they haven't been given the private key for.
 That said, if they have tampered with your .apk, they can also tamper with
 your code, and change whatever check you may have.

Is there system code that I can call for that ? Any keywords you could
throw in ?

My original question, is the APK size the same on any device once
created ?

Thanks again,

Lee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread f_heft

Uloops looks great! When will it be available on the market?

This looks really professional and sounds so, too!

On 7 Sep., 20:53, Sebastián Marconi sebastianmarc...@gmail.com
wrote:
 Application: Uloops
 Category: Media
 Website:http://www.uloops.net
 Description: Music composition environment.
 Has three main instruments:
  * Polyphonic synthesizer: 7-octave sequencer, 10-synths with filters
 like Cutoff and Resonance. 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/409.mp3)
  * Drum machine: 17-components and 6-drumkits 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/437.mp3)
  * Modulator: Analog-like modular synthesizer 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/415.mp3)

 Then you mix them making loops, small music pieces of roughly 8
 seconds (e.ghttp://uloops.net/adc2/banks/4aa1b1096d8e1/412.mp3)
 After playing around, you can arrange them into songs 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/446.mp3)
 Once finished you can publish the song and its parts, so everybody can
 rate them and use in their own songs.

 ADC experience: Great! Juan Bordón did the server-side thing and I
 made the android stuff. We became almost workalcoholics :D

 Cheers
 Sebastiá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] Re: apk validation by file size

2009-09-07 Thread Mark Murphy

Lee wrote:
 Is there system code that I can call for that ? Any keywords you could
 throw in ?

PackageManager#getPackageInfo() returns a PackageInfo which has a
signatures field.

 My original question, is the APK size the same on any device once
 created ?

I don't think you have any supported means of figuring out the size of
the APK on the device.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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

2009-09-07 Thread Robert Green

It just occured to me today that while we targeted 1.5 as the platform
for your ADC2 apps, they may be running on 1.6.  That led me to wonder
about this situation:

What if there is a critical bug in the game/app that didn't exist in
1.5 but does on 1.6?  Is that fair to judge without being able to fix
the bug for the specific platform?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Help in the HelloMapView tuto

2009-09-07 Thread BJP

powerbyte, thanks for the tip.  This instruction is included in the
blue box on the Hello, MapActivity tutorial page, but it is easily
overlooked as the blue box appears to be a tip about how to get the
Google Maps library, not how to configure the development
environment.  If Google wanted their tutorial to be clearer, they
could add Step 1.5 to include your instructions.

--Ben

On Sep 1, 10:04 pm, powerbyte powerb...@gmail.com wrote:
 Set project build target to Google API and try.

 Select your project in PackageExplorer and right mouse click, select
 properties.
 Select Android in left pane and now Google APIs

 to Verify Open default.properties and you see last line as

 target=Google Inc.:Google APIs:3

 On Sep 1, 6:29 pm, Zonakusu zonak...@gmail.com wrote:

  I have similar problems with the google maps. When I try to import
  com.google.maps.MapActivityit tells me MapActivitycannot be
  resolved to a type. While i _have_ included the
  com.google.android.maps in my XML file. When I use eclipse to search
  through the available com.* packages I can't seem to find google.maps
  anywhere.

  Can you guys help me with this problem?

  Thanks in advance!

  On 24 jul, 16:53, Sujay Krishna Suresh sujay.coold...@gmail.com
  wrote:

   Can u plz explain ur prob in detail? N if possible plz post ur code 
   snippet
   so that it'd be easier to identify ur prob.

   On Fri, Jul 24, 2009 at 7:40 PM, sweet junkbr...@gmail.com wrote:

It's seems like the Internet permission doesn't work.

   --
   Regards,
   Sujay
   Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html  
   -
   If God had wanted man to play soccer, he wouldn't have given us arms.- 
   Hide quoted text -

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



[android-developers] Re: Android WVGA support

2009-09-07 Thread broc.seib

I am looking to get my hands on a physical WVGA device for android.
Are any available yet? I saw an old (speculative) post about the HTC
Touch 2 perhaps being an android device, alas, the HTC site says that
device runs windows mobile.

I have found more recent blogging about the SMiT 560, but can't find
it for sale.
  http://www.google.com/search?q=SMIT+MID-560
  http://www.smit.com.cn/English/proDetail.asp?InfoId=126js=2

Can anyone shed more light on what/when is available in the WVGA
department for Android?



On Sep 7, 8:16 pm, Al Sutton a...@funkyandroid.com wrote:
 We've added support for WVGA devices to the AndAppStore using the features 
 from Donut and I'd recommend everyone interested in running their apps on 
 WVGA devices takes a look at the donut SDK because there is a new manifest 
 tag (supports-screens) which, if not used, can make your app look a bit rough.

 If you don't use it the docs say Based on the target device screen density, 
 the Android framework will scale down assets by a factor of 0.75 (low dpi 
 screens) or scale them up by a factor of 1.5 (high dpi screens). and in our 
 case that meant the icons in the app had zoom performed on them in order to 
 scale them up for WVGA and it looked pretty fuzzy. We've also been told that 
 on some builds of donut the display was limited to a HVGA portion of a WVGA 
 screen with a big black border around it, but I'm not sure how up to date 
 those builds were.

 The supports-screens manifest tag appears to be backwards compatible and 
 doesn't cause problems for earlier devices. We're using it in the 1.4.6 
 version of the AndAppStore client and we've tested it on a few cupcake 
 devices without any problems, and the 1.4.6 release is now public so if you 
 want to test the compatibility you can grab it 
 fromhttp://tinyurl.com/aasclient

 Anyway, I thought I'd give you guys a heads up so when donut hits the streets 
 you guys don't start wondering why you're getting comments like The graphics 
 are poor or Everything looks fuzzy.

 Hope it's' useful,

 Al.

 --

 * Looking for Android apps?, tryhttp://andappstore.com/*

 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 WVGA support

2009-09-07 Thread Mark Murphy

broc.seib wrote:
 I am looking to get my hands on a physical WVGA device for android.

You and me both.

 Are any available yet?

Soon. I think.

 Can anyone shed more light on what/when is available in the WVGA
 department for Android?

The Archos Internet media tablet is supposed to have WVGA:

http://gizmodo.com/5341242/archos-android-tablet-with-720p-playback-and-mobile-internet-to-launch-september-15th

We should get confirmation of that on the 15th.

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

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Which platform will our ADC2 apps run on?

2009-09-07 Thread Cédric Berger

On Mon, Sep 7, 2009 at 22:42, Robert Greenrbgrn@gmail.com wrote:

 It just occured to me today that while we targeted 1.5 as the platform
 for your ADC2 apps, they may be running on 1.6.  That led me to wonder
 about this situation:

 What if there is a critical bug in the game/app that didn't exist in
 1.5 but does on 1.6?  Is that fair to judge without being able to fix
 the bug for the specific platform?

That's why I doubt google will release a donut update before the end
of this first user voting phase...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread Sebastián Marconi

On 7 sep, 16:53, f_heft delphik...@gmail.com wrote:
 Uloops looks great! When will it be available on the market?

 This looks really professional and sounds so, too!
Thanks, we've focused mainly in the challenge so far. We expect to get
some real feedback from it and then release, maybe soon.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] HSQLDB on Android? Anyone tried it?

2009-09-07 Thread JavaNut

Hello Androids,

Has anyone tried running HSQLDB on Android?  I did some Google
searches and couldn't find any references to that.

Why would anyone *want* to run HSQLDB on Android, when Android already
comes with a perfectly good SQLite database?  The answer is simple: we
need to use an encrypted file.  There is no way to specify a custom
random access file class in the SQLite open methods.  Therefore
there's no way that we can see of using SQLite without going to the
Linux layer, which we would prefer not to do.  Therefore, a pure Java
DB may be the solution.  We can easily use HSQLDB with an encrypted
backing file.

I've downloaded the source, but before I get into it I was wondering
if anyone here has tried it.

Thanks

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



[android-developers] Re: Android WVGA support

2009-09-07 Thread Dianne Hackborn
On Mon, Sep 7, 2009 at 2:12 PM, Mark Murphy mmur...@commonsware.com wrote:

 broc.seib wrote:
  I am looking to get my hands on a physical WVGA device for android.
 You and me both.


There shouldn't be any until WVGA is officially supported in the platform.
 That is planned for 1.6, but 1.6 is not yet officially supported, and there
is a fair lag from when the platform software is done to new devices being
released with it.


  Can anyone shed more light on what/when is available in the WVGA
  department for Android?
 The Archos Internet media tablet is supposed to have WVGA:

 http://gizmodo.com/5341242/archos-android-tablet-with-720p-playback-and-mobile-internet-to-launch-september-15th


Afaik, the Archos tablet is based on 1.5, and thus does not use the official
screen support in the 1.6 platform.  I have no idea what exactly they are
doing, but unless it is a 1.6-based device, it would be of questionable
value for someone wanting to follow the standard platform.

Also the Archos device is a very different type of screen than what you will
deal with on a phone: with their tablet, it is a 800x480 5 screen (larger
in size but about the same density as G1/myTouch); a phone would be more in
the realm of a 800x480 3.5 screen (with about the same size but a
significantly higher density than current HVGA devices).  The 1.6 platform
will support both of these, representing either a larger screen space to
work with (implying differences in layout) or the same space but with more
pixels (needing scaling of graphical elements in  the same layout).

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

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

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



[android-developers] Re: Android WVGA support

2009-09-07 Thread Mark Murphy

Dianne Hackborn wrote:
 There shouldn't be any until WVGA is officially supported in the
 platform.  That is planned for 1.6, but 1.6 is not yet officially
 supported, and there is a fair lag from when the platform software is
 done to new devices being released with it.

Uh, no offense, but HTC Magic devices shipped with Android 1.5 right
about when the SDK became available. In Spain, IIRC. You may recall
modest gnashing of teeth over this.

While the core Android team may know timelines vis a vis product
launches, we out here in the hinterlands have to plan for another
possible here's the SDK! better support it tomorrow! release.

 Afaik, the Archos tablet is based on 1.5, and thus does not use the
 official screen support in the 1.6 platform.  I have no idea what
 exactly they are doing, but unless it is a 1.6-based device, it would be
 of questionable value for someone wanting to follow the standard platform.

If it sells in decent quantity, or looks like it might, whether it is
the standard platform or not means little -- we have to know how to
support it. That means some of us will need to get our grubby
medium-sized hands on it, to test apps and advise others. In fact, the
possibility that they *do* deviate from the norm is all the more reason
some of us will need hardware, since we will not be able to rely upon
emulators as much.

As the long-standing Chinese proverb/curse goes: May you live in
interesting mobile OS platforms (or something like that)...

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.1 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: How to know software keyboard is on screen or not?

2009-09-07 Thread Anonymous Anonymous
Same exception..!

On Sat, Sep 5, 2009 at 2:32 PM, Agus agus.sant...@gmail.com wrote:

 InputMethodService ims = (InputMethodService)
 (mActivity.getSystemService(Activity.INPUT_METHOD_SERVICE));
 ims.isInputViewShown();


 On Thu, Sep 3, 2009 at 6:00 PM, Anonymous Anonymous 
 firewallbr...@googlemail.com wrote:

 classcast exception !!

 will this work trying to convert to InputMethodService !



 On Thu, Sep 3, 2009 at 7:51 AM, Agus agus.sant...@gmail.com wrote:

 Have you tried this?

 InputMethodService ims = (InputMethodService)
 mActivity.getSystemService(Activity.INPUT_METHOD_SERVICE);
 ims.isInputViewShown();

 Agus.


 On Wed, Sep 2, 2009 at 6:48 PM, Anonymous Anonymous 
 firewallbr...@googlemail.com wrote:

 I doubt this is possible.


 On Tue, Aug 25, 2009 at 6:24 PM, for android forandr...@gmail.comwrote:

 probably this(i have not tried it though)


 android-sdk-windows-1.5_r1/docs/reference/android/view/inputmethod/InputMethodManager.html#isActive(android.view.View)




 On Tue, Aug 25, 2009 at 1:33 PM, aby orz0...@gmail.com wrote:


 Hi,
 Does anyone knows how to know current software keyboard is on screen
 or not in program?
 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: 5 mins to ADC II submission deadline - so what is your submission?

2009-09-07 Thread Michael

I've finally managed to create a website for seawasp.
It's located at:
www.honeymilklabs.com
Let me know what you think about,
Michael.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MapView with itemizedOverlay still don't work

2009-09-07 Thread Nicholas Albion

You need to call:
mapOverlays.add( itemizedOverlay );

also, if you're adding/removing overlay items to/from ItemizedOverlay,
you may need to call setLastFocusedIndex(-1) (or whatever the method
is).  I think in your case you won't need to worry with this as you
only call addOverlay and populate once.

On Sep 7, 6:34 pm, sweet brou...@gmail.com wrote:
 I've try to make a mapview with itemized overlay and it's not work.
 I share my code if anyone see anything :

 java class mapview:

 import java.util.List;
 import android.content.Intent;
 import android.graphics.drawable.Drawable;
 import android.os.Bundle;
 import android.view.Menu;
 import android.view.MenuInflater;
 import android.view.MenuItem;
 import android.widget.LinearLayout;
 import android.widget.ZoomControls;
 import com.google.android.maps.GeoPoint;
 import com.google.android.maps.MapActivity;
 import com.google.android.maps.MapView;
 import com.google.android.maps.Overlay;
 import com.google.android.maps.OverlayItem;

 public class Map extends MapActivity {
         ListOverlay mapOverlays;
         Drawable drawable;
         NewItemizedOverlay itemizedOverlay;
         LinearLayout linearLayout;
         MapView mapView;
         ZoomControls mZoom;

         @Override
     public void onCreate(Bundle savedInstanceState) {

                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.map);
                 mapView = (MapView) findViewById(R.id.mapview);
                 mapView.setBuiltInZoomControls(true);
                 mapView.setSatellite(true);

                 mapOverlays = mapView.getOverlays();

                 drawable = this.getResources().getDrawable
 (R.drawable.androidmarker);
                 itemizedOverlay = new NewItemizedOverlay(drawable);

                 GeoPoint point = new GeoPoint(1924,-9912);
                 OverlayItem overlayitem = new OverlayItem(point, , );
                 itemizedOverlay.addOverlay(overlayitem);

     }
         protected boolean isRouteDisplayed() {
                 return false;
         }

 java ItemizedOverlay class:

 import java.util.ArrayList;
 import android.graphics.drawable.Drawable;
 import com.google.android.maps.ItemizedOverlay;
 import com.google.android.maps.OverlayItem;

 public class NewItemizedOverlay extends ItemizedOverlay {

         private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem
 ();

         public NewItemizedOverlay(Drawable defaultMarker) {
                 super(boundCenterBottom(defaultMarker));
                 // TODO Auto-generated constructor stub
         }
         public void addOverlay(OverlayItem overlay) {
             mOverlays.add(overlay);
             populate();
         }

         @Override
         protected OverlayItem createItem(int i) {
           return mOverlays.get(i);
         }

         @Override
         public int size() {
                 return mOverlays.size();
         }

 }

 xml mapview file :

 ?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
     com.google.android.maps.MapView
         android:id=@+id/mapview
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:clickable=true
         android:apiKey=0G***fwcg/
         LinearLayout
     android:id=@+id/zoomview
     android:layout_width=wrap_content
     android:layout_height=wrap_content
     android:layout_alignBottom=@id/mapview
     android:layout_centerHorizontal=true/
 /LinearLayout

 Thanks for your help
 Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: detect usb device

2009-09-07 Thread Roman ( T-Mobile USA)

Yep, you will receive an event that a USB storage device is
connected.

Currently the event is shown in the WindowsShade but you can also
capture the intent in your own application.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Sep 6, 10:57 pm, tstanly tsai.sta...@gmail.com wrote:
 thanks!

 and the other question,
 is Android detect dynamically possible(on listening mode)?

 that is,
 when I'm in the Activity1, and insert a usb device,
 then app can detect right now and use dialog send a message to user
 the device is mounted!?

 thanks

 On 9月7日, 下午1時30分, Roman ( T-Mobile USA) roman.baumgaert...@t-

 mobile.com wrote:
  You can detect when you attach a USB storage device.

  See android.intent.action.MEDIA_MOUNTED

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Sep 6, 10:05 pm, tstanly tsai.sta...@gmail.com wrote:

   hi all,

   does sdk provides methods to detect whether a usb device plug in ?
   if it's a android porting problem, I am so sorry...

   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: (unofficial) Bluetooth API v. 0.2

2009-09-07 Thread Chi Kit Leung
Thanks! that is great!

On Tue, Sep 8, 2009 at 1:51 AM, Stefano Sanna gerda...@gmail.com wrote:


 Hi all.

 I've just published an update version (0.2) of the (unofficial)
 Bluetooth API for Android 1.1 and 1.5.

 Library source code, binaries and Javadoc have been published under
 Apache 2.0 License at:

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

 New version includes: basic SDP, RemoteDevice signal level (RSSI)
 fixed, I/O stream close fixed. Features already implemented on first
 release are localBluetooth service enabling/disabling, remote device
 discovery and support for RFCOMM client connections.

 This release has been tested on HTC Dream, HTC Magic and Samsung
 Galaxy. As already highlighted on this list, the API uses Java
 Reflection: therefore, it is not guaranteed that it will work on
 future releases of Android.

 Have fun with Android and Bluetooth!

 Ciao,
 Stefano

 PS: old name of project was Experimental Bluetooth Library, which
 was hard to find on Google, since most people use Bluetooth API as
 key...

 --
 Stefano Sanna
 gerda...@gmail.com (Skype: gerdavax)

 Personal blog: http://www.gerdavax.it
 Linkedin profile: http://www.linkedin.com/in/gerdavax
 QuadraSpace Project: http://www.quadraspace.org

 



-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

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

2009-09-07 Thread Roman ( T-Mobile USA)

The security architecture for your mobile application depends on the
requirements for mobile banking application in general. I would start
the following investigations

- What are the mobile banking requirements on a mobile device
--- required radio interface for your transaction (wifi is not as
secure as cellular)
--- what is needed if you are on wifi?
--- Which security mechanisms are involved for a banking transaction?
(investigate IP connectivity requirements up to security requirements
on application level

- What is supported on Android? (for example there a limitations on
WPA2 support in Android SDK in case of Wifi)
--- which protocols are supported for a secure connection?
--- which security framework is available or can be ported
--- in case of slow performance, what is available on native level
--- does it make sense to change the framework/platform code and run
certain software as root only?

This are only some basic questions which I came up with. But may be it
helps to get started.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Sep 7, 2:12 am, Sudeep Jha sudeep.neti...@gmail.com wrote:
 Hi all,
         Can anybody tell me something about the security architecture
 required to build a mobile banking solution in android?
 Warm Regards,
 Sudeep

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

2009-09-07 Thread syl

I've been looking at various tools and reading various articles around
TDD on the Android platform. A common thread seems to be that the
testing framework is very poorly documented - and indeed that seems to
be the case. From what I can see, standard JUNIT testing (not using
activities) is very easy to set up. However usage of test stories to
actually test activities (user input), databases etc, seems very
limited. Has anyone had any success with this that they would care to
share?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Where are the Android Sources, like strings display on the device,where are they?

2009-09-07 Thread 二 李

 Recently,I receive a job about geting all the strings display on
the Android Device , but not from the Android Resource code, I have
seen the Android Resources and Internationalization ,now i know the
strings,pictures display in application are in the
resources.arsc(get it by ) ,but is that all?In the Android
system,are there any other Strings display on Device ?not in the
apk,Where are they ?

 If i got the strings resources i need ,how can i parse it from
the fils?

Who can tell me? Thank you all who pay attention on this discussion!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 capture any screen? (when your view is greater than screen size)

2009-09-07 Thread Ajeet Singh

I want to use screenshot kind of application in my own application. So
that I can take picture in any format and save it.

There is one function getDrawingCache() which does that, but it only
save picture what is shown on the screen. It does not capture beyond
screen like when the view is big and scroll-bar are present.

Can anybody give me hint how to do this?


Thanks in advance,
Ajeet

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

2009-09-07 Thread Joey van der Bie

Hi Anastasiya,

Using Yahel's code I made some proof of concepts to play around with
the 'multitouch support' that is currently in the Google Cupcake code.
I extended Yahel's code to determ if a second finger is added or
released, which makes programming for multitouch a bit easier.
The code can be found at my website: http://www.vanderbie.net/

The hack is not perfect though, so if you really want to fully support
two finger multitouch you should extend my code further to get rid of
the bugs.

gr Joey

On 17 aug, 22:41, Jason Proctor jason.android.li...@gmail.com wrote:
 i'm not planning on including *any* multitouch support in a shipping
 product. part of my job is developing gesture algorithms and writing
 demonstration applications, for which i control the environment -
 therefore a hacked kernel or even toString() is OK.

 at the moment, all i have is the distance-magnitude hack, which
 mostly works but isn't great as you imagine.

 i hear all kinds of rumours about vendor-specific multitouch, most of
 which i can't repeat. it would be great if the issue was sorted
 before people have to start writing vendor-specific code.

 (note that the HTC Hero already has multitouch, but zoom only, which
 maybe means it's built on the distance hack.)

 thanks,
 j



 I can't see the page that was posted, but the base framework doesn't
 print any second touch information in a MotionEvent, there is no
 such information there at all.  This person is probably running on
 someone's device that has modified the based framework and happens
 to print this information.  Anything one does based on that is
 likely to only work on that vendor's flavor of the platform.

 (And seriously, relying on the output of toString()?  You are
 setting yourself up to break in the future.)

 On Mon, Aug 17, 2009 at 12:44 PM, Jason Proctor
 mailto:jason.android.li...@gmail.comjason.android.li...@gmail.com
 wrote:

 update: i'm not seeing the x2 and y2 coordinates in event.toString(),
 at least on a release cupcake kernel. maybe the guy was using an
 older kernel, with residual code following the (presumed) removal of
 the multitouch stuff?

 (and this now gels with the other multitouch hack, which is a relief
 of sorts...)

 I wonder if x2 and y2 of MotionEvent could be fetched by means of
 reflection, using setAccessable() and then uptain their values. A
 SecurityManager might get in the way though?!

 /Casper

 On 17 Aug., 21:09, Marco Nelissen
 mailto:marc...@android.commarc...@android.com wrote:
    That webpage doesn't appear to exist.

    On Mon, Aug 17, 2009 at 11:41 AM,
 Hekkimailto:kaye...@gmail.comkaye...@gmail.com wrote:

     Hi,

     I've turned quite a lot to find info and how to for multitouch, so i
     finally made my own. The answer is :

     Multitouch is already usable in Android SDK :

  http://www.alicesbiscuit.com/android-sdk-multitouch-workaround.htmlhttp://www.alicesbiscuit.com/android-sdk-multitouch-workaround.html

     Hope that helps

     Yahel

     On 29 juil, 19:35, Marco Nelissen
 mailto:marc...@android.commarc...@android.com wrote:
     This was discussed a few days ago. Search the archive.

     On Wed, Jul 29, 2009 at 4:33 AM, Anastasiya
 mailto:anastasiya.drem...@gmail.comanastasiya.drem...@gmail.comwrote:

      Hi.
      Does Donut really support multi-touch? If yes, where I can find 
  this
      support in code?

      Thanks.

 --

 jason.software.particle

 --
 Dianne Hackborn
 Android framework engineer
 mailto:hack...@android.comhack...@android.com

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

 --
 jason.software.particle

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

2009-09-07 Thread wangfuquan




if only detect usb pluged in or not when sometime, you may be use:
mBatteryService.getPlugType().



   
 tstanly   
 tsai.sta...@gmai 
 l.com 收件人 
 发件人:   Android Developers  
 android-developer android-develop...@googlegroups.co 
 s...@googlegroups.co m  
 m抄送 
   
  主题 
 2009-09-07 13:57  [android-developers] Re: detect usb 
   device  
   
 请答复 给 
 android-developer 
 s...@googlegroups.co 
 m 
   
   





thanks!

and the other question,
is Android detect dynamically possible(on listening mode)?

that is,
when I'm in the Activity1, and insert a usb device,
then app can detect right now and use dialog send a message to user
the device is mounted!?

thanks

On 9月7日, 下午1時30分, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 You can detect when you attach a USB storage device.

 See android.intent.action.MEDIA_MOUNTED

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 6, 10:05 pm, tstanly tsai.sta...@gmail.com wrote:



  hi all,

  does sdk provides methods to detect whether a usb device plug in ?
  if it's a android porting problem, I am so sorry...

  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: Dynamically enable menu items

2009-09-07 Thread sam

HI guys,

Thanks for your replies, i want to change the menu item status from
disable to enabled while it is displaying on the screen.
i can enable it but the menu item does not re-paint themselves when
they are on the screen.

any other comments?

Thanks

Sam

On Sep 7, 6:08 pm, Keean Schupke keean.schu...@googlemail.com wrote:
 Actually you can use:

 onPrepareOptionsMenu

 which is called just before the menu is displayed to add or remove
 items.

 Regards,
 Keean.

 On Sep 7, 9:50 am, Nivek kevin.gau...@gmail.com wrote:



  As Menu Items are generated only once in the onCreateOptionsMenu(),
  you might try to keep a reference to each item in instance variables
  and enable/disable them in the handlers that receive task results ?

  Nivek

  On 7 sep, 05:24, sam hrlixi...@gmail.com wrote:

   Hi guys,

   Any help on this? I believe android application like browser implement
   this,
   does the android engineer from google have any comments?

   Thanks

   On Sep 3, 9:38 am, sam hrlixi...@gmail.com wrote:

Hi Mark,

Thank for reply.
let me describe my question in more details,
I do not want to press the Menu button again, when the menu items are
displayed as disabled, after I finished some work , i want the menu
items to be repainted automatically.
Any suggestions?

thanks

On Sep 2, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote:

  I would like to know how to dynamically change the my option menu
  items status from disable to enabled .

  at first all my menu items are set to disabled and when click the 
  menu
  key , they are shown as gray and disabled.

  when my other task finished, i want to enable all the menu items,
  change them from gray to dark color from the screen.

  do you know how can i implement this?

 Implement onPrepareOptionMenu() instead of onCreateOptionMenu().
 onPrepareOptionMenu() is called every time the MENU button is 
 pressed. At
 that time, you know whether your menu items should be 
 enabled/disabled, so
 enable/disable them as part of loading up the menu contents.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer 
 Books:http://commonsware.com/books.html-Hidequotedtext -

- Show quoted text -- Hide quoted text -

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



[android-developers] How to force a GSM call to be handled by the native dialer?

2009-09-07 Thread Jack P

I am writing a an application that makes a GSM call. I would like this
call to be handled by the native dialer but I have found that if there
any applications installed that can handle GSM calls (Google Voice for
instance) then the call can be intercepted before reaching the native
dialer.

Is there a way I can force the intent to always resolve to the native
dialer? I have used PackageManager.queryBroadcastReceivers() to try
and identify information that could be used to target the intent to
the native dialer but to no avail. Using Intent.setComponent() is
presumably only safe for components inside your own application as
others may change.

T.I.A,
Jack

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: easy way to synchronize data between phone and server

2009-09-07 Thread Isuru danagalle
Just store offline data in builtin sqllite database.And have a simple Ui to
activate synchronization through a web service.

Rgds,
Isuru

On Mon, Sep 7, 2009 at 11:59 AM, javame_android su...@saltriver.com wrote:


 Hi,

 For synching with the server you can either use Web Services or have a
 look at the Funambol Server. It is SyncML Server and is open source.

 Hope this helps you out.



 Regards
 Sunil
 


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

2009-09-07 Thread Fred Grott(shareme)

Obviously the more code contributors we can get to develop new mock
objects for this test feature set the better.
I have started with touch mock objects giving the developer a way to
state the touch point in DIP during a test..and that mock object code
is being submitted to the Android Project..


Do you have some time to grab a small Mock object to develop and
submit to  the Android Project in this area?

Fred Grott
http://mobilebytes.wordpress.com



On Sep 7, 7:30 pm, syl sylvestercaro...@gmail.com wrote:
 I've been looking at various tools and reading various articles around
 TDD on the Android platform. A common thread seems to be that the
 testing framework is very poorly documented - and indeed that seems to
 be the case. From what I can see, standard JUNIT testing (not using
 activities) is very easy to set up. However usage of test stories to
 actually test activities (user input), databases etc, seems very
 limited. Has anyone had any success with this that they would care to
 share?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: no activity in project

2009-09-07 Thread davidjspooner

Read up on services, they may handle the situation you need to
support, but bare in mind that you have to handle being unloaded
SOMETIMES, but provided you can handle being reloaded without loosing
state then it shouldn't be a problem. Do no evil to the battery :-)

On Sep 5, 2:21 pm, Honest honestsucc...@gmail.com wrote:
 I want to run my project in background.  So for that i am starting my
 application when phone starts.  But when user go in settings and press
 force close my application it close. So i do not want to display my
 application entry in settings. Is it feasible ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread Asier Arranz

My app is Nebudroid. It uses the accelerometer and mutitouch
capabilities.I hope you enjoy :)
You can watch the demo video on Youtube:

http://www.youtube.com/watch?v=8rS-A0FIXsM

And I'm a bit worried because I haven't seen my app in the
unofficial lists that are being published.
There is any official list from Google that contains all the submitted
apps?







On Sep 2, 3:23 pm, Warren warrenba...@gmail.com wrote:
 Game Casual: Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/
 A Cartoon Styled Turn based Artillery Game
 Developer: Warren Baltz

 ADC2 Feedback: Making a fast game on a phone running a virtual machine
 was the challenge! I spent more time on performance than on features.

 I did not find the August 1st constraint to be a problem. I am
 continually adding features to my game, and will be for some time. So
 when the deadline came, I submitted what I had, fully intending to
 continue developing.

 There is a sense of relief when you submit your game... followed by a
 mild sense of panic: Did I submit it correctly? Did I get the right
 file?  Did I forget anything?

 I am expecting stiff competition. But the whole process is enjoyable.
 It's great to hear from people who enjoy the application you wrote.
 Stiff competition means better apps for our phones. And we all want
 better apps for our phones.

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

2009-09-07 Thread BrianS

Is there a way to forward lock a specific film that my code downloads
to the android (like a wallpaper or ringtone)? I know you can forward
lock a package, but its resources still remain public, wondering if
its possible to just forward-lock a file.

Thanks much

(Apologies if this is a duplicate post, not sure if it made it through
the first time)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 capture any screen? (when your view is greater than screen size)

2009-09-07 Thread Ajeet Singh

I want to use screenshot kind of application in my own application. So
that I can take picture in any format and save it.

There is one function getDrawingCache() which does that, but it only
save picture what is available on the screen. It does not capture
beyond screen if the picture is big.

Can anybody give me hint how to do this?


Thanks in advance,
Ajeet

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

2009-09-07 Thread Isuru

Hi,
 When components like TextViews got focus we can focus them using
highlighting the border of the component.Like that how can we
highlight the border of a spinner object when it got focus?.U can
highlight borders of each and every item in the spinner at the time of
selection.
   What I need is to highlight the border of spinner object when it
got focus initially.I went through xml attributes and couldnt find
matching one.Let me know if u have any clue to do this.

Thanks  Regards,
Isuru

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

2009-09-07 Thread ash

how to change the color of a Spinner when mouse over it.

Thank you
Ash

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