[android-developers] Re: Build Error

2010-07-09 Thread folone
I actually have the same problem here.
$ ls -l /usr/lib/libz.so
says:
lrwxrwxrwx 1 root root 20 2010-07-07 17:08 /usr/lib/libz.so -> /lib/
libz.so.1.2.3.3
How do I figure out, if it is the right version of lib, and how do I
create a symlink to the right one?

On Jul 8, 5:15 am, Robert Craig  wrote:
> My first response when looking at your error was that you need to point your
> libz.so to your 32 bit version.
> I would try that first and see if that works. Try doing an 'ls -l' on
> /usr/lib/libz.so and see where that points.
> My first guess is that you need to create a symlink to the 32bit version,
> /usr/lib32/libz.so.
>
>
>
> On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim  wrote:
> > My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual).
> > Is this problem?
>
> > 2010/7/8 Robert Craig 
>
> >> it could be a 64 bit versus 32 bit issue. what does your dev environment
> >> look like?
>
> >> On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim  wrote:
>
> >>> I have a same problem.
>
> >>> but I could not have solution.
>
> >>> 2010/7/6 David Rhodus 
>
> >>> Anyone seen this ?
>  I feel like I'm just missing a package or something easy.
>
>  On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus 
>  wrote:
>  > Any Suggestions ???
>
>  > apt-get install git-core gnupg sun-java6-jdk flex bison gperf
>  > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
>  > libncurses5-dev zlib1g-dev g++-multilib
>  > repo sync
>
>  > r...@myhost:/home/android# make showcommands
>  > 
>  > PLATFORM_VERSION_CODENAME=AOSP
>  > PLATFORM_VERSION=AOSP
>  > TARGET_PRODUCT=generic
>  > TARGET_BUILD_VARIANT=eng
>  > TARGET_SIMULATOR=
>  > TARGET_BUILD_TYPE=release
>  > TARGET_BUILD_APPS=
>  > TARGET_ARCH=arm
>  > HOST_ARCH=x86
>  > HOST_OS=linux
>  > HOST_BUILD_TYPE=release
>  > BUILD_ID=OPENMASTER
>  > 
>  > Install: out/host/linux-x86/framework/apicheck.jar
>  > out/host/linux-x86/bin/acp -fpt
>  > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar
>  > out/host/linux-x86/framework/apicheck.jar
>  > Install: out/host/linux-x86/framework/clearsilver.jar
>  > out/host/linux-x86/bin/acp -fpt
>
>  out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
>  > out/host/linux-x86/framework/clearsilver.jar
>  > Install: out/host/linux-x86/framework/droiddoc.jar
>  > out/host/linux-x86/bin/acp -fpt
>  > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar
>  > out/host/linux-x86/framework/droiddoc.jar
>  > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
>  > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib
>  > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so  -m64
>  > -Lout/host/linux-x86/obj/lib
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o
>  > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o
>  >    -Wl,--whole-archive   -Wl,--no-whole-archive   -lneo_util -lneo_cs
>  >  -o out/host/linux-x86/obj/lib/libneo_cgi.so  -lz
>  > /usr/bin/ld: skipping incompatible
>  > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for
>  > -lz
>  > /usr/bin/ld: skipping incompatible
>  > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for
>  > -lz
>  > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
>  -lz
>  > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for
>  -lz
>  > /usr/bin/ld: cannot find -lz
>  > collect2: ld returned 1 exit status
>  > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
>  > r...@myhost:/home/android#
>
>  --
>  You received this message because you are subscribed to the Google
>  Groups "Android Developers" group.
>  To post to this group, send email to
>  android-developers@googlegroups.com
>  To unsubscribe from this group, send email to
>  android-developers+unsubscr...@googlegroups.com   cr...@googlegroups.com>
>  For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscr...@googlegroups.com >>>  cr...@googlegroups.com>
> >>> For more options, visit this group at
> >>>http://gro

[android-developers] android:clickable = true makes layout not clickable?

2010-07-09 Thread dxw_es
Hey everyone. I noticed something odd. I have a listview with
custom BaseAdapter, and getView() inflates a layout. On 1.6 SDK (I've
been developing on a G1), if I set android:clickable="true" on the
layout, then the item is NOT clickable (but otherwise the item is
clickable). Is this the correct behavior? It seems backwards to me.

Furthermore, no matter now matter how i set android:clickable for the
same layouts using 2.2 SDK (run using emulator), the layout always is
clickable... eh? I'm really bothered by this.

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


[android-developers] Re: Putting a service into a .jar?

2010-07-09 Thread Boozel
Thanks i got it to work i was making an error in my entry for a
service in the manifest.
Thanks for the help

On Jul 9, 7:21 pm, Mark Murphy  wrote:
> On Fri, Jul 9, 2010 at 12:52 PM, Boozel  wrote:
> > I have created a service that works great, it is launched from an
> > activity at the moment.
> > I'm looking to package it into a .jar file so that other people can
> > add the jar to then their projects and then run the service. Can
> > anyone tell me how i can launch this service from the app that it is
> > included in?
>
> The same way they would if the code were in their own app: add an
> entry for the service in their manifest and call startService() or
> bindService().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] Re: How to make a imageview at right of linearlayout

2010-07-09 Thread Spiral123
Thanks so much for taking the time to post your solution Cindy.

I had been bugged by a similar problem for hours and just hadn't
thought of wrapping my Image views in a Linear Layout container in
order to get them aligned properly.

On Jul 7, 6:46 pm, cindy  wrote:
> Following code works:
>
> http://schemas.android.com/apk/res/
> android"
> android:layout_width="fill_parent"
> android:id="@+id/logo_block"
> android:padding="10px"
>  android:gravity="right"
>  android:layout_alignParentRight="true"
> android:layout_height="wrap_content">
>  android:layout_width="wrap_content"
> android:layout_height="fill_parent"
> android:src="@drawable/logo_poweredby"/>
> 
>
> On Jul 7, 5:12 am, Levi  wrote:
>
>
>
>
>
>
>
> > If you put one view in the layout then the  result will be the  same
>
> > 在 2010年7月7日 下午8:07,Levi 写道:
>
> > > Why not using RelativeLayout ?You can set a property
> > > android:layout_alignParentRight="true"  ,then what you want will be show
> > >  good luck!
>
> > > 2010/7/7 cindy 
>
> > > Have tried all those, none of them works. Does it mean we can't put a
> > >> imageview to right?
>
> > >> http://schemas.android.com/apk/res/
> > >> android"
> > >>android:layout_width="fill_parent"
> > >>android:id="@+id/logo_block"
> > >>android:padding="10px"
> > >>  android:gravity="right"
> > >> android:layout_height="wrap_content">
> > >> > >>android:layout_width="fill_parent"
> > >>android:layout_height="fill_parent"
> > >> android:src="@drawable/logo_poweredby"/>
> > >>
>
> > >> On Jul 6, 6:15 pm, Levi  wrote:
> > >> > Hi,try it Good Luck!
>
> > >> > http://schemas.android.com/apk/res/
> > >> > android"
> > >> >android:layout_width="fill_parent"
> > >> >android:id="@+id/logo_block"
> > >> >android:padding="10px"
> > >> >android:layout_height="wrap_content"
> > >> >android:gravity="right">
> > >> > > >> >android:layout_width="fill_parent"
> > >> >android:layout_height="fill_parent"
> > >> >android:src="@drawable/logo_poweredby"/>
> > >> >
>
> > >> > 2010/7/5 cindy 
>
> > >> > > Hi All,
>
> > >> > > In the linearlayout, I need to put the image at right. I have tried a
> > >> > > lot of method, none of them works. Can someone point out what is
> > >> > > wrong?
>
> > >> > > http://schemas.android.com/apk/res/
> > >> > > android"
> > >> > >android:layout_width="fill_parent"
> > >> > >android:id="@+id/logo_block"
> > >> > >android:padding="10px"
> > >> > >android:layout_height="wrap_content">
> > >> > > > >> > >android:layout_width="fill_parent"
> > >> > >android:layout_height="fill_parent"
> > >> > >android:gravity="right"
> > >> > >android:layout_alignParentRight="true"
> > >> > >android:src="@drawable/logo_poweredby"/>
> > >> > >
>
> > >> > > Thanks!
>
> > >> > > Cindy
>
> > >> > > --
> > >> > > You received this message because you are subscribed to the Google
> > >> > > Groups "Android Developers" group.
> > >> > > To post to this group, send email to
> > >> android-developers@googlegroups.com
> > >> > > To unsubscribe from this group, send email to
> > >> > > android-developers+unsubscr...@googlegroups.com
> > >> 
>
> > >> > > For more options, visit this group at
> > >> > >http://groups.google.com/group/android-developers?hl=en
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Android APIs

2010-07-09 Thread Deborah
Hi,

I'm new in Android! I work with Eclipse and implements some
application using the Android Emulator.

I'd like to know:

1. is it possible to extend Android APIs whit other .jar file?

2. If it's possible, how can I extend the APIs? I just have to add
libraries to the project or do I copy it to the $ANDROID_HOME/
platforms/android-8/tools/lib

Thanks in advance.

Deborah

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: ListView not refreshing on back button when cursor is changed

2010-07-09 Thread Spiral123
not sure I understand exactly what you are doing,  but have you tried
calling a .notifyDataSetChanged() on your simple cursor adapter?

On Jul 8, 3:14 pm, Connick  wrote:
> My user has a menu option to jump from a list activity to a preference
> screen which has options for filtering and/or sorting visible data in the
> aforementioned list activity. When the user hits the back button, inside
> onResume() I am calling cursor.managedQuery() with the new sort/filter
> params. The query is executing (with expected sorted results) but the
> ListView isn't updating. If I force onCreate to fire by rotating the device,
> the list updates appropriately. The only workaround I've found so far is to
> re-create the adapter onResume ...which obviously isn't the best approach as
> I lose scroll position etc.
>
> I've attempted notify change manually to no avail. (as well as requery - but
> the problem isn't data retrieval) I'm sure I'm missing something obvious. :\
>
> Stace

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


[android-developers] J'ai pas trouvé le chemin syst em/lib

2010-07-09 Thread moudav...@live.fr
Bonjour

Je suis débutant dans ce monde d'android.J'ai trouvé dans plusieurs
tuto des chemins system/lib ou system/fonts mais j'ai pas trouvé ces
chemins là sur mon windows 7.
De l'aide svp

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

2010-07-09 Thread Marek Stój
I had the same problem - couldn't play sounds using neither SoundPool
nor MediaPlayer in apps built with NetBeans. I've found a solution
though and thought I'd share.

All you need to do is set 'keepcompression' attribute to 'true' on the
'zip' tag inside 'build-impl.xml' (can be found in the 'nbproject'
subdirectory). The 'zip' task is called from the '-package-dex'
target.

The problem is that although 'aapt' doesn't compress files with
extensions such as '.mp3', '.ogg', NetBeans uses 'zip' task to update
the APK archive with 'classes.dex' file along with other files (eg.
resources) which causes all files to be compressed.

Hope it helps.

