[android-developers] Re: Be Careful of Upgrading App with New SDK Version

2009-11-16 Thread jeffro
I just submitted an issue for this so that the market can support
multiple versions of an app in order to support multiple SDK
versions.  If you agree that this is a better solution, please vote
for it:

http://code.google.com/p/android/issues/detail?id=4851

On Nov 16, 11:13 pm, jeffro  wrote:
> Thanks for posting that.  Man, that's ugly.  The best solution would
> be for Android Market to support multiple app version rather than
> having the dev add all this extra inefficient code.
>
> On Nov 16, 10:19 pm, siuying  wrote:
>
>
>
> > You may use minSdkVersion=3, and within the code, use reflection or
> > other means to determine the capabilities of the device, and use only
> > supported API on the device. Check the android blog related post
> > (http://android-developers.blogspot.com/2009/04/backward-compatibility-
> > for-android.html) for details.
>
> > This mean extra works, and it seems the only way to go.

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


[android-developers] unsubscribe

2009-11-16 Thread jphdsn
how to unsubscribe to developper group?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Be Careful of Upgrading App with New SDK Version

2009-11-16 Thread jeffro
Thanks for posting that.  Man, that's ugly.  The best solution would
be for Android Market to support multiple app version rather than
having the dev add all this extra inefficient code.

On Nov 16, 10:19 pm, siuying  wrote:
> You may use minSdkVersion=3, and within the code, use reflection or
> other means to determine the capabilities of the device, and use only
> supported API on the device. Check the android blog related post
> (http://android-developers.blogspot.com/2009/04/backward-compatibility-
> for-android.html) for details.
>
> This mean extra works, and it seems the only way to go.

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


[android-developers] connecting server problems

2009-11-16 Thread IPEG Student
Hello

 How can i send information to external server database  by android
coding ?

Thanks and Regs

Suman

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

[android-developers] displaying appwidget by broadcasting an intent

2009-11-16 Thread anand
Hi all,

I am trying to display an appwidget in my application.

There are two classes in my application.
First class broadcasts an intent to the send class.
The second class extends an AppWidgetProvider which is a
broadcastreceiver.

In the second class i am overriding the "onReceive" function.
In the "onReceive" function, i am trying to display the appwidget
using remoteviews.

Following is the code for the onReceive function that i have
implemented.

@Override
public void onReceive ( Context context,Intent intent ) {

super.onReceive( context,intent );
String action = intent.getAction();
String message="";
//String packagename="";
//int appwidgetid;
//String RESULT_OK = "sucessfull";

Log.i("test", "message received");


if( "android.appwidget.action.APPWIDGET_ENABLED".equals
( action   ) ) {

Toast.makeText( context, "Broadcast sucessfull...",
Toast.LENGTH_LONG).show();

if ( intent.hasExtra(broadcast.MESSAGE)) {

message = 
(String)intent.getCharSequenceExtra(broadcast.MESSAGE);
Toast.makeText( context, message, 
Toast.LENGTH_LONG).show();

}


ComponentName component;
component = new ComponentName(context,receiver.class);


RemoteViews views = new  
RemoteViews(context.getPackageName
(),R.layout.widget_provider);
views.setViewVisibility(R.layout.widget, 0);
views.setTextViewText(R.id.message, message);
}
  }
 }

The R.layout.widget_provider is the file which contains the
appwidgetprovider layout.
The R.layout.widget is the file which contains the layout inside the
appwidget.
The R.id.message is a textview inside the appwidget layout.

I am able to see the two toast messages.
But I am not able to see the appwidget being displayed.

My questions are:

1.Is it possible to display the appwidget inside an application?
2.If yes is this the correct way to do it?

Can anybody help me on this?

Thanks,
Anand

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


Re: [android-developers] I/NotificationService( 55): enqueueToast pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub $pr...@4323b8f8 duration=1000

2009-11-16 Thread Dianne Hackborn
It's just an informative message about a request to display a toast being
enqueued.

On Mon, Nov 16, 2009 at 9:38 PM, human android
wrote:

> I/NotificationService(   55): enqueueToast pkg=net.robmunro.mypod
> callback=android.app.ITransientNotification$Stub $pr...@4323b8f8
> duration=1000
>
> When does this log get displayed and what does it mean?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Performance problem when drawing in Overlay

2009-11-16 Thread Sezer
Hi,

I have a serious problem that i have spent several days with no
result.

I am developing a map application. I have extended Overlay class and
overidden draw() method. In draw() method, i have to draw thounds of
lines. So it is very slow. To eliminate the performance problem I have
also overridden onTouchEvent() method, so that drawing actually occurs
only after the ACTION_UP event.

But depending on the user's gesture, sometimes the screen continues to
move after the ACTION_UP event, so draw() method is called again and
again until the movement ends. So the drawing is erased.

I need to be notified when the movement actually ends to draw at the
right time.

I would appreciate any help.

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


[android-developers] Re: Dallas Android Developers

2009-11-16 Thread BillD
I'd be interested in joining - I've been working with Android for
about 6 months now -

Bill

On Nov 12, 1:10 am, PJ  wrote:
> If anyone is interested in joining the "Dallas Droid Devs", just reply
> to this thread and let us know that you're interested.
>
> An existing member can then invite you to be a collaborator of our
> spreadsheet, so that you can see who we are, see what all is going on,
> and tell us about yourself.
>
> -- PJ
>
> On Nov 12, 12:39 am, PJ  wrote:
>
> > I vote for the 14th!  (I'm out of town on the 21st.)
>
> > I was about to ask everyone where they lived and a bunch of other
> > info, then I realized it would be easier if we just had a shared
> > spreadsheet.
>
> > So guys, I've created a Google Docs spreadsheet that we can all 
> > edit!http://spreadsheets.google.com/ccc?key=tLm0U-zoptmlhEk_B_DteaA&hl=en
>
> > It's not too fancy, but please note that it does have multiple sheets/
> > tabs at the bottom:
> > "Members": Go here and enter your profile info so that we can see
> > where you live, what your skills/interests are, etc.
> > "Meetings": List of meetings.  For now I went ahead and put the 14th
> > down for our first meeting!
> > "Notes": Put random notes/discussions/crap about the group here.
>
> > I'll give everyone (in this discussion) permissions to edit the
> > spreadsheet.  If you have trouble viewing or editing it, let me know
> > and I'll try to fix it.
>
> > -- PJ
>
> > On Nov 11, 4:44 pm, Aniruddh Bajirao  wrote:
>
> > >  14th or 21st both are good for me.
> > > How about the others?
>
> > > On Wed, Nov 11, 2009 at 1:24 PM, Chris Dempsey  wrote:
> > > > How about the 14th or 21st?  I'm in the Plano area but I own a car so
> > > > traveling isn't a problem. :)
>
> > > > On Wed, Nov 11, 2009 at 10:49 AM, Aniruddh Bajirao 
> > > > wrote:
>
> > > >> As PJ suggested 'Dallas Droid Devs'...
> > > >> Lets plan an informal meet and get started... Any suggestions on when n
> > > >> where we can have a meet...
>
> > > >> On Wed, Nov 11, 2009 at 7:03 AM, Chris Dempsey  
> > > >> wrote:
>
> > > >>> I am interested in a Dallas Droid developer group.  I think PJ has the
> > > >>> right idea.  Start informal and see where it goes.
>
> > > >>> On Wed, Nov 11, 2009 at 1:22 AM, PJ  wrote:
>
> > >  "Dallas Droid Devs".  It's catchy.  Quick, someone reserve the 
> > >  domain!
>
> > >  I think the biggest barrier to forming a local Android Dev group is
> > >  the fact that developers can hang out in the IRC channel (and this
> > >  Google group) and find lots of discussion there, from the comfort 
> > >  (and
> > >  whim/speed) of their own homes.  So, some people might not feel the
> > >  extra effort is worth it.
>
> > >  So an important step to creating a successful Dallas Android Dev 
> > >  group
> > >  is to brainstorm and come up with a convincing list of incentives to
> > >  create/join a local group.  Developers will ask, "What can the Dallas
> > >  group offer me that the worldwide community can't?"
>
> > >  The answer is stuff like:
> > >  * Job placement: When Dallas devs get together, they can share info
> > >  about local opportunities
> > >  * Discuss local interests (like... uh... Dallas Cowboys?
> > >  Whataburger?  hahaha...)
> > >  * Get out of the house and meet in person
> > >  * etc.
>
> > >  I'm personally not gifted at organizing social events, but I'd
> > >  strongly consider joining/supporting.
>
> > >  On Nov 10, 9:54 pm, Aniruddh Bajirao  wrote:
> > >  > Anyone interested in having a Dallas Android Group?
>
> > >  > On Fri, Nov 6, 2009 at 9:42 PM, Aniruddh Bajirao 
> > >  > 
> > >  wrote:
> > >  > > If we have enough people interested lets create a Dallas Android
> > >  Dev-group.
>
> > >  > > We can have planned meets. Will definitely be interesting and 
> > >  > > useful
> > >  to
> > >  > > share knowledge and experience as well as to get answers to
> > >  questions. Above
> > >  > > all it would be very interesting to meet and network with other
> > >  Android
> > >  > > Enthusiasts.
>
> > >  > > On Fri, Nov 6, 2009 at 8:51 PM, cpick  wrote:
>
> > >  > >> You might check the Texas Startup Blog. Alex Muse has a happy 
> > >  > >> hour
> > >  > >> down at the info mart first monday of the month. Usually some
> > >  android
> > >  > >> guys there (although it is more entrepreneur related). They also
> > >  > >> sometimes have the mobile monday meeting in their office space..
> > >  But I
> > >  > >> would not mind getting a bit involved in a Android Dev group. 
> > >  > >> There
> > >  is
> > >  > >> a North Texas PC Users group somewhere (My father is a part of 
> > >  > >> it).
> > >  > >> They meet on a weekend, and have break out groups I think for
> > >  > >> different technologies.. Maybe get  a subgroup started there?
>
> > >  > >> --
> > > >>>

[android-developers] Re: AutoCompleteTextView, passing the focus and Android 1.6

2009-11-16 Thread Jason
I have also noticed this problem in 2.0.  I'm currently playing around
with it to try to find a solution.

On Nov 15, 12:57 am, "Armond Avanes"  wrote:
> Hi Guys,
>
> Has anyone noticed that AutoCompleteTextView doesn't pass the focus to the
> next field when you tap on "NEXT" button on soft keyboard? And it's all
> happening on Android 1.6. v1.5 works flawlessly! Is there any known solution
> for this?
>
> Thank you,
> Armond

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Fail to launch the SDK 2.0 tool on OS X

2009-11-16 Thread will
There's another thread that explains the prob:
http://groups.google.com/group/android-beginners/browse_thread/thread/4a12913fc2575118

On Nov 11, 6:22 pm, Dan  wrote:
> Were you able to resolve this?
>
> On Nov 2, 12:50 pm, Erik H  wrote:
>
> > I downloaded the SDK 2.0 toolkit and tried to launch the android tool
> > to download the latest SDK. The application seems to launch with the
> > following output:
>
> > $ ./android-sdk-mac/tools/android
> > Starting Android SDK and AVD Manager
> > No command line parameters provided, launching UI.
> > See 'android --help' for operations from the command line.
> > $
>
> > That's it. Nothing happens, no UI appears or any processes are started
> > (check with ps, but there is no new java process).
>
> > I'm running this on Mac OS X 10.5.8. The previous SDK s runs fine.
>
> > Thanks,
> > Erik
>
>

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


[android-developers] Proceeding the GPS information in a photo

2009-11-16 Thread Sou Dai
Would any one help me with this? I want to pick a photo from the device
with:

Intent intent = new Intent(Intent.ACTION_GET_CONTENT,
null);
intent.setType("image/*");
//intent.putExtra("crop", "true");
intent.putExtra("return-data", true);

startActivityForResult(Intent.createChooser(intent,
"Picking photo"), PR.action.ACTION_TYPE_PICK_PHOTO);

But I want to get the GPS information, file name etc. too. How could I do
it? Thanks!
P.S. How can I map the GPS coordinate into human readable address?

Best regards,
-- 
All those moments will be lost in time, just like tears in rain.

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

2009-11-16 Thread shimsim
For well over 1 month now my ADP G1 has been experiencing connectivity
issues in China. Both the market place and gmail are affected by this
problem (actually anything requiring account authorization from what i
can tell) during which time they are both unaccessible. On average the
blocking is in effect 90% of the time but at random periods during the
day/night will start to work again.

I have ruled out any issues with my phone and judging by the number of
other users that are experiencing this problem it seems fairly
widespread.

My questions are as follows:

1. Is Google aware of this problem?
2. What is the reason for the blocking?
3. Will it continue in the long term?

I am really hoping to get an official statement on what is really
going on.
I would prefer if people didn't jump in and start suggesting VPN
options, whilst I am familiar with some workarounds, I would prefer to
understand the root of the problem and how it will effect Android in
the long term in China.

Thank you!

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


[android-developers] seekbar / progressbar

2009-11-16 Thread Mario
i want to change the color of progressbar  as the cursor is moved, but
setProgressDrawable() seems to work only within OnCreate() method, if
i change the ProgressDrawable inside onProgressChanged method
inspecting mSeekBar i can see that the value of Currentdrawable and
ProgressDrawable is updated but the progressbar disappear and it
reappears only when the progressdrawable  changes back to the old value
(the one set in the onCreate method)


public void onProgressChanged(SeekBar seekBar, int progress,boolean
fromTouch) {
 seekBar.setProgressDrawable(new_drawable);
}


Full code:
public class SeekBar2 extends Activity implements
SeekBar.OnSeekBarChangeListener {
SeekBar mSeekBar;
TextView mProgressText;
TextView mTrackingText;
static LayerDrawable mdrawable_green;
static LayerDrawable mdrawable_blue;
static LayerDrawable mdrawable_red;

enum BarColor {
RED, BLUE, GREEN;
LayerDrawable getDrawable(){
switch(this){
case RED: return mdrawable_red;
case BLUE: return mdrawable_blue;
case GREEN: return mdrawable_green;
default : return mdrawable_red;
}
}
};
BarColor mcolor;

public BarColor getColor() {
return mcolor;
}

public void setColor(SeekBar seekbar,BarColor color) {
this.mcolor = color;
seekbar.setProgressDrawable(color.getDrawable());
}

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mSeekBar = (SeekBar) findViewById(R.id.seek);
mdrawable_green = (LayerDrawable) 
this.getResources().getDrawable
(R.drawable.pgreen);
mdrawable_blue = (LayerDrawable)this.getResources().getDrawable
(R.drawable.pblue);
mdrawable_red = (LayerDrawable)this.getResources().getDrawable
(R.drawable.pred);


setColor(mSeekBar ,BarColor.RED);
mSeekBar.setOnSeekBarChangeListener(this);
mProgressText = (TextView) findViewById(R.id.progress);
mTrackingText = (TextView) findViewById(R.id.tracking);

}

public void onProgressChanged(SeekBar seekBar, int progress,
boolean fromTouch) {
mProgressText.setText(progress + " " + "seekbar_from_touch"
+ "=" + fromTouch);

BarColor color;
if(progress < 33)
color = BarColor.RED;
else if ((progress>=33) && (progress<66))
color = BarColor.BLUE;
else
color = BarColor.GREEN;
if(color!=mcolor)
setColor(seekBar,color);

}



public void onStartTrackingTouch(SeekBar seekBar) {
mTrackingText.setText("seekbar_tracking_on");
}

public void onStopTrackingTouch(SeekBar seekBar) {
mTrackingText.setText("seekbar_tracking_off");
}
}


main.xml:

http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">










pblue.xml(pred.xml and pgreen.xml are different only for the progress
layer):



http://schemas.android.com/apk/res/
android">




























Can someone 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] CountDownTimer

2009-11-16 Thread MarkN
I'm working on an Android game and need to have a timer for each
level.  The CountDownTimer is almost perfect except for one thing.
During game play, it possible to add time to the timer and I don't see
a way to do that with the CountDownTimer.

Can anyone think of a way where I can have a countdown timer but also
change the time remaining while it is counting down?

Thanks,
MarkN

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


[android-developers] Detecting default zoom in browser

2009-11-16 Thread Jason
This group seems to be mostly for native app developers but I have a
question for the browser. Is there a way to detect the default zoom
level (or possibly dpi) using JS. Or maybe to force the zoom level
using the viewport tag. Right now it scales all images and text on the
page, but the image scaling ends up leaving the images slightly
blurry. It also means that we can't size images for the 'Far' zoom
level because they won't fit under medium level.

This only seems to be a problem on the Droid as older phones have
medium zoom levels.

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


[android-developers] SQLiteOpenHelper.getWriteableDatabase() null pointer exception

2009-11-16 Thread drewda
I've had fine luck using SQLite with straight, direct SQL, but this is
the first time I'm wrapping a DB in a ContentProvider. I keep getting
a null pointer exception when calling getWritableDatabase() or
getReadableDatabase(). Is this just a stupid mistake I've made with
initializations in my code or is there a bigger issue?

