[android-developers] Re: Why ADB and DDMS cannot recognize my phone in Ubuntu?

2010-05-30 Thread Indicator Veritatis
I have been using a slighly different sequence of commands, and under
a slightly different Linux, Fedora. What I have been doing is:

1) connect the device, wait for beeps acknowledging USB connection and
debug capability
2) become root (you will have to sudo each of the following commands
instead)
3) adb -d kill-server
4) adb -d start-server
5) adb devices just to double check.

It has always worked for me so far, but as the saying goes, your
mileage may vary;) They are not, after all, identical versions of
Linux nor with identical problems when using Android. But they are
similar.

On May 29, 9:18 pm, Ichi ukas...@gmail.com wrote:
 Hi Rogerio,
 Thanks for providing this.
 Unfortunately, I tried but it seems not work to me.

 Any other idea?

 Best Regards,
 Ichi

 On 5月28日, 下午8時07分, Rogério de Souza Moraes rogerio.so...@gmail.com
 wrote: Hi Ichi,

  Execute the following commands:

  * Enter in root shell
  $ sudo -s

  * Stop the adb-server
  # adb stop-server

  * Start the server and list the devices
  # adb devices

  This works for me,

  Regards,

  Rogerio

  2010/5/27 Ichi ukas...@gmail.com

   Hi,
   I am trying to connect my Acer Liquid with ADB and DDMS under Ubuntu
   10.04
   I read some posts and already add the VID (0502) and PID(3202) in /etc/
   udev/rules.d/51-android.rules,
   but adb devices still list my phone's name as question mark
   ().

   When I try DDMS, I got the following error:
   E/DDMS: device () request rejected: device not found

   Is there something I missed?

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

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


[android-developers] Re: Why ADB and DDMS cannot recognize my phone in Ubuntu?

2010-05-30 Thread asicwizard
Make sure that you have USB debugging enabled on your phone:

Settings - Applications - Development - USB Debugging

Then use /usr/sbin/lsusb to see the VID and PID of your device

I don't know the VID and PID of the Acer Liquid.
But be sure that what you find with lsusb matches your UDEV rules.

-George

On May 26, 9:36 pm, Ichi ukas...@gmail.com wrote:
 Hi,
 I am trying to connect my Acer Liquid with ADB and DDMS under Ubuntu
 10.04
 I read some posts and already add the VID (0502) and PID(3202) in /etc/
 udev/rules.d/51-android.rules,
 but adb devices still list my phone's name as question mark
 ().

 When I try DDMS, I got the following error:
 E/DDMS: device () request rejected: device not found

 Is there something I missed?

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

2010-05-30 Thread TreKing
On Fri, May 28, 2010 at 4:07 PM, kish kishore.sri...@gmail.com wrote:

 Is there any other way other than using multiple threads.


Nope - if you put everything in one thread of execution, your giant draw
function must completely execute before anything gets actually drawn to the
screen.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 ADB and DDMS cannot recognize my phone in Ubuntu?

2010-05-30 Thread Ichi
Sorry that maybe I didn't describe my problem clear enough.

I follow the instructions in the below link:
http://coffeecokeandcode.blogspot.com/2009/12/android-debug-bridge-on-ubuntu-910.html

1. Find the VID and PID using lsusb
2. Add them into /etc/udev/rules.d/51.android.rules, and reload the
udev service
(I tried both sudo service udev reload and sudo service udev
restart)
3. Restart the adb server in super user mode.
(sudo ./adb kill-server , sudo ./adb start-server under android-sdk
folder)

The adb shell commands works great actually, only adb devices shows
the phone name with ,
and I cannot debug with ddms because it cannot find the device.
(But adb logcat works fine, I don't know what makes the difference
between ddms and adb logcat)

P.S. I'm sure that I use stand alone ddms without Eclipse.


On 5月30日, 下午2時36分, asicwizard asicwiz...@gmail.com wrote:
 Make sure that you have USB debugging enabled on your phone:

 Settings - Applications - Development - USB Debugging

 Then use /usr/sbin/lsusb to see the VID and PID of your device

 I don't know the VID and PID of the Acer Liquid.
 But be sure that what you find with lsusb matches your UDEV rules.

 -George

 On May 26, 9:36 pm, Ichi ukas...@gmail.com wrote:



  Hi,
  I am trying to connect my Acer Liquid with ADB and DDMS under Ubuntu
  10.04
  I read some posts and already add the VID (0502) and PID(3202) in /etc/
  udev/rules.d/51-android.rules,
  but adb devices still list my phone's name as question mark
  ().

  When I try DDMS, I got the following error:
  E/DDMS: device () request rejected: device not found

  Is there something I missed?

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

2010-05-30 Thread Yuvi
Hey,

have you solved this problem? I am facing right now the exact same thing
(that onEnabled() is called when the Configuration utility is launched, and
not when the actual widget is placed on the home screen).


Thanks!
Yuvi

-- 
YuviDroid
http://android.yuvalsharon.net

On Sat, Feb 27, 2010 at 7:51 PM, Mariano Kamp mariano.k...@gmail.comwrote:

 Hey guys,

   I am bit puzzled by an app widget's lifecyle.

   When I create a widget my own configuration activity is launched,
 some data is entered, I store this data some place and call finish on
 my config activity like this:

 Intent resultValue = new Intent();
 resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
 setResult(RESULT_OK, resultValue);
 finish();

 Now I would expect to see something like that in my log:

 I/System.out(  312):
 onReceive...=android.appwidget.action.APPWIDGET_ENABLED
 I/System.out(  312): onReceive...=android.appwidget.action.APPWIDGET_UPDATE

 But as a matter of fact those log entries from above are created when
 the configuration activity is *started*. Is that right? Am I doing
 something wrong here?
 Should I invent some artificial limbo/default state for the widget
 that can be displayed when it is in its configuration mode?

 Cheers,
 Mariano

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

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

RE: [android-developers] Best way to live demo apps