On May 25, 9:36 pm, tony obrien  wrote:
> The code:
> //this is all contained in my MainActivity.
>
>  private SoundPool soundPool;
>     private HashMap soundPoolMap;
>     public static final int SOUND_CANNON = 1;
>     public static final int SOUND_HIT = 2;
>     public static final int SOUND_MISS = 3;
>     public static final int SOUND_WOUND = 4;
>     public static final int SOUND_TAUNT = 5;
>
>     private void initSounds() {
>
>         soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 100);
>         soundPoolMap = new HashMap();
>         try {
>         soundPoolMap.put(SOUND_CANNON, soundPool.load(this,
> R.raw.cannon, 1) );
>         } catch(Exception e) {
>             String s = new String(e.getMessage());
>
>         }
>
>         soundPoolMap.put(SOUND_HIT, soundPool.load(this, R.raw.hit,
> 1));
>         soundPoolMap.put(SOUND_MISS, soundPool.load(this, R.raw.miss,
> 1));
>         soundPoolMap.put(SOUND_WOUND, soundPool.load(this,
> R.raw.wound, 1));
>         soundPoolMap.put(SOUND_TAUNT, soundPool.load(this,
> R.raw.taunt, 1));
>
>         }
>
> The Problem:
>
> soundPool.load fails indicating that the RESOURCE CANNOT BE FOUND.
>
> The oog files cannon, hit, miss, wound, and taunt are in my res/raw
> folder (I am using NetBeans with the Android 2.x Emulator, BTW)
> As an experiment I have added a line to try to open the same resource
> (i.e. via the R.raw.xxx  ID) as an InputStream and that succeeds. So I
> am stumped as to why won't load as a soundPool resource.

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

2010-07-09 Thread Deborah Falcone
Thanks for your reply!

I have not error in my progect, but when I run my application, in LogCat
file, I obtain:

*tag *
dalvikvm

*Message *
Could not find class 'org.apache.axis.client.Service', referenced from ...

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

Re: [android-developers] Re: Android Library Project

2010-07-09 Thread Deborah Falcone
Thanks for your reply! Don't worry, I will try to solve the problem ;)

I have not error in my progect, but when I run my application, in LogCat
file, I obtain:

*tag *
dalvikvm

*Message *
Could not find class 'org.apache.axis.client.
Service', referenced from ...

Regards,

Deborah

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

[android-developers] Get Custom Binary Data on Phone - Best Implementation?

2010-07-09 Thread Dan
Hello, I'm looking for some input on how to go about a problem I have.
We have a device that has binary data that it needs to send out (they
are mainly just symbols, but in a custom binary format) over ethernet.
I need to intercept this data on the phone and display the symbols
over google maps. I'm just wondering the best way to go about this, I
have a few ideas but am not sure if they are possible or feasable:

1. Is it possible for the phone to connect directly to the device if
the device had some sort of server running on it, then poll for new
data? If so, what is the protocol needed to be able to direct connect
like that?
2. Perhaps modify the device software to send data to the phone(s) in
SMS data message format? Im not sure if it is possible for software to
"spoof" an SMS to a phone when it is not a phone itself?
3. Have the device software upload all its binary data to a ftp/http
server that is sitting out there somewhere, have the phone(s) connect
to that server and poll for new data periodically?

I'm brand new to android development, basically all I want to do is
grab this binary data from the device on my phone and parse/display it
over google maps. How do any of those ideas sound, or is there a much
easier way I am overlooking? 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] Manifest android:versionCode question

2010-07-09 Thread Rob
In the versioning documentation (http://developer.android.com/guide/
publishing/versioning.html) it says that android:versionCode is an
integer. Is the integer a 4-byte integer with a range of
-2,147,483,648 to +2,147,483,647 or is it only a 2 byte integer with a
range of -32,768 to +32,767 ?

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


[android-developers] Get binary data from external device to Droid

2010-07-09 Thread Dan
Hello, I'm looking for some input on how to go about a problem I have.
We have a device that has binary data that it needs to send out (they
are mainly just symbols, but in a custom binary format) over ethernet.
I need to intercept this data on the phone and display the symbols
over google maps. I'm just wondering the best way to go about this, I
have a few ideas but am not sure if they are possible or feasable:

1. Is it possible for the phone to connect directly to the device if
the device had some sort of server running on it, then poll for new
data? If so, what is the protocol needed to be able to direct connect
like that?
2. Perhaps modify the device software to send data to the phone(s) in
SMS data message format? Im not sure if it is possible for software to
"spoof" an SMS to a phone when it is not a phone itself?
3. Have the device software upload all its binary data to a ftp/http
server that is sitting out there somewhere, have the phone(s) connect
to that server and poll for new data periodically?

I'm brand new to android development, basically all I want to do is
grab this binary data from the device on my phone and parse/display it
over google maps. How do any of those ideas sound, or is there a much
easier way I am overlooking? 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] How to hide contacts

2010-07-09 Thread Usama
I am currently making an application that's to work as auto-theft. The
user whose mobile is stolen sends an sms to his phone and it's
intercepted by the application installed in the phone. According to
the format and instructions the phone performs the tast. I am making a
module to hide the contacts on a particular instruction. How do I go
about it. I have worked on inserting and updating contacts but how do
I hide them, such that they are not visible in the native contacts
app. They should become visible when the user sends another
instruction... that means they are not to be deleted.
and I had another query related to this ... how do we delete a
contact ?

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


[android-developers] newbie question

2010-07-09 Thread Jonathan
All,
Just picked up the android 2.2 sdk and thought I would give it a run.  I am
doing the hello world demo by Dan Morrel on youtube and then porting to 2.2
.  I can't seem to figure out how to get from the cursor to the intent when
selecting a contact from the screen because the phone number is in a
different table? Any clues would be appreciated.  Thanks, Jonathan

package hello.android;

import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
//import android.provider.Contacts.
People;
//import android.provider.Contacts.Phones;
import android.provider.ContactsContract.CommonDataKinds;
import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.PhoneLookup;

import android.view.View;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

public class hello extends ListActivity {
/** Called when the activity is first created. */
private ListAdapter mAdapter;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

// get access to some data from the content provider
// in this case issue a query to get the entries list of contacts
//Cursor c = getContentResolver().query(People.CONTENT_URI, null,
null, null, null);
Cursor c = getContentResolver().query(Contacts.CONTENT_URI, null,
null, null, null);
startManagingCursor(c);

// create a mapping for the content provider from the data source
// to the user interface
//String[] columns = new String[] {People.NAME};
String[] columns = new String[] {Contacts.DISPLAY_NAME};
int[] names = new int[] {R.id.row_entry};

// make a class that will make use of our mapping
mAdapter = new SimpleCursorAdapter(this, R.layout.main, c, columns,
names);

// set to be our current adapter
setListAdapter(mAdapter);
}

@Override
// the class that is called every time the user clicks something
protected void onListItemClick(ListView l, View v, int position, long
id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);

// the reflections of a applications intent to perform some activity
// in this case a call action to dial the phone
Intent i = new Intent(Intent.ACTION_CALL);
Cursor c = (Cursor) mAdapter.getItem(position);
//long phoneId =
c.getLong(c.getColumnIndex(People.PRIMARY_PHONE_ID));
//i.setData(Phones.CONTENT_URI.addId(phoneId));

// Causes the dialer to appear on the screen and initiate the phone
call
startActivity(i);
}
}




-- 
"If men were angels, no government would be necessary."
--Madison

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

2010-07-09 Thread jaehyuk park
Hi. This is Park.

I am doing to wirte Monkey Script but i have no idea about it

someone have a sample script?

I searched in google so found some it. but i don't know that mean of
the script

===
type= point< how many type can i use?
count= 10
speed= 1.0
start data >>
captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0);
captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0);
delay(5000)   <-how many function can i use and type?

captureDispatchKey(5113146,5113146,0,4,0,0,0,0);
captureDispatchKey(5113146,5113146,1,4,0,0,0,0);

plz~ help me.

Thank you for reading. have a good day~

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

2010-07-09 Thread Russell DuRoss
You might have to call "notifyDataSetChanged()" whenever the content
is changed.

On May 11, 8:37 am, mudit  wrote:
> Hi..
>
> i need to create a list view that display same functionality as
> Contact App. I need to have a scroller through which i can traverse
> the list alphabetically. To achieve this i am following an example
> from API demos "com.example.android.apis.view.List1.java".  It is
> using a textfilter. When i implement this functionality on a static
> list view => it is working fine. But when i try this on a dynamic
> listview=> it is not working.
>
> Plz help...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] WebView always appears FULLSCREEN

2010-07-09 Thread Michael powers
It appears that my WebView is ALWAYS FULL screen and doesn't respect
the layout .

Also, Activity menus are not the ones I set but the browsers.

If the URL is  www.google.com in mobile mode it appears to work ok !?!

But once you click on Classic mode or any other web site in mobile/
regular it takes up the whole screen.

It works ok with loadData.
I've tried different layouts as well as weight and gravity with no
luck.

Thanks in advance!!

Any ideas ?

Michael

I am testing on an 2.1 android emulator.

Code snippet .

setContentView(R.layout.mainactivity);
WebView webV = (WebView)findViewById(R.id.webview);
webV.setInitialScale(30);
webV.loadUrl(getString(R.string.app_url));


Layout 




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



WebView xmlns:android="http://schemas.android.com/apk/res/android";
android:id="@+id/webview" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_below="@id/label"
/>



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


[android-developers] Sms hiding and deletion

2010-07-09 Thread Usama
i am currently making an application in which i require to delete an
sms. How do i go about it.
Also I may need to hide a sms i.e not visible in the inbox but i may
choose to unhide it later. How do i do that ?

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


[android-developers] Listview with Array Adapter - How to Change Item Data in onClick after Text Filter

2010-07-09 Thread Russell DuRoss
I have a need to change the data in my underlying array when the user
clicks on that item in the Listview.  I need this to work even when
the user has done a text filter.  I know how to get the text of the
clicked entry but I can't figure out how to change that text.  Any
ideas?

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


[android-developers] child activity does not "finish()" correctly

2010-07-09 Thread ecforu
I have a ListActivity I display from a parent activity.  When the user
selects the desired item from the list it supposed to return to the
parent activity.  Only when I call finish, the app goes away (doesn't
quit) and displays the Android Home page.  If I debug, the application
doesn't die, it just sits on an MessageQueue.Wait().

I have a break point right before the finish() call and one in the
first line of the OnActivityResult.  When I press continue from the
first, I never see the second on in onActivityResult.

I have other child activities in my app that don't display this
problem.  However this is the only ListActivity I have that I am
trying to return from.
I do call finish from onListItemClick.  I'm wondering if that is not
allowed since that is responding to a view event.  However if I don't
do it here, how can I get back to the parent activity.  Below is the
code snippet of my finish method.

@Override
protected void onListItemClick(ListView l, View v, int position,
long id)
{
   Object selectedItem = _adapter.getItem(position);
   //TODO get results back to parent activity
   Intent listIntent = new Intent();
   setResult(RESULT_OK, listIntent);
   finish();
}

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


[android-developers] Re: Problem in getting result from filtered list

2010-07-09 Thread Russell DuRoss
I've tried using wild card characters to see if that works, but it
doesn't seem to work.  I'm also very interested the hearing if this
can work or not.