public class DatabaseProvider extends ContentProvider {
  ...
  private DatabaseHelper   databaseHelper;
  private SQLiteDatabase   db;
  ...
  @Override
  public boolean onCreate() {
databaseHelper = new DatabaseProvider.DatabaseHelper(getContext
());
return (databaseHelper == null) ? false : true;
  }
  ...
  @Override
  public Uri insert(Uri uri, ContentValues values) {
db = databaseHelper.getWritableDatabase(); // NULL POINTER
EXCEPTION HERE
...
  }
  private static class DatabaseHelper extends SQLiteOpenHelper {
public static final String DATABASE_NAME = "cogsurv.db";
public static final int DATABASE_VERSION = 1;

public static final String[] TABLES = {
  "people",
  "travel_logs",
  "travel_fixes",
  "landmarks",
  "landmark_visits",
  "direction_distance_estimates"
};

// people._id does not AUTOINCREMENT, because it's set based on
server's people.id
public static final String[] CREATE_TABLE_SQL = {
  "CREATE TABLE people (_id INTEGER PRIMARY KEY," +
 "server_id INTEGER," +
 "name VARCHAR(255)," +
 "email_address VARCHAR(255))",
  "CREATE TABLE travel_logs (_id INTEGER PRIMARY KEY
AUTOINCREMENT," +
"server_id INTEGER," +
"person_local_id INTEGER," +
"person_server_id INTEGER," +
"start DATE," +
"stop DATE," +
"type VARCHAR(15)," +
"uploaded VARCHAR(1))",
  "CREATE TABLE travel_fixes (_id INTEGER PRIMARY KEY
AUTOINCREMENT," +
 "datetime DATE, " +
 "latitude DOUBLE, " +
 "longitude DOUBLE, " +
 "altitude DOUBLE," +
 "speed DOUBLE," +
 "accuracy DOUBLE," +
 "travel_mode VARCHAR(50), " +
 "person_local_id INTEGER," +
 "person_server_id INTEGER," +
 "travel_log_local_id INTEGER," +
 "travel_log_server_id INTEGER," +
 "uploaded VARCHAR(1))",
  "CREATE TABLE landmarks (_id INTEGER PRIMARY KEY AUTOINCREMENT,"
+
  "server_id INTEGER," +
  "name VARCHAR(150)," +
  "latitude DOUBLE," +
  "longitude DOUBLE," +
  "person_local_id INTEGER," +
  "person_server_id INTEGER," +
  "uploaded VARCHAR(1))",
  "CREATE TABLE landmark_visits (_id INTEGER PRIMARY KEY
AUTOINCREMENT," +
"server_id INTEGER," +
"person_local_id INTEGER," +
"person_server_id INTEGER," +
"landmark_local_id INTEGER," +
"landmark_server_id INTEGER," +
"travel_log_local_id INTEGER," +
"travel_log_server_id INTEGER," +
"datetime DATE," +
"number_of_questions_asked
INTEGER," +
"uploaded VARCHAR(1))",
  "CREATE TABLE direction_distance_estimates (_id INTEGER PRIMARY
KEY AUTOINCREMENT," +
 "server_id INTEGER,"
+
 "person_local_id
INTEGER," +
 "person_server_id
INTEGER," +
 "travel_log_local_id
INTEGER," +
 "travel_log_server_id
INTEGER," +
 
"landmark_visit_local_id INTEGER," +
 
"landmark_visit_server_id INTEGER," +
 
"start_landmark_local_id INTEGER," +
 
"start_landmark_server_id INTEGER," +
 
"target_landmark_local_id INTEGER," +
 
"target_landmark_server_id INTEGER," +
 "datetime DATE," +
 "direction_estimate
DOUBLE," +
 "distance_estimate
DOUBLE," +
 "uploaded VARCHAR
(1))"
};

public Data

[android-developers] Passing referrer from weblink into app

2009-11-16 Thread edtiger
I noticed GoogleAnalytics for Android Apps can now pull referrer data
from weblinks to the Android Market into downloaded applications
(http://code.google.com/apis/analytics/docs/tracking/
mobileAppsTracking.html).  Is that referrer data available through the
Android SDK to the actual applications?  If not, is there some kind of
web service or API that would provide access to this referrer data?

I've made the suggested mods to AndroidManifest.xml but can't find any
documentation on how to pull the referrer value into the app.  I've
also searched the forums and can't find any reference to accessing
referrer besides the url above.

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


[android-developers] Multiline Buttons..?

2009-11-16 Thread VBMichi
Hi,

I am searching for help with a multiline button since 6 days.
Maybe someone of you can help me.
I've also posted my question in den android-beginner google group.
Sorry for crossposting.

I have a button:




How can I set each word which is in android:text in a seperate line in
the button?

I've allready tried;

android:text="This\nis\na\ntest!" and
android:singleLine="false" and
android:lines="4"

Nothing seems to work.

Thanks for you help!

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


Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread Sou Dai
To be honest, I don't like the unknown permitssion.  I have ever used an
input method which is amazing. But it needs locating permitssion. I don't
know why. So, I abandoned it.

2009/11/17 Jason Van Anden 

> On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software
>  wrote:
> > If I don't believe an application should require Internet, I don't
> > install it. I hope that there are others who do the same. To require
> > internet permissions (with the current generic internet permission) on
> > an app which really does not need it, such as aiFlashlight, gives me
> > reason to question the motives of that developer. I ask myself "Now,
> > why the heck would a flashlight app require internet permissions?" ...
>
> Here's an answer: Maybe its a good way to understand if the
> application works in the field, like ... to get error messages and
> such?  Or perhaps its a good way to understand how and if users
> actually use the app or prefer particular features?
>
> I have some paranoid user who regularly updates a comment on my apps
> Market listing with something like "Why would a music app that plays
> local files need internet access?  Spying?"  Um ... so if I had a
> streaming music app ... uh, then what?  There would be no suspicion of
> spying?
>
> :)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
All those moments will be lost in time, just like tears in rain.

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

2009-11-16 Thread Dave
These two Issues seem to be identical to me.  We submitted our app
with copy-protection turned on (not aware of these issues, nor of the
fact that some people wouldn't be able to download our app as a
result).  We'd now like to turn copy-protection off so everyone can
use our app.  But before hosing all our users running Android 1.5, it
would be nice to know which release (1.5 or 1.6) actually fixed this
issue.

Am I misreading the two Issue reports?

Has anyone switched their app from copy-protection to no copy-
protection and had issues with force closes for users running Android
1.5?

Thanks,
-dave

On Nov 12, 11:32 pm, tauntz  wrote:
> >> When a bug is marked as "FutureRelease" it usually means it will be
> >> fixed in the next release at the time the bug is closed.
>
> http://code.google.com/p/android/issues/detail?id=2263was marked as
> "FutureRelease" @ Mar 21, 2009 so it should be fixed in Android 1.5 -
> that was the next version after this date (first SDK released on 13
> April 2009).
>
> http://code.google.com/p/android/issues/detail?id=2047was marked as
> "FutureRelease" @ Apr 20, 2009 so it should be fixed in Android 1.6 -
> that was the next version after this date (released on 15 September
> 2009).
>
> Tauno
>
>
>
> On Thu, Nov 12, 2009 at 10:28 PM, Matt Hall  wrote:
> > So can I take that to mean that that the bug exists in all current
> > releases including 2.0? I could really use some concrete info on this
> > particular issue as it affects most of our apps and the enlarged
> > bundle size is becoming a real problem on Droid.
>
> > Thanks very much,
> > Matt
>
> > On Nov 12, 3:22 pm, Romain Guy  wrote:
> >> When a bug is marked as "FutureRelease" it usually means it will be
> >> fixed in the next release at the time the bug is closed. Anyhow, it
> >> means the bug has been fixed and will eventually reach users phones :)
>
> >> On Thu, Nov 12, 2009 at 9:07 AM, Neiman Buffard  
> >> wrote:
> >> > ok for starters im pretty sure im not doin this right but i wanted to 
> >> > throw
> >> > an idea at anyone who would take the time to read/listen for upgrades to
> >> > come if it cant make the cut for the next one. I would like to see this 
> >> > done
> >> > in an upgrade instead of an app only because i feel that this is somthin
> >> > everyone would enjoy. BIG PICTURES i feel that  When ur favorite
> >> > contacts/friends call and u have a customized ring tone and possibly an
> >> > assigned contact photo would it be askin to much to utilize the  3.2-inch
> >> > TFT-LCD flat touch-sensitive screen with 320 x 480 (HVGA) resolution for
> >> > that photo. Very simple yes i know however we are limited to that small
> >> > picture with out even being givin the option as to weather you' like it 
> >> > that
> >> > small or not.
> >> > just a thought i've had for some time now that i wanted to share thanks 
> >> > for
> >> > listening follow android but more specificly G1 users
> >> > On Thu, Nov 12, 2009 at 12:02 PM, Matt Hall  wrote:
>
> >> >> Can anyone from Google comment on the status of the followingcopy
> >> >>protectionrelated bugs:
>
> >> >>http://code.google.com/p/android/issues/detail?id=2047
> >> >>http://code.google.com/p/android/issues/detail?id=2263
>
> >> >> They're marked fixed in a future release, but I don't know what
> >> >> release (if any) that means.
>
> >> >> I'd love to revert to nocopyprotectionon our games for a number of
> >> >> pressing reasons, but these bugs bit us pretty bad last time I tried.
>
> >> >> Any info much appreciated, thanks.
> >> >> Matt
>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups "Android Developers" group.
> >> >> To post to this group, send email to android-developers@googlegroups.com
> >> >> To unsubscribe from this group, send email to
> >> >> android-developers+unsubscr...@googlegroups.com
> >> >> For more options, visit this group at
> >> >>http://groups.google.com/group/android-developers?hl=en
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  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

[android-developers] Displaying Text such as score in an OpenGL game

2009-11-16 Thread Kevin S.
   I have a the beginnings of an Open GL game running, and have gotten
to the point where it would be nice to have the FPS displayed.  Since
I will probably want to be able to put score or other info up anyway,
I started searching for how to do that.

  I found the SpriteTest example,

http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/OpenGLES/SpriteText/

  It looks nice, but really complex.   Is there an easier way?

-Kevin


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

2009-11-16 Thread hotspring
I had the same error message for an avd creation command and got the
following messages with empty list  when I issued list targets
command.
What should i check for sdk? add-ons directory has three subfolders
google_apis-3-r03, subfolders google_apis-4-r01, and subfolders
google_apis-5-r01 and platforms folder and temp folders are empty. By
the way, I am using Windows XP.

C:\Tool\Android\sdk\tools>android list targets
Error: Ignoring add-on 'google_apis-3-r03': Unable to find base
platform with AP
I level '3'
Error: Ignoring add-on 'google_apis-4-r01': Unable to find base
platform with AP
I level '4'
Error: Ignoring add-on 'google_apis-5_r01': Unable to find base
platform with AP
I level '5'
Available Android targets:

On Nov 15, 11:41 pm, Asif k  wrote:
> Same command I had copied and pasted in my command prompt and one avd
> is created successfully. So please check the sdk that u had
> downloaded.
>
> Check with "android list target" in command prompt that what
> target_id : 2.
>
> Thanks,
> Asif
>
> On Nov 15, 7:20 pm, Onnlist  wrote:
>
> > Hello All,
>
> > I am new to Android development. I have installed Eclipse 3.5, SDK and
> > ADT plugin successfully.
> > But I am receiving followingerrorto create an AVD -
>
> > C:\android-sdk-windows\tools>android create avd --target 2 --name
> > my_avd
> >Error:Ignoringadd-on'google_apis-3-r03':Unabletofindbase
> >platformwith APIlevel'3'
> >Error:Ignoringadd-on'google_apis-4-r01':Unabletofindbase
> >platformwith APIlevel'4'
> >Error:Ignoringadd-on'google_apis-5_r01':Unabletofindbase
> >platformwith APIlevel'5'
> >Error: Target id is not valid. Use 'android.bat list targets' to get
> > the target ids.
>
> > Please advise if i am missing any step - not sure why i am getting
> > aboveerror
>
> > Thank you so much in advance.
>
> > Jagdish

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

2009-11-16 Thread JoseM
I am able to see the app on the Market when I searched for Money Now.
I am in the NYC area.

On Nov 15, 12:19 am, Kumaravel Kandasami
 wrote:
> Did NOT see my app (Money Now Preview) on the VERIZON new DROID phone.
>
> I personally searched for my app on the Market app  - Weird did not see the
> app on my friends phone.
>
> Weird !! Looks like there could some settings on the phone or need to change
> any thing on my app .. not clue.
>
> Any suggestions/recommendations !?
>
> Kumar    _/|\_www.saisk.com
> ku...@saisk.com
> "making a profound difference with knowledge and creativity..."
>
> On Thu, Nov 12, 2009 at 10:40 PM, Kumaravel Kandasami <
>
> kumaravel.kandas...@gmail.com> wrote:
> > Thank You very much Scott.
>
> > Kumar    _/|\_
> >www.saisk.com
> > ku...@saisk.com
> > "making a profound difference with knowledge and creativity..."
>
> > On Thu, Nov 12, 2009 at 10:32 PM, SoftwareForMe.com SoftwareForMe.com <
> > softwareforme@gmail.com> wrote:
>
> >> Your Manifest looks fine.
>
> >> I have a Droid. I searched the market and found "MoneyNow - Preview," by
> >> SAISK LLC. If that's you, you're AOK.
>
> >> Scott
> >> SoftwareForMe.com
>
> >> On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami <
> >> kumaravel.kandas...@gmail.com> wrote:
>
> >>> BTW, additionally I have "ON" ed the copy protection in the Android
> >>> Market.*
>
> >>> **"On (Helps prevent copying of this application from the device.
> >>> Increases the amount of memory on the phone required to install the
> >>> application.)"*
>
> >>> Kumar    _/|\_
> >>>www.saisk.com
> >>> ku...@saisk.com
> >>> "making a profound difference with knowledge and creativity..."
>
> >>> On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami <
> >>> kumaravel.kandas...@gmail.com> wrote:
>
>  Thanks Dianne Hackborn.
>  This is my entire manifest file, I have just renamed the classes for
>  this email.
>
>  http://schemas.android.com/apk/res/android";
>        package="com.saisk.moneynow"
>        android:versionCode="2"
>        android:versionName="Preview 1.0">
>     
>       android:name="android.permission.ACCESS_NETWORK_STATE" />
>                      android:name="myApplication"
>                 android:icon="@drawable/mn"
>                 android:label="@string/app_name"
>                 android:windowNoTitle="true">
>
>                              android:configChanges="keyboardHidden|orientation"
>                    android:theme="@android:style/Theme.NoTitleBar">
>              
>                  
>                    android:name="android.intent.category.LAUNCHER" />
>              
>          
>      
>
>      
>  
>
>  Kumar    _/|\_
> www.saisk.com
>  ku...@saisk.com
>  "making a profound difference with knowledge and creativity..."
>
>  On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn 
>  wrote:
>
> > What else is in your manifest?
>
> > On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami <
> > kumaravel.kandas...@gmail.com> wrote:
>
> >> I just got a call from my friend saying that she is not able to see
> >> our App: "Money Now" on her Droid phone.
>
> >> I have declared in manifest.xml as
> >> 
>
> >> Is there anything that I am missing to have my app be displayed on the
> >> DROID Phones or it is an user error.
>
> >> Appreciate your response.
>
> >> Thanks,
> >> Kumar    _/|\_
> >>www.saisk.com
> >> ku...@saisk.com
> >> "making a profound difference with knowledge and creativity..."
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> >> android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support, and so won't reply to such e-mails.  All 
> > such
> > questions should be posted on public forums, where I and others can see 
> > and
> > answer them.
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to
> > android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Dev

[android-developers] Re: compiling phone app

2009-11-16 Thread drewda
There are many different reasons why your project isn't compiling, but
one of the simplest and most common ones I've found is that I
sometimes accidentally build against one of the Android open source
APIs, when I actually need to be building against one of the Google
API releases, in order to make use of things like the maps library
that aren't part of the open source APIs.

Project > Properties > Android > Project Build Target

Hope this helps,
Drew

On Nov 16, 12:40 am, moon2009  wrote:
>  Hi all,
> I want to compile phone app in eclipse but after downloading and
> building project ,i have so many compile errors.
> it seems that the functions in sdk is not enough for compiling,should
> i add anything else to build path?
> 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] DEbug Webkit

2009-11-16 Thread neha
Hi,

Can anyone please help me out of this :

I have downloaded android source code 1.6. on Ubuntu 8.04.
I have built it and launched the emulator.
I have dual boot on my machine not VM.

I want to debug Webkit in android source code to get the render tree
and dump it into some file.

Could you please provide me the steps.

I have some steps to setup for debugging  and using those when i try
to start DDMS from shell i get the following error :

r...@ps0585:/root/mydroid/out/host/linux-x86/bin# ddms shell
SWT folder '/root/mydroid/out/host/linux-x86/framework/x86' does not
exist.
Please export ANDROID_SWT to point to the folder containing swt.jar
for your platform.


I have also added the path of DDMS to env variable PATH.

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