2010-05-30 Thread Ted Neward
Yeah, I'd sort of thought that too, but thought that maybe a little
out-of-the-box thinking might serve as a good solution instead of heading
down a yak-shaving exercise that turned out to be more fragile than useful.
(I've been there, done that. :-) )

Meanwhile, I'll bite: why is it called the ELMO?

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Mark Murphy
 Sent: Saturday, May 29, 2010 4:14 AM
 To: android-developers@googlegroups.com
 Subject: Re: [android-developers] Best way to live demo apps
 
 Ted Neward wrote:
  What about one of those magnifier overhead projectors from back in
 the 70s
  or so? Not the transparency ones, the ones that essentially point a
 camera
  at the base and project up onto the screen. You hold (or set) the
 phone
  underneath it, and voila, you now have two screens, one from your
 laptop and
  one conveying what the phone looks like.
 
 I assumed the OP was only interested in software solutions.
 
 The predominant hardware solution today is the ELMO, which is pretty
 much what you describe, just named after a Sesame Street character.
 
 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy
 
 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.5 Available!
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-
 develop...@googlegroups.com
 To unsubscribe from this group, 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: where is the sdcard in emulator 2.2?

2010-05-30 Thread String
On May 28, 10:37 am, coolbanana ralf...@web.de wrote:

 but i can't find the sdcard in eclipse unter DDMS/File Explorer

In 2.2 it's been moved from /sdcard to /mnt/sdcard. Is that what you
mean?

String

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


[android-developers] Re: Eclair: MovieView App to put into background like Music App.

2010-05-30 Thread Deva R
guys, any hints for this issue?

On Thu, May 27, 2010 at 5:07 PM, Deva R r.deva...@gmail.com wrote:
 Hi,

 Android Music app (com.android.music) shall reamin active (continue
 playing music) in background, but not any other apps (say browser cant
 be put in background)?
 Is it possible to have android movie player
 (com.android.camera.MovieView) to behave in similar fashion?

 My requirement is - to launch video playback in a auxiliary display
 device, while regular display panel will be active with regular
 android apps (menu/lock screen/browser/...)

 Regards,
 Deva


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

2010-05-30 Thread Romain Guy
 Meanwhile, I'll bite: why is it called the ELMO?

Because of the manufacturer: http://www.elmousa.com/ :))

-- 
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] Best way to live demo apps

2010-05-30 Thread Ted Neward
Aw, and here I was hoping for a much better story. So prosaic. ;-)

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Romain Guy
 Sent: Sunday, May 30, 2010 1:31 AM
 To: android-developers@googlegroups.com
 Subject: Re: [android-developers] Best way to live demo apps
 
  Meanwhile, I'll bite: why is it called the ELMO?
 
 Because of the manufacturer: http://www.elmousa.com/ :))
 
 --
 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-
 develop...@googlegroups.com
 To unsubscribe from this group, 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] Sample code for INJECT_EVENTS permission

2010-05-30 Thread Mainul Mizan
Hello,

I have been looking for generating key event and found below
permission. But, unfortunately I couldn't get hand to any sample code.

http://developer.android.com/reference/android/Manifest.permission.html#INJECT_EVENTS

Anyone with any code sample and/or any kind of suggestion would be
appreciated.

BR
Mainul

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


[android-developers] How to use web camera in android emulator ??

2010-05-30 Thread pawan nimje
Hi All,

How can i use web cam with android emulator ??

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: Why ADB and DDMS cannot recognize my phone in Ubuntu?

2010-05-30 Thread Gubatron
I wrote a post about this a few days ago

Here it is in case you haven't solved it yet
http://www.gubatron.com/blog/2010/05/28/solved-eclipse-cant-see-my-android-device-on-ubuntu/



On May 27, 12:36 am, Ichi ukas...@gmail.com wrote:
 Hi,
 I am trying to connect my Acer Liquid with ADB and DDMS under Ubuntu
 10.04
 I read some posts and already add the VID (0502) and PID(3202) in /etc/
 udev/rules.d/51-android.rules,
 but adb devices still list my phone's name as question mark
 ().

 When I try DDMS, I got the following error:
 E/DDMS: device () request rejected: device not found

 Is there something I missed?

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

2010-05-30 Thread murali raju
update the adt plug-in's.

On Sun, May 30, 2010 at 1:28 PM, String sterling.ud...@googlemail.comwrote:

 On May 28, 10:37 am, coolbanana ralf...@web.de wrote:

  but i can't find the sdcard in eclipse unter DDMS/File Explorer

 In 2.2 it's been moved from /sdcard to /mnt/sdcard. Is that what you
 mean?

 String

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


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

[android-developers] Out of Memory Issue in Android SimpleCursorAdapter

2010-05-30 Thread mike
hi guys,

i looking for a solution for this issue for more than 2 weeks now.
even i have uploaded this issue previously but no one is helping me
out.

i have a SimpleCursorAdapter  which will load all the contacts in the
address book with there contact images if they don't have an image a
default image will be displayed.

other than this another image will be displayed.

so altogether Contact image/ Contact Name/Contact Number and another
image will be displayed.

i have about 400 + contacts.

so when i'm scrolling down the list i'm getting this Memory issue.

so when i removed all the images it works fine.

this is my code


import java.io.ByteArrayInputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.sabretch.mobility.colorEyeD3.R;
import com.sabretch.mobility.colorEyeD3.Constants.Constants;
import com.sabretch.mobility.colorEyeD3.custom.CustomScreen;
import
com.sabretch.mobility.colorEyeD3.database.TableDetails.MetaData;
import com.sabretch.mobility.colorEyeD3.text.compose.Compose;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts.Phones;
import android.provider.Contacts.Photos;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
import android.widget.TextView;