On Jun 16, 8:00 am, Addy  wrote:
> Hi.
>
> In my application I used a custom list for displayed some country
> name.
>
> and for enable search from the list,Filterapplied on the custom
> list.
>
> Filterworks on a simply String ArrayList. And its work fine.
>
> But My problem is When I searched for any country name the search
> happend only on String's Starting letter not on the Any letter in the
> string.
>
> For example..
> my country List is
>
> List Country_List=new ArrayList();
>
> Country_List.add("Australia");
> Country_List.add("USA");
> Country_List.add("England");
> Country_List.add("China");
>
> If my searchtextfor country name is 'U'
>
> then
>
> It gives result  'USA' not ' Australia'.
>
> But I want both reasult 'USA' and 'Australia' (Country name which
> contains u letter in any position of its name)
>
> Please Help me.

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


[android-developers] Installed Application Size vs APK Filesize

2010-07-09 Thread John
Hi,
  Can somebody explain to me what makes up the installed application
size? I have an apk that is about 8 MB, and often when I install I get
the INSUFFICIENT_STORAGE error. I have around 25-30 MB free space on
the phone.
  I'm doing debugging so I have to upload lots of new versions. If I
uninstall the previous version then I can install the new version. The
application manager claims that the app is taking up 22 MB.
  So back to the original question, how come the app is taking up 22
MB when it really only is 8 MB?

Thanks,
John

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


[android-developers] Mapping Application

2010-07-09 Thread vineet
hi There.
i need help in mapping application which i am need to build.
I cannot use google maps api, since that does not support native
offline data.
My application will not be connected to 3g or wifi, and needs to read
data from local filesystem(like andnav)

Can some put light to this on how to implement this??

Thanks

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


[android-developers] Sending UDP packets from the emulator

2010-07-09 Thread Mark
My friend and I have a wireless robot dog connected to a wifi network
which our computer is plugged into.  The computer is running an
Android emulator and we are trying to send a UDP packet to the
wireless robot dog.  If the dog receives it, it should start sending
UDP packets back.  The program we wrote works outside of the emulator,
and using Wireshark, we see that the packet is sent to the correct IP
address and the correct MAC address for the robot.  When we attempt to
send the packet from the emulator, the dog does not respond how it
should if it received the packet.  In Wireshark we can see that the
emulator sends the packet to the correct IP address for the dog, but
not the correct MAC address. It is sending it to the MAC address of
the router we are plugged into.  We want to specify the packet so that
it sends to the correct MAC address but we cannot figure out how to do
this. Any help would be great

Mark

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


[android-developers] Looking for game developer

2010-07-09 Thread Igor
Hello,

My name is Igor and I'm from Russia. I found that there is no good
RPGs on this platphorm. So I want to create team to develop game. I
have good friend, he's roleplaying fan and writes atmosphere modules
(adventures) for his sessions. And he has ideas for computer (mobile)
RPG. As soon as on the market only 2-3 RPGs this could be idea to
create one and earn some money.

Feel free to ask any question.

Sincerely,
Igor Krasnodymov.

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


[android-developers] what is context?

2010-07-09 Thread cindy
A very silly question, What is Context? How to get it?

Context.getSystemService(TELEPHONY_SERVICE) to get access to the
TelephonyManager.

Thanks!

Cindy

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


[android-developers] Cannot find the culprit file in my android project even after expanding the main folder

2010-07-09 Thread vaibhavpandey
The side bar in eclipse shows a red cross on the title of my project
folder but there are no such signs in the directories below it in
hierarchy. In which particular file does error exist? How can I know
that

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


[android-developers] New Mobile Developer Research names Android as top platform in developer mindshare

2010-07-09 Thread Matos
Hi,
Just wanted to alert you to a new research examining Android & 7 more
mobile platforms, launched this Monday.

Developer Economics 2010 is a global research tracking the developer
experience from app design to market delivery & monetization, across
400+ developers and all 8 major mobile platforms (incl. Android,
iPhone, Symbian, et-al).

One of the key messages of the report is: "Android stands out as the
platform most popular with mobile developers."

The report, available for free download (at www.developereconomics.com),
reports on:
Best & worst platform aspects, app stores & time-to-market, network
operators, APIs, use and main challenges of open source & more!

Developer Economics has already been featured on TechCrunch, MocoNews,
TweetMeme, Mobile Phone Development & Phandroid.

Matos

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

2010-07-09 Thread A N K ! T
 hey am trying to disconnect the incomming call
can anybody help me in this ..
-- 
Thanks
Ankit

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

[android-developers] Changing view after softkeypad has slided in

2010-07-09 Thread Chrono
Hi everybody,

if have a layout with a variable scrollview at the top and a fixed
view at the bottom.
If the softkeypad slides in, a method will be called (after
onSizeChanged) to hide the footer view due to usability reasons.

So, my problem is to hide the footer view correctly.
If I change the visibility of the footer to Visible.GONE, the view is
indeed gone, but there remains a black space. Only changing the
scrollviews content per touchinput afterwards let the black space
disappear.

If tried a lot of different things to overcome this problem
with .invalidate(), .forceLayout(), .requestLayout() and changing size
to zero instead of GONE but nothing seems to work.

Has anyone an idea how to solve this problem?

Regards
Chrono

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

2010-07-09 Thread arsalank2
Youtube videos can be played by opening the appropriate URL through
intent action VIEW. The youtube video URL starts with "vnd.youtube".

On Jun 29, 2:39 pm, Ram  wrote:
> Can someone guide me in playing youtube videos in android. I have
> tried the RTSP but it fails tostreamthevideo.

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


[android-developers] Android Support for Text Correction

2010-07-09 Thread shubham patni
Hi Friend,
Is there any Support for Text Correction in Android SDK.
Like if i write something wrong in SMS Text Box ,so those word should
be highlighted or something else.


Please suggest me .
Thanks

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


[android-developers] [nyartoolkit] android emulator problem

2010-07-09 Thread nonameweed
Hi, need help! : (

I'm using webcam as a emulator camera,

and I think,

emulator and nyartookit are successfully connected

(cause when I reflect the basic hiro marker, the androidboy shows up.
same to the kanji marker, the girl shows up)

but the background is all black screen

shouldn't it be showing what the webcam is seeing?

which source should I modify?

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


[android-developers] SQLiteOpenHelper documentation not clear.

2010-07-09 Thread martinlong1978
Hi,

The documentation does not make the interation between onUpgrade() and
onCreate() clear.

When implementing onCreate() should this create the database at
version 1, assuming that onUpgrade will apply all of the patches to
bring it up to version x (lets say version 5 for example)? Or should
onCreate build the latest version of the database, and onUpgrade is
only used to upgrade legacy clients.

I kind of prefer the first, because it effectively means that the same
SQL is executed for everybody. Whereas the second options means that
there is a potential for onCreate to build something slightly
different to the succession of patches built by onUpgrade.

I can always make onCreate call into onUpgrade, however, this is the
kind of implementation detail that should go into the javadocs...
please update!

Thanks

Martin

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

2010-07-09 Thread PingoWingo
Hello,

I'm a newbie, so please excuse if this is a basic question:

Is there a way to get all the children views of a layout, from the
Java code so that I can loop through them and set an attribute?
Specifically, I'd like to set the "layout_width" based on the screen
size.  Since this "layout_width" would be the same for all the views,
I'd prefer to loop through instead of calling each individual View
separately by their id.

I've searched, but I couldn't find anything, and I'm wondering if I'm
off the track.
I'd appreciate any help.

Thanks!


The following is my main.xml:


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


  

  

  

  

  

  

  


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


[android-developers] Re: Problem with app after update to 2.2

2010-07-09 Thread egbokalaka
By comparing the code in my Notepadv1.java vs the supplied solution, I
found the error. in the onCreateOptionsMenu method I had:

boolean result = onCreateOptionsMenu(menu)

whereas the correct code was:

boolean result = super.onCreateOptionsMenu(menu)

The error caused my code to be called recursively, which naturally
resulted in a stack overflow.

On Jun 1, 1:23 pm, Kiril Nedialkov  wrote:
> Hi all,
>
> I recently update to 2.2 and encounter two problems:
>
> problem 1:
> My app stop working. First I thought is the changes I made, but after
> reverting to the last revision the app is still crashing.
> The app is targeted for 1.5 and it crash when I press the "menu" button with
> the following stack trace:
>
> Thread [<3> main] (Suspended (exception IndexOutOfBoundsException))
> ViewRoot.deliverKeyEventToViewHierarchy(KeyEvent, boolean) line: 2244
> ViewRoot.handleFinishedEvent(int, boolean) line: 2158
> ViewRoot.handleMessage(Message) line: 1490
> ViewRoot(Handler).dispatchMessage(Message) line: 99
> Looper.loop() line: 123
> ActivityThread.main(String[]) line: 3948
> Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean)
> line: not available [native method]
> Method.invoke(Object, Object...) line: 521
> ZygoteInit$MethodAndArgsCaller.run() line: 782
> ZygoteInit.main(String[]) line: 540
> NativeStart.main(String[]) line: not available [native method]
>
> I do have onCreateOptionsMenu and onOptionsItemSelected implemented but the
> execution never reach my code.
> I tried to uninstall the app, install it again, delete the device and
> created again - no luck.
> I tried to rebuild the project as well. That did not help, however lead to
>
> problem 2:
> I have two apps in the workspace. Every time when I launch Eclipse, both
> projects dont have any errors. However rebuilding all projects always
> results in build error in the second project:
>
> The project cannot be built until build path errors are resolved
>
> And this error will not go away unless I restart Eclipse.
>
> Ubuntu 10.4
> Eclipse 3.5.2
> Target platform Android 1.5
>
> I'm new to Java/Android so any help is appreciated.
> Thanks in advance.

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


[android-developers] Re: Problem with app after update to 2.2

2010-07-09 Thread egbokalaka
I have the identical menu stack overflow problem. I'm new to Android
and Eclipse.

MacOS 10.6.4
Eclipse 3.5.2
ADT 0.9.7.v201005071
Targeting 1.5

This occurs with the notepadv1 tutorial.

On Jun 3, 8:44 am, "Mark H. Nichols"  wrote:
> On Jun 1, 2010, at 3:23 PM, Kiril Nedialkov wrote:
>
>
>
> > problem 2:
> > I have two apps in the workspace. Every time when I launch Eclipse, both 
> > projects dont have any errors. However rebuilding all projects always 
> > results in build error in the second project:
>
> > The project cannot be built until build path errors are resolved
>
> Did you update the Android preferences in Eclipse to point to the 2.2 SDK 
> properly?
>
> Mark

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


[android-developers] Re: Touch Events in Surface View

2010-07-09 Thread Joris
I had the same problem until recently. I'm new to android and not sure
whether this is the optimal way of solving it, but it's simple and
allows you to manage the sensitivity of the click.

@Override
public boolean onTouchEvent(MotionEvent event)
{
if(event.getAction() == MotionEvent.ACTION_DOWN)
{
xTouch = (int) event.getX();
yTouch = (int) event.getY();
xClickOffset = xTouch; *
yClickOffset = yTouch; 
}
else if(event.getAction() == MotionEvent.ACTION_MOVE)
{
   xOffset += xTouch - (int) event.getX(); // offsets for
scrolling the game board and other stuff here, isn't related to
clicking
   yOffset += yTouch - (int) event.getY();

   xTouch = (int) event.getX();
   yTouch = (int) event.getY();
}
else if (event.getAction() == MotionEvent.ACTION_UP)
{
if(Math.abs(event.getX() - xClickOffset) < tileSize / 2 &&
Math.abs(event.getY() - yClickOffset) < tileSize / 2)
*
{
//do click logic
}
}
return true;
}