2009-11-16 Thread yidongsoft
One effective way I have ever considered is:
Market application maintains a list which contains the buying
information for all the applications. Example:
App foo: packageName;orderNumber;...

Market check the list period: check all the order number with the
google count in the mobile; if the orderNumber empty or illegal, check
the app state: if not free, unstall it. For a better convenience,
market app should at least check the app after 2 days the user install
it.

What's your idea? Thanks!

Yidongsoft

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

2009-11-16 Thread 3pei
for example, when i use

make external/zlib/android.mk

it tells me 'Nothing to be done for external/zlib/android.mk'

what should i do?

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


[android-developers] Re: Shape with open border

2009-11-16 Thread Matthew Wardrop
I too would like to know this.

On Oct 23, 1:31 pm, junker37  wrote:
> I am wondering how to do this as well.  Also, I can't seem to find
> where this is documented.
>
> On Oct 19, 4:19 am, Viktor Bresan  wrote:
>
> > Hi all.
>
> > I would like to have ashapethat hasborderonly on 3 sides: top,
> > left and right, i.e. I want bottom to beopen.  How can I achieve that
> > definingshapeinXML?
>
> > Currently I have a normal 4 sideborderusing the followingshapeXML
> > definition:
>
> > 
> > http://schemas.android.com/apk/res/android";
> >     android:layout_width="fill_parent"
> >     android:layout_height="fill_parent"
> >         >
>
> >          >                    />
>
> >      >                 android:color="#808480"
> >                 />
>
> >      >                  android:top="1dp"
> >              android:right="1dp"
> >              android:bottom="1dp"
> >              />
> > 
>
> > Many thanks, Viktor.

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


[android-developers] Using SAP JCO 3.x

2009-11-16 Thread Vaib
Hi,

I'm trying to use SAP JCO 3.x to connect to SAP Server and getting an
error message that process is stopped unexpectedly. Could someone help
me?

Vaib

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

2009-11-16 Thread Dave
It seems to me that these two Issues are identical.  We submitted our
app with copy protection turned on.  We would now like to turn it off
(so people with rooted and developer devices can download it), but we
don't want to cause crashes on all of our users on Android 1.5.

Am I missing something here?

Has anyone switched from copy protection to no copy protection and
been OK with Android 1.5?

Thanks,
-dave

On Nov 12, 11:32 pm, tauntz  wrote:
> >> When a bug is marked as "FutureRelease" it usually means it will be
> >> fixed in the next release at the time the bug is closed.
>
> http://code.google.com/p/android/issues/detail?id=2263was marked as
> "FutureRelease" @ Mar 21, 2009 so it should be fixed in Android 1.5 -
> that was the next version after this date (first SDK released on 13
> April 2009).
>
> http://code.google.com/p/android/issues/detail?id=2047was marked as
> "FutureRelease" @ Apr 20, 2009 so it should be fixed in Android 1.6 -
> that was the next version after this date (released on 15 September
> 2009).
>
> Tauno
>
>
>
> On Thu, Nov 12, 2009 at 10:28 PM, Matt Hall  wrote:
> > So can I take that to mean that that the bug exists in all current
> > releases including 2.0? I could really use some concrete info on this
> > particular issue as it affects most of our apps and the enlarged
> > bundle size is becoming a real problem on Droid.
>
> > Thanks very much,
> > Matt
>
> > On Nov 12, 3:22 pm, Romain Guy  wrote:
> >> When a bug is marked as "FutureRelease" it usually means it will be
> >> fixed in the next release at the time the bug is closed. Anyhow, it
> >> means the bug has been fixed and will eventually reach users phones :)
>
> >> On Thu, Nov 12, 2009 at 9:07 AM, Neiman Buffard  
> >> wrote:
> >> > ok for starters im pretty sure im not doin this right but i wanted to 
> >> > throw
> >> > an idea at anyone who would take the time to read/listen for upgrades to
> >> > come if it cant make the cut for the next one. I would like to see this 
> >> > done
> >> > in an upgrade instead of an app only because i feel that this is somthin
> >> > everyone would enjoy. BIG PICTURES i feel that  When ur favorite
> >> > contacts/friends call and u have a customized ring tone and possibly an
> >> > assigned contact photo would it be askin to much to utilize the  3.2-inch
> >> > TFT-LCD flat touch-sensitive screen with 320 x 480 (HVGA) resolution for
> >> > that photo. Very simple yes i know however we are limited to that small
> >> > picture with out even being givin the option as to weather you' like it 
> >> > that
> >> > small or not.
> >> > just a thought i've had for some time now that i wanted to share thanks 
> >> > for
> >> > listening follow android but more specificly G1 users
> >> > On Thu, Nov 12, 2009 at 12:02 PM, Matt Hall  wrote:
>
> >> >> Can anyone from Google comment on the status of the followingcopy
> >> >>protectionrelated bugs:
>
> >> >>http://code.google.com/p/android/issues/detail?id=2047
> >> >>http://code.google.com/p/android/issues/detail?id=2263
>
> >> >> They're marked fixed in a future release, but I don't know what
> >> >> release (if any) that means.
>
> >> >> I'd love to revert to nocopyprotectionon our games for a number of
> >> >> pressing reasons, but these bugs bit us pretty bad last time I tried.
>
> >> >> Any info much appreciated, thanks.
> >> >> Matt
>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups "Android Developers" group.
> >> >> To post to this group, send email to android-developers@googlegroups.com
> >> >> To unsubscribe from this group, send email to
> >> >> android-developers+unsubscr...@googlegroups.com
> >> >> For more options, visit this group at
> >> >>http://groups.google.com/group/android-developers?hl=en
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  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

-- 
You received this message because you are subscribed to the Google
Groups "Android De