public class Contacts extends ListActivity {
static final String[] cat = Constants.DEFAULT_CATEGORIES;
static int[] id;
static ListLong contactId;
DisplayContacts dispCont;
ListString number;
MapString, String combination = new HashMapString, String();
String isDisplayDetails;
ProgressDialog dialog;

private class DisplayContacts extends SimpleCursorAdapter {
private LayoutInflater mInflater;
Context mCtx;

public DisplayContacts(Context context, int layout, Cursor c,
String[] from, int[] to) {
super(context, layout, c, from, to);
// TODO Auto-generated constructor stub
mInflater = LayoutInflater.from(context);
this.mCtx = context;
}

@Override
public View newView(Context context, Cursor cursor, ViewGroup
parent) {
// TODO Auto-generated method stub
Cursor c = getCursor();
// int idCol = c.getColumnIndex(Phones._ID);
int nameCol = c.getColumnIndex(Phones.NAME);
int numCol = c.getColumnIndex(Phones.NUMBER);
int foreign = c.getColumnIndex(Phones.PERSON_ID);
String name = c.getString(nameCol);
String number = c.getString(numCol);
// long id = c.getLong(idCol);
long phoneForeign = c.getLong(foreign);
View v = mInflater.inflate(R.layout.contacts, parent, 
false);
TextView name_text = (TextView) 
v.findViewById(R.id.contactName);

if (name_text != null) {
name_text.setText(name);
}

TextView num_text = (TextView) 
v.findViewById(R.id.number);
if (num_text != null) {
num_text.setText(number);
}
// set the profile picture
ImageView profile = (ImageView) 
v.findViewById(R.id.imgContact);
if (profile != null) {
// retrieve the contact photo as a Bitmap
// Uri uri = 
ContentUris.withAppendedId(People.CONTENT_URI, id);
Cursor cur = 
getContentResolver().query(Photos.CONTENT_URI,
null, Photos.PERSON_ID + =' + 
phoneForeign + ',
null, null);
byte[] b = null;
if (cur != null) {
if (cur.moveToNext()) {
int imgColumn = 
cur.getColumnIndex(Photos.DATA);
b = cur.getBlob(imgColumn);
}
}
   

[android-developers] Re: glGenTextures going crazy on actual device

2010-05-30 Thread Borsty
Could anyone check what glGenTextures() generates?
I still can't find any solution to this problem, and putting every
possible texture into a big one is no option for me.

Something must be going on here :S

I'm running Android 2.1-update1 on my Motorola Milestone if that's
important.
Other games seems to work flawlessly with (at least that's what I
think) way more than just 4 textures :)

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


[android-developers] Local Search Does not work

2010-05-30 Thread mike
hi guys,

i have implemented my own search for Contacts but every time it
return's nothing from the searching criteria.

if (getIntent().getAction().equals(Intent.ACTION_SEARCH)) {
String query = 
getIntent().getStringExtra(SearchManager.QUERY);
Cursor cursor = 
getContentResolver().query(Phones.CONTENT_URI,
null, Phones.NAME + =' + query.trim() 
+ ', null,
Phones.NAME +  ASC);
startManagingCursor(cursor);
boolean b = cursor.moveToNext();
String[] columns = new String[] { Phones.NAME, 
Phones.NUMBER };
int[] names = new int[] { R.id.contactName, R.id.number 
};
dispCont = new DisplayContacts(this, R.layout.contacts, 
cursor,
columns, names);
setListAdapter(dispCont);
registerForContextMenu(getListView());
}

this is my manifest

activity android:name=.contatcs.Contacts
intent-filter
action 
android:name=android.intent.action.SEARCH /
category 
android:name=android.intent.category.DEFAULT /
/intent-filter
intent-filter
action 
android:name=android.intent.action.SEARCH /
category 
android:name=android.intent.category.DEFAULT /
/intent-filter
meta-data android:name=android.app.searchable
 
android:resource=@xml/quicksearch /
/activity

the query String will contains a value but cursor.moveToNext() will
always returns false.

any idea about this??

regards,
Mike

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

2010-05-30 Thread Leigh McRae
Looks like you cut the original post in your reply so I am not sure what 
the exact problem is but here are some gotchas.


- make sure your context is valid.  Milestone eglChooseConfig doesn't 
work correctly.

- are you calling from the same thread?
- a negative id isn't invalid since I suspect the int is really a 
unsigned int

- check return codes for errors for all your EGL calls

Leigh

On 5/30/2010 8:44 AM, Borsty wrote:

Could anyone check what glGenTextures() generates?
I still can't find any solution to this problem, and putting every
possible texture into a big one is no option for me.

Something must be going on here :S

I'm running Android 2.1-update1 on my Motorola Milestone if that's
important.
Other games seems to work flawlessly with (at least that's what I
think) way more than just 4 textures :)

   


--
Leigh McRae
www.lonedwarfgames.com

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


[android-developers] Re: Themes, Styles and Items [How to create skins for apps?]

2010-05-30 Thread Moto
Bump?...

On May 27, 6:57 pm, Moto medicalsou...@gmail.com wrote:
 example of declared Themes, note the changes in the pointing color...
 How do I use this than so that my view points to the item
 colorListItemBottom??

     !-- Light Skin --
     style name=Theme.Skin.DayTime
         item name=colorListItemBottom@color/color_semi_white/item
     /style

     !-- Dark Skin --
     style name=Theme.Skin.NightTime
         item name=colorListItemBottom@color/color_semi_black/item
     /style

 On May 27, 6:51 pm, Moto medicalsou...@gmail.com wrote:

  I guess this is new topic... :(

  On May 27, 3:20 pm, Moto medicalsou...@gmail.com wrote:

   I'm currently trying to create skins for my app, and the simplest way
   to do it, it seems is by creatingThemesfor each skin.  I'm getting
   confused with how to use a specified item which points to a declared
   color from my Theme to a particular shape I create via xml.

   I hope I make sense...

   Thanks for any help I can get!
   -Moto



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 ADB and DDMS cannot recognize my phone in Ubuntu?

2010-05-30 Thread Zigurd
Gubatron's solution works, but necessarily because of the udev rules
file. He also has you restart the adb server as root. That, by itself
will work, but it is a workaround until you can figure out the correct
udev rules for your system.

I have a file named /etc/udev/rules.d/51-android.rules that contains
the line

SUBSYSTEM==usb, ATTR{idVendor}==22b8, MODE=0666, GROUP=plugdev

That works for my Motorola Droid

According to the comments on this Ubuntu issue:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/316215 you should
not need a udev rule at all if you are running 10.4., but after some
experimentation, this does not seem to be true, at least for my Droid.
Maybe a G1 is recognized automatically now.

On May 30, 8:05 am, Gubatron gubat...@gmail.com wrote:
 I wrote a post about this a few days ago

 Here it is in case you haven't solved it 
 yethttp://www.gubatron.com/blog/2010/05/28/solved-eclipse-cant-see-my-an...

 On May 27, 12:36 am, Ichi ukas...@gmail.com wrote:



  Hi,
  I am trying to connect my Acer Liquid with ADB and DDMS under Ubuntu
  10.04
  I read some posts and already add the VID (0502) and PID(3202) in /etc/
 udev/rules.d/51-android.rules,
  but adb devices still list my phone's name as question mark
  ().

  When I try DDMS, I got the following error:
  E/DDMS: device () request rejected: device not found

  Is there something I missed?

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

2010-05-30 Thread Carl H
I'm using Eclipse.

I tried the AVD Manager.

tried to increase cache size
cache partition
ram

to 200MB but my 150 MB APK still won't install.
insufficient memory

On May 28, 7:09 pm, Jay Ganatra ganatra.ja...@gmail.com wrote:
 which IDE  r u using ???

 On Fri, May 28, 2010 at 4:19 PM, Carl Hernandez 
 carl.hernan...@gmail.comwrote:

  Hi Jay!

  Do you know how it is done?

  Thanks!

  On Fri, May 28, 2010 at 6:22 PM, Jay Ganatra ganatra.ja...@gmail.com
  wrote:
   or show its property or details u can increase from there itself

   On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra ganatra.ja...@gmail.com
   wrote:

   create new emulator and  make it as higher space easily !!!

   On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez 
  carl.hernan...@gmail.com
   wrote:

   Hi!

   My application is almost 1 gig. I don't intend to sell this. This is
   for personal use. I have large audio files that NEEDs to be stored
   folder. The emulator won't launched it since it's big. How can I make
   the emulator accept a large APK (1gig)?

   Thanks!

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

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

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

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


[android-developers] Re: How can I increase the memory capacity of my Android emulator?

2010-05-30 Thread Carl H
Thanks for taking the time to answer.


I knew I could use the SD card for my audio files.
But I am required from my specs to use the built-in flash.



On May 28, 11:46 pm, Yahel kaye...@gmail.com wrote:
 Won't exactly answer your question but should work on a real device as
 well if needed :

 Store the huge audio file on the sd card then access it from your app.

 Yahel

 On 28 mai, 12:10, Carl Hernandez carl.hernan...@gmail.com wrote:

  Hi!

  My application is almost 1 gig. I don't intend to sell this. This is
  for personal use. I have large audio files that NEEDs to be stored
  folder. The emulator won't launched it since it's big. How can I make
  the emulator accept a large APK (1gig)?

  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: glGenTextures going crazy on actual device

2010-05-30 Thread Borsty
Thanks for your reply!

I've never seen any egl* method, probably because I'm using custom
GLSurfaceView and Renderer subclasses.
So I can't check what they return.

I call glGenTextures() inside the onSurfaceCreated() method that's
being called from the GLSurfaceView thread so yes.
Contexts seem to be alright, when I change the order of textures
loaded, the first 4 (with the positive id's) always work nicely, no
matter what size they are.

Generating texture id's on the fly return the same id's in the same
order, from the 4th on I get negative values.

On 30 Mai, 15:23, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:
 Looks like you cut the original post in your reply so I am not sure what
 the exact problem is but here are some gotchas.

 - make sure your context is valid.  Milestone eglChooseConfig doesn't
 work correctly.
 - are you calling from the same thread?
 - a negative id isn't invalid since I suspect the int is really a
 unsigned int
 - check return codes for errors for all your EGL calls

 Leigh

 On 5/30/2010 8:44 AM, Borsty wrote:

  Could anyone check what glGenTextures() generates?
  I still can't find any solution to this problem, and putting every
  possible texture into a big one is no option for me.

  Something must be going on here :S

  I'm running Android 2.1-update1 on my Motorola Milestone if that's
  important.
  Other games seems to work flawlessly with (at least that's what I
  think) way more than just 4 textures :)

 --
 Leigh McRaewww.lonedwarfgames.com

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


Re: [android-developers] Re: How can I increase the memory capacity of my Android emulator?

2010-05-30 Thread Mark Murphy
Carl H wrote:
 Thanks for taking the time to answer.
 
 I knew I could use the SD card for my audio files.
 But I am required from my specs to use the built-in flash.

Since this is for personal use, change your specs.

-- There is no Android device in production use today that will support
a 1GB APK.

-- A 1GB APK will cost those on metered data plans a small fortune, and
will use up a fair chunk of the bandwidth cap for those on capped data
plans.

-- There is no documented means of changing the emulator in the manner
you seek, at least that I can see.

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

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

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


Re: [android-developers] Out of Memory Issue in Android SimpleCursorAdapter

2010-05-30 Thread Dmitri Plotnikov
Whenever you call cr.query, it returns a cursor that _you_ are supposed to
close.  The general pattern is this:

Cursor c = cr.query(...)
try {
  c.move...
} finally {
  c.close();
}

This assures that the cursor is released even if the code inside the try
clause throws an exception.

Cheers,
Dmitri

On May 30, 2010 5:43 AM, mike hasitharand...@gmail.com wrote:
 hi guys,

 i looking for a solution for this issue for more than 2 weeks now.
 even i have uploaded this issue previously but no one is helping me
 out.

 i have a SimpleCursorAdapter which will load all the contacts in the
 address book with there contact images if they don't have an image a
 default image will be displayed.

 other than this another image will be displayed.

 so altogether Contact image/ Contact Name/Contact Number and another
 image will be displayed.

 i have about 400 + contacts.

 so when i'm scrolling down the list i'm getting this Memory issue.

 so when i removed all the images it works fine.

 this is my code


 import java.io.ByteArrayInputStream;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import com.sabretch.mobility.colorEyeD3.R;
 import com.sabretch.mobility.colorEyeD3.Constants.Constants;
 import com.sabretch.mobility.colorEyeD3.custom.CustomScreen;
 import
 com.sabretch.mobility.colorEyeD3.database.TableDetails.MetaData;
 import com.sabretch.mobility.colorEyeD3.text.compose.Compose;
 import android.app.ListActivity;
 import android.app.ProgressDialog;
 import android.app.SearchManager;
 import android.content.ContentUris;
 import android.content.Context;
 import android.content.Intent;
 import android.database.Cursor;
 import android.graphics.Bitmap;
 import android.graphics.drawable.BitmapDrawable;
 import android.net.Uri;
 import android.os.Bundle;
 import android.provider.Contacts.Phones;
 import android.provider.Contacts.Photos;
 import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.Filterable;
 import android.widget.ImageView;
 import android.widget.ListView;
 import android.widget.SimpleCursorAdapter;
 import android.widget.TextView;

 public class Contacts extends ListActivity {
 static final String[] cat = Constants.DEFAULT_CATEGORIES;
 static int[] id;
 static ListLong contactId;
 DisplayContacts dispCont;
 ListString number;
 MapString, String combination = new HashMapString, String();
 String isDisplayDetails;
 ProgressDialog dialog;

 private class DisplayContacts extends SimpleCursorAdapter {
 private LayoutInflater mInflater;
 Context mCtx;

 public DisplayContacts(Context context, int layout, Cursor c,
 String[] from, int[] to) {
 super(context, layout, c, from, to);
 // TODO Auto-generated constructor stub
 mInflater = LayoutInflater.from(context);
 this.mCtx = context;
 }

 @Override
 public View newView(Context context, Cursor cursor, ViewGroup
 parent) {
 // TODO Auto-generated method stub
 Cursor c = getCursor();
 // int idCol = c.getColumnIndex(Phones._ID);
 int nameCol = c.getColumnIndex(Phones.NAME);
 int numCol = c.getColumnIndex(Phones.NUMBER);
 int foreign = c.getColumnIndex(Phones.PERSON_ID);
 String name = c.getString(nameCol);
 String number = c.getString(numCol);
 // long id = c.getLong(idCol);
 long phoneForeign = c.getLong(foreign);
 View v = mInflater.inflate(R.layout.contacts, parent, false);
 TextView name_text = (TextView) v.findViewById(R.id.contactName);

 if (name_text != null) {
 name_text.setText(name);
 }

 TextView num_text = (TextView) v.findViewById(R.id.number);
 if (num_text != null) {
 num_text.setText(number);
 }
 // set the profile picture
 ImageView profile = (ImageView) v.findViewById(R.id.imgContact);
 if (profile != null) {
 // retrieve the contact photo as a Bitmap
 // Uri uri = ContentUris.withAppendedId(People.CONTENT_URI, id);
 Cursor cur = getContentResolver().query(Photos.CONTENT_URI,
 null, Photos.PERSON_ID + =' + phoneForeign + ',
 null, null);
 byte[] b = null;
 if (cur != null) {
 if (cur.moveToNext()) {
 int imgColumn = cur.getColumnIndex(Photos.DATA);
 b = cur.getBlob(imgColumn);
 }
 }
 Bitmap bm = null;
 if (b != null) {
 ByteArrayInputStream bytes = new ByteArrayInputStream(b);
 BitmapDrawable bmd = new BitmapDrawable(bytes);
 bm = bmd.getBitmap();
 profile.setImageBitmap(bm);
 } else {
 profile.setImageResource(R.drawable.defaultcontact);
 }
 }
 ImageView indicator = (ImageView) v.findViewById(R.id.is);
 boolean b = isAssign(number);
 if (b) {
 // set the profile picture
 indicator.setImageResource(R.drawable.ok);
 } else {
 indicator.setImageResource(R.drawable.delete);
 }
 dialog.dismiss();
 return v;
 }

 protected boolean isAssign(String number) {
 boolean b = false;
 Uri books = MetaData.CONTENT_URI;
 // Log.d(Authority, books.getAuthority());
 Cursor cur = managedQuery(books, null, MetaData.MOBILE_NUMBER
 + =' + number + ', null, MetaData.CAT_NAME +  DESC);
 startManagingCursor(cur);
 if (cur != null) {
 if 

[android-developers] Developing Online Android Game

2010-05-30 Thread ravishi
Hello everyone,

I am getting started in android development and I really want to
create some form of online game.  My goal is to start out with a turn-
based game and move onto advanced multiplayer games.  I want to have
users associated with their google account, provide some sort of
matchmaking to pair people together, have their stats stored in a
database, and use the stats for various leaderboards and such.  I have
read over an older discussion on this list at
http://www.mail-archive.com/android-developers@googlegroups.com/msg75993.html
.  There was a lot of good information that I gathered but I still
have some questions.

What I originally started with is an apache web server on a laptop
that I don't need right now (2.0Ghz Core 2, 3GB Ram).  I wrote a perl
module that can take in a user's name with a JSON GET request.
However, I stopped this approach after learning that apache HTTPD is
not very scalable for a large number of persistent connections.
Therefore, I switched over to Erlang + Mochiweb with the intention of
using Nitrogen.  I used Nitrogen because I am looking for a comet
based solution so I can avoid polling the server.  There is a demo app
that uses these three technologies that seemed perfect for what I
wanted to do.  http://nitrogenproject.com/demos/comet2.  In that demo,
it shows how users can post message and all client's connected will
receive the message, so it is similar to how a game would work.
After getting it set up, I realized that developing the client part on
android would be very difficult when using Nitrogen so I'm about to
give up on Nitrogen and possibly a bit inefficient as Nitrogen seems
to be more about getting web browsers to do persistent connections.
Erlang without Nitrogen might still be a path I could take.

All I want is a server-client model that has persistent connections,
comet based, and is scalable.  But I need help in learning what
technologies to use to get to this goal.  Any starter code or links
would be helpful too.

Thanks,
Ravi

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


[android-developers] Re: How can I increase the memory capacity of my Android emulator?

2010-05-30 Thread Yahel
 I knew I could use the SD card for my audio files.
 But I am required from my specs to use the built-in flash.

Well then as Mark said, you need to change your specs.

One last idea you must have thought of but anyway : If you need to use
only buit-in flash as storage, stream the audio file from a remote
server. This way you don't rely on the availability of the sd card.

Far fetched but might work in your specs :)

Yahel

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

2010-05-30 Thread Dmitri Plotnikov
The problem might be that you are looking for the exact case-sensitive
match.  You might want to consider LIKE or GLOB.  Also you might want to
escape the query to avoid sql injection.

Cheers,
Dmitri

On May 30, 2010 5:58 AM, mike hasitharand...@gmail.com wrote:
 hi guys,

 i have implemented my own search for Contacts but every time it
 return's nothing from the searching criteria.

 if (getIntent().getAction().equals(Intent.ACTION_SEARCH)) {
 String query = getIntent().getStringExtra(SearchManager.QUERY);
 Cursor cursor = getContentResolver().query(Phones.CONTENT_URI,
 null, Phones.NAME + =' + query.trim() + ', null,
 Phones.NAME +  ASC);
 startManagingCursor(cursor);
 boolean b = cursor.moveToNext();
 String[] columns = new String[] { Phones.NAME, Phones.NUMBER };
 int[] names = new int[] { R.id.contactName, R.id.number };
 dispCont = new DisplayContacts(this, R.layout.contacts, cursor,
 columns, names);
 setListAdapter(dispCont);
 registerForContextMenu(getListView());
 }

 this is my manifest

 activity android:name=.contatcs.Contacts
 intent-filter
 action android:name=android.intent.action.SEARCH /
 category android:name=android.intent.category.DEFAULT /
 /intent-filter
 intent-filter
 action android:name=android.intent.action.SEARCH /
 category android:name=android.intent.category.DEFAULT /
 /intent-filter
 meta-data android:name=android.app.searchable
 android:resource=@xml/quicksearch /
 /activity

 the query String will contains a value but cursor.moveToNext() will
 always returns false.

 any idea about this??

 regards,
 Mike

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

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

[android-developers] Good job Android Team !!

2010-05-30 Thread Yahel
Hey since i'm always pointing out how  bad the Android Market is, I
thought I would use positive reinforcement when something works
well :) Just kidding :)

So thank you google, for the first time today I had a crash report
for one of my app in this brand new section of the Android Market, and
using the stack trace provided was able to fix the bug :)

This is one helpful feature !

Don't give up the good work !!

Yahel


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't Add an EditText to my Widget Layout

2010-05-30 Thread TreKing
2010/5/29 Wenqin Li yiizzh...@gmail.com

 Hi,thanks for your help.can you give me more points.what is the user error?


You, as the user of the Android SDK, are making the error of trying to use
an EditText in a Widget that is specifically set up to NOT support it.

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

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

Re: [android-developers] Developing Online Android Game

2010-05-30 Thread Frank Weiss
I'm no online game expert, but I think I can pose some technical questions
that would help you sort things out.

First, what is your client-side stack? Browser, SDK, NDK or some
combination? Each of these technologies does networking differently.
Development effort is easy to hard, flexibility is low to high as you move
down the stack (Browser down to NDK).

What expectations do you have of persistent connections on a mobile device?
Indeed, is persistence the only requirement - what about latency and
throughput? - but let's get back to persistence for now. On a mobile
platform, network access is not as reliable as a land line. Wifi is probably
better. Here's a use case:

A user is playing the game on a transit system (example, MUNI or BART in San
Francisco). For awhile, things are good, but then the vehicle goes into a
tunnel and/or hits a network deadspot. What happens? Does the game crash,
freeze, or is there a fallback?

Maybe you've already considered this questions, but it's all I can think of
at the moment.

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

2010-05-30 Thread TreKing
On Sat, May 29, 2010 at 10:13 AM, Narp Developments paulo.c...@gmail.comwrote:

 I'm having the same problem the UI just explodes because it cannot find the
 layout.


Not to be mean but - this is a great example of a terrible post.
Do you really expect a good response to this?
How is anyone supposed to know what you're talking about?

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

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

[android-developers] Retriving a different icon when my app targets minSdkVersion 3 and 4

2010-05-30 Thread Yesmic
Hello !

My application retrieve icons of installed apps on the phone. But for
the dialer, the icon is different when I target a minSdkVersion = 3 or
minSdkVersion = 4.
I did not found different icon for an other application.

I am testing on a motorola milestone.
and I use ActivityInfo.loadIcon() to load icons.

Can someone explain this behavior ?
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: SPP bluetooth

2010-05-30 Thread Robert Armstrong
I agree they are not the same.

However I can confirm the UUID in my modified BluetoothChat is the HID
UUID:-
  private static final UUID MY_UUID =
UUID.fromString(1124--1000-8000-00805F9B34FB);

I am not sure why logcat is indicating UUID
110B--1000-8000-00805F9B34FB (Audio Sink Service class)

I tried the serial port class mentioned in posts above and the connect
completed successfully. SerialPortServiceClass_UUID: TGUID =
'{1101--1000-8000-00805F9B34FB}';

So that suggests to me that either the PC or the handset does not
support the HID UUID. Any suggestions on how to confirm this?

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


Re: [android-developers] Re: How to create a file outside the application?

2010-05-30 Thread Frank Weiss
@TreKing
I think the OP meant GPRS, not GPS.

@pramod.deore
I have some problems with your question. Android tries hard to not leave
data laying around when an app is uninstalled. Aside from TPM, there's no
100% sure way to keep someone from reusing a trial version. All you can do
is increase the effort required to do so, but that will require effort by
the developer. I do not know how valuable your app would be to me. However,
on the face of it, if I had to uninstall and reinstall your trial app every
two weeks, the question is would I 1) stop using it (and not buy it), 2)
continue using the trial (spending my time periodically reinstalling it), or
3) buy your app. Each is possible.

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