I marked the important lines so you can see them, this is a simple
example and I'm sure you will easily adapt it for your code.
Basically, it checks whether the movement that has happened since
pressing down is very little. If it is - it's a click.

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


[android-developers] abort()-ing HttpGet requests in ThreadSafeClientConnManager

2010-07-09 Thread Anurag Singh
Hi,

I have an http client based on multi-threaded model of apache http
components in my App. And I want to achieve spontaneous cancellation
of http get requests from my Android app.

A new executor thread is started for each http request and the Thread
and the HttpGet is saved in a thread safe queue. When abort is
requested (on pressing back on the progress dialog and when starting a
new activity) - another thread is started which goes through the queue
of Threads and HttpGet and attempts to terminate them (code below).

While the HttpGet gets aborted successfully, the Threads go into
'native' state. They only time out giving SocketTimeoutException after
a default interval. The threads end up this way on most cancellations.
Is this something to be expected or I am hitting a bug?

The issue is that And as soon as 2 threads enter this state, all
further executor threads go into wait. Only when either of the 2
blocked threads time out, other executors get a chance (this seems to
be the default behavior of http). I have have tried many different
thing but I am unable to budge the 'stuck' threads.

I think the problem can be easily overcome by increasing the total no
of threads and threads per host -- but I am not sure if this will be a
correct thing to do (because the socket resources will stay occupied
till timeout and there is nothing theoretically that can stop a user
to do infinite cancellations)? Even if this is -- for Android, what
should be the number?

Now I am also doubting if my abort strategy is flawed. Can anyone
please commentor let me know of a fool-proof abort strategy?

- - -

Run method of the abort thread is like:
public void run() {
while (!stopQueue.isEmpty()) {
final List stopRequest = 
stopQueue.remove();
HttpGet abortRequest = (HttpGet) 
stopRequest.get(0);
Thread abortThread = (Thread) 
stopRequest.get(1);

// first abort the request
if (abortRequest != null && 
!abortRequest.isAborted()) {
abortRequest.abort();
Log.d("Aborting", 
abortRequest.getURI().toString());
}

// if the thread is still stuck -- interrupt it
if (abortThread != null && 
abortThread.isAlive()) {
abortThread.interrupt();
Log.d("Interrupting", 
abortThread.getName());
}
}
}

Thanks
Anurag

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


[android-developers] Running custom app at boot on generic hardware

2010-07-09 Thread PhilL
Hi all,

I'm trying to find out whether or not Android is suitable for a
project I'm working on, but have never touched the API.

I'd like to be able to take an off-the-shelf Android PDA/tablet, and
re-purpose it so that:

- Custom app launches at power up
- No other apps can be run (either uninstalled or unavailable)

Is there a standard way to do this, without custom firmware, or does
it depend on what the vendor has implemented?

Thanks

Phil

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


[android-developers] Knowing when someone sets device to 2G only

2010-07-09 Thread Craig
I support people in my organization who use android phones - I
frequently run into people who have set their device to 2G only to
save battery and forget that they made that choice.  Then they call me
at a later date to complain that they aren't getting 3G connections.
I've been looking for a way to write an application on the device that
can pull that metric and send it to me.  I'm only able to find an api
for Network the user is currently on - does anyone know if there is a
way to determine if the user has made a preference choice for 2G
only?  It's an option in the Wireless menu but I can't seem to find a
way to see if that setting has been chosen.
Thanks for the help
Craig

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

2010-07-09 Thread anshu saurabh
unsubscribe

On Fri, Jul 9, 2010 at 2:19 PM, Indicator Veritatis wrote:

> Only 20 years? I have you beat there. But more importantly, your
> "review of key points" is still seriously deficient in logic. Your
> conclusions still do not follow. Repeating conclusions that do not
> follow IS a mark of being uneducated, no matter how much experience
> you have.
>
> The G1 is not yet obsolete, nor would the OP be forced to "either
> leave the OP limited to Android 1.6 and below, or [be left] with an
> experience as painful as the experience they had with the emulator on
> the Laptop which caused them to look at getting a device in the first
> place", by choosing the G1 as his hardware platform.
>
> Furthermore, you are forgetting one of the OP's considerations: cost.
> You cannot find a phone originally released with 2.0 or 2.1 for as low
> a cost as he can find a G1.
>
> I don't know how you reached the conclusion a T-Mobile Pulse could be
> bought for the same price as a G1: I see eBay prices of $273 for the
> pulse, but I got my G1 on Craigslist for $80.
>
> On Jul 8, 10:44 pm, Al Sutton  wrote:
> > I've only been developing software for 20 years, but if you want to
> > consider me uneducated, then I guess that's your call.
> >
> > To me if you can't buy a device for the purpose you want to use it,
> > the devices firmware hasn't officially been updated for a few revision
> > of the OS it's running, and all the signs indicate it won't be, then
> > it's an obsolete device.
> >
> > Lets review a couple of key points;
> >
> > 1) You can't buy the ADP1 (i.e. the shipped as unlocked G1) through
> > Google any more. All you can buy is the ADP2. Yes, T-Mobile USA are
> > still selling the G1, but carriers will usually sell anything until
> > demand is almost non-existant.
> >
> > 2) There is no *official* support for anything beyond 1.6, and it
> > seems unlikely it ever will see an *official* update (seehttp://
> androinica.com/2010/06/29/will-the-g1-get-froyo-yes-no-maybe/
> > for the reasoning).
> >
> > 3) As you've said, even if you do get a 3rd party Android 2.x ROM it
> > is pig slow running it, making developing/testing any 2.x code with it
> > an unpleasant experience (and the OP originally said he wanted a
> > device because debugging on the emulator was too slow and painful).
> >
> > 4) eBay prices for a T-Mobile pulse (an Android 2.1 HVGA device) are
> > about the same if not cheaper than the eBay price for a G1.
> >
> > At no point did I suggest writing apps to block their use on a G1, all
> > I've done is point out that the G1 isn't the best fit for the OPs
> > situation, and in terms of being a phone for developers it's no longer
> > available for purchase as one, and using it for developing will either
> > leave the OP limited to Android 1.6 and below, or with an experience
> > as painful as the experience they had with the emulator on the Laptop
> > which caused them to look at getting a device in the first place.
> >
> > Al.
> >
> > On Jul 9, 12:20 am, Indicator Veritatis  wrote:
> >
> > > Lack of an official 2.1 update makes it 'obsolete'? Not in my book.
> > > Nor in the book of any educated software engineer. It takes a LOT more
> > > than that to make it 'obsolete', especially when Google ENCOURAGES
> > > third parties to release their own ROMs, and Cyanogen has already
> > > ported 2.1 to the G1 (
> http://androidspin.com/2010/04/29/cyanogen-ports-
> > > android-2-1-rom-in-g1-and-mytouch-3g/).
> >
> > > Of course, it is pig slow when running Cyanogen's 2.1 (compared to new
> > > 2.1 phones), and it lacks the hardware features for much of 2.1. But
> > > people are running 2.1 on the G1 already, and more want to do it.
> >
> > > The G1 is nowhere near the "bleeding edge": but it is still a good
> > > phone for testing new software against, since yet again, if it runs on
> > > the G1, and accommodates "small screens" correctly, then it will run
> > > almsot anywhere. This gets closer than JME ever got to the promise of
> > > "write once, run anywhere".
> >
> > > So don't write-off the G1 yet. You will risk locking your apps out of
> > > 1/5 the market if you do.
> >
> > > On Jul 8, 5:03 am, Al Sutton  wrote:
> >
> > > > It's highly unlikely the G1 will ever see an official update to
> > > > Android 2.x or higher, so it is obsolete.
> >
> > > > In the OPs shoes I personally would put the money towards a better
> > > > computer as it'll most likely make the whole development process more
> > > > pleasant.
> >
> > > > Al.
> >
> > > > On Jul 8, 7:32 am, Indicator Veritatis  wrote:
> >
> > > > > G1 obsolete? Well, almost. But take a look at the famous Platform
> > > > > Version 'dashboard' athttp://
> developer.android.com/resources/dashboard/platform-versions.html.
> > > > > It shows that as many as 21.3% of phones connecting to the market
> are
> > > > > still on 1.5. 45% are running 1.6 or 1.5.
> >
> > > > > So by that standard the G1 is not obsolete, since it is already on
> > > > > 1.6.
> >
> > >

[android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-07-09 Thread Anders
This is insane..  for Android not to support a security delay is just
beyond words. As a private user I do not want to enter my security
code any time I unlock my phone. I do on the other hand want security.

Every smartphone I've used had an option to delay security for 5min to
a couple of hours.
On my last phone (iPhone) this was covered in the OS.  Moving to
Android the app provided by lars in this thread took care of that for
me up until FroYo was released.

Due to the annoyance of entering password on every unlock, I now run
unsecured. This does not make me feel too god about neither froyo or
Android in general, but at least it makes it easy to pick up my phone
for a little play.

Google need to address this issue ASAP!
I'm sure there are loads of people running unsecured atm due to this
particular issue of not being able to delay security for at least a
few min..

Hopefully this will be solved either through Google or through some
dev utilizing root privilege and some hacks. Shame if we have to sort
to the last option to get a functioning security on our phone.

-Anders


On Jun 30, 6:29 pm, Dianne Hackborn  wrote:
> No we already have a feature request for this in our internal tracker.  I
> currently don't have a schedule for when it might be done.
>
> On Wed, Jun 30, 2010 at 5:20 AM, LeveloKment 
> wrote:
>
>
>
>
>
> > I know ;)
>
> > But this does not mean that the next Android version(s) will have to
> > lack this "balance" as well ;)
>
> > Should I open a "feature request" for this? Or will you :P
>
> > Thanks for your attention Dianne
>
> > Bye
> > Lars
>
> > On 30 Jun., 10:16, Dianne Hackborn  wrote:
> > > Sorry we currently don't support this.
>
> > > On Tue, Jun 29, 2010 at 11:37 PM, LeveloKment <
> > levelokm...@googlemail.com>wrote:
>
> > > > Hi again Dianne. ;)
>
> > > > Ok, lets keep the DeviceAdmin out off the topic for now. From what you
> > > > have described it seems to be for corporate use mainly.
>
> > > > The "problem" I've tried to fix with my app "PatternControl" was the
> > > > following:
> > > > People (private Android users) are aware that they have stored a lot
> > > > of sensible data on the smartphones, because of this some of them
> > > > would like to protect this information a little bit better... this is
> > > > where the Lock Pattern of Android (or with Froyo also the Pin or
> > > > Password) comes into the game.
>
> > > > All the basic lock features that Android provides to the users have
> > > > one disadvantage... Ones enabled, they always on. Each time you want
> > > > to use your phone you have to deal with the lock (pattern, pin or
> > > > password).
> > > > For private users this is often a bit to much and in the end they
> > > > deactivate the security pattern again.
>
> > > > What is missing from my point of view (and most likely the point of
> > > > view from thousands of users of apps like PatternControl, AutoLock
> > > > etc.), is an option like "Enable the lock only if I didn't used the
> > > > phone for xxx minutes".
>
> > > > Best regards
> > > > Lars
>
> > > > On 29 Jun., 19:15, Dianne Hackborn  wrote:
> > > > > On Tue, Jun 29, 2010 at 4:53 AM, LeveloKment <
> > levelokm...@googlemail.com
> > > > >wrote:
>
> > > > > > If I understand you right, than the only "option" to provide more
> > > > > > flexibility to the users is still an option in Android itself.
> > > > > > The DeviceManager can then disallow such temporary lowering of the
> > > > > > lock level.
>
> > > > > Sorry I am not understanding that paragraph.
>
> > > > > > From my point of view an always on security feature will often be
> > > > > > disabled (at least by private users). This lowers the security even
> > if
> > > > > > the origin intention was the other way around.
>
> > > > > Not sure I see the connection here...  the API to disable the lock
> > screen
> > > > is
> > > > > not supported when a device admin is requiring a lock screen, in
> > which
> > > > case
> > > > > there is no way for the user to go around this except to disable that
> > > > device
> > > > > admin, and thus lose all access to whatever corp server the admin is
> > > > > associated with.  And if their preference is to be able to not have a
> > > > lock
> > > > > screen at the expense of not having their corp server access...
> >  well,
> > > > that
> > > > > is fine for all.
>
> > > > > --
> > > > > Dianne Hackborn
> > > > > Android framework engineer
> > > > > hack...@android.com
>
> > > > > Note: please don't send private questions to me, as I don't have time
> > to
> > > > > provide private support, and so won't reply to such e-mails.  All
> > such
> > > > > questions should be posted on public forums, where I and others can
> > see
> > > > and
> > > > > answer them.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from thi