Re: [android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-11-16 Thread SoftwareForMe.com SoftwareForMe.com
I have no idea, but I've also noticed the Browser taking an inordinately
long time to fetch pages, the Android Market often failing, and other
networking issues. I wonder why this doesn't seem to be more well known?

Scott
SoftwareForMe.com
Makers of PhoneMyPC

On Mon, Nov 16, 2009 at 3:12 PM, Mark Wyszomierski  wrote:

> I don't understand this - how are people getting around this?
> Restarting the app probably isn't too pleasant for the user!
>
> Thanks
>
> On Nov 15, 2:27 pm, "SoftwareForMe.com SoftwareForMe.com"
>  wrote:
> > I have seen this too, but what's worse, I've found socket connections
> taking
> > to long to connect, even when not using DNS.
> >
> > For example, our software can connect to a PC via LAN using an IP
> address.
> > Sometimes it will take > 5 seconds, sometimes it will time out. In either
> > case, after such a failure, if I close and re-run the app, it connects
> > immediately.
> >
> > This problem started around the time 1.6 was released.
> >
> > SoftwareForMe.com
> > Makers of PhoneMyPC
> >
> > On Sun, Nov 15, 2009 at 10:33 AM, Mark Wyszomierski  >wrote:
> >
> >
> >
> >
> >
> > > How are you all getting around this issue? I am running into it on
> > > some phones given out as demos (G1s running 1.5). About 50% of the
> > > time, my network requests will just hang for about two minutes, then
> > > throw:
> >
> > >   java.net.UnknownHostException: Host is unresolved: myapi.me.com:80
> >
> > > this looks embarrassing since the users can open pages through the
> > > browser ok - what is going on?
> >
> > > Thanks
> >
> > > On Oct 26, 10:05 am, purvi  wrote:
> > > > Hello,
> >
> > > > I am also facing the same problem. I am using a handler to fetch the
> > > > data coming from the network request. I am thinking to throw an alert
> > > > message to the user from my app indicating "No Response from Network"
> > > > or "Network down" or somthing like that so that the user donot see
> any
> > > > error and the user himself restart the app or take corresponding
> steps
> > > > instead of showing user an error. But I system gets to know that
> there
> > > > is no network after all my queries are manipulated and so I dont know
> > > > where exactly can I handle this error. I am able to made it print in
> > > > my LogCat "error[URL not found]" so it doesnot give any "Force Close
> > > > error" but I want the user to be notified about this.
> >
> > > > Can you please comment on this and incase if you can help me out with
> > > > this?
> >
> > > > Thanks a lot.
> > > > Regards,
> > > > Purvi
> >
> > > > On Oct 15, 2:26 am, "tomei.ninge...@gmail.com"
> >
> > > >  wrote:
> > > > > More info: I found out that the web site returns multiple IP
> addresses
> > > > > on the DNS lookup (see the "Resolving i2.sinaimg.cn line below).
> This
> > > > > appears to be for load balancing purposes. Could this be the reason
> > > > > that got Android confused?
> >
> > > > > $ wgethttp://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg
> > > > > --23:20:59--  http://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg
> > > > >=> `20091014235428.jpg.1'
> > > > > Resolving i2.sinaimg.cn... 61.172.207.61, 61.172.207.62,
> > > > > 61.172.207.64, ...
> > > > > Connecting to i2.sinaimg.cn|61.172.207.61|:80... connected.
> > > > > HTTP request sent, awaiting response... 200 OK
> > > > > Length: 93,820 (92K) [image/jpeg]
> >
> > > > > On Oct 14, 9:53 pm, "tomei.ninge...@gmail.com"
> >
> > > > >  wrote:
> > > > > > My problem may not be the same. I got this only on actual G1
> device,
> > > > > > not on emulator.
> >
> > > > > > Also, if G1 is connect to my home WiFi network (comcast), the DNS
> for
> > > > > > i0.sinaimg.cn is resolved without any problem. However, if I
> > > > > > disconnect Wifi and use TMO USA 3G network, the DNS never
> resolves.
> >
> > > > > > On Oct 14, 9:29 pm, for android  wrote:
> >
> > > > > > >http://code.google.com/p/android/issues/detail?id=2764
> >
> > > > > > > On Thu, Oct 15, 2009 at 4:40 AM, tomei.ninge...@gmail.com <
> >
> > > > > > > tomei.ninge...@gmail.com> wrote:
> >
> > > > > > > > Hello,
> >
> > > > > > > > This happens only when my G1 phone is on T-Mobile network:
> >
> > > > > > > > I found that when I try to go to the browser, and type the
> > > address
> >
> > > > > > > >http://i0.sinaimg.cn/
> >
> > > > > > > > The browser tries to load the page, but no progress is shown
> for
> > > more
> > > > > > > > than 2 minutes.
> >
> > > > > > > > (I have full 3G signal; all other addresses work just fine)
> >
> > > > > > > > Eventually when I tried to access this URL in my Java code, I
> > > found a
> > > > > > > > similar long delay when I try to open the HttpUrlConnection,
> and
> > > > > > > > eventually I get thisexception:
> >
> > > > > > > > I/InetAddress( 1940):Unknownhosti0.sinaimg.cn, throwing
> > > > > > > > UnknownHostException
> > > > > > > > W/System.err( 1940): java.net.UnknownHostException:Hostis
> > > > > > > > unresolved: i0.sinaimg.cn:80
> > > > > > > > 

Re: [android-developers] Re: Be Careful of Upgrading App with New SDK Version

2009-11-16 Thread SoftwareForMe.com SoftwareForMe.com
Yes, exactly. This "fat binary" method is the simplest to maintain as well
because you can keep just one codebase.

SoftwareForMe.com
Makers of PhoneMyPC

On Mon, Nov 16, 2009 at 10:19 PM, siuying  wrote:

> You may use minSdkVersion=3, and within the code, use reflection or
> other means to determine the capabilities of the device, and use only
> supported API on the device. Check the android blog related post
> (http://android-developers.blogspot.com/2009/04/backward-compatibility-
> for-android.html) for details.
>
> This mean extra works, and it seems the only way to go.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Warm regards,
The PhoneMyPC Team

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Be Careful of Upgrading App with New SDK Version

2009-11-16 Thread siuying
You may use minSdkVersion=3, and within the code, use reflection or
other means to determine the capabilities of the device, and use only
supported API on the device. Check the android blog related post
(http://android-developers.blogspot.com/2009/04/backward-compatibility-
for-android.html) for details.

This mean extra works, and it seems the only way to go.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Be Careful of Upgrading App with New SDK Version

2009-11-16 Thread Nivek
I think you have to manage yourself different editions of your app in
the market.

jeffro a écrit :
> I thought I would just post this to let other devs know about this
> issue.  You should think carefully before posting a new version of
> your app that uses new features from Android 1.6 or Android 2.0.  I
> have released a new app version that takes advantage of new Android
> 1.6 features.  Because of this I have set android:minSdkVersion="4".
> This means now that devices that are still running Android 1.5 (HTC
> Hero and the upcoming Samsung Behold II) do not see my app at all.
> Ideally, the Android Market should allow the previous version of my
> app to remain in the market so that Android 1.5 devices can still
> purchase the older version until these devices are upgraded.  I guess
> this is some of the device fragmentation issues folks are talking
> about.  If someone knows a workaround, please post.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 preserve old Db table, while adding new table columns for new version of app?

2009-11-16 Thread Moritzz
http://cart.kolix.de/?p=1217

On 17 Nov., 04:26, "jagtap.jj"  wrote:
> Thanks for reply
>
> Flying Coder your approach looks smart,
> How it will be for remote update, will it give proper results for apps
> version up-gradation remotely.
>
> Thank you.
>
> On Nov 16, 12:57 pm, Flying Coder  wrote:
>
> > Override the onUpdate method of SQLiteOpenHelper and do:
>
> > if (oldVersion < VERSION_WHEN_COLUMN_ADDED)
> >      db.execSQL("alter table " + TABLE_NAME + " add column " +
> > COLUMN_NAME + " " + COLUMN_TYPE + ";");
>
> > Cheers,
> > Steve
>
> > On Nov 16, 8:17 am, "jagtap.jj"  wrote:
>
> > > Hello everybody
>
> > > Is there way for Android or in SQLite to preserve old version Db table
> > > columns, while adding new table columns for new version.
>
> > > The new application version should not vanish all user data from old
> > > version.
>
> > > Any suggestions?

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


[android-developers] fwd: get the file path from a URI instance

2009-11-16 Thread Abhi
Hi Dianne,

I am trying to do the following.

I have an Image viewer where in the user picks an Image from within
the gallery. The uri to that selected Image is available to me. Now, I
want to use this URI information and send it as a file over a socket
using FileInputStream. Is this a valid syntax to perform the above
action?

  FileInputStream fis = new FileInputStream(uri.getPath()); //
Here uri is the URI of the selected Image
  byte[] buffer = new byte[fis.available()];
  fis.read(buffer);

  ObjectOutputStream oos = new ObjectOutputStream
(socket.getOutputStream());
  oos.writeObject(buffer);

Please help me to move forward.

Thanks,

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 apply our settings to selected text instead of all text in Edit text View

2009-11-16 Thread Ram
Hi Androids,
I have a problem as follows:

In my project i am having rich text editor options to apply for the
edit text view.
In that i applied font color,font names,font size options for user.But
these options will apply for whole text available in edit text.
But my problem is i want to apply user selected settings (like font
color,size,font) for user selected text instead of Whole text.
i want to apply the user selected font/color/size to the user selected
text.How?

How to implement this .
If any body knows answer please let me know that thing.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: onSearchRequested() doesn't call search activity in 1.5

2009-11-16 Thread Miguel Paraz


On Nov 10, 9:13 pm, Miguel Paraz  wrote:
> Hi,
> I'm now trying this on a more complicated app.
> It doesn't work.
> On the 1.5 emulator, nothing happens when onSearch() is called.
> On the HTC Magic, the Google Search box appears.
> The manifest is the same as my test app that works.


I found the problem.

meta-data android:value MUST have the leading "." in the class name,
while it is apparently optional in the activity definitions.

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

2009-11-16 Thread Matt Hall
Hi Everyone,

We're interested in animating the bounds of children in a ViewGroup.
So to be clear, not quite how layout animations are set up now with
scale or translation animation of children - but with the bounds of
the children changing and recalculating the contents of the views at
each point in the animation. For example, a ViewGroup with two equally
sized children where we want to animate an extension of the bottom of
the first child's view. I don't see any way to do with with the
current animation framework, so we were thinking of basically
calculating the desired end point for the layout and running an
interpolator that calls requestLayout() at each step. Inside onLayout
() we then calculate where we should lay out the children based on the
animation's progress.

Is that the only/best way to do it, or am I missing something easy?

Thanks,
Matt

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


[android-developers] I/NotificationService( 55): enqueueToast pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub $pr...@4323b8f8 duration=1000

2009-11-16 Thread human android
I/NotificationService(   55): enqueueToast pkg=net.robmunro.mypod
callback=android.app.ITransientNotification$Stub $pr...@4323b8f8
duration=1000

When does this log get displayed and what does it mean?

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


Re: [android-developers] ViewGroup to child

2009-11-16 Thread Romain Guy
((View) getParent()).getTag() :)

On Tue, Nov 17, 2009 at 4:58 AM, GPU  wrote:
> Hi ,
>
> I want to share the same view.mTag value  of a viewgroup  to all the
> childs under that viewgroup.
>
> Like all childs should call the getTag() of viewgroup to get the
> tag .How can i do that ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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] Be Careful of Upgrading App with New SDK Version

2009-11-16 Thread jeffro
I thought I would just post this to let other devs know about this
issue.  You should think carefully before posting a new version of
your app that uses new features from Android 1.6 or Android 2.0.  I
have released a new app version that takes advantage of new Android
1.6 features.  Because of this I have set android:minSdkVersion="4".
This means now that devices that are still running Android 1.5 (HTC
Hero and the upcoming Samsung Behold II) do not see my app at all.
Ideally, the Android Market should allow the previous version of my
app to remain in the market so that Android 1.5 devices can still
purchase the older version until these devices are upgraded.  I guess
this is some of the device fragmentation issues folks are talking
about.  If someone knows a workaround, please post.

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

2009-11-16 Thread Nightwolf
"Only 20% of all installs are legal, other 80% are in
piracy hands."

I believe that in case of perfect copy protection only few of that 80%
would buy your app.

On 16 ноя, 14:12, AlexK  wrote:
> Our company starts today anti-piracy initiative against piracy that
> already happened on Android Market. We request all vendors and
> developers to support this initiative.
>
> Piracy become a threat for vendors that publishing application on
> Android Market! It is not a joke, it is a real threat.
>
> Our last application publishing shows how bad is situation on the
> Android Market. Only 20% of all installs are legal, other 80% are in
> piracy hands.
>
> Google does not provide any actions to stop piracy, so we as a vendor
> that provide software for Android Market, have to think about
> protection measures. Piracy is threat that cannot be target easily and
> eliminated in one day. Only join of all vendors can help in anti-
> piracy.
>
> ArtfulBits company decide to start from today "Android Anti-piracy
> Movement" with main goal: "protect vendors and punish piracy".
>
> Our next steps are:
> - Petition to Google with request to provide better anti-piracy
> protocols for Android Market;
> - Collective anti-Google charge, from side of vendors that loose money
> due to Google "security holes" in Android Market application
> distribution channel;
> - Public web service "Black List", that helps all developer to check
> is there application installed on pirate phone;
> - Joining of the software vendors over that problem for finding better
> anti-piracy strategies;
> - Identification of the roots of piracy, that make possible Android
> Market software leaking and contribution them to justice.
>
> A little later today we will open "black-list" database of devices,
> where was installed stolen version of applications. In addition, we
> will provide "easy code" for all developers that can be integrated
> into own application and during first start, check is phone in "black
> list" or not.
>
> Opened Anti-Piracy forum thread:http://www.artfulbits.com/Support
> Petition can be signed 
> here:http://www.petitionspot.com/petitions/androidpiracy
>
> Stay tuned! Thanks.

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


Re: [android-developers] Autohide Scrollbar in ListView

2009-11-16 Thread Dianne Hackborn
This is not a standard part of the Android UI, though support for this kind
of behavior was introduced in 2.0 (but not used in ListView since that is
not the standard behavior for it).

On Mon, Nov 16, 2009 at 6:43 PM, NoraBora  wrote:

> How can I autohide scrollbar in ListView?
>
> I thought there would be an autohide attribute for ListView but there
> isn't.
>
> What I want to do is
>
> scrollbar is hidden at first
>
> when I touch the listview, scrollbar appears
>
> 2~3 seconds after the touch off, scrollbar disappears again.
>
> What is the easiest way to do 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
>



-- 
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: View background color animation

2009-11-16 Thread Digital Agua
Thanks, for the lead. I appreciate it, and it worked. I ended up
extending the TransitionDrawable class so I could easily set and
animate the color.  The code is below for anybody who is interested.

package com.digitalagua.view;

import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.TransitionDrawable;

public class BGColorTransitionDrawable extends TransitionDrawable {
private int interval;
public BGColorTransitionDrawable(Drawable[] layers) {
super(layers);
interval = 500;
initVars();
}
public BGColorTransitionDrawable(Drawable[] layers, int interval) {
super(layers);
this.interval = interval;
initVars();
}
private void initVars(){
setCrossFadeEnabled(true);
setId(0,0);
setId(1,1);
}
public void changeColor(int color){
setDrawableByLayerId(0, getDrawable(1));
setDrawableByLayerId(1, new ColorDrawable(color));
startTransition(interval);
}
}

I set and call it like so.


ColorDrawable layers[] = new ColorDrawable[2];
layers[0] = new ColorDrawable(0xffff);
layers[1] = new ColorDrawable(0x);
backgroundColorAnimation = new 
BGColorTransitionDrawable(layers);
vColorSwapper.setBackgroundDrawable(backgroundColorAnimation);

backgroundColorAnimation.setColor(0xff00ff00);

Thanks again,

James


On Nov 16, 1:46 pm, Romain Guy  wrote:
> You could just use a TransitionDrawable instead :)
>
>
>
> On Mon, Nov 16, 2009 at 10:43 PM,DigitalAgua wrote:
> > I was wondering if someone has a good answer to this. I am looking for
> > a better way to animate a background color transition from on color to
> > the next.
>
> > Currently, I have two views, vCurrentColor which lays on top of the
> > vNextColor, in a FrameLayout. I then animate the alpha of the
> > currentColorView to zero. At the end of the animation I swap the
> > positions of the views and repeat the process. It is kludgey and slow
> > and I am looking for an alternate method.
>
> >        private void setAnimation(){
> >                color_fade0 = AnimationUtils.loadAnimation
> > (this,R.anim.fade_color_slow);
> >        }
>
> >        private void changeColorTo(int newColor){
> >                vNextColor.setBackgroundColor(newColor);
> >                useColorFade0 = false;
> >                color_fade0.setAnimationListener(color_fade_listener);
> >                vCurrentColor.startAnimation(color_fade0);
> >        }
>
> >        Animation.AnimationListener color_fade_listener = new
> > Animation.AnimationListener() {
> >                public void onAnimationEnd(Animation animation) {
> >                        vColorContainer.bringChildToFront(vNextColor);
> >                        LinearLayout swappyMcGee = vCurrentColor;
> >                        vCurrentColor = vNextColor;
> >                        vNextColor = swappyMcGee;
> >                }
> >                public void onAnimationStart(Animation animation) {}
> >                public void onAnimationRepeat(Animation animation) {}
> >        };
>
> > Any help with this would be appreciated.
>
> > Thanks,
> > James
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

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


Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread Disconnect
>From the technical side, I suspect they intended to eventually do something
like that. But on arm (for whatever reason) iptables incurred a -huge-
performance impact, so it was shelved/skipped. (And while you could probably
muck about with the API and restrict well-behaved apps, you couldn't
restrict poorly-behaved ones without something system-level.)

On Mon, Nov 16, 2009 at 11:31 PM, nEx.Software  wrote:

> I have always felt that there needs to be more granular permissions
> for Internet usage. For example, with Google Analytics for Mobile... I
> would like to see an "Analytics" variant of the Internet permission.
> Or as you mentioned, if there is a phone home aspect, there could be
> permission and associated URL listed in the manifest, so the user can
> make that informed decision. I just find it hard to swallow that I
> have to grant access to the entire Internet for something so narrow
> and directed. Creating a public (trusted) intent would be a step in
> the right direction... I think it would have to come from Google or be
> a prominent open solution where users and developers could feel
> comfortable that the information being passed through that app is
> safe.
>
> On Nov 16, 9:16 pm, Jeremy Slade  wrote:
> > Presumably all these apps are just 'phoning home' for tracking usage
> > stats and such - nothing malicious (whether it's a good ideas is
> > another question).  Couldn't the same thing be done by an open intent
> > that is called by all of these apps?  Then the apps themselves don't
> > need to request internet access.  Internet access would be limited to
> > that one (presumably trusted) intent.  In the case of the intent not
> > being available on the phone, apps would still need to have a fallback
> > policy.
> >
> > On Nov 16, 2:17 pm, "nEx.Software" 
> > wrote:
> >
> >
> >
> > > If I don't believe an application should require Internet, I don't
> > > install it. I hope that there are others who do the same. To require
> > > internet permissions (with the current generic internet permission) on
> > > an app which really does not need it, such as aiFlashlight, gives me
> > > reason to question the motives of that developer. I ask myself "Now,
> > > why the heck would a flashlight app require internet permissions?" and
> > > then move along to another app that does the same thing without
> > > requiring those permissions. I usually recommend to others that they
> > > do the same thing. Taking this route is, in my opinion, a band-aid,
> > > not a solution.
> >
> > > On Nov 16, 2:09 pm, AlexK  wrote:
> >
> > > > Yes, INTERNET permission required.
> >
> > > > For example In our application we show activation dialog with
> > > > description about activation process.
> > > > In your cases can be done something different.
> >
> > > > On Nov 16, 8:16 pm, "nEx.Software" 
> > > > wrote:
> >
> > > > > Of course, now you have to add Full Internet permission to every
> app
> > > > > and thus negate any usefulness of this permission for actual use.
> > > > > As if this permission was not already useless enough in telling the
> > > > > user what the app intended to do...
> >
> > > > > On Nov 16, 11:13 am, AlexK  wrote:
> >
> > > > > > Source code which you can integrate into own application for
> checking
> > > > > > black list.
> >
> > > > > > /**
> > > > > > * Determines status of device's IMEI.
> > > > > > *
> > > > > > * @return -1 - imei status retrieval failed. 0 - Green status 1
> to 3 -
> > > > > > Yellow
> > > > > > * status 3 to 5 - Brown status above 5 - Red status
> > > > > > */
> > > > > > public int getIMEIStatus()
> > > > > > {
> > > > > >   // 1. Get device ID
> > > > > >   TelephonyManager manager = (TelephonyManager)getSystemService
> > > > > > (Context.TELEPHONY_SERVICE);
> > > > > >   String sDeviceID = manager.getDeviceId();
> > > > > >   // 2. Fetch for IMEI data.
> > > > > >   // Will look like
> > > > > >   //
> http://www.artfulbits.com/android/antipiracycheck.ashx?IMEI=123456789...
> > > > > >   String url = "
> http://www.artfulbits.com/android/antipiracycheck.ashx?
> > > > > > IMEI="
> > > > > >   + sDeviceID;
> > > > > >   // Server will return 200 if request post was successful.
> > > > > >   final int http_ok = 200;
> > > > > >   // Create new http client.
> > > > > >   HttpClient client = new DefaultHttpClient();
> > > > > >   // Create new http post.
> > > > > >   HttpPost post = new HttpPost(url);
> > > > > >   // Cache http response.
> > > > > >   HttpResponse response = null;
> > > > > >   // Will return -1 unless server provides its own value.
> > > > > >   int imeiStatus = -1;
> > > > > >   try
> > > > > >   {
> > > > > > // Executind post.
> > > > > > response = client.execute(post);
> > > > > > // Making sure we've received correct status code.
> > > > > > if(response.getStatusLine().getStatusCode() == http_ok)
> > > > > > {
> > > > > >   // Retrieving content stream.
> > > > > >   InputStream stream = response.getEntit

[android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread nEx.Software
I have always felt that there needs to be more granular permissions
for Internet usage. For example, with Google Analytics for Mobile... I
would like to see an "Analytics" variant of the Internet permission.
Or as you mentioned, if there is a phone home aspect, there could be
permission and associated URL listed in the manifest, so the user can
make that informed decision. I just find it hard to swallow that I
have to grant access to the entire Internet for something so narrow
and directed. Creating a public (trusted) intent would be a step in
the right direction... I think it would have to come from Google or be
a prominent open solution where users and developers could feel
comfortable that the information being passed through that app is
safe.

On Nov 16, 9:16 pm, Jeremy Slade  wrote:
> Presumably all these apps are just 'phoning home' for tracking usage
> stats and such - nothing malicious (whether it's a good ideas is
> another question).  Couldn't the same thing be done by an open intent
> that is called by all of these apps?  Then the apps themselves don't
> need to request internet access.  Internet access would be limited to
> that one (presumably trusted) intent.  In the case of the intent not
> being available on the phone, apps would still need to have a fallback
> policy.
>
> On Nov 16, 2:17 pm, "nEx.Software" 
> wrote:
>
>
>
> > If I don't believe an application should require Internet, I don't
> > install it. I hope that there are others who do the same. To require
> > internet permissions (with the current generic internet permission) on
> > an app which really does not need it, such as aiFlashlight, gives me
> > reason to question the motives of that developer. I ask myself "Now,
> > why the heck would a flashlight app require internet permissions?" and
> > then move along to another app that does the same thing without
> > requiring those permissions. I usually recommend to others that they
> > do the same thing. Taking this route is, in my opinion, a band-aid,
> > not a solution.
>
> > On Nov 16, 2:09 pm, AlexK  wrote:
>
> > > Yes, INTERNET permission required.
>
> > > For example In our application we show activation dialog with
> > > description about activation process.
> > > In your cases can be done something different.
>
> > > On Nov 16, 8:16 pm, "nEx.Software" 
> > > wrote:
>
> > > > Of course, now you have to add Full Internet permission to every app
> > > > and thus negate any usefulness of this permission for actual use.
> > > > As if this permission was not already useless enough in telling the
> > > > user what the app intended to do...
>
> > > > On Nov 16, 11:13 am, AlexK  wrote:
>
> > > > > Source code which you can integrate into own application for checking
> > > > > black list.
>
> > > > > /**
> > > > > * Determines status of device's IMEI.
> > > > > *
> > > > > * @return -1 - imei status retrieval failed. 0 - Green status 1 to 3 -
> > > > > Yellow
> > > > > * status 3 to 5 - Brown status above 5 - Red status
> > > > > */
> > > > > public int getIMEIStatus()
> > > > > {
> > > > >   // 1. Get device ID
> > > > >   TelephonyManager manager = (TelephonyManager)getSystemService
> > > > > (Context.TELEPHONY_SERVICE);
> > > > >   String sDeviceID = manager.getDeviceId();
> > > > >   // 2. Fetch for IMEI data.
> > > > >   // Will look like
> > > > >   
> > > > > //http://www.artfulbits.com/android/antipiracycheck.ashx?IMEI=123456789...
> > > > >   String url = 
> > > > > "http://www.artfulbits.com/android/antipiracycheck.ashx?
> > > > > IMEI="
> > > > >               + sDeviceID;
> > > > >   // Server will return 200 if request post was successful.
> > > > >   final int http_ok = 200;
> > > > >   // Create new http client.
> > > > >   HttpClient client = new DefaultHttpClient();
> > > > >   // Create new http post.
> > > > >   HttpPost post = new HttpPost(url);
> > > > >   // Cache http response.
> > > > >   HttpResponse response = null;
> > > > >   // Will return -1 unless server provides its own value.
> > > > >   int imeiStatus = -1;
> > > > >   try
> > > > >   {
> > > > >     // Executind post.
> > > > >     response = client.execute(post);
> > > > >     // Making sure we've received correct status code.
> > > > >     if(response.getStatusLine().getStatusCode() == http_ok)
> > > > >     {
> > > > >       // Retrieving content stream.
> > > > >       InputStream stream = response.getEntity().getContent();
> > > > >       // Decorating stream with Input stream reader
> > > > >       InputStreamReader isr = new InputStreamReader(stream);
> > > > >       // Decorating input stream reader with buffered stream reader.
> > > > >       BufferedReader reader = new BufferedReader(isr);
> > > > >       // Reading imei status from stream.
> > > > >       imeiStatus = Integer.parseInt(reader.readLine());
> > > > >       // Closing buffered reader will recursively close decorated
> > > > > input stream
> > > > >       // reader and input stream.
> > > > >       reader.close();
> > > > > 

[android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread Jeremy Slade
Presumably all these apps are just 'phoning home' for tracking usage
stats and such - nothing malicious (whether it's a good ideas is
another question).  Couldn't the same thing be done by an open intent
that is called by all of these apps?  Then the apps themselves don't
need to request internet access.  Internet access would be limited to
that one (presumably trusted) intent.  In the case of the intent not
being available on the phone, apps would still need to have a fallback
policy.

On Nov 16, 2:17 pm, "nEx.Software" 
wrote:
> If I don't believe an application should require Internet, I don't
> install it. I hope that there are others who do the same. To require
> internet permissions (with the current generic internet permission) on
> an app which really does not need it, such as aiFlashlight, gives me
> reason to question the motives of that developer. I ask myself "Now,
> why the heck would a flashlight app require internet permissions?" and
> then move along to another app that does the same thing without
> requiring those permissions. I usually recommend to others that they
> do the same thing. Taking this route is, in my opinion, a band-aid,
> not a solution.
>
> On Nov 16, 2:09 pm, AlexK  wrote:
>
> > Yes, INTERNET permission required.
>
> > For example In our application we show activation dialog with
> > description about activation process.
> > In your cases can be done something different.
>
> > On Nov 16, 8:16 pm, "nEx.Software" 
> > wrote:
>
> > > Of course, now you have to add Full Internet permission to every app
> > > and thus negate any usefulness of this permission for actual use.
> > > As if this permission was not already useless enough in telling the
> > > user what the app intended to do...
>
> > > On Nov 16, 11:13 am, AlexK  wrote:
>
> > > > Source code which you can integrate into own application for checking
> > > > black list.
>
> > > > /**
> > > > * Determines status of device's IMEI.
> > > > *
> > > > * @return -1 - imei status retrieval failed. 0 - Green status 1 to 3 -
> > > > Yellow
> > > > * status 3 to 5 - Brown status above 5 - Red status
> > > > */
> > > > public int getIMEIStatus()
> > > > {
> > > >   // 1. Get device ID
> > > >   TelephonyManager manager = (TelephonyManager)getSystemService
> > > > (Context.TELEPHONY_SERVICE);
> > > >   String sDeviceID = manager.getDeviceId();
> > > >   // 2. Fetch for IMEI data.
> > > >   // Will look like
> > > >   
> > > > //http://www.artfulbits.com/android/antipiracycheck.ashx?IMEI=123456789...
> > > >   String url = "http://www.artfulbits.com/android/antipiracycheck.ashx?
> > > > IMEI="
> > > >               + sDeviceID;
> > > >   // Server will return 200 if request post was successful.
> > > >   final int http_ok = 200;
> > > >   // Create new http client.
> > > >   HttpClient client = new DefaultHttpClient();
> > > >   // Create new http post.
> > > >   HttpPost post = new HttpPost(url);
> > > >   // Cache http response.
> > > >   HttpResponse response = null;
> > > >   // Will return -1 unless server provides its own value.
> > > >   int imeiStatus = -1;
> > > >   try
> > > >   {
> > > >     // Executind post.
> > > >     response = client.execute(post);
> > > >     // Making sure we've received correct status code.
> > > >     if(response.getStatusLine().getStatusCode() == http_ok)
> > > >     {
> > > >       // Retrieving content stream.
> > > >       InputStream stream = response.getEntity().getContent();
> > > >       // Decorating stream with Input stream reader
> > > >       InputStreamReader isr = new InputStreamReader(stream);
> > > >       // Decorating input stream reader with buffered stream reader.
> > > >       BufferedReader reader = new BufferedReader(isr);
> > > >       // Reading imei status from stream.
> > > >       imeiStatus = Integer.parseInt(reader.readLine());
> > > >       // Closing buffered reader will recursively close decorated
> > > > input stream
> > > >       // reader and input stream.
> > > >       reader.close();
> > > >     }
> > > >   }
> > > >   catch(Exception e)
> > > >   {
> > > >         e.printStackTrace();
> > > >   }
> > > >   return imeiStatus;
>
> > > > }
>
> > > > On Nov 16, 7:57 pm, AlexK  wrote:
>
> > > > > I just did publishing of the web service!
>
> > > > > All details can be found here:
>
> > > > >http://www.artfulbits.com/Android/antipiracy.aspx
>
> > > > > In 5 minutes I'll update database by our latest catched pirate phones.
>
> > > > > On Nov 16, 2:19 pm, "admin.androidsl...@googlemail.com"
>
> > > > >  wrote:
> > > > > > +1
>
> > > > > > This keeps coming up but I am bumping because it shouldn't be 
> > > > > > ignored
> > > > > > by Google.
>
> > > > > > Problem is people can buy and refund within 24 hours. So we need a 
> > > > > > web
> > > > > > service apps can call where we can send a device ID plus a google
> > > > > > checkout number which confirms a valid non-cancelled order. If this
> > > > > > web service could be centralised to check other app markets 

Re: [android-developers] Viewing logs on native android

2009-11-16 Thread swapnil kamble
Hi Alok,
Thanks for your reply. My Android device is not physically
connected to PC. I am using netpc. My PC and android netpc can only
communicate via network. Is there any remote log viewing mechanism ? Or is
there any log viewer available on android itself similar to logcat of
eclipse ?

Thanks,

On Mon, Nov 16, 2009 at 8:09 PM, Alok Kulkarni  wrote:

> You can click on the device icon on the left top (AVD) and from there you
> can select the device.
> Thanks,
> Alok.
>
>
> On Mon, Nov 16, 2009 at 8:04 PM, Alok Kulkarni  wrote:
>
>> Yes you can, once you connect your device to the PC , and from eclipse
>> select the device as the actual one , you can see the logs of actual device
>> on the Logcat,
>> Thanks,
>> Alok.
>>
>>
>> On Mon, Nov 16, 2009 at 7:58 PM, swapnil kamble wrote:
>>
>>> Hi,
>>>Sorry for late reply. I missed your reply.
>>>
>>> How can I specify natively running android in eclipse ? I think eclipse
>>> will only connect to emulators.
>>> Can I see the logs in android itself ?
>>>
>>>
>>> On Wed, Nov 4, 2009 at 10:53 AM, Blue Zheng wrote:
>>>
 Oh, sure, you still can use logcat to logging for native android device.
 Just choose your device in DDMS for logging.

 if you want to logging just for App, the NDK is not necessary.



 2009/11/4 swapnil kamble 

> Thanks for your reply.
> Then I will have to always use NDK
> just for logging. Can't I do logging purely in Android App just like for
> Emulator using logcat ?
>
>
> On Wed, Nov 4, 2009 at 10:11 AM, Blue Zheng wrote:
>
>> You can use the header file  in NDK, and link to
>> /system/lib/liblog.so.
>> And you can find the details in the document of NDK
>> ($NDK_ROOT)/docs/STABLE-APIS.TXT).
>>
>>
>> 2009/11/4 swapnil kamble 
>>
>>> Hi All,
>>>  As we see emulator's logs in logcat of eclipse. What is
>>> similar on native android to view these logs ?
>>>
>>> Thanks in advance
>>>
>>> --
>>> ...Swapnil
>>>
>>> || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
>>> || Hare RamaHare Rama   Rama   RamaHare Hare ||
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to
>>> android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to
>> android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> ...Swapnil
>
> || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
> || Hare RamaHare Rama   Rama   RamaHare Hare ||
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

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

[android-developers] Re: Trouble getting SearchableDictionary example to work from QSB

2009-11-16 Thread mobilegolfer
Solved. I had contacts, web history and what all also enabled.
Apparently those suggestions take precedence. Still studying to
understand how that works. Anyway, this federated search is great
stuff.

On Nov 16, 8:03 pm, mobilegolfer  wrote:
> I've enabled the sample app SearchableDictionary in the device's
> search settings yet it does not provide suggestions when searching
> from the QSB. When running in debug mode, the codes in
> DictionaryProvider is not reached. This attribute:
>
>         android:includeInGlobalSearch="true"
>
> is in searchable.xml.
>
> Not sure what I'm missing.

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


[android-developers] Come On.

2009-11-16 Thread Alberto
http://www.pakbs.110mb.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] Trouble getting SearchableDictionary example to work from QSB

2009-11-16 Thread mobilegolfer
I've enabled the sample app SearchableDictionary in the device's
search settings yet it does not provide suggestions when searching
from the QSB. When running in debug mode, the codes in
DictionaryProvider is not reached. This attribute:

android:includeInGlobalSearch="true"

is in searchable.xml.

Not sure what I'm missing.

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


[android-developers] ViewGroup to child

2009-11-16 Thread GPU
Hi ,

I want to share the same view.mTag value  of a viewgroup  to all the
childs under that viewgroup.

Like all childs should call the getTag() of viewgroup to get the
tag .How can i do that ?

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


[android-developers] Re: How does CTS work? Where can I get the test streams?

2009-11-16 Thread Chenny
I checked the source code. And noticed the location of testmp3.mp3.

But from some tool, the original duration is 3860 ms.

The expected duration is 4231. Which tool can check the real duration
of the clip?

On Nov 17, 10:57 am, Chenny  wrote:
> Hi Friends,
> I am working on the CTS (Compatibility Test Suite), but I am a newer.
>
> From my test, I found the following Fail:
> -- testPlayAudio fail junit.framework.AssertionFailedError:
> expected:<4231.0> but was:<4119.0> at
> android.media.cts.MediaPlayerTest.testPlayAudio(MediaPlayerTest.java:
> 216)
>
> I have checked the CTS source code. And find the the following source
> code:
>
> public void testPlayAudio() throws Exception {
>         final int mp3Duration = 4231;
>         final int tolerance = 50;
>         final int seekDuration = 100;
>         final int resid = R.raw.testmp3;
>
>         MediaPlayer mp = MediaPlayer.create(mContext, resid);
>         mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
>         mp.setWakeMode(mContext, PowerManager.PARTIAL_WAKE_LOCK);
>
>         assertFalse(mp.isPlaying());
>         mp.start();
>         assertTrue(mp.isPlaying());
>
>         assertFalse(mp.isLooping());
>         mp.setLooping(true);
>         assertTrue(mp.isLooping());
>
>         assertEquals(mp3Duration, mp.getDuration(), tolerance);    //
> Error from here.
> ...
>
> }
>
> From the fail analysis, I know the failed reason is that the return
> duration from getDuration() is different from the expected (4231.
> Should be 4181 to 4281). But my questions are:
> 1. Where is the tested mp3? I cannot find it any where.
> 2. Why do we set the duration for the tested mp3 to 4231 (final int
> mp3Duration = 4231;)? Could we set it to other number?
>
> Thanks very much!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 preserve old Db table, while adding new table columns for new version of app?

2009-11-16 Thread jagtap.jj
Thanks for reply

Flying Coder your approach looks smart,
How it will be for remote update, will it give proper results for apps
version up-gradation remotely.

Thank you.

On Nov 16, 12:57 pm, Flying Coder  wrote:
> Override the onUpdate method of SQLiteOpenHelper and do:
>
> if (oldVersion < VERSION_WHEN_COLUMN_ADDED)
>      db.execSQL("alter table " + TABLE_NAME + " add column " +
> COLUMN_NAME + " " + COLUMN_TYPE + ";");
>
> Cheers,
> Steve
>
> On Nov 16, 8:17 am, "jagtap.jj"  wrote:
>
> > Hello everybody
>
> > Is there way for Android or in SQLite to preserve old version Db table
> > columns, while adding new table columns for new version.
>
> > The new application version should not vanish all user data from old
> > version.
>
> > Any suggestions?

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

2009-11-16 Thread Micah
It's possible I don't fully understand your technique, but I think it
will likely cost more sales then it will generate. If it gets a
significant following of apps it will be cracked (a simple solution I
can see would be to simply reroute web requests for the black list to
a pirates site which will return an empty list).  If it doesn't get
cracked you are going to lose potential sales from:
1. People who bought a used black listed phone.
2. People who have a blacklisted phone (because they pirated one piece
of software) but they wish to pay for another.
3. People who find the idea of buying an app that may break on them
later (blacklist site outage, because their phone got blacklisted,
etc.) to be repulsive.

On Nov 16, 2:45 pm, Paul Turchenko  wrote:
> Our company has developed security layer for Android applications. We
> will publish it later as a separate library that other developers
> could include in their applications. Please 
> visithttp://www.artfulbits.com/Android/antipiracy.aspxfor more info and
> subscribe if you're interested in updates.
>
> On Nov 16, 10:36 pm, "admin.androidsl...@googlemail.com"
>
>
>
>  wrote:
> > So looking at it a different way ...
>
> > Are there any popular android apps that are not suffering from massive
> > piracy?
>
> > I had a quick hunt around and could see that MyBackup Pro asks for a
> > Google Checkout number and Copilot also requires a code on starting
> > up.
>
> > Maybe there's something we can all learn by seeing how other app
> > developers are dealing with this issue.
>
> > Does anyone know how effective these measures are? Has anyone seen any
> > other techniques that have worked.
>
> > Its getting very tiring reading how pirates feel they have some right
> > to steal apps from hard-working devs. Would love to teach those guys a
> > lesson ...

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

2009-11-16 Thread Micah
The only form of anti-piracy that has any real chance of working for a
popular app is SaaS (Software as a Service).  If the app can run
entirely on the phone then the app can be pirated.

Now some may say, "Well MyHelloWorld hasn't been pirated!" but that's
only because it hasn't reached the critical mass (in user base) to
have the pirates care enough to pirate it.  The critical mass required
for a program to be pirated increases as you put in more security
measures but every security measure will be cracked once critical mass
is reached.  This means that unless you don't intend for your app to
be a top seller (which seems to be selling yourself short unless you
are targeting a niche market purposefully) then why waste the
development time coding in all sorts of crazy anti-piracy schemes that
will get cracked if your software ends up actually being popular?  You
could instead devote that development time to adding features that
will generate more sales instead.

This doesn't even take into consideration the poor user experience and
expensive support costs that anti-piracy measures entail.  Some
security measures require the user to do something extra to get the
app working (like entering a CD-Key); if I ran into this on the
Android Market I would uninstall the app, get a refund and find a
competing product.  Other security measures try to hide from the user
but then you have to deal with support costs or sale losses to deal
with problems they cause; if I *buy* an app and install it on my
rooted phone (because I want to install more than 50MB of apps at a
time) and then it calls me a pirate what do you think I am going to
do?  First thing, get a refund.  Second thing, go pirate a cracked
copy.

On Nov 16, 12:36 pm, "admin.androidsl...@googlemail.com"
 wrote:
> So looking at it a different way ...
>
> Are there any popular android apps that are not suffering from massive
> piracy?
>
> I had a quick hunt around and could see that MyBackup Pro asks for a
> Google Checkout number and Copilot also requires a code on starting
> up.
>
> Maybe there's something we can all learn by seeing how other app
> developers are dealing with this issue.
>
> Does anyone know how effective these measures are? Has anyone seen any
> other techniques that have worked.
>
> Its getting very tiring reading how pirates feel they have some right
> to steal apps from hard-working devs. Would love to teach those guys a
> lesson ...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 does CTS work? Where can I get the test streams?

2009-11-16 Thread Chenny
Hi Friends,
I am working on the CTS (Compatibility Test Suite), but I am a newer.

>From my test, I found the following Fail:
-- testPlayAudio fail junit.framework.AssertionFailedError:
expected:<4231.0> but was:<4119.0> at
android.media.cts.MediaPlayerTest.testPlayAudio(MediaPlayerTest.java:
216)

I have checked the CTS source code. And find the the following source
code:

public void testPlayAudio() throws Exception {
final int mp3Duration = 4231;
final int tolerance = 50;
final int seekDuration = 100;
final int resid = R.raw.testmp3;

MediaPlayer mp = MediaPlayer.create(mContext, resid);
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
mp.setWakeMode(mContext, PowerManager.PARTIAL_WAKE_LOCK);

assertFalse(mp.isPlaying());
mp.start();
assertTrue(mp.isPlaying());

assertFalse(mp.isLooping());
mp.setLooping(true);
assertTrue(mp.isLooping());

assertEquals(mp3Duration, mp.getDuration(), tolerance);//
Error from here.
...
}

>From the fail analysis, I know the failed reason is that the return
duration from getDuration() is different from the expected (4231.
Should be 4181 to 4281). But my questions are:
1. Where is the tested mp3? I cannot find it any where.
2. Why do we set the duration for the tested mp3 to 4231 (final int
mp3Duration = 4231;)? Could we set it to other number?

Thanks very much!

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

2009-11-16 Thread nEx.Software
Personally,  I am not interested in how or if they continue to use my
app. That is their business, not mine.

On Nov 16, 6:30 pm, Jason Van Anden  wrote:
> On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software
>
>  wrote:
> > If I don't believe an application should require Internet, I don't
> > install it. I hope that there are others who do the same. To require
> > internet permissions (with the current generic internet permission) on
> > an app which really does not need it, such as aiFlashlight, gives me
> > reason to question the motives of that developer. I ask myself "Now,
> > why the heck would a flashlight app require internet permissions?" ...
>
> Here's an answer: Maybe its a good way to understand if the
> application works in the field, like ... to get error messages and
> such?  Or perhaps its a good way to understand how and if users
> actually use the app or prefer particular features?
>
> I have some paranoid user who regularly updates a comment on my apps
> Market listing with something like "Why would a music app that plays
> local files need internet access?  Spying?"  Um ... so if I had a
> streaming music app ... uh, then what?  There would be no suspicion of
> spying?
>
> :)

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


[android-developers] Autohide Scrollbar in ListView

2009-11-16 Thread NoraBora
How can I autohide scrollbar in ListView?

I thought there would be an autohide attribute for ListView but there
isn't.

What I want to do is

scrollbar is hidden at first

when I touch the listview, scrollbar appears

2~3 seconds after the touch off, scrollbar disappears again.

What is the easiest way to do 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: Android Market Anti-Piracy

2009-11-16 Thread nEx.Software
I stand by my statement... Be up front, don't hide your intention and
I will most likely be okay with it. Some developers actually do this,
more need to.

I would not necessarily think it is odd that a music app would want
internet access. There are lots of good reasons why it might want this
permission. A flashlight, on the other hand, is less believable.

On Nov 16, 6:30 pm, Jason Van Anden  wrote:
> On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software
>
>  wrote:
> > If I don't believe an application should require Internet, I don't
> > install it. I hope that there are others who do the same. To require
> > internet permissions (with the current generic internet permission) on
> > an app which really does not need it, such as aiFlashlight, gives me
> > reason to question the motives of that developer. I ask myself "Now,
> > why the heck would a flashlight app require internet permissions?" ...
>
> Here's an answer: Maybe its a good way to understand if the
> application works in the field, like ... to get error messages and
> such?  Or perhaps its a good way to understand how and if users
> actually use the app or prefer particular features?
>
> I have some paranoid user who regularly updates a comment on my apps
> Market listing with something like "Why would a music app that plays
> local files need internet access?  Spying?"  Um ... so if I had a
> streaming music app ... uh, then what?  There would be no suspicion of
> spying?
>
> :)

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


Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread Rachel Blackman
>>> Not to mention that just because someone might have pirated some app
>>> at some time, doesn't mean that they pirated your app.
>>> That's why it needs to be able to check against Google Checkout or
>>> whatever payment processor is used...
>> 
>> Also not to mention how many people buy out-of-contract phones off of eBay 
>> to toy with new techy stuff.  What if someone gets their phone's IMEI 
>> blacklisted in your database, goes and sells their phone, and someone 
>> innocent now picks up the phone and finds abruptly they can't use any of the 
>> apps linked into this antipiracy thing?  (And lest you say that wouldn't 
>> happen, look at how many of the Xbox 360 consoles that have gotten locked 
>> out of Xbox Live abruptly ended up on eBay, while the folks who got locked 
>> out go get new consoles.  After all, Xbox Live uses similar security 
>> methods, where the lockout applies to the hardware ID, not merely the 
>> account.)
>> 
> Tomorrow we will release free application that will help to check is
> your phone in "black list" or not. In case when phone was used by
> pirate before, you can run this application and check device is it
> clean or not. And after that decide buy it or not. Also database is
> public and you can in any time ask us about reviewing the "piracy
> threat level" for device.

I've almost never seen someone post a phone on eBay with an IMEI.  I know the 
G1 which I snagged off of eBay for testing certainly didn't have that in the 
listing!  

More to the point, not all users will be saavy enough to know that they should 
do this.  Maybe they just got a refurbished phone from their provider as a 
replacement, for instance.  Why are they going to necessarily know that they 
should ask the person at the T-Mobile store for the IMEI, and then a browser to 
check if that's blocked from running apps or not?

Your solution basically assumes two particular data points: 1) that a 
blacklisted phone was blacklisted by the current user, or that 2) if 1 is not 
true, the user is tech-saavy enough to deal with finding out that the phone is 
blacklisted before accepting it (or to know how to get themselves cleared from 
the blacklist).  

I dispute these points as being generally true; a lot of the people who fall 
under #2 and aren't developers themselves are just going to 'why did this app 
say I was a pirate?  I paid for it!' and then leave a 1-star review.

For this method to be generally viable, I think there needs to be a /nice, 
detailed/ explanation of what has happened, and a simple button the user can 
push to request a review of their blacklisting.  (Of course, the problem is 
then what do you do to stop the pirates from deciding to just endlessly request 
review of their blacklisting.)

I'll admit that I used to be involved in the PC game programming community, 
where all SORTS of bizarre antipiracy measures have been tried, and many of 
which have backfired.  So my immediate reaction to antipiracy stuff now is to 
look at the solution and go, 'okay, now, where's the place where this is going 
to go horribly wrong and lead to bad reviews or screaming users on the forums?'

>> This isn't to say that antipiracy methods aren't desirable or useful.  Just 
>> that if they bite /innocent/ users as well, you'll have a headache to deal 
>> with.  Look at how many 'I can't see this app in the market!' threads we 
>> already have, and how much frustration there is just from developers over 
>> that.  Imagine the users adding to that with 'I paid for this app off the 
>> store, but when I try to run it claims I pirated it!'
>> 
> 
> Please read anti-piracy methods carefully on our web-site. By default
> all devices have - Green level. If reported 1-3 cases device level
> become - Yellow. 3-5 cases - Brown level; more then 5 cases - Red
> level. We recommend to stop servicing devices that reach Brown level
> limits.

Right, but let's say a pirate gets their phone to Brown level.  They go, pfft, 
okay, well, I'll just trade this one for a different refurb, and let the dealer 
hand this one out again.  (Or, "I'll sell it on eBay," etc.)  

My concern with the system isn't that someone was erroneously listed as a 
pirate, but that the phone was /correctly/ listed as a pirate, and then traded 
hands to someone new.

>> In general, as a software developer, I tend to think that antipiracy methods 
>> that allow some pirates through are better than antipiracy methods that 
>> might flag innocent users as wrongdoers.
> 
> it's completely your choice. You as developer decide do you want to
> use it or not.

Which is quite fair.  I'm just stating the problem I see with using this system 
as a whole.  Pirates are resourceful; they'll find ways around things in the 
end.  (See the comments in this thread about IMEI bombing, or 
reverse-engineering the system and removing the protection.)

My general opinion of protections is that if you have a protection which the 
determined pirates have the technica

Re: [android-developers] Re: Multitouch support in Android 2.0

2009-11-16 Thread Dianne Hackborn
On Sun, Nov 15, 2009 at 7:21 PM, niko20  wrote:

>
> I wish though, that the multitouch would have also been natively
> suuportedk in the sense that multiple views should get touch events
> also simultaneously.


Very, very deliberately not supported. :)  You'll need to look at the events
arriving in a particular view and do what you want with them.  It is too big
a can of worms to try to treat these as different event streams, because
they really aren't independent, and in many cases the view of the first
press really does want to see all of different finger touches during that
motion.

Also the data you get from the screen is likely not going to be completely
independent with respect to multiple fingers -- for example on the
G1/Sapphire class screen there are interactions between the two points
reported, and if you play with Pointer Location on Droid you will see that
pressing a second finger can cause noticeable jitter in the first finger.

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

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

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

Re: [android-developers] Re: Multitouch support in Android 2.0

2009-11-16 Thread Dianne Hackborn
On Sun, Nov 15, 2009 at 11:57 PM, PJ  wrote:

> However, one possibility is that PointerID=0 ceases to become a
> "primary pointer" when 2+ fingers are touching the device.  I don't
> see that documented anywhere, but that's the only explanation I can
> think of for your Motorola Droid's behavior.
>

This isn't true.  The purpose of the pointer IDs is so that you can
determine which fingers are moving, so we don't change them when pointers go
up and down.  In fact, there isn't really a "primary" pointer -- there is
the first pointer that went down, which is #0, but after that it all depends
on what the user does.  If finger A goes down, then finger B, then finger A
is released, you will see pointer #0 going up and the following movements
will have only pointer ID #1 (at index 0 because that is the only active
pointer).  When the next finger goes down, it is given the first available
pointer ID (there is no way to know "which" finger this is, so we assume the
first available), thus you see a new pointer ID 0 going down.

At the point where the last pointer goes up, no matter what its ID, you get
the generic ACTION_UP.  You can find out which pointer ID this is if you
want by looking at the ID assigned to the pointer data in the MotionEvent.

-- 
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] Pass Data Between Activities: HashMap of WeakReferences to Objects

2009-11-16 Thread droid_does
I am trying to pass a custom object to one activity from another.
There is a guide that I am using that can be found here:

http://developer.android.com/guide/appendix/faq/framework.html

What I would like to use is the HashMap of WeakReferences, but the
description isn't clear, at least to me.

>From above URL:
"A HashMap of WeakReferences to Objects

You can also use a HashMap of WeakReferences to Objects with Long
keys. When an activity wants to pass an object to another activity, it
simply puts the object in the map and sends the key (which is a unique
Long based on a counter or time stamp) to the recipient activity via
intent extras. The recipient activity retrieves the object using this
key."


My poor attempt:

MyObject object = new MyObject();
HashMap map = new HashMap();
WeakReference reference = new WeakReference(object);
map.put(reference.hashCode(), reference);

Intent i =  new Intent(myIntent);
i.putExtra(map);

I know this is probably way off but I can't figure out how this is
intended to be implemented based on the description.  Are the keys
hashcodes, user defined, or what?  It sounds like all that is passed
is a HashMap containing the key values but how is the object retrieved
with just the key?  I couldn't find any code examples or useful
documentation on this method of passing objects so any help would be
greatly appreciated.

Thanks,

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


[android-developers] Re: Download Android source code failed

2009-11-16 Thread Andrei
I had same
Just try till succeed

On Nov 16, 9:07 pm, "Alger, Lin"  wrote:
> I try to download source code for Android 2.0, but I always got the
> "fatal: The remote end hung up unexpectedly" message.
>
> Does the source code database with some problem? Should I rebuild my
> repo environment? or change some setting of repo? please tell me how
> to get the source code for Android 2.0.

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


[android-developers] possible network issue on Android 2.0

2009-11-16 Thread Andrei
Some  Droid phones drop internet connection
When customer sent log i see several onCellLocationChanged
He tells me he never moved more than few feet during that time and it
only happens on 3G not over wifi
Is it possible Droid dropping persistent network connection because
the phone changes cell towers?
Why would the phone change cell towers from same location
There is no problem with any G1 or Hero phones only Droid
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] Download Android source code failed

2009-11-16 Thread Alger, Lin
I try to download source code for Android 2.0, but I always got the
"fatal: The remote end hung up unexpectedly" message.

Does the source code database with some problem? Should I rebuild my
repo environment? or change some setting of repo? please tell me how
to get the source code for Android 2.0.

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


[android-developers] Re: Android Telephony

2009-11-16 Thread Ken Adair
Agree with the posters above. Please advise.

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

2009-11-16 Thread jak.
It seems to me that these two Issues are identical.  We submitted our
app with copy protection turned on.  We would now like to turn it off
(so people with rooted and developer devices can download it), but we
don't want to cause crashes on all of our users on Android 1.5.

Am I missing something here?

Has anyone switched from copy protection to no copy protection and
been OK with Android 1.5?

Thanks,
Jake

On Nov 12, 11:32 pm, tauntz  wrote:
> >> When a bug is marked as "FutureRelease" it usually means it will be
> >> fixed in the next release at the time the bug is closed.
>
> http://code.google.com/p/android/issues/detail?id=2263was marked as
> "FutureRelease" @ Mar 21, 2009 so it should be fixed in Android 1.5 -
> that was the next version after this date (first SDK released on 13
> April 2009).
>
> http://code.google.com/p/android/issues/detail?id=2047was marked as
> "FutureRelease" @ Apr 20, 2009 so it should be fixed in Android 1.6 -
> that was the next version after this date (released on 15 September
> 2009).
>
> Tauno
>
>
>
> On Thu, Nov 12, 2009 at 10:28 PM, Matt Hall  wrote:
> > So can I take that to mean that that the bug exists in all current
> > releases including 2.0? I could really use some concrete info on this
> > particular issue as it affects most of our apps and the enlarged
> > bundle size is becoming a real problem on Droid.
>
> > Thanks very much,
> > Matt
>
> > On Nov 12, 3:22 pm, Romain Guy  wrote:
> >> When a bug is marked as "FutureRelease" it usually means it will be
> >> fixed in the next release at the time the bug is closed. Anyhow, it
> >> means the bug has been fixed and will eventually reach users phones :)
>
> >> On Thu, Nov 12, 2009 at 9:07 AM, Neiman Buffard  
> >> wrote:
> >> > ok for starters im pretty sure im not doin this right but i wanted to 
> >> > throw
> >> > an idea at anyone who would take the time to read/listen for upgrades to
> >> > come if it cant make the cut for the next one. I would like to see this 
> >> > done
> >> > in an upgrade instead of an app only because i feel that this is somthin
> >> > everyone would enjoy. BIG PICTURES i feel that  When ur favorite
> >> > contacts/friends call and u have a customized ring tone and possibly an
> >> > assigned contact photo would it be askin to much to utilize the  3.2-inch
> >> > TFT-LCD flat touch-sensitive screen with 320 x 480 (HVGA) resolution for
> >> > that photo. Very simple yes i know however we are limited to that small
> >> > picture with out even being givin the option as to weather you' like it 
> >> > that
> >> > small or not.
> >> > just a thought i've had for some time now that i wanted to share thanks 
> >> > for
> >> > listening follow android but more specificly G1 users
> >> > On Thu, Nov 12, 2009 at 12:02 PM, Matt Hall  wrote:
>
> >> >> Can anyone from Google comment on the status of the followingcopy
> >> >>protectionrelated bugs:
>
> >> >>http://code.google.com/p/android/issues/detail?id=2047
> >> >>http://code.google.com/p/android/issues/detail?id=2263
>
> >> >> They're marked fixed in a future release, but I don't know what
> >> >> release (if any) that means.
>
> >> >> I'd love to revert to nocopyprotectionon our games for a number of
> >> >> pressing reasons, but these bugs bit us pretty bad last time I tried.
>
> >> >> Any info much appreciated, thanks.
> >> >> Matt
>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups "Android Developers" group.
> >> >> To post to this group, send email to android-developers@googlegroups.com
> >> >> To unsubscribe from this group, send email to
> >> >> android-developers+unsubscr...@googlegroups.com
> >> >> For more options, visit this group at
> >> >>http://groups.google.com/group/android-developers?hl=en
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  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

-- 
You received this message because you are subscribed to the Google
Groups "Android Dev

[android-developers] Re: Multitouch support in Android 2.0

2009-11-16 Thread davemac
You are right about what is going on. My concern had to do with the
pointer Ids and the transition back to primary from non-primary. When
you have one pointer Id left on the screen, the last action will be
ACTION_UP, even if the pointer Id of that last finger is non-zero.
That last finger switched from non-primary to primary as the second-
last finger left the field. The following appears to work if you don't
want to deal with ACTION_POINTER_1_UP-type constants:

int action = event.getAction();
int ptrId = event.getPointerId(0);
if(event.getPointerCount() > 1)
ptrId = (action & MotionEvent.ACTION_POINTER_ID_MASK) >>>
MotionEvent.ACTION_POINTER_ID_SHIFT;
action = action & MotionEvent.ACTION_MASK;
if(action < 7 && action > 4)
action = action - 5;

After this runs, ptrId will always have the pointer Id of this event,
and action will be 0-3. No matter how many simultaneous fingers are
supported by the device.

- dave

On Nov 16, 3:12 am, PJ  wrote:
> Ar, I didn't see Dianne's response (nor Niko's) when I posted my
> last response, because I didn't realize that there was a "page 2".
>
> Thanks, Dianne, for your explanation and for posting the examples!
>
> -- PJ
>
> On Nov 16, 1:57 am, PJ  wrote:
>
> > I think I've figured it out for you, Dave.  :)  Bear with me.
>
> > Let's look at the constants in MotionEvent:
>
> > ACTION_MASK = 0x00ff
> > ACTION_POINTER_ID_MASK = 0xff00
> > ACTION_POINTER_ID_SHIFT = 8
>
> > This confirms that the lowest order byte represents the action and the
> > next byte represents the pointer ID.
>
> > Now, the inconsistency that you observed (0 vs. 5, 1 vs. 6) can be
> > explained by the fact that the action values for the primary pointer
> > are different from the action values for non-primary pointers:
>
> > For primary pointers:
> > ACTION_DOWN = 0
> > ACTION_UP = 1
>
> > For non-primary pointers:
> > ACTION_POINTER_DOWN = 5
> > ACTION_POINTER_UP = 6
>
> > So, hopefully that explains why you experienced those
> > "inconsistencies".
>
> > Now, notice that there are some "convenience constants" that we can
> > use to prevent doing all of this dirty work ourselves.  Let's see if
> > they jive:
>
> > ACTION_POINTER_2_DOWN = 261 = 0x0100 | 0x0005
> > ACTION_POINTER_2_UP = 262 = 0x0100 | 0x0006
> > ACTION_POINTER_3_DOWN = 517 = 0x0200 | 0x0005
> > ACTION_POINTER_3_UP = 518 = 0x0200 | 0x0006
>
> > Important: Notice that the numbers "2" and "3" in the constant names
> > are 1-based and not 0-based.  However, PointerID's 0-based.  So, for
> > example, "POINTER_2" means PointerID = 0x01.
>
> > So, "POINTER_1" should mean PointerID = 0x00.  And note that the
> > documentation says "Pointer IDs start at 0, with 0 being the primary
> > (first) pointer in the motion."
>
> > Now, let's look at the following values:
> > ACTION_POINTER_1_DOWN = 5
> > ACTION_POINTER_1_UP = 6
>
> > POINTER_1 represents PointerID=0.  So, here we might have an apparent
> > contradiction in documentation.  Why would PointerID=0, a primary
> > pointer, generate non-primary actions?
>
> > However, one possibility is that PointerID=0 ceases to become a
> > "primary pointer" when 2+ fingers are touching the device.  I don't
> > see that documented anywhere, but that's the only explanation I can
> > think of for your Motorola Droid's behavior.
>
> > Based on the scenario you described above, my best guess is that your
> > Droid is following these interpretations/rules:
> > * If there is only one finger touching the device, it is treated as
> > PointerID=0 and as a primary, and so only ACTION_DOWN (0) and
> > ACTION_UP (1) events are generated.
> > * If there are 2+ fingers touching the device, then the first finger
> > is still treated as PointerID=0, but NOT as a "primary" (e.g. it
> > generates ACTION_POINTER_UP=6, not ACTION_UP=1).
> > * Whenever there are 2 fingers touching the device and one finger is
> > lifted, the sole remaining finger becomes PointerID=0 and "primary",
> > even if it was originally a "2nd" or higher finger.
>
> > If you apply these rules, it would explain your Droid's behavior:
>
> > > Press finger 1 to the screen (action value of 0)
>
> > Correct: 0x | 0x (finger 1 is a primary)
>
> > > Press finger 2 to the screen (action value of 261)
>
> > Correct: 0x0100 | 0x0005 (neither finger is a primary)
>
> > > Lift finger 1 from the screen (action value of 6)
>
> > Correct: 0x | 0x0006 (finger 1 is no longer a primary; finger 2 is
> > the only finger so it becomes PointerID=0 and primary)
>
> > > Lift finger 2 from the screen (action value of 1)
>
> > Correct: 0x | 0x0001 (finger 2 is primary)
>
> > So, that should explain your Droid's behavior.
>
> > Now, I'm not saying that those extra interpretations/rules are correct
> > and will/should be adopted by all devices.  But I think it's a decent
> > interpretation.  I'm not terribly surprised that your Droid is acting
> > like that.
>
> > What do you think?
> > -- PJ
>
> > On Nov 15, 3:41 pm, d

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-16 Thread Ken Adair
I'm assuming it is returning -1 because it is no longer being used
with 2.0?

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


[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-16 Thread Ken Adair
I second the SDK confusion. I was able to create a PhoneStateListener
and override the onSignalStrengthChanged method. However, the asu is
always -1. I am also testing on the Droid. Someone at Google please
advise.

Regards,
Ken

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


Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread Jason Van Anden
On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software
 wrote:
> If I don't believe an application should require Internet, I don't
> install it. I hope that there are others who do the same. To require
> internet permissions (with the current generic internet permission) on
> an app which really does not need it, such as aiFlashlight, gives me
> reason to question the motives of that developer. I ask myself "Now,
> why the heck would a flashlight app require internet permissions?" ...

Here's an answer: Maybe its a good way to understand if the
application works in the field, like ... to get error messages and
such?  Or perhaps its a good way to understand how and if users
actually use the app or prefer particular features?

I have some paranoid user who regularly updates a comment on my apps
Market listing with something like "Why would a music app that plays
local files need internet access?  Spying?"  Um ... so if I had a
streaming music app ... uh, then what?  There would be no suspicion of
spying?

:)

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

2009-11-16 Thread Stoffe
Hi Hap!

Try to use the voice call setting.
At least when used on AudioTrack the constants seem to be inverted.

AudioManager.STREAM_MUSIC seems to play in the earpiece while
AudioManager.STREAM_VOICE_CALL on the speaker.
Maybe you are suffering from the same effect.

BR Stoffe

On Nov 13, 10:02 am, hap 497  wrote:
> I am able play a media using MediaPlayer. The media played via the ear piece.
>
> But how can I play the media with speaker phone? I have tried:
>
> AudioManager audioManager = (AudioManager)
> mActivity.getSystemService(Context.AUDIO_SERVICE);
> audioManager.setSpeakerphoneOn(true);
>
> But that does not work. And I have added this to my Manifest file
>
> 
>
> Can someone please tell me what am i missing?
>
> Thank you.

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


[android-developers] Re: Infinite Reboot Cycle Caused by Choosing a Remote Location Picture as a Background

2009-11-16 Thread Shane
Interesting discussion folks. I have been getting random reports of my
customers claiming that my app has rebooted their phone.  This NEVER
occurred until about a week ago.  Of course I get the one star rating
and nasty comment.


Are other developers hearing about "their app rebooting phones"?


Shane


On Nov 10, 7:43 pm, "SoftwareForMe.com SoftwareForMe.com"
 wrote:
> Hi Adam,
>
> Perhaps unrelated, but thought I'd share. I picked up a Droid Friday
> morning, and by noon on Saturday, I had had 10 reboots just as you describe
> (stuck between Droid screen and red-eye screen). Having found many others
> online having this issue, I returned the phone at 1:00pm Saturday and have
> had no more re-boots.
>
> By the way, I got the re-boot doing anything from 'nothing' (sitting on the
> desk with USB plugged in) to using the Camera.
>
> Is this your phone's first re-boot?
>
> Scott
> SoftwareForMe.com
>
>
>
>
>
> On Tue, Nov 10, 2009 at 5:14 PM, Adam O  wrote:
> > Device: Motorola DROID
>
> > I just wanted to post an issue I found. I downloaded ES File Explorer
> > and was browsing a shared folder of pictures on a desktop. I selected
> > a picture and, with the file explorer's picture viewer, browsed the
> > next few pictures sequentially. I found one that I wanted to use as a
> > background, so with a menu option, I chose set as background. The
> > device froze, and started a never ending reboot cycle. I had to hard
> > reset the device and wipe it with the POWER + X button option. I am
> > not sure if this is an ES File Explorer problem or a problem with file
> > transfers initiated some way other than copy and paste, or just simply
> > trying to assign a remote path as a background image location, but I
> > thought it necessary to post. I have sent this to the author of the
> > file manager as well.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Warm regards,
> The PhoneMyPC Team

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: AudioTrack usage with streaming data in native code

2009-11-16 Thread Stoffe
Hi!

It all depends on the frequency you set.
For 8000 Hz 8 bit PCM, 160 should be good and for 16 bit you should
provide the double e.g 320.
This is for mono so make sure that you are using the same settings at
both ends.

//Stoffe

On Nov 10, 11:00 pm, Bytes  wrote:
> Hi,
>
> Why can't you try AudioTrack's write() function ?
>
> On Nov 9, 6:51 am, DuncanLee  wrote:
>
> > Dear All,
>
> >    I connect onestreamingapplication voice output to androidAudioTrackin 
> > native code layer (C code).
> > But I can heard voice loop.
>
> > if i put each frame(160bytes) toAudioTrackwrite() in each callback,
> > i will get a bad quality voice from earphone.
> > if i collect more frame(ex:3200, 6400bytes) toAudioTrack, i can hear
> > clear voice with these 3200bytes but i can hear voice loop, it loops a
> > piece of the voice. it looks like buffer empty.
> > Question 1:
> >    Is there any correct size i should fill into write() in each
> > EVENT_MORE_DATA callback
>
> > Question 2:
> >   When i play streamdatasome times, framesAvail in obtainBuffer()
> > will getting negative number
>
> > Thanks for your BIG BIG help!!! it's pretty urgent to me~~~
>
> > BR,
> > Duncan 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: Send numbers during call

2009-11-16 Thread Stoffe
Hi Roland!

What you need to do is to play the correct DTMF sample.
Please look at 
http://developer.android.com/reference/android/media/ToneGenerator.html

Since I work with IP telephony this is quite simple to do is you have
the control of the actual voice channel.
I do not know if Android supports this to play tones in an ongoing
plain old telephony call.
Maybe someone else can answer that.

But if you have control over the voice channel then it is only a
matter of playing the right frequency.
What you need is a RTP connection and that call is established with
your bank.
There is a nice open source project called SipDroid ( http://sipdroid.org/
) with GPLv3 that you might test to play around with.
But because of the license in might or it might not be viable for your
purpose.

BR Stoffe

On Nov 8, 6:03 am, Roland Heimdahl  wrote:
> Hi!
>
> I'm going to write a simple app that allows me to allow to different
> phonebased services that depend on the user to press different combinations
> of numbers to obtain the service wanted. For example, I can get the current
> saldo from my bank by calling a number, press my identifier code,
> accountcode. So instead of having to remember all these codes I'd like to
> have my phone to remember them and automatically press the keys.
>
> The problem is that I don't find what API to use to send the keystokes
> through. Could you please inform me how to get started?
>
> Thanks in advance
> Roland

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


Re: [android-developers] onNewIntent() is never called when use Icons

2009-11-16 Thread Satya Komatineni
Hopefully you have figured out what the problem is.

I can't say I fully understand it.

But one thing is sure with "onNewIntent()". I have looked at it when I
was configuring an activity on behalf of "search" functionality.

This method is invoked ONLY IF this activity is on top of the visible
stack. That means if you are navigating somewhere else to invoke your
icons, and if this activity is not on top because of that, then the
"onNewIntent()" is not invoked.

Typically if this activity is to invoke itself for whatever reason, or
a service is to invoke it while it is on top then you will see the
"onNewIntent()".

Hope this is useful

Satya
(http://www.satyakomatineni.com)

On Sat, Nov 14, 2009 at 6:58 AM, João Sauer  wrote:
> Hi,
>
> What I'm trying to do was supposed to be very simple, but is not
> working. :)
> I would like to have 2 Icons that will call my activity, that is the
> only one in the package.
> But, when the activity is called, I would like to know which of these
> Icons was used.
> In the logs, I'm able to see that the Intent sent asap after press the
> icon is sending this message like:
> I(  569:0x23d) Starting activity: Intent
> { action=android.intent.action.MAIN categories=
> {android.intent.category.LAUNCHER} flags=0x1020 comp={teste.teste/
> teste.teste.alias1} }
>
> But, my override of onNewIntent is never called and the onResume is
> receiving a modified version of the Intent:
> D(  896:0x380) Intent is Intent { action=android.intent.action.MAIN
> categories={android.intent.category.LAUNCHER} flags=0x1020 comp=
> {teste.teste/teste.teste.mainapp} }
>
> As you can see, the alias1 packagename was modified to mainapp. And
> because of this, I'm unable to check which button was applied.
>
> My code in the manifest file is simple:
>  
>             android:launchMode="singleTop">
>                        
>                                 android:name="android.intent.action.MAIN" />
>                        
>                
>                 android:icon="@drawable/icon" android:targetActivity=".mainapp"
> android:launchMode="singleTop" >
>                        
>                                 android:name="android.intent.action.MAIN" />
>                                 android:name="android.intent.category.LAUNCHER" />
>                        
>                
>                 android:icon="@drawable/icon" android:targetActivity=".mainapp"
> android:launchMode="singleTop">
>                        
>                                 android:name="android.intent.action.MAIN" />
>                                 android:name="android.intent.category.LAUNCHER" />
>                        
>                
>                
>                        
>                                 android:name="android.intent.action.BOOT_COMPLETED" />
>                                 android:name="android.intent.category.HOME" />
>                        
>                
>        
>
> As you can see, I'm using the singleTop definition, as a requirement
> for onNewIntent call.
>
> Any ideas what could be wrong here? Or, How can I have a way to check
> which Icon was used to call my Acitivity?
>
> Thank you,
> Joao Sauer
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Rotational forces doesn't work if the Activity is behind another Dialog-themed Activity

2009-11-16 Thread Dianne Hackborn
That is working as intended.  The orientation impacts the entire screen.

On Mon, Nov 16, 2009 at 3:04 PM, Yan Hong  wrote:

> I forgot to say that Activity B has been set as
> android:screenOrientation="sensor" in the AndroidManifest.xml
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] The audacity !

2009-11-16 Thread Disconnect
Report them to paypal :)

On Mon, Nov 16, 2009 at 6:05 PM, NitroDesk  wrote:

> This is the email we received from droidappz, a site i think that
> pirates software at users request.
> They want us to donate money to them to help pirate apps like ours :-)
>
> 
> Dear ,
>
> Please take a moment to read this.
>
> First and foremost I want to say that if you have already donated and
> don't want to do this again, we have total respect for that. Thank you
> for the donation and for using our site.
>
> However, since we can NOT afford this website any longer we are in
> desperate need of donations. If we don't get donations fast we are
> forced to enable ads, wich is something that we sworn on we would
> never, ever do. Because we want this community to stay (and I bet you
> guys want that too) we are asking you kindly: please donate. If not
> for the VIP-status, then for us.
>
> We may sound desperate by doing this, but we are. We have absolutely
> no income of this site at this moment and it's costing a fortune (we
> need to expand every month for more bandwith).
>
> You can donate by using the donate link on top of the forum The link
> is also added to the bottom of this email. If you decide not to help
> us out, we have total respect for that and we wish you a pleasant stay
> on the website. If you do donate: thanks so much!
>
> Donation link:
> http://droidappz.org/misc.php?do=donate
>
> Thanks again if you help us out. By doing this you will be granted VIP
> status and with that access to the newest appz in the VIP section.
>
> Kind regards,
> brampower
> --
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-11-16 Thread Satya Komatineni
On windows/XP I couldn't make this work directly from the AVD manager by itself.

I had to do it through the Eclipse plugin for ADT (which in turn can
invoke the AVD manager internally in eclipse)

Must be something to do with jdk version or the java version when run
outside(I am thinking)

Here are few more notes if you are trying this on windows:

http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURL&reportId=3001&ownerUserId=satya

Satya

On Mon, Nov 16, 2009 at 6:24 AM, JuanEG  wrote:
> Hi, I had the same problem in Ubuntu 9.10 and solved it thanks to
> StLin comment.
> Cheers.
> Juan
>
> On 1 nov, 03:48, MobileDev  wrote:
>> I too am running running on Ubuntu version 9.10 as well.
>>
>> Adding sdkman.force.http=true to ~/.android/androidtool.cfg allowed me
>> to retrieve the Sites, Packages, and Archives via the Android SDK and
>> AVD Manager.
>>
>> However, nothing happens when I select one of the and click "Install
>> Selected" (button), nothing happens, when I select one of the items
>> from the list to install by clicking on "install selected".
>>
>> Any help will be greatly appreciated.
>>
>> On Oct 30, 10:13 am, Hans  wrote:
>>
>> > Adding sdkman.force.http=true to ~/.android/androidtool.cfg allowed me
>> > to retrieve the Sites, Packages, and Archives via the Android SDK and
>> > AVD Manager.
>>
>> > However, when I select, for example, "SDK Platform Android 2.0, API 5,
>> > revision 1", and click "Install Selected" (button), nothing happens.
>>
>> > I am running on Ubuntu version 9.10 x64 (released version).  The
>> > machine has 4GB RAM.  JDK 6-15-1, via the Synaptic Package Manager, is
>> > installed (along with the dependencies).
>>
>> > On Oct 29, 1:24 pm, Xavier Ducrohet  wrote:
>>
>> > > On Wed, Oct 28, 2009 at 9:23 PM, orange80  wrote:
>>
>> > > > We already know about that... our problem is that the "force http"
>> > > > workaround DOES NOT work for us either.
>>
>> > > which, frankly, is mind boggling.
>> > > Can you give me the exact output of the status window in the SDK
>> > > Manager when you try to update from the repository?
>>
>> > > Also, can you tell me which JDK you are using, OS config, etc..
>>
>> > > thanks!
>> > > Xav
>>
>> > > --
>> > > Xavier Ducrohet
>> > > Android SDK Tech Lead
>> > > Google Inc.
>>
>> > > Please do not send me questions directly. Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] App Not showing up on Verizon DROID Phones

2009-11-16 Thread Kumaravel Kandasami
Yes,she has a Eris HTC phone with verizon. Do u know why it is not showing
up on Eris?

On Nov 15, 2009 12:30 AM, "SoftwareForMe.com SoftwareForMe.com" <
softwareforme@gmail.com> wrote:

I agree. We need some way to keep track of this stuff. I know the Eris
phones can't see PhoneMyPC right now; I'm hoping for a solution at the Dec
11 OTA.

Scott
SoftwareForMe.com
Makers of PhoneMyPC

On Sat, Nov 14, 2009 at 10:11 PM, Kumaravel Kandasami <
kumaravel.kandas...@gmail.com> wrote: > > T...

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Extremely long DNS lookup (and failure) on T-Mobile network

2009-11-16 Thread Mark Wyszomierski
I don't understand this - how are people getting around this?
Restarting the app probably isn't too pleasant for the user!

Thanks

On Nov 15, 2:27 pm, "SoftwareForMe.com SoftwareForMe.com"
 wrote:
> I have seen this too, but what's worse, I've found socket connections taking
> to long to connect, even when not using DNS.
>
> For example, our software can connect to a PC via LAN using an IP address.
> Sometimes it will take > 5 seconds, sometimes it will time out. In either
> case, after such a failure, if I close and re-run the app, it connects
> immediately.
>
> This problem started around the time 1.6 was released.
>
> SoftwareForMe.com
> Makers of PhoneMyPC
>
> On Sun, Nov 15, 2009 at 10:33 AM, Mark Wyszomierski wrote:
>
>
>
>
>
> > How are you all getting around this issue? I am running into it on
> > some phones given out as demos (G1s running 1.5). About 50% of the
> > time, my network requests will just hang for about two minutes, then
> > throw:
>
> >   java.net.UnknownHostException: Host is unresolved: myapi.me.com:80
>
> > this looks embarrassing since the users can open pages through the
> > browser ok - what is going on?
>
> > Thanks
>
> > On Oct 26, 10:05 am, purvi  wrote:
> > > Hello,
>
> > > I am also facing the same problem. I am using a handler to fetch the
> > > data coming from the network request. I am thinking to throw an alert
> > > message to the user from my app indicating "No Response from Network"
> > > or "Network down" or somthing like that so that the user donot see any
> > > error and the user himself restart the app or take corresponding steps
> > > instead of showing user an error. But I system gets to know that there
> > > is no network after all my queries are manipulated and so I dont know
> > > where exactly can I handle this error. I am able to made it print in
> > > my LogCat "error[URL not found]" so it doesnot give any "Force Close
> > > error" but I want the user to be notified about this.
>
> > > Can you please comment on this and incase if you can help me out with
> > > this?
>
> > > Thanks a lot.
> > > Regards,
> > > Purvi
>
> > > On Oct 15, 2:26 am, "tomei.ninge...@gmail.com"
>
> > >  wrote:
> > > > More info: I found out that the web site returns multiple IP addresses
> > > > on the DNS lookup (see the "Resolving i2.sinaimg.cn line below). This
> > > > appears to be for load balancing purposes. Could this be the reason
> > > > that got Android confused?
>
> > > > $ wgethttp://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg
> > > > --23:20:59--  http://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg
> > > >            => `20091014235428.jpg.1'
> > > > Resolving i2.sinaimg.cn... 61.172.207.61, 61.172.207.62,
> > > > 61.172.207.64, ...
> > > > Connecting to i2.sinaimg.cn|61.172.207.61|:80... connected.
> > > > HTTP request sent, awaiting response... 200 OK
> > > > Length: 93,820 (92K) [image/jpeg]
>
> > > > On Oct 14, 9:53 pm, "tomei.ninge...@gmail.com"
>
> > > >  wrote:
> > > > > My problem may not be the same. I got this only on actual G1 device,
> > > > > not on emulator.
>
> > > > > Also, if G1 is connect to my home WiFi network (comcast), the DNS for
> > > > > i0.sinaimg.cn is resolved without any problem. However, if I
> > > > > disconnect Wifi and use TMO USA 3G network, the DNS never resolves.
>
> > > > > On Oct 14, 9:29 pm, for android  wrote:
>
> > > > > >http://code.google.com/p/android/issues/detail?id=2764
>
> > > > > > On Thu, Oct 15, 2009 at 4:40 AM, tomei.ninge...@gmail.com <
>
> > > > > > tomei.ninge...@gmail.com> wrote:
>
> > > > > > > Hello,
>
> > > > > > > This happens only when my G1 phone is on T-Mobile network:
>
> > > > > > > I found that when I try to go to the browser, and type the
> > address
>
> > > > > > >    http://i0.sinaimg.cn/
>
> > > > > > > The browser tries to load the page, but no progress is shown for
> > more
> > > > > > > than 2 minutes.
>
> > > > > > > (I have full 3G signal; all other addresses work just fine)
>
> > > > > > > Eventually when I tried to access this URL in my Java code, I
> > found a
> > > > > > > similar long delay when I try to open the HttpUrlConnection, and
> > > > > > > eventually I get thisexception:
>
> > > > > > > I/InetAddress( 1940):Unknownhosti0.sinaimg.cn, throwing
> > > > > > > UnknownHostException
> > > > > > > W/System.err( 1940): java.net.UnknownHostException:Hostis
> > > > > > > unresolved: i0.sinaimg.cn:80
> > > > > > > W/System.err( 1940):    at
> > java.net.Socket.connect(Socket.java:1002)
>
> > > > > > > Why would DNS take so long? Also, if my program tries to issue
> > the
> > > > > > > same HTTP request again, the same 2+ minute blocking happened.
>
> > > > > > > Is this an Android bug or a T-Mobile infrastructure bug? It seems
> > the
> > > > > > > Android API should try to time-out faster, especially on the
> > second
> > > > > > > attempt.- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quo

[android-developers] The audacity !

2009-11-16 Thread NitroDesk
This is the email we received from droidappz, a site i think that
pirates software at users request.
They want us to donate money to them to help pirate apps like ours :-)


Dear ,

Please take a moment to read this.

First and foremost I want to say that if you have already donated and
don't want to do this again, we have total respect for that. Thank you
for the donation and for using our site.

However, since we can NOT afford this website any longer we are in
desperate need of donations. If we don't get donations fast we are
forced to enable ads, wich is something that we sworn on we would
never, ever do. Because we want this community to stay (and I bet you
guys want that too) we are asking you kindly: please donate. If not
for the VIP-status, then for us.

We may sound desperate by doing this, but we are. We have absolutely
no income of this site at this moment and it's costing a fortune (we
need to expand every month for more bandwith).