[android-developers] Looking apps which are no longer selling in the app store

2010-05-30 Thread Avtar Khalsa
Hi Guys

My name is Avtar, and I am with DigiProCity (www.digiprocity.com). We
are looking for Android apps which have completed their life cycle in
the app store. We can help you squeeze a bit of extra revenue out of
it for developers willing to accept bulk purchases at rates between
$0.07 - $0.25 per unit. If anyone is interested and would like to hear
more, or knows someone else who might be, please send us an email at
cont...@digiprocity.com

Thanks a lot.

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


Re: [android-developers] Looking apps which are no longer selling in the app store

2010-05-30 Thread Abisai

Free website or word press blog setup please reply to abira...@gmail.com
for more details, you will not be disapointed.

Sent from my iPhone
Ransoft (RS) Software Inc.


On May 30, 2010, at 2:16 PM, Avtar Khalsa akhals...@gmail.com wrote:


Hi Guys

My name is Avtar, and I am with DigiProCity (www.digiprocity.com). We
are looking for Android apps which have completed their life cycle in
the app store. We can help you squeeze a bit of extra revenue out of
it for developers willing to accept bulk purchases at rates between
$0.07 - $0.25 per unit. If anyone is interested and would like to hear
more, or knows someone else who might be, please send us an email at
cont...@digiprocity.com