[android-developers] Re: File missing error while compiling Android source code

2010-07-09 Thread Ahmed El-Hassany

I had the same problem and I couldn't compile Android. But when I read
this thread http://ubuntuforums.org/showthread.php?p=9559776 , it's
saying that Android will force using 64bit if Java6 is used. What I
did is I switched to java5 and it works fine with me.

On Jul 4, 5:06 am, "Louis.Peng"  wrote:
> Hi,
>
> While compiling the android source code , I came across a very peculiar
> problem.
> I'm using Ubuntu 10.04 32bit version and JDK6.
> I downloaded the source and complied in following way,
> 1. repo init -u git://android.git.kernel.org/platform/manifest.git
> 2. repo sync
> 3. make
> 4. the compiling error trace is pasted below,
> host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
> In file included from /usr/include/features.h:378,
> from /usr/include/string.h:26,
> from external/clearsilver/java-jni/j_neo_util.c:1:
> /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or
> directory
> make: ***
> [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/j_neo_util.o]
> Error 1
>
> I checked the /usr/include/gnu/stubs.h,
> #if __WORDSIZE == 32
> # include  //this file exists
> #elif __WORDSIZE == 64
> # include  // this file doesn't exist
> #else
> # error "unexpected value for __WORDSIZE macro"
> #endif
>
> __WORDSIZE is defined in /usr/include/bits/wordsize,
> #if defined __x86_64__
> # define __WORDSIZE 64
> # define __WORDSIZE_COMPAT32 1
> #else
> # define __WORDSIZE 32
> #endif
>
> The problem is why __x86_64__ is defined in the my 32bit Ubuntu?
> Could you please help to solve this issue?
>
> Thanks in advance!
>
> --
> Louis

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: extending media framework on android 2.2 / froyo (stagefright ?)

2010-07-09 Thread Sunil Deshpande
Hi Al,

Could you please tell me the code for the flash support in Froyo
release. I want to check the code? I heard and read in forums like
flash support is available on Froyo release.

Thanks and Regards,
Sunil

On Jun 28, 3:52 pm, "sbw.android"  wrote:
> hi,
> I am interested in adding support for some video containers not
> supported by default in a video player application.
> flash player plugin being able to play video on froyo, I suppose there
> are some api to extend the media framework.
> I've heard ofstagefrightbut didn't find much details.
>
> where can I find details on how the flash player works ? does it use
> publicly available api ? public or not, how can I access them ?
>
> 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: IMAP TLS (accept all certificated) error on Android 2.2 (Froyo)

2010-07-09 Thread tom
Hi guys,

same problem here... it doesn't seem to accept all certificates at
all... !!!

Cheers

On 3 juil, 14:27, AA  wrote:
> Hello,
>
> just got update to FRF91 on Nexus One this morning. Issue: the email
> account, which was working perfectly on former Android 2.1, is not
> working. Account is configured asIMAP,TLS(accept all certificate).
> Error I got is: "Cannot verify hostname: mydomain.com".
> I tried to both specify name (mydomain.com) or change it and insert
> concered IP address. Both cases, same error.
>
> How can that be solved from Nexus One side, i.e. without acting onIMAPserver 
> where I cannot change anything?
>
> Thanks,
> AA

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


[android-developers] Modified Calendar App

2010-07-09 Thread DarkNet
I have worked on the calendar app for 2.2 and made a few changes.
I added ability to set start week from the settings and changed the
Month View to have color coding.
I am trying to get the changes pushed into master branch to be
considered but if anyone would like to check it out :
http://bit.ly/bECXGa

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


[android-developers] Contacts.apk

2010-07-09 Thread Ruff
I'm completely new in android environment. So, I want to ask for a
solution which is probably very noobish question to you people. :D

I want to replace the contacts.apk file in system/app/ . I go through
"adb remount" and then push. But when I reboot emulator, everything is
default. So, how can I change the system files in emulator (e.g. i
want to change the color of status bar or change the dialer background
and whatever.)

I'm using android 2.1 emulator.

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

2010-07-09 Thread Arjun
Greetings,

How can I know whether bluetooth is enabled or disabled.

Thanks,
Arjun.

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


[android-developers] Changing an Application's icon while its running

2010-07-09 Thread John
Is there a way to change an application's icon without upgrading it?

The idea is that there are two icons in the drawable folder, both with
different names.  At some point during the applications runtime, the
icon will switch to a different one to alert the user that something
occurred.

I have looked into doing a widget, but that isn't exactly what I want,
since I don't want to send a push notification.

Cheers,

John

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


[android-developers] Self-built Froyo images hang at booting process

2010-07-09 Thread L.Z
Hi,

I'm trying to build my own Froyo images for Nexus one using the source
code downloaded from android.git.kernel.org. The platform code is the
master branch and the kernel code branch is android-msm-2.6.32. I
built the images successfully. However, when I flashed my Nexus one
with the images, the system hang at the colorful X screen. My Nexus
one's specification and the steps I used to build the images are
below. Could you please tell me whether I missed anything during the
process? Is there any tool that I can use to hook up with the phone
when the phone boots so that I know which part goes wrong?

Thanks a lot.

My nexus one specification:
HBOOT-0.33.0012
MICROP_0b15
TOUCH PANEL-SYNT0103
RADIO-4.06.00.12.7

I built the system image and kernel image following the steps below.

1. For platform, at the root for the platform source code:
a) . build/envsetup.h
b) lunch 4
c) cd device/htc/passion
   ./extract-files.sh
d) make

2. For kernel, at the root for kernel:
a) export ARCH=arm
b) export CROSS_COMPILE=arm-eabi-
c) make msm_defconfig
d) make

3. Build platform against kernel, at the root for platform source:
a) Copy kernell/arch/arm/boot/zImage to  out/target/product/passion/
kernel
c) make

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

2010-07-09 Thread Nathan
Very good points mentioned so far.

In November 2009, I decided to get a G1 for cheap from craigslist when
I was just starting. At the time, that was the right choice.

The G1 has two advantages:
1. It's likely to be the slowest real hardware, which is good to see
how your app performs.

However, now, I am trying to acquire a Nexus One, for these reasons:
1. Like John said, more people in the US have these larger screens,
2.x android versions.
2. Multitouch doesn't work on 1x devices, and it doesn't work on the
emulator. So far, I haven't done anything with multitouch, even though
it would benefit the users, because I won't be able to tell how it
works without hardware. There could be other examples of things that
won't work on G1 that you will need hardware to test.
3. I can't adequately see the full user experience for people using
the emulator.
4. G1 is unlikely to ever get an official 2.x update. For me, there
are good reasons to have official ROMs - this choice may vary for you.
Nexus One is the first to get 2.2, and has a better chance than
others, including the Droid, to get anything beyond 2.2.
5. I don't have a Verizon plan, nor any plan, but I do have a TMobile
prepaid SIM and wifi, so I could use it for my phone.

For me, having hardware that I can use as a phone helps me get into
the customer's world a little better, and may help me come up with
more ideas.


On Jul 9, 6:03 am, Mark Murphy  wrote:
> -- devices that never had the Market (e.g., ARCHOS 5 Android tablet)

Mark, I have a person with an Archos 5 who has bought my product (one
of the few). He told me around May 30th that he could see the Market,
though it was fairly new for him. His name showed up in Google
Checkout, so a I assume he can see paid apps too. I don't know how
many Archos people can see the Market as of today.

Nathan

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

2010-07-09 Thread Mark Murphy
On Thu, Jul 8, 2010 at 5:07 PM, John  wrote:
>  Can somebody explain to me what makes up the installed application
> size? I have an apk that is about 8 MB, and often when I install I get
> the INSUFFICIENT_STORAGE error. I have around 25-30 MB free space on
> the phone.
>  I'm doing debugging so I have to upload lots of new versions. If I
> uninstall the previous version then I can install the new version. The
> application manager claims that the app is taking up 22 MB.
>  So back to the original question, how come the app is taking up 22
> MB when it really only is 8 MB?

A non-copy-protected application takes at least 2x its actual size
during installation. One with the (utterly pointless) Android Market
copy protection enabled takes at least 4x its actual size during
installation.

-- 
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 Android Development_ Version 3.1 Available!

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


[android-developers] Re: 3D Game Development

2010-07-09 Thread Robert Green
Check out libgdx, it has lots of integration pieces that will make it
fairly quick to get a game prototyped and working.
http://apistudios.com/hosted/marzec/badlogic/wordpress/?page_id=307

On Jul 6, 10:46 am, Renan Lima  wrote:
> Hey all!
>
> I´m new on Android 3D game development.
> I would like to know if there any engine/ API/ platform
> about 3D development that I could use. Or any tip which
> you could give me, like where I could start looking for.
>
> Thank you all!

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

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 10:13 AM, PingoWingo  wrote:
> Is there a way to get all the children views of a layout, from the
> Java code so that I can loop through them and set an attribute?

getChildCount() and getChildAt()

> Specifically, I'd like to set the "layout_width" based on the screen
> size.

Unless you are creating your own layout manager class, there may be a
better solution for whatever it is you are really trying to
accomplish.

-- 
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 Android Development_ Version 3.1 Available!

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


[android-developers] how do I restart my program?

2010-07-09 Thread ArcDroid
i would like to restart my app, just like when you change from
horizontal to vertical.  Something like finish, but I don't want to
exit the program.  thanks

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


Re: [android-developers] what is context?

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 2:04 PM, cindy  wrote:
> A very silly question, What is Context?

It is a class.

> How to get it?