You can donate by using the donate link on top of the forum The link
is also added to the bottom of this email. If you decide not to help
us out, we have total respect for that and we wish you a pleasant stay
on the website. If you do donate: thanks so much!

Donation link:
http://droidappz.org/misc.php?do=donate

Thanks again if you help us out. By doing this you will be granted VIP
status and with that access to the newest appz in the VIP section.

Kind regards,
brampower
--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Rotational forces doesn't work if the Activity is behind another Dialog-themed Activity

2009-11-16 Thread Yan Hong
I forgot to say that Activity B has been set as
android:screenOrientation="sensor" in the AndroidManifest.xml

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

2009-11-16 Thread fadden
On Nov 14, 8:08 am, Aasha  wrote:
> I have just got myself a new HTC Tattoo which is NOT carrier locked.
> Now I'm unable to find out how to use that to debug my application.
> Is is possible to do that on an "unlocked" HTC Tattoo? If so, can
> someone point me to some resource outlining how to do that?

http://developer.android.com/guide/developing/device.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] Rotational forces doesn't work if the Activity is behind another Dialog-themed Activity

2009-11-16 Thread Yan Hong
I have created an Activity A, which is blocked from rotating. I have
implemented this by adding android:screenOrientation="portrait" in the
AndroidManifest.xml