Thanks a lot.

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


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


Re: [android-developers] Re: How to create a file outside the application?

2010-05-30 Thread TreKing
On Sun, May 30, 2010 at 3:36 PM, Frank Weiss fewe...@gmail.com wrote:

 @TreKing
 I think the OP meant GPRS, not GPS.


Oh, whoops. Brain fart. Don't mind me ...

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

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

Re: [android-developers] Developing Online Android Game

2010-05-30 Thread Miguel Morales
Out of curiosity, why is developing the client side for a nitrogen app so
difficult?  I'm a big erlang advocate, and I am happy that you've looked
into it.  If you really want to make a kick ass server erlang is a good
choice.  I would recommend you pick up Joes erlang book as it provies
examples on how to make fault tolerant, scalable servers.

It's really not that hard, and a really good excercise.
On the java side, you would just connect and communicate either via JSON or
via bytes dirrectly.  Working with bytes in java is easy using bytebuffer,
and in erlang using the super awesome using the bit syntax.  Plus you avoid
the encoding/decoding overhead, and you can create a custom byte protocol
that'll be as fast as it gets.

Erlang provides ways to make generic servers easy using behaviours.
You'll probably want to use tcp to guarantee packet delivery.  If the
connection is flaky.

Either that or some sort of transaction system.
Btw, I replied to your last post.  I'm not sure if u got it.