Activity is a subclass of Context. Service is a subclass of Context.
BroadcastReceiver gets a Context object in its onReceive() method.
Pretty much everything else gets it from one of those three sources,
passed along as a method parameter.

-- 
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 Android Development_ Version 3.1 Available!

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


Re: [android-developers] calling open method from service

2010-07-09 Thread Mark Murphy
On Thu, Jul 8, 2010 at 3:26 AM, A N K ! T  wrote:
> hey all...
>  am new in android developement,am trying to call open();
> method for database to open...from on create of service but its showing
> runtime error..

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
the Java stack trace associated with your error.

-- 
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 Android Development_ Version 3.1 Available!

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


Re: [android-developers] How to reverse engineer(create a new project) a project from a stock phone?

2010-07-09 Thread Mark Murphy
On Thu, Jul 8, 2010 at 12:48 AM, Jad0gar  wrote:
> How would i go about reverse engineer what i have on my phone into a
> project in eclipse.
> To clarify, i want to create project where i have all the source code
> that was used to set up my stock phone.

http://source.android.com

-- 
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 Android Development_ Version 3.1 Available!

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


Re: [android-developers] Re: Android Library Project

2010-07-09 Thread Mark Carter
On 7 July 2010 20:58, Vladimir Lebedev-Schmidthof wrote:

> Hello Mark,
>
> I faced the same problem with attrs.xml in Library Project. Have you
> finally found the solution?


Sorry Vladimir - I stopped using the Library Project system I while ago -
and never found a solution to that particular problem.

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

Re: [android-developers] Changing an Application's icon while its running

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 1:51 PM, John  wrote:
> Is there a way to change an application's icon without upgrading it?

Not that I am aware of.

> The idea is that there are two icons in the drawable folder, both with
> different names.  At some point during the applications runtime, the
> icon will switch to a different one to alert the user that something
> occurred.

Please use a Notification for something like this.

-- 
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 Android Development_ Version 3.1 Available!

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


Re: [android-developers] How to hide contacts

2010-07-09 Thread Dmitri Plotnikov
Hi Usama,

There is really no way to completely hide a contact.  You can remove it from
the default view by changing the GROUP_VISIBLE field for all existing groups
as well as UNGROUPED_VISIBLE on all rows in the Settings table.  However,
the user can always manually undo this by going to Contacts/menu/Display
Options.

You can delete contacts by calling
contentResolver.delete(Contacts.CONTENT_URI, null, null);   But there are a
few issues with this:  first, the sync adapter will pop up a message saying
"you are attempting to delete ... contacts, are you sure?"  The user can
just say no.  But if the user says yes, the contacts will deleted from the
backend storage as well.  Contacts that were never synced to the backend
storage will be removed irreversibly.  So be careful with deleting contacts.

Cheers,
- Dmitri

On Thu, Jul 8, 2010 at 11:04 AM, Usama  wrote:

> I am currently making an application that's to work as auto-theft. The
> user whose mobile is stolen sends an sms to his phone and it's
> intercepted by the application installed in the phone. According to
> the format and instructions the phone performs the tast. I am making a
> module to hide the contacts on a particular instruction. How do I go
> about it. I have worked on inserting and updating contacts but how do
> I hide them, such that they are not visible in the native contacts
> app. They should become visible when the user sends another
> instruction... that means they are not to be deleted.
> and I had another query related to this ... how do we delete a
> contact ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: java.lang.NullPointerException when trying to edit strings.xml

2010-07-09 Thread Nitin Dahyabhai
On Jul 2, 5:16 pm, Xavier Ducrohet  wrote:
> Hello all,
>
> We've tracked down this issue to a bug in the Eclipse Web tools
> plug-ins which provide the XML models and editors that our plug-ins
> use.
>
> For reference, Eclipse already has a bug filed for 
> this:https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108
>
> We will implement a work around as soon as possible.

Until then, go to the XML/XML Files/Editor preference page and turn
off the "Use inferred grammar..." setting.  It should only affect
content assist and possibly some of the Outline view and Design page's
context menu actions.  Or refer to a DTD or XML Schema in the XML
file.  We'll have this corrected in Helios SR1/WTP 3.2.2.

---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational

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

2010-07-09 Thread Xavier Ducrohet
Ah, there's a problem with the namespace.

>From aapt's point of view all the resources are compiled for the
package name of the application (com.mycompany.test.app in your case),
so your "customValue" attribute is defined in that namespace, and not
in the namespace of the library.

At this time, the only solution is to remove the layout from the
library and move it into the apps and edit the namespace to match the
application package.

We'll look at fixing this.
xav

On Thu, Jul 8, 2010 at 3:27 AM, Vladimir Lebedev-Schmidthof
 wrote:
> Hello,
>
> Having custom attribute (in attrs.xml) in library project leads to
> compilation fail of the project dependent of that library.
>
> I.e.:
> MyLib project (library)
>
> AndroidManifest.xml:
> http://schemas.android.com/apk/res/android";
>      package="com.mycompany.test.lib"
>      android:versionCode="1"
>      android:versionName="1.0">
> ...
> 
>
> res/layout/main.xml:
> 
> http://schemas.android.com/apk/res/
> android"
>        xmlns:my="http://schemas.android.com/apk/res/
> com.mycompany.test.lib"
>    android:orientation="vertical"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
>    >
>     android:id="@+id/my_widget"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
>    my:customValue="324"/>
> 
>
> res/values/attrs.xml:
> 
>        
>                
>        
> 
>
> And there are nothing in TestApp except AndroidManifest.xml:
> http://schemas.android.com/apk/res/android";
>      package="com.mycompany.test.app"
>      android:versionCode="1"
>      android:versionName="1.0">
> ...
> 
>
> And aapt says that
> res/layout/main.xml:13: error: No resource identifier found for
> attribute 'customValue' in package 'com.mycompany.test.lib'
>
> How to avoid this except for no having custom attributes in library?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] J'ai pas trouvé le chemin system/lib

2010-07-09 Thread Xavier Ducrohet
The language for this group is English.

To answer your problem: system/lib and /system/fonts are paths on the
devices, not on your windows computer. Not sure what tutorials you
found but they are probably not about application development, as you
really don't need to deal with those paths when doing app development.

-

La langue de ce groupe est l'anglais.

Les chemin system/lib et system/fonts sont sur les telephones, pas sur
ta machine windows. Je sais pas quel tutoriels tu as trouve mais ils
doivent pas etre sur le development d'applications (vu que ces chemins
sont inutiles pour developer des apps)

2010/7/8 moudav...@live.fr :
> Bonjour
>
> Je suis débutant dans ce monde d'android.J'ai trouvé dans plusieurs
> tuto des chemins system/lib ou system/fonts mais j'ai pas trouvé ces
> chemins là sur mon windows 7.
> De l'aide svp
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Re: Problem with app after update to 2.2

2010-07-09 Thread RichardC
boolean result = onCreateOptionsMenu(menu)

will go recursive and bang goes your stack

My code for creating the options menu looks like:

@Override
public boolean onCreateOptionsMenu(Menu menu)
{
  MenuInflater inflater = getMenuInflater();
  inflater.inflate(R.menu.stopwatch_menu, menu);
  return true;
}


/Richard
On Jul 9, 4:02 pm, egbokalaka  wrote:
> I have the identical menu stack overflow problem. I'm new to Android
> and Eclipse.
>
> MacOS 10.6.4
> Eclipse 3.5.2
> ADT 0.9.7.v201005071
> Targeting 1.5
>
> This occurs with the notepadv1 tutorial.
>
> On Jun 3, 8:44 am, "Mark H. Nichols"  wrote:
>
> > On Jun 1, 2010, at 3:23 PM, Kiril Nedialkov wrote:
>
> > > problem 2:
> > > I have two apps in the workspace. Every time when I launch Eclipse, both 
> > > projects dont have any errors. However rebuilding all projects always 
> > > results in build error in the second project:
>
> > > The project cannot be built until build path errors are resolved
>
> > Did you update the Android preferences in Eclipse to point to the 2.2 SDK 
> > properly?
>
> > Mark

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


[android-developers] Re: SQLiteOpenHelper documentation not clear.

2010-07-09 Thread RichardC
onCreate should always build your the database for your current
version (say 5)

onUpgrade will be called asking your to upgrade your database.  It can
be called with any version less than your current version so you have
to cope with upgrading from:
1 -> 5
2 -> 5
3 -> 5
4 -> 5

The way I do this (to keep the amout of testing under control) is to
upgrade through all version in one pass (think drop through case
statement):
1 -> 2 -> 3 -> 4 -> 5

So i never upgrade from say 3 -> 5 but always do 3 -> 4 -> 5

It takes a bit longer to run but this tesing is a lot less

/Richard

On Jul 9, 10:58 am, martinlong1978  wrote:
> Hi,
>
> The documentation does not make the interation between onUpgrade() and
> onCreate() clear.
>
> When implementing onCreate() should this create the database at
> version 1, assuming that onUpgrade will apply all of the patches to
> bring it up to version x (lets say version 5 for example)? Or should
> onCreate build the latest version of the database, and onUpgrade is
> only used to upgrade legacy clients.
>
> I kind of prefer the first, because it effectively means that the same
> SQL is executed for everybody. Whereas the second options means that
> there is a potential for onCreate to build something slightly
> different to the succession of patches built by onUpgrade.
>
> I can always make onCreate call into onUpgrade, however, this is the
> kind of implementation detail that should go into the javadocs...
> please update!
>
> Thanks
>
> Martin

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


[android-developers] RTCP BYE packets not supported by the Android Media Framework?

2010-07-09 Thread Moto
Hello,

I'm currently running into issues where the MediaPlayer fails to
complete or terminate after a RTCP BYE packet is sent.  The issue is
that when the RTSP server is completed serving a file MediaPlayer
continues ticking it's clock as if it was playing but with no sound
until after just about 1min it completes.

The question is: Is RTCP BYE packet supported at all by the Android
Media Framework?

Any information on this matter is appreciated.

-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


Re: [android-developers] Re: Android Library Project

2010-07-09 Thread Xavier Ducrohet
Just to give an update to anyone still reading this thread.

The next version of ADT will include fixes for:
- Issue with the library needing to have a single source folder called
"src". Any number of source folder, of any name, even under other
folder (src/java).
- Issue with project name containing characters that aren't valid for
folder names.
- Libraries depending on libraries.

We've also made the link of the library source folders in the main
project much more robust.

By the way, we highly recommend to people using library projects in
Eclipse to set their workspace to automatically refresh.
This is due to Eclipse not realizing that the code inside the linked
folder (in the main app) is the same as the code in the library. Since
Eclipse considers them to be different, editing the code in one
location requires a refresh in the other location. Setting the
workspace to refresh automatically helps a lot.

Xav

On Fri, Jul 9, 2010 at 11:13 AM, Mark Carter  wrote:
> On 7 July 2010 20:58, Vladimir Lebedev-Schmidthof 
> wrote:
>>
>> Hello Mark,
>>
>> I faced the same problem with attrs.xml in Library Project. Have you
>> finally found the solution?
>
> Sorry Vladimir - I stopped using the Library Project system I while ago -
> and never found a solution to that particular problem.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Re: Self-built Froyo images hang at booting process

2010-07-09 Thread RichardC
Try either :