I have tested the app, Activity A didn't enter landscape mode when I
rotated the phone, everything worked fine.

Then I created another Activity B, which is a 'Dialog theme' Activity.
Inside Activity A, I called

startActivity(new Intent(this, B.class));

Now Activity A is behind Activity B, but still visible. At this point,
if I rotated the phone, both Activity B and Activity A were rotated
into landscape mode. android:screenOrientation="portrait" doesn't work
on Activity A any more.

Is this a bug? Or did I do something 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 know whether a resource is compressed or not?

2009-11-16 Thread fadden
On Nov 15, 6:11 am, Paranoia  wrote:
> we can let aapt not compress the resource via command -0. which api
> can be used to check the resource is compress or not?

The easiest way is to use something like "unzip -v mystuff.apk" and
see if it says "Stored" or "Deflate".

I don't know if there's an API that will do that for you, other than
java.util.zip.*.

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

2009-11-16 Thread fadden
On Nov 3, 6:50 pm, Dan Sherman  wrote:
> From what I can decipher, looks to be coming from a webview component...  Is
> there any way to track it further, or figure out exactly what's causing it?
> Its relatively rare, so its a bit tough to reproduce, but if I have a way to
> trace it, at least we'll be prepared when it does happen :)

I can see webcore calling into the VM (presumably through JNI), but
not much else.