Hope this helps in some way.

Miguel

On May 30, 2010 11:50 AM, ravishi ravish...@gmail.com wrote:

Hello everyone,

I am getting started in android development and I really want to
create some form of online game.  My goal is to start out with a turn-
based game and move onto advanced multiplayer games.  I want to have
users associated with their google account, provide some sort of
matchmaking to pair people together, have their stats stored in a
database, and use the stats for various leaderboards and such.  I have
read over an older discussion on this list at
http://www.mail-archive.com/android-developers@googlegroups.com/msg75993.html
.  There was a lot of good information that I gathered but I still
have some questions.

What I originally started with is an apache web server on a laptop
that I don't need right now (2.0Ghz Core 2, 3GB Ram).  I wrote a perl
module that can take in a user's name with a JSON GET request.
However, I stopped this approach after learning that apache HTTPD is
not very scalable for a large number of persistent connections.
Therefore, I switched over to Erlang + Mochiweb with the intention of
using Nitrogen.  I used Nitrogen because I am looking for a comet
based solution so I can avoid polling the server.  There is a demo app
that uses these three technologies that seemed perfect for what I
wanted to do.  http://nitrogenproject.com/demos/comet2.  In that demo,
it shows how users can post message and all client's connected will
receive the message, so it is similar to how a game would work.
After getting it set up, I realized that developing the client part on
android would be very difficult when using Nitrogen so I'm about to
give up on Nitrogen and possibly a bit inefficient as Nitrogen seems
to be more about getting web browsers to do persistent connections.
Erlang without Nitrogen might still be a path I could take.

All I want is a server-client model that has persistent connections,
comet based, and is scalable.  But I need help in learning what
technologies to use to get to this goal.  Any starter code or links
would be helpful too.

Thanks,
Ravi

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

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

[android-developers] Thread and return values.

2010-05-30 Thread Robin van Leeuwen
I have a time consuming task i don't want to run in the main UI thread, so
i
do the following (pseudo-code):

   onClick:
   getresults()

   public void getresults():
   TextView tv;
   String result = dolongjob()
   tv.setText(result);

   public void dolongjob():
   new Thread(){
   public void run(){
  // Some time consuming task
  // Which builds a String.
   }
}

Now as shown the i want the dolongjob, which builds a string, to return the
calculated string
to the caller (getresults), but since Thread-run() has to be returning void
it can't return the
calculated string.

I know i have to be working with CountDownLatch.await to ensure 'tv' is only
updated when the
results are known, but how can i return a value which is calculated in a
Thread?

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

2010-05-30 Thread Mark Murphy
Robin van Leeuwen wrote:
 I have a time consuming task i don't want to run in the main UI thread,
 so i 
 do the following (pseudo-code):
 
onClick:
getresults()
 
public void getresults():
TextView tv;
String result = dolongjob()
tv.setText(result);
  
public void dolongjob():
new Thread(){
public void run(){
   // Some time consuming task
   // Which builds a String.
}
 }
 
 Now as shown the i want the dolongjob, which builds a string, to return
 the calculated string
 to the caller (getresults), but since Thread-run() has to be returning
 void it can't return the 
 calculated string. 
 
 I know i have to be working with CountDownLatch.await to ensure 'tv' is
 only updated when the
 results are known, but how can i return a value which is calculated in a
 Thread?

You will be better served using an AsyncTask, doing your time-consuming
task in doInBackground() and calling tv.setText(theStringYouBuilt) in
onPostExecute().

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

Android Training in US: 14-18 June 2010: http://bignerdranch.com

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