http://groups.google.com/group/android-platform
http://groups.google.com/group/android-porting

/Richard

On Jul 9, 5:22 pm, "L.Z"  wrote:
> Hi,
>
> I'm trying to build my own Froyo images for Nexus one using the source
> code downloaded from android.git.kernel.org. The platform code is the
> master branch and the kernel code branch is android-msm-2.6.32. I
> built the images successfully. However, when I flashed my Nexus one
> with the images, the system hang at the colorful X screen. My Nexus
> one's specification and the steps I used to build the images are
> below. Could you please tell me whether I missed anything during the
> process? Is there any tool that I can use to hook up with the phone
> when the phone boots so that I know which part goes wrong?
>
> Thanks a lot.
>
> My nexus one specification:
> HBOOT-0.33.0012
> MICROP_0b15
> TOUCH PANEL-SYNT0103
> RADIO-4.06.00.12.7
>
> I built the system image and kernel image following the steps below.
>
> 1. For platform, at the root for the platform source code:
> a) . build/envsetup.h
> b) lunch 4
> c) cd device/htc/passion
>    ./extract-files.sh
> d) make
>
> 2. For kernel, at the root for kernel:
> a) export ARCH=arm
> b) export CROSS_COMPILE=arm-eabi-
> c) make msm_defconfig
> d) make
>
> 3. Build platform against kernel, at the root for platform source:
> a) Copy kernell/arch/arm/boot/zImage to  out/target/product/passion/
> kernel
> c) make

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

2010-07-09 Thread RichardC
Ten seconds of searching would have found you:
http://developer.android.com/guide/topics/manifest/manifest-element.html

/Richard

On Jul 9, 3:35 am, Rob  wrote:
> In the versioning documentation (http://developer.android.com/guide/
> publishing/versioning.html) it says that android:versionCode is an
> integer. Is the integer a 4-byte integer with a range of
> -2,147,483,648 to +2,147,483,647 or is it only a 2 byte integer with a
> range of -32,768 to +32,767 ?

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

2010-07-09 Thread Mark Murphy
On Thu, Jul 8, 2010 at 3:40 PM, Michael powers  wrote:
> It appears that my WebView is ALWAYS FULL screen and doesn't respect
> the layout .

No, it isn't.

> Also, Activity menus are not the ones I set but the browsers.

That is because it is the Browser application that you are looking at.

> If the URL is  www.google.com in mobile mode it appears to work ok !?!

Yes.

> But once you click on Classic mode or any other web site in mobile/
> regular it takes up the whole screen.

When the user clicks a link, WebView opens the Browser application. If
the Web page you load redirects, the redirection opens the Browser
application.

You can implement shouldOverrideUrlLoading() in a WebViewClient,
attach that to the WebView, and do what you want on link clicks and
redirections.

> 
>
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:layout_width="fill_parent android:layout_height="fill_parent">
>
>  android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:text="Type here:"/>
>
> WebView xmlns:android="http://schemas.android.com/apk/res/android";
> android:id="@+id/webview" android:layout_width="wrap_content"
> android:layout_height="wrap_content" android:layout_below="@id/label"
> />
>
> 

Also, you cannot reliably use wrap_content with widgets that know how to scroll.

-- 
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 Android Development_ Version 3.1 Available!

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


[android-developers] Re: Cannot find the culprit file in my android project even after expanding the main folder

2010-07-09 Thread RichardC
Do

Project > Clean ...

Then look at either Problems or the Console view(s)

/Richard

On Jul 9, 12:07 pm, vaibhavpandey  wrote:
> The side bar in eclipse shows a red cross on the title of my project
> folder but there are no such signs in the directories below it in
> hierarchy. In which particular file does error exist? How can I know
> that

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


Re: [android-developers] child activity does not "finish()" correctly

2010-07-09 Thread Mark Murphy
If I had to guess, you are calling finish() after calling
startActivityForResult() in the "parent activity". Hence, the parent
activity is gone, and there is nothing for the ListActivity to return
to.

On Thu, Jul 8, 2010 at 3:21 PM, ecforu  wrote:
> I have a ListActivity I display from a parent activity.  When the user
> selects the desired item from the list it supposed to return to the
> parent activity.  Only when I call finish, the app goes away (doesn't
> quit) and displays the Android Home page.  If I debug, the application
> doesn't die, it just sits on an MessageQueue.Wait().
>
> I have a break point right before the finish() call and one in the
> first line of the OnActivityResult.  When I press continue from the
> first, I never see the second on in onActivityResult.
>
> I have other child activities in my app that don't display this
> problem.  However this is the only ListActivity I have that I am
> trying to return from.
> I do call finish from onListItemClick.  I'm wondering if that is not
> allowed since that is responding to a view event.  However if I don't
> do it here, how can I get back to the parent activity.  Below is the
> code snippet of my finish method.
>
>   �...@override
>    protected void onListItemClick(ListView l, View v, int position,
> long id)
>    {
>       Object selectedItem = _adapter.getItem(position);
>       //TODO get results back to parent activity
>       Intent listIntent = new Intent();
>       setResult(RESULT_OK, listIntent);
>       finish();
>    }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] Re: How to know whether bluetooth is enabled/disabled

2010-07-09 Thread DonFrench
This is the way I do it.  I also want to know if the app is running in
the emulator so I first check if there is a default adapter.

BluetoothAdapter sBluetoothAdapter =
BluetoothAdapter.getDefaultAdapter();
if (sBluetoothAdapter == null) {
// Bluetooth is not availabl
EMULATOR = true;
} else
EMULATOR = false;
...

if (!EMULATOR) {
if (!sBluetoothAdapter.isEnabled()) {
// Bluetooth is not enabled
}

On Jul 9, 9:25 am, Arjun  wrote:
> Greetings,
>
> How can I know whether bluetooth is enabled or disabled.
>
> Thanks,
> Arjun.

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

2010-07-09 Thread TreKing
On Fri, Jul 9, 2010 at 2:21 AM, Abhyudai Shanker  wrote:

> I have defined it as private char[] buf on the top.


And I'm sure you've initialized this array, yes?

-
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] Contacts.apk

2010-07-09 Thread Rogério de Souza Moraes
Hi,

You need to change the SDK image. You need to download the android sdk
source, make your changes and replace the system.img that your emulator use.

Regards,

Rogerio

2010/7/9 Ruff 

> I'm completely new in android environment. So, I want to ask for a
> solution which is probably very noobish question to you people. :D
>
> I want to replace the contacts.apk file in system/app/ . I go through
> "adb remount" and then push. But when I reboot emulator, everything is
> default. So, how can I change the system files in emulator (e.g. i
> want to change the color of status bar or change the dialer background
> and whatever.)
>
> I'm using android 2.1 emulator.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: writing to sd card issue

2010-07-09 Thread RichardC
The WRITE_EXTERNAL_STORAGE permission did not exist in sdk version 1.5
(3) (it was introduced in 1.6 (4) ).  So if you are building for 1.5
(3) and running on 1.6 (4) or higher WRITE_EXTERNAL_STORAGE is
silently added to your permissions.

If you change your build to 1.6 (4) but indiciate you will run on 1.5
(3) by adding the following to your maifest




and build again the 1.6 (4) sdk. Then you will have to add the
WRITE_EXTERNAL_STORAGE to your manifest to enable you to write to the
sdcard.

/Richard

On Jul 9, 2:52 pm, TreKing  wrote:
> On Wed, Jul 7, 2010 at 11:16 PM, guru  wrote:
> > Whether I have to mention this permission in application manifest or
> > i have to mention in other places also. What other factors I have to look
> > in to this.
>
> Your question, as phrased, makes no sense.
>
> -
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] Re: oh no - lost my keystore

2010-07-09 Thread RichardC
I know it's overkill but DVD-R * 3 for me

/Richard

On Jul 9, 2:25 pm, Robert  wrote:
> What we do here is we put the keystore on 3 seperate flashdrives! When
> one goes down we send the intern(slave) to the store yo buy one!

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


[android-developers] Re: SQLiteOpenHelper documentation not clear.

2010-07-09 Thread martinlong1978
Thanks Richard,

Yes, I'm using a drop through case statement, to allow it to drop
through to the latest version. I'll probably also call into upgrade
from create to keep the creation (ie from version 0) consistent with
upgrade.

Thanks for the help... I'm sure I could've figured it out with a
sample. I do think this should be in the javadoc though.

Ta

Martin

On Jul 9, 7:35 pm, RichardC  wrote:
> onCreate should always build your the database for your current
> version (say 5)
>
> onUpgrade will be called asking your to upgrade your database.  It can
> be called with any version less than your current version so you have
> to cope with upgrading from:
> 1 -> 5
> 2 -> 5
> 3 -> 5
> 4 -> 5
>
> The way I do this (to keep the amout of testing under control) is to
> upgrade through all version in one pass (think drop through case
> statement):
> 1 -> 2 -> 3 -> 4 -> 5
>
> So i never upgrade from say 3 -> 5 but always do 3 -> 4 -> 5
>
> It takes a bit longer to run but this tesing is a lot less
>
> /Richard
>
> On Jul 9, 10:58 am, martinlong1978  wrote:
>
>
>
> > Hi,
>
> > The documentation does not make the interation between onUpgrade() and
> > onCreate() clear.
>
> > When implementing onCreate() should this create the database at
> > version 1, assuming that onUpgrade will apply all of the patches to
> > bring it up to version x (lets say version 5 for example)? Or should
> > onCreate build the latest version of the database, and onUpgrade is
> > only used to upgrade legacy clients.
>
> > I kind of prefer the first, because it effectively means that the same
> > SQL is executed for everybody. Whereas the second options means that
> > there is a potential for onCreate to build something slightly
> > different to the succession of patches built by onUpgrade.
>
> > I can always make onCreate call into onUpgrade, however, this is the
> > kind of implementation detail that should go into the javadocs...
> > please update!
>
> > Thanks
>
> > Martin

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

2010-07-09 Thread RichardC
A GPS "fix" can be inaccurate - no matter how "confident" the GPS
device is :)

My experience here is from GPS units mounted on multiple trains
travelling about the UK, recording their position every few seconds.
A small percentage of the values we recieved from the GPS units were
completly un-trustworthy (ie. the train would have had to do over
200mph to get between the last fix and the current positon). For a
similar small percentage the train was NOT on a track!

We realised we had to sanitise the data returned from the GPS units.
We did this at 2 levels:

1) on the Train - no point processing (storing) a GPS position when
the calcuated speed (NOT the speed from the GPS unit but calculated by
us from the previous good fix) was totally unreasonable.

2) in the backend applcation - Trains travel on tracks (hopefully) so
ignore all GPS positions that we cannot map on to a track.

Conslusion - a single GPS position should NOT be used at the
application level unless it makes sense - for a given value of
sanity :)

/Richard

On Jul 9, 3:50 pm, "Maps.Huge.Info (Maps API Guru)" 
wrote:
> Question: How are you getting your location fix? Are you using
> "ACCURACY_FINE" and assuming it will use the GPS? Unless you
> specifically test for the provider being GPS, it might default to
> network, which would give you a position with limited accuracy. I've
> seen this bouncing around effect when the wireless location (network)
> provider is trying to figure out where the device is, as it zeros in
> on the location, it can hop all over the map.
>
> Bottom line: Don't assume that ACCURACY_FINE will be GPS, unless you
> have GPS satellites in view and the user has enabled GPS, you'll be
> using the network location service instead.
>
> -John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Any chance to deactivate the lock pattern in Froyo from code?

