[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  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  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 wrote:

> 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.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  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  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  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 wrote:

> On May 28, 10:37 am, coolbanana  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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 List contactId;
DisplayContacts dispCont;
List number;
Map combination = new HashMap();
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;

[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













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  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"??
>
>     
>     
>         @color/color_semi_white
>     
>
>     
>     
>         @color/color_semi_black
>     
>
> On May 27, 6:51 pm, Moto  wrote:
>
> > I guess this is new topic... :(
>
> > On May 27, 3:20 pm, Moto  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  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  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  wrote:
> which IDE  r u using ???
>
> On Fri, May 28, 2010 at 4:19 PM, Carl Hernandez 
> wrote:
>
> > Hi Jay!
>
> > Do you know how it is done?
>
> > Thanks!
>
> > On Fri, May 28, 2010 at 6:22 PM, Jay Ganatra 
> > wrote:
> > > or show its property or details u can increase from there itself
>
> > > On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra 
> > > 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.com
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] 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  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  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  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"  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 List contactId;
> DisplayContacts dispCont;
> List number;
> Map combination = new HashMap();
> 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

[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"  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
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  android:resource="@xml/quicksearch" />
> 
>
> 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

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

2010-05-30 Thread TreKing
On Sat, May 29, 2010 at 1:56 AM, pramod.deore wrote:

> Is that mean there is no any other way to maintain the record of
> IMEI number if GPS is not active on phone and SDCard is not present?
>

GPS has nothing to do with it - you just need internet connectivity to talk
back to your server.

Assuming your app already needs the internet to function, this should not be
an issue as you can just keep trying to validate the trial until you
succeed.

-
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] Re: Can't Add an EditText to my Widget Layout

2010-05-30 Thread TreKing
2010/5/29 Wenqin Li 

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

> 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  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  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"  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.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  wrote:
> I agree with Andy's comment:
>
> On May 25, 8:36 am, Andy Savage  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  wrote:

> On Sat, May 29, 2010 at 10:13 AM, Narp Developments 
> wrote:
>
>> 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
>



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



    

    




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  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=53&rid=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  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 
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  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


[android-developers] Re: I would like to ask some qu estions : 【About the process of app's activation】【Abou t the copy protection of Android Market】

2010-05-30 Thread kazumi_umayahara
Thank you for your reply, TreKing.



> See this 
> thread:http://groups.google.com/group/android-developers/browse_thread/threa...
> 
>

I see. I will look at the site above soon later.


> > Now I release an app to Android Market with setting copy protection 
> > to"OFF". But
> > I want to update next version with setting copy protection to "ON".
>
> Don't waste your time - I've never used it but based on all the posts on
> these groups and the Market "Support" Forum, it'll cause you more problems
> than it's really worth.
>
> > Q3. Are these cases solved at present?
>
> Nope.
>
> > Q4. Is there any material about the copy protection of Android Market?
>
> Not that I know of, besides searching Google of course.
>

 I understand. Then, we decide not to switch off the copy protection
this time.
 I guess there are still some problems to be worked on and rooms for
the improvement in AndroidMarket.
 I look forward to the improvement of Market in the future.

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

2010-05-30 Thread vandana toshniwal
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
Uri.parse("file://"+ Environment.getExternalStorageDirectory(;

On 31 May 2010 11:21, jp  wrote:
> 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 
> 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  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

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

2010-05-30 Thread Ivan Greene
gtfo we don't need your spam

On May 30, 11:35 pm, Biswajit  wrote:
> 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=53&rid=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: SPP bluetooth

2010-05-30 Thread DonFrench
I am not sure how to confirm it without access to another kind of
handset and a corresponding development environment.

On May 30, 1:34 pm, Robert Armstrong 
wrote:
> 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


[android-developers] How do I programatically push my app to run in background?

2010-05-30 Thread Archana
Hi,
How can we programatically push our app to run in background?
I am doing one browser app. and when I am directly launching my
application and clicking back key . It will show in the list of
background running process.At this time Category is
"CATEGORY_LAUNCHER" but at the same time if we try to run same app via
third party app.and then clicking back key,its not showing in the list
of background running process.Here the Category is
"CATEGORY_BROWSABLE".and its not displaying in the list of running
process.I noticed that the same behaviour in default android browser.

But is their any way to make my app to run in background by clicking
back key without killing my application?
Please help,its very urgent.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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
hey ty for the fast reply
but i tried and it does not work
here is my code:

btnSave.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {
 s = tv1.getText().toString();
 s2 = ET1.getText().toString();
 try {File root = 
Environment.getExternalStorageDirectory();
 if (root.canWrite()){
 File gpxfile = new File(root,s2+".txt");
 FileWriter gpxwriter = new FileWriter(gpxfile);
 BufferedWriter out = new 
BufferedWriter(gpxwriter);
 out.write(s);
 out.close();
 Toast.makeText(Test.this, "your file has been 
saved",
Toast.LENGTH_SHORT).show();
 }}
 catch (Exception e) {
 Toast.makeText(Test.this, e+"", 
Toast.LENGTH_SHORT).show();
 }
 sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
 Uri.parse("file://"+
Environment.getExternalStorageDirectory(;
 Intent myIntent = new Intent(((View) 
v).getContext(),Menu.class);
startActivityForResult(myIntent, 1);

 }







});

On May 31, 2:09 pm, vandana toshniwal 
wrote:
> sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
> Uri.parse("file://"+ Environment.getExternalStorageDirectory(;
>
> On 31 May 2010 11:21, jp  wrote:
>
>
>
> > 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 
> > 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  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- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] How to become a featured app in the Android market

2010-05-30 Thread oriharel
Can you provide with good tips on how to become a featured app in the
market?
my guess is (besides the obvious "have tons of unique downloads")

1. Make use of as much as android-only features (multi-tasking, live
folders, widgets, QSB, etc).
2. Keep the active user percentage high.


let's discuss.

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

2010-05-30 Thread oriharel
Can you provide with good tips on how to become a featured app in the
market?
my guess is (besides the obvious "have tons of unique downloads")

1. Make use of as much as android-only features (multi-tasking, live
folders, widgets, QSB, etc).
2. Keep the active user percentage high.


let's discuss.

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


[android-developers] Playing audio file through BT headset and file transfer via BT - voice is breaking.

2010-05-30 Thread guru
Hi All

While transferring file via BT to other phone, if I try to play audio
file via BT head set voice is breaking.
when i see the log i am seeing

W/AudioFlinger( 1184): write blocked for 335 msecs, 22 delayed writes,
thread 0x22578

W/AudioTrack( 1184): obtainBuffer timed out (is the CPU pegged?)
0xcbc00 user=000f6000, server=000f2000
D/dalvikvm( 1462): GC freed 2255 objects / 158320 bytes in 54ms
W/AudioFlinger( 1184): write blocked for 1273 msecs, 39 delayed
writes, thread 0x22578
D/dalvikvm( 1451): GC freed 1438 objects / 524712 bytes in 34ms
D/PlayerDriver( 1184): HandleInformationalEvent:
PVMFInfoPositionStatus
I/GUI_NOTIFY( 1231): enqueue notifi,
mDisabledNotifications=0old=NotificationRecord{444b72c8
pkg=com.android.bluetooth id=26 tag=null}, timeout=-1
I/GUI_NOTIFY( 1231): enqueue notifi,
mDisabledNotifications=0old=NotificationRecord{4442bfb8
pkg=com.android.bluetooth id=26 tag=null}, timeout=-1
D/dalvikvm( 1231): GC freed 12355 objects / 609552 bytes in 111ms
W/AudioTrack( 1184): obtainBuffer timed out (is the CPU pegged?)
0xcbc00 user=000f9000, server=000f5000

What may be cause of this?

What is the meaning and when these will occur?
W/AudioFlinger( 1184): write blocked for 335 msecs, 22 delayed writes,
thread 0x22578
W/AudioTrack( 1184): obtainBuffer timed out (is the CPU pegged?)
0xcbc00 user=000f6000, server=000f2000

Thanks
Gururaja

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


[android-developers] Re: How do I programatically push my app to run in background?

2010-05-30 Thread NightGospel
Hi Archana,

This is simple. Just put your time-consuming tasks to a service and it
will run in background and be destroyed until system shutdown or you
stop the service programmatically. You can see the link to get more
info and it can help you to solve this problem.

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

NightGospel

On 5月31日, 下午2時20分, Archana  wrote:
> Hi,
> How can we programatically push our app to run in background?
> I am doing one browser app. and when I am directly launching my
> application and clicking back key . It will show in the list of
> background running process.At this time Category is
> "CATEGORY_LAUNCHER" but at the same time if we try to run same app via
> third party app.and then clicking back key,its not showing in the list
> of background running process.Here the Category is
> "CATEGORY_BROWSABLE".and its not displaying in the list of running
> process.I noticed that the same behaviour in default android browser.
>
> But is their any way to make my app to run in background by clicking
> back key without killing my application?
> Please help,its very urgent.

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

2010-05-30 Thread Chi Kit Leung
But there are still a lot of areas to be improve.

On Mon, May 31, 2010 at 5:27 AM, Yahel  wrote:

> 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




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

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

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

2010-05-30 Thread Chi Kit Leung
http://www.tomgibara.com/android/camera-source
This blog post may help you.

On Sun, May 30, 2010 at 8:07 PM, pawan nimje  wrote:

> 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




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

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

[android-developers] Re: HTTPS to acces my wcf from android appli

2010-05-30 Thread Lamia Hannoun
Well i tried to change my app.config file and it works but i had this issue
with the certificate, i have this exception when i try to execute any
method "Could not establish trust relationship for the SSL/TLS secure
channel with authority 'localhost'." I foudn some tricks to make it work on
C# project but i'm actually calling my wcf from android application.Plz how
can i do it ? Does anyone got the same problem before???
Thx
2010/5/28 Lamia Hannoun 

> Hello!  Any help  plz !
>
> 2010/5/28 Lamia Hannoun 
>
>  Hi!
>>
>> I have a biiig issue, I'm developping an android app that access my wcf
>> using soap and basichttp for now on everythg seems working perfectly but now
>> i'm wondering if i can access to my wcf using https :s i read some articles
>> that say that it's impossible and complicated.
>>
>> Plz is there anyway to resolve that issue  Plz help.
>>
>> Thx
>>
>
>

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