[android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-05-30 Thread Ignas
There is a technical limitation to what SDP can legally convey. A
single SDP document can contain only one end of media conversation.
Therefore it is technically impossible to setup streaming with just
one SDP document there have to be an exchange. When using RTSP or SIP
terminals exchange their SDP information and thus get to know where to
stream to and from where to accept the stream.

MediaPlayer could accept just one SDP (i.e. streamer's), but then how
would streamer would know where to transmit? Both of them have to
exchange at least supported CODEC information and connection
information (port and IP).

Maybe I am just not aware of SDP format with two node's information.
Can someone share an example?

On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote:
 I agree with Andy's comment:

 On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote:

  There seems to be a limitation that means that it will only accept SDP
  information with RTP streams inside if it gets them from the RTSP stream
  (e.g. it gets this information from SETUP in the RTSP protocal).

 It is possible to play a stream by requesting it via a RTSP request
 (both audio and video are sent over RTP and the MediaPlayer is able to
 decode and play them).
 But it is not possible to play live RTP stream by requesting the SDP
 file directly (via an HTTP request). The RTP streams (audio and video)
 are sent to the device from the server. The MediaPlayer should just
 get the SDP file, listen on the proper ports and decode the streams.
 But it generates an error and do not play the streams.

 Jean

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

2010-05-30 Thread ced
Answering my own question here, finally figure out the solution.
In the InputMethodService, override this method:

@Override public void onComputeInsets(InputMethodService.Insets
outInsets) {
super.onComputeInsets(outInsets);
if (!isFullscreenMode()) {
outInsets.contentTopInsets = outInsets.visibleTopInsets;
}
}

and then it is done.

Ced

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

2010-05-30 Thread Wayne Wenthin
What TreKing is trying to say is that you need to post some examples of your
code.   This is a developers forum and unless you are asking for examples
you have to provide us a clue on how to help you.Relevant portions will
help.  Or if you are so inclined you might want to parse your logcat output
which will generally point out what is failing and why.

There really should be a FAQ for posting here.

On Sun, May 30, 2010 at 12:53 PM, TreKing treking...@gmail.com wrote:

 On Sat, May 29, 2010 at 10:13 AM, Narp Developments 
 paulo.c...@gmail.comwrote:

 I'm having the same problem the UI just explodes because it cannot find
 the layout.


 Not to be mean but - this is a great example of a terrible post.
 Do you really expect a good response to this?
 How is anyone supposed to know what you're talking about?


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

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




-- 
Follow us on Twitter  @fuliginsoftware
Join the forums.
http://www.fuligin.com/forums

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

2010-05-30 Thread Jiang
The space between checkboxes in below UI layout is too much, how to decrease it?

LinearLayout android:orientation=vertical
    android:layout_width=fill_parent
    android:layout_height=wrap_content

    CheckBox android:layout_width=wrap_content

    android:layout_height=wrap_content
    android:text=Apple /

    CheckBox android:layout_width=wrap_content


    android:layout_height=wrap_content

    android:text=Pear /

/LinearLayout


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] Collision detection for Android game

2010-05-30 Thread Steve
Hi all,

Would you like to recommend any collision detection engine for Android
game?

I've tried JBox2D, but it produces a lot of GCs which stop the game
about 300ms =(

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

2010-05-30 Thread jp
Thanks all, it finally work
However i was not able to view the text file when i mount the phone to
the pc
It requires me to restart my phone inorder to get the text file in my
sdcard.
Is there a way i do not need to restart my phone and the view the text
file when i mount it?
i've tried SDRescan.apk but it wont work.

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


[android-developers] How to refresh sdcard?

2010-05-30 Thread jp
is there a way to refesh sdcard without turning off the phone?

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


Re: [android-developers] How to refresh sdcard?

2010-05-30 Thread vandana toshniwal
hi

just send a broadcast with action ACTION_MEDIA_MOUNTED and specify the
SDCARD path

Regards

Vandana Toshniwal

On 31 May 2010 09:28, jp backstabber...@hotmail.com wrote:
 is there a way to refesh sdcard without turning off the phone?

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

2010-05-30 Thread Biswajit


FREE DOMAIN NAME

UNLIMITED SPACE

UNLIMITED EMAILS

UNLIMITED SUBDOMAINS

UNLIMITED DATABASES

PHP,MYSQL,PERL,RUBY SUPPORT

FREE SCRIPT LIBRARY

10 GB BANDWIDTH/MONTH

FREE SITE BUILDER

FREE 500 TEMPLATES

99% UP TIME GUARANTEED

FREE TECHNICAL SUPPORT

http://indiaebazar.com/biswajit/prodesc.php?pid=53rid=biswajit

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

2010-05-30 Thread skyhigh
I am very happy to see the new AudioManager.OnAudioFocusChangeListener
support that was added in Android 2.2.  This will allow the playback
of audiobooks to be paused while navigation directions and other audio
notices are being played, providing a much nicer user experience.

In reading through the documentation for the
OnAudioFocusChangeListener it isn't clear whether the user muting or
unmuting the audio from the lock screen is also communicated as a
focus change.

Can you clarify if the OnAudioFocusChangeListener will be called when
the user mutes or unmutes audio from the lock screen?

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

2010-05-30 Thread NightGospel
Hi all,

Does this program still continue? Because I have one app achived the
threshold (over 5000 downloads and average rating is 3.5 up) two weeks
ago, I hope I can be one of the receivers. :)

NightGospel

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

2010-05-30 Thread Henrik Sandström
The requirement was 5000 downloads by February 28th.

On Mon, May 31, 2010 at 7:47 AM, NightGospel wutie...@gmail.com wrote:
 Hi all,

 Does this program still continue? Because I have one app achived the
 threshold (over 5000 downloads and average rating is 3.5 up) two weeks
 ago, I hope I can be one of the receivers. :)

 NightGospel

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

2010-05-30 Thread jp
Hi vandana toshniwal

thank for the fast reply. Do u have a example how to use
ACTION_MEDIA_MOUNTED and specify the
SDCARD path ?



On May 31, 12:13 pm, vandana toshniwal vandanatoshni...@gmail.com
wrote:
 hi

 just send a broadcast with action ACTION_MEDIA_MOUNTED and specify the
 SDCARD path

 Regards

 Vandana Toshniwal

 On 31 May 2010 09:28, jp backstabber...@hotmail.com wrote:



  is there a way to refesh sdcard without turning off the phone?

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

 - Show quoted text -

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