2010-07-09 Thread Frank Weiss
Although I agree with you, I think you've misposted. It is not an SDK issue.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Self-built Froyo images hang at booting process

2010-07-09 Thread L.Z
Thanks.

On Jul 9, 2:36 pm, RichardC  wrote:
> Try either :
>
> http://groups.google.com/group/android-platformhttp://groups.google.com/group/android-porting
>
> /Richard
>
> On Jul 9, 5:22 pm, "L.Z"  wrote:
>
>
>
> > Hi,
>
> > I'm trying to build my own Froyo images for Nexus one using the source
> > code downloaded from android.git.kernel.org. The platform code is the
> > master branch and the kernel code branch is android-msm-2.6.32. I
> > built the images successfully. However, when I flashed my Nexus one
> > with the images, the system hang at the colorful X screen. My Nexus
> > one's specification and the steps I used to build the images are
> > below. Could you please tell me whether I missed anything during the
> > process? Is there any tool that I can use to hook up with the phone
> > when the phone boots so that I know which part goes wrong?
>
> > Thanks a lot.
>
> > My nexus one specification:
> > HBOOT-0.33.0012
> > MICROP_0b15
> > TOUCH PANEL-SYNT0103
> > RADIO-4.06.00.12.7
>
> > I built the system image and kernel image following the steps below.
>
> > 1. For platform, at the root for the platform source code:
> > a) . build/envsetup.h
> > b) lunch 4
> > c) cd device/htc/passion
> >    ./extract-files.sh
> > d) make
>
> > 2. For kernel, at the root for kernel:
> > a) export ARCH=arm
> > b) export CROSS_COMPILE=arm-eabi-
> > c) make msm_defconfig
> > d) make
>
> > 3. Build platform against kernel, at the root for platform source:
> > a) Copy kernell/arch/arm/boot/zImage to  out/target/product/passion/
> > kernel
> > c) make

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


[android-developers] Dialog without something in the background

2010-07-09 Thread Boozel
I have an aplication that is just a service but before it is run i
would like the user to accept some terms and conditions that appear in
a dialog box. Can any one please help me find a way to do this without
having a visable activity show up in the background. I dont mind doing
this in an activity but then is there a way to make the activity not
show up in the background?
Thanks

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


Re: [android-developers] Dialog without something in the background

2010-07-09 Thread Mark Murphy
Use a Theme.Dialog activity.

On Fri, Jul 9, 2010 at 3:30 PM, Boozel  wrote:
> I have an aplication that is just a service but before it is run i
> would like the user to accept some terms and conditions that appear in
> a dialog box. Can any one please help me find a way to do this without
> having a visable activity show up in the background. I dont mind doing
> this in an activity but then is there a way to make the activity not
> show up in the background?

-- 
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 Android Development_ Version 3.1 Available!

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


[android-developers] Sqlite, cursor and thread safeness

2010-07-09 Thread Federico Paolinelli
Hi all, I have doubts about cursors and sqlite usage in a multi thread
environment.

Let's say that I have a background thread that pushes data in the
sqlite storage. I read that I can force sqlite to be thread safe by
using  setLockingEnabled.
I am now wondering what happens to a cursor while the data is being
changed.

For example, if I have a foreground activity that makes the query and
uses the resulting cursor to populate a listview, what will happen if
the background thead push some data in the db while the foreground
activity is populating the view ?

And more: I get a cursor as the result of the query. Does it contain
the real data or is the data fetched every moveToNext() call? What
happens if data is pushed to the db while I am still using the cursor
on another thread?

Many thanks,

Federico

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


[android-developers] Flickr and Facebook

2010-07-09 Thread David Toledo
Hi All

Where can found some API the Flickr and Facebook for android?

Thanks
David

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

2010-07-09 Thread Boozel
Can you provide me with some more information on this or give me a
link to some?

On Jul 9, 9:35 pm, Mark Murphy  wrote:
> Use a Theme.Dialog activity.
>
> On Fri, Jul 9, 2010 at 3:30 PM, Boozel  wrote:
> > I have an aplication that is just a service but before it is run i
> > would like the user to accept some terms and conditions that appear in
> > a dialog box. Can any one please help me find a way to do this without
> > having a visable activity show up in the background. I dont mind doing
> > this in an activity but then is there a way to make the activity not
> > show up in the background?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


Re: [android-developers] Mapping Application

2010-07-09 Thread Frank Weiss
Let's assume there's no Android application that will do that already
or you don't want to license it.

Start with some of the essential problems. Solve them one at a time.

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


Re: [android-developers] Sqlite, cursor and thread safeness

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 3:44 PM, Federico Paolinelli  wrote:
> I am now wondering what happens to a cursor while the data is being
> changed.

Most of the time, a Cursor holds all the data represented by the
result set, and so it is unaware of any changes you make to the
database.

> And more: I get a cursor as the result of the query. Does it contain
> the real data or is the data fetched every moveToNext() call?

If contains all of "the real data" after you first try using it. So,
rawQuery() returns right away, but if you call moveToFirst() or
something, at that point it does the query and holds the results.

The exception is if you have a really big result set (>1MB), in which
case it uses a "windowed" Cursor, and I have no idea what the rules
are for it.

> What
> happens if data is pushed to the db while I am still using the cursor
> on another thread?

Nothing much, AFAIK. The Cursor will be oblivious to any changes until
you requery() it.

-- 
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 Android Development_ Version 3.1 Available!

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


Re: [android-developers] Sqlite, cursor and thread safeness

2010-07-09 Thread Federico Paolinelli
> The exception is if you have a really big result set (>1MB), in which
> case it uses a "windowed" Cursor, and I have no idea what the rules
> are for it.

That's what I was curious about. I mean, I was afraid there were some
kind of optimizations behind the moveToFirst / Next call. However, I
think I can live with it since it will hardly return a set that large.


Thanks a lot

Federico

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

2010-07-09 Thread TreKing
On Fri, Jul 9, 2010 at 10:00 AM, ranjan ar  wrote:

> Can any one help me fix this.


Fix what? You've loosely outlined what you want to do, but not what problem
you're actually having.

-
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] Get binary data from external device to Droid

2010-07-09 Thread Frank Weiss
I thiink you are asking too many questions at once. It usually helps
to solve one problem at a time. AFAICT, you are dealing with three
problems: how to establish communication between the phone and the
device (although that's somewhat confusing, since a smart phone is
frequently referred to as a device), a means of getting the data from
the device into an application on the phone, a means of displaying the
data on a map. BTW, have you solved the last problem already?

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


[android-developers] Prefill databases

2010-07-09 Thread Jaap
Hi,

I have a program that needs a fixed database to do lookups of some
data. Is there a way to easily fill such a database by just putting
the data in a file or so

Thanks

Jaap

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

2010-07-09 Thread Boozel
I figured it out here http://developer.android.com/guide/topics/ui/themes.html
Thanks

On Jul 9, 9:35 pm, Mark Murphy  wrote:
> Use a Theme.Dialog activity.
>
> On Fri, Jul 9, 2010 at 3:30 PM, Boozel  wrote:
> > I have an aplication that is just a service but before it is run i
> > would like the user to accept some terms and conditions that appear in
> > a dialog box. Can any one please help me find a way to do this without
> > having a visable activity show up in the background. I dont mind doing
> > this in an activity but then is there a way to make the activity not
> > show up in the background?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] Re: how do I restart my program?

2010-07-09 Thread Al Sutton

It's rarely a good idea to do this. If you can tell us why you want to
do this you may find we can offer you a way of doing what you want
without a restart.

Al.

On Jul 9, 7:10 pm, ArcDroid  wrote:
> i would like to restart my app, just like when you change from
> horizontal to vertical.  Something like finish, but I don't want to
> exit the program.  thanks

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


[android-developers] Re: what hardware platform do you use?

2010-07-09 Thread Al Sutton
There's a hack to get Market on an Archos device, but it's not
sanctioned by Google, not supported by Google or Archos, and relies on
users willing to apply the hack knowing they won't get any support,
and so is probably not widespread.

Archoses devices tend to fall short of Googles requirements for the
compatibility test (most noticeably due to their lack of an inbuilt
camera) and thus don't get the Google apps, so they don't make good
development device candidates due to the missing bits of
functionality.

Al.

On Jul 9, 7:06 pm, Nathan  wrote:
> Very good points mentioned so far.
>
> In November 2009, I decided to get a G1 for cheap from craigslist when
> I was just starting. At the time, that was the right choice.
>
> The G1 has two advantages:
> 1. It's likely to be the slowest real hardware, which is good to see
> how your app performs.
>
> However, now, I am trying to acquire a Nexus One, for these reasons:
> 1. Like John said, more people in the US have these larger screens,
> 2.x android versions.
> 2. Multitouch doesn't work on 1x devices, and it doesn't work on the
> emulator. So far, I haven't done anything with multitouch, even though
> it would benefit the users, because I won't be able to tell how it
> works without hardware. There could be other examples of things that
> won't work on G1 that you will need hardware to test.
> 3. I can't adequately see the full user experience for people using
> the emulator.
> 4. G1 is unlikely to ever get an official 2.x update. For me, there
> are good reasons to have official ROMs - this choice may vary for you.
> Nexus One is the first to get 2.2, and has a better chance than
> others, including the Droid, to get anything beyond 2.2.
> 5. I don't have a Verizon plan, nor any plan, but I do have a TMobile
> prepaid SIM and wifi, so I could use it for my phone.
>
> For me, having hardware that I can use as a phone helps me get into
> the customer's world a little better, and may help me come up with
> more ideas.
>
> On Jul 9, 6:03 am, Mark Murphy  wrote:
>
> > -- devices that never had the Market (e.g., ARCHOS 5 Android tablet)
>
> Mark, I have a person with an Archos 5 who has bought my product (one
> of the few). He told me around May 30th that he could see the Market,
> though it was fairly new for him. His name showed up in Google
> Checkout, so a I assume he can see paid apps too. I don't know how
> many Archos people can see the Market as of today.
>
> Nathan

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

2010-07-09 Thread Indicator Veritatis
Let's hope there is a better solution! After all, setting layout_width
IS the layout manager's job.

On Jul 9, 11:09 am, Mark Murphy  wrote:
> On Fri, Jul 9, 2010 at 10:13 AM, PingoWingo  wrote:
> > Is there a way to get all the children views of a layout, from the
> > Java code so that I can loop through them and set an attribute?
>
> getChildCount() and getChildAt()
>
> > Specifically, I'd like to set the "layout_width" based on the screen
> > size.
>
> Unless you are creating your own layout manager class, there may be a
> better solution for whatever it is you are really trying to
> accomplish.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] Re: how to disconnect the incomming call

2010-07-09 Thread Matt
That seems like something that the Android OS would NOT want an
application to be able to do.  So I doubt it's possible.

On Jul 9, 6:30 am, "A N K ! T"  wrote:
>  hey am trying to disconnect the incomming call
> can anybody help me in this ..
> --
> Thanks
> Ankit

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


<    1   2   3   >