Did you want to try native debugging with gdb/gdbserver?

Can you make this happen on a production device?  I can tell a little
more about the native stack trace there.

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

2009-11-16 Thread Paul Turchenko
Just have table with 1 column. Store values there. SQLiteDatabase has
all necessary APIs.

On Nov 16, 2:49 pm, bharath  wrote:
> can any one tell me how to store and retrieve  arraylist in/from
> sqlite
>
> ArrayList results = new ArrayList();

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


[android-developers] Gallery stays dim??

2009-11-16 Thread racx182
The selected item in my widget Gallery stays dim when I set
unselectedAlpha to a value . Do I need to be handling item selection
or something?

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: abortAnimation on ListView

2009-11-16 Thread Loki117
Damn still no joy

I have ListView

FocusableInTouchMode, Focusable

Children

Focusable but not in touch mode.

itemsCanFocus set to true and still the same result I can see the
children highlight for the touch its just as if the event is not
bubbled up to the ListView to stop the scroll  I may just have to
wait for this fix hu?

On Nov 16, 5:32 pm, Romain Guy  wrote:
> ListView also has to be focusable in touch mode :)
>
>
>
>
>
> On Mon, Nov 16, 2009 at 11:24 PM, Loki117  wrote:
> > Oh Also apparently I lied the ListView is focusable already (just
> > tried to switch it to be so) but not focusable in touch mode could
> > this be the cause?
>
> > On Nov 16, 5:06 pm, Romain Guy  wrote:
> >> > It doesn't HAVE to be programmatically it just happens that at the
> >> > moment when the user flings the list and then places there finger on
> >> > the list it doesn't stop it keep scrolling bit highlights the selected
> >> > child in the list.
>
> >> Ok that's not something you should have to handle. It happens to be a
> >> known issue I fixed last week, so it will be made public in whatever
> >> next release of Android.
>
> >> > list view has not been set to focusable (it doesnt work even if it
> >> > does have a focusable / focusable touch)
>
> >> The ListView should be focusable, it is very wrong to remove the
> >> focusability from ListView.
>
> >> > all children are focusable
>
> >> That's your problem. This is what causes the aforementioned bug. When
> >> you do this, you need to tell ListView that is children are focusable.
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  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
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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: Another take on anti-piracy

2009-11-16 Thread Paul Turchenko
Our company has developed security layer for Android applications. We
will publish it later as a separate library that other developers
could include in their applications. Please visit
http://www.artfulbits.com/Android/antipiracy.aspx for more info and
subscribe if you're interested in updates.

On Nov 16, 10:36 pm, "admin.androidsl...@googlemail.com"
 wrote:
> So looking at it a different way ...
>
> Are there any popular android apps that are not suffering from massive
> piracy?
>
> I had a quick hunt around and could see that MyBackup Pro asks for a
> Google Checkout number and Copilot also requires a code on starting
> up.
>
> Maybe there's something we can all learn by seeing how other app
> developers are dealing with this issue.
>
> Does anyone know how effective these measures are? Has anyone seen any
> other techniques that have worked.
>
> Its getting very tiring reading how pirates feel they have some right
> to steal apps from hard-working devs. Would love to teach those guys a
> lesson ...

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


[android-developers] Re: Why String "\0" is converted to [65533,65533]

2009-11-16 Thread fadden
On Nov 14, 5:58 am, Joes  wrote:
> While I'm programming the Android SMTP code,I met a confused problem
> with code similar as the following:
>     String str= "\0" username "\0" passwrd;
> After executed the code, I found "\0" is intepreted as two
> undisplayable char.

I ran a quick test and saw (as others have) that this returns a single-
character string with one character (0), as expected.

(Stretching) if you converted the string to a UTF-8 byte array, you
would see two bytes (0xc0 0x80) due to the way that Java specifies its
"modified UTF-8"; see e.g. 
http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/types.html#wp16542
.  However, I don't see how you would get to something like 65533 (-3)
from there.

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

2009-11-16 Thread adag
Hello all,
I am facing some not understandable error. Could anybody help to put
light on it
The variable edtTxt is returning null and encoutering nullpointer
exception while I am trying to run and entered text in the txt_edit
field.

Here is the code.
-- code --
AlertSample.java
---
   LayoutInflater factory = LayoutInflater.from
(this);
final View txtEntryview = factory.inflate
(R.layout.sample_alert_edit,null);
return new AlertDialog.Builder(AlertSample.this)
.setIcon(android.R.drawable.ic_dialog_alert)
.setTitle("Enter Name")
.setView(txtEntryview)
.setPositiveButton("OK", new 
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog,
int whichButton) {
EditText edtxt =  (EditText) findViewById
(R.id.txt_edit);
Editable strTxtforSearch =
edtxt.getEditableText();
getWorkDone(strTxtforSearch.toString());
}
})

---sample_alert_edit.xml
http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">






Any response is appreciable.

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


Re: [android-developers] Re: abortAnimation on ListView

2009-11-16 Thread Romain Guy
ListView also has to be focusable in touch mode :)

On Mon, Nov 16, 2009 at 11:24 PM, Loki117  wrote:
> Oh Also apparently I lied the ListView is focusable already (just
> tried to switch it to be so) but not focusable in touch mode could
> this be the cause?
>
> On Nov 16, 5:06 pm, Romain Guy  wrote:
>> > It doesn't HAVE to be programmatically it just happens that at the
>> > moment when the user flings the list and then places there finger on
>> > the list it doesn't stop it keep scrolling bit highlights the selected
>> > child in the list.
>>
>> Ok that's not something you should have to handle. It happens to be a
>> known issue I fixed last week, so it will be made public in whatever
>> next release of Android.
>>
>> > list view has not been set to focusable (it doesnt work even if it
>> > does have a focusable / focusable touch)
>>
>> The ListView should be focusable, it is very wrong to remove the
>> focusability from ListView.
>>
>> > all children are focusable
>>
>> That's your problem. This is what causes the aforementioned bug. When
>> you do this, you need to tell ListView that is children are focusable.
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  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
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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


Re: [android-developers] Re: abortAnimation on ListView

2009-11-16 Thread Romain Guy
That's correct.

On Mon, Nov 16, 2009 at 11:18 PM, Loki117  wrote:
> I am already setting itemsCanFocus(true) for the listView to signify
> that the children are focusable is this what you intended by "you need
> to tell ListView that is children are focusable."?
>
> On Nov 16, 5:06 pm, Romain Guy  wrote:
>> > It doesn't HAVE to be programmatically it just happens that at the
>> > moment when the user flings the list and then places there finger on
>> > the list it doesn't stop it keep scrolling bit highlights the selected
>> > child in the list.
>>
>> Ok that's not something you should have to handle. It happens to be a
>> known issue I fixed last week, so it will be made public in whatever
>> next release of Android.
>>
>> > list view has not been set to focusable (it doesnt work even if it
>> > does have a focusable / focusable touch)
>>
>> The ListView should be focusable, it is very wrong to remove the
>> focusability from ListView.
>>
>> > all children are focusable
>>
>> That's your problem. This is what causes the aforementioned bug. When
>> you do this, you need to tell ListView that is children are focusable.
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  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
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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


Re: [android-developers] Re: Another take on anti-piracy

2009-11-16 Thread Abdul Mateen
Yes, I am talking about the same!. Well! Google should be providing with
some anti-piracy as Microsoft is!
On Mon, Nov 16, 2009 at 5:15 PM, strazzere  wrote:

> Sorry, do you mean the actual "Android Market" itself? The
> applications Vending.apk?
>
> It's been put on plenty of ROMS... Remember the C&D Cyanogen
> received... For just this thing?
>
> I'm not 100% sure if this qualified as "piracy" but it does fall under
> the "incorrect distribution"...
>
> Besides, the "protection" you may be talking about is it's dependency
> on Google-centric frameworks that are no available in the AOSP. Though
> that doesn't seem like a very good protection scheme to me :)
>
> On Nov 16, 5:12 pm, Abdul Mateen  wrote:
> > As far as I know about, "Android Market" software is not yet
> pirated(Correct
> > me if I am wrong).
> >
> > On Mon, Nov 16, 2009 at 5:07 PM, strazzere  wrote:
> > > One instance of application security I've seen was bluetooth file
> > > sharing application.
> >
> > > I believe it read where it's location was, and if it's wasn't
> > > installed to /data/app-private then it called you a pirate and exited
> > > the program. Though this was easily circumvented by a simple push to /
> > > data/app-private, it was detailed somewhere on XDA.
> >
> > > Also, while CoPilot and MyBackupPro seem to be defending well against
> > > piracy, it should be noted that they both have been cracked.
> >
> > > On Nov 16, 4:10 pm, "nEx.Software" 
> > > wrote:
> > > > I think apps which operate in a SAAS fashion stand the best chance
> > > > against piracy. Unfortunately, the current terms of the Android
> Market
> > > > make it difficult, if not impossible to do this sort of thing. Web-
> > > > apps have the obvious benefit in these cases as they can house the
> > > > bulk of their functionality on the server and use a stub app to
> access
> > > > those features. As long as you can make this service worthwhile
> > > > outside of the world of Android, you'd probably be OK from the
> current
> > > > Android Market terms and conditions (please correct me if I am
> wrong).
> >
> > > > On Nov 16, 1:36 pm, "admin.androidsl...@googlemail.com"
> >
> > > >  wrote:
> > > > > So looking at it a different way ...
> >
> > > > > Are there any popular android apps that are not suffering from
> massive
> > > > > piracy?
> >
> > > > > I had a quick hunt around and could see that MyBackup Pro asks for
> a
> > > > > Google Checkout number and Copilot also requires a code on starting
> > > > > up.
> >
> > > > > Maybe there's something we can all learn by seeing how other app
> > > > > developers are dealing with this issue.
> >
> > > > > Does anyone know how effective these measures are? Has anyone seen
> any
> > > > > other techniques that have worked.
> >
> > > > > Its getting very tiring reading how pirates feel they have some
> right
> > > > > to steal apps from hard-working devs. Would love to teach those
> guys a
> > > > > lesson ...
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Positioning Elements with Various Resolutions

2009-11-16 Thread Mark Hansen
Here are two images that illustrate my question:

This is correct, not how the dice are centered in the box and the gray
box lines up with the top and corners of the white outline below.

http://dl.dropbox.com/u/26335/Capture11-16-2009-5.20.44%20PM.jpg

This is in the emulator that is setup like the Droid phone:

http://dl.dropbox.com/u/26335/Capture11-16-2009-5.22.18%20PM.jpg

Note the dice are now not centered vertically and the bow for the 9/10/
J is no longer lined up with the top of the white outline as above.

Still stumped on this one :(

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


  1   2   3   >