[android-developers] Is there really no possibility to detect incoming calls with a receiver?

2008-12-13 Thread code_android_festival_way

Hello!

Is there really no possibility to react on incoming calls with the
help of a BroadcastReceiver? I can catch everything except incoming
calls. At the moment I have to rely on a non stop running server
listening for the telephone state with the PhoneStateListener which is
not really great because I have to rely on my service which gets
killed by the system in a lot of situations. (and can't inform the
user about it because onDestroy doesn't get call which is annoying as
well)

I'm looking forward reading your answers. If you can give me a hinte
what I can do about my service solution this would be fine as well. I
am open for everything. :)

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



[android-developers] Making an SD Card-capable launcher.. possible?

2008-12-13 Thread David Orriss Jr

Has anyone looked at the feasibility of this at all?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

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

2008-12-13 Thread Dianne Hackborn
You are probably doing stuff in your constructor.  Don't do that, do your
initialization in onCreate().

On Sat, Dec 13, 2008 at 4:09 AM, Urig  wrote:

>
> Hi everybody,
>
> I need help :)
>
> I have an Activity which tries to start a Service (in the same
> process).
> It never succeeds... I recieve the following NullPointerException
>
> 12-13 11:39:06.158: ERROR/AndroidRuntime(324): Uncaught handler:
> thread main exiting due to uncaught exception
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324):
> java.lang.RuntimeException: Unable to instantiate service
> com.ex.LocalService: java.lang.NullPointerException
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.app.ActivityThread.handleCreateService(ActivityThread.java:
> 2321)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.app.ActivityThread.access$2800(ActivityThread.java:112)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.os.Handler.dispatchMessage(Handler.java:88)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.os.Looper.loop(Looper.java:123)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.app.ActivityThread.main(ActivityThread.java:3742)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> java.lang.reflect.Method.invoke(Method.java:515)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:739)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> dalvik.system.NativeStart.main(Native Method)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): Caused by:
> java.lang.NullPointerException
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.content.ContextWrapper.getSystemService(ContextWrapper.java:
> 323)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> com.ex.LocalService.(LocalService.java:47)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> java.lang.Class.newInstance(Native Method)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
> android.app.ActivityThread.handleCreateService(ActivityThread.java:
> 2318)
> 12-13 11:39:06.178: ERROR/AndroidRuntime(324): ... 10 more
>
> My onCreate method only calls the parent's onCreate.
>
> the service is being started in the following way:
>
> startService(new Intent(MyActivity.this, LocalService.class));
>
> Any suggestions/ideas will make me very glad
>
> Thanks in advance
>
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Custom Components and Custom Attributes

2008-12-13 Thread Dianne Hackborn
Sorry, right now we don't have a way for libraries bundle their own
resources.  This is definitely a big hole that needs to be filled, but I
don't know when that will happen.

On Sat, Dec 13, 2008 at 2:14 PM, tenacious  wrote:

>
> How can I distribute custom components which have custom attributes to
> other projects?  Is it possible to define my custom attributes in code
> (versus xml) which would make it easier to compile the entire
> component into a JAR without the need for the host project to define
> attributes in XML?  What am I missing?
>
> For example I have a custom component and I want to package it as a
> JAR for easy use in projects.  My custom component relies on a custom
> attribute that I've defined in res/values/attrs.xml like so:
> 
>
>
>
> Where I get lost is...Does every project that uses my component need
> to add/modify it's attrs.xml to have the "startIndex" definition?
>
> I've been attempting various approaches.  It seems like ultimately
> attributes belong to the package namespace - which would cause obvious
> problems for the way I'm trying to distribute my component.  Will I
> really have to tell all my users to edit their attrs.xml?
>
> Any help is appreciated.
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: error on my Mac 10.4 Power book: cannot execute binary file

2008-12-13 Thread Bill Napier

Are either of the mac users running on an old powerbook?  Like the
PowerPC (non-intel) powerbooks?  The Android SDK is only works on
Intel-based mac's.  (I would love to see universal binaries for the
mac stuff as well so I can use my PPC mac...)

b

On Mon, Nov 24, 2008 at 9:11 AM, elviani.huse...@googlemail.com
 wrote:
>
> Hi, I am new to android, and I just install the android on the eclipse
> and trying to run my first Hello Android program and I have exactly
> the same problem. 'adb version' failed! and Failed to parse the output
> of 'adb version'.
> I am working on the Mac osx enviroment.
> Have you manage to solve the problem?
> Thank you.
>
>
> Elviani.
>
> >
>

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



[android-developers] Receiving Alarms when the program is not running

2008-12-13 Thread moazzamk

Hey all,

I am trying to write a program that sets and alarm and has to display
a text when the alarm "goes off" . The problem is my program might not
be running when the alarm broadcast is sent so my program keeps
crashing. Is there a way I can code an alarm receiver that can display
an alert even if my program is not running?

Thanks in advance,

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



[android-developers] Re: why does the same code NOT work same in different scenarios? JNI issue, please help.

2008-12-13 Thread kevin_fan

 I will make a new post in Android-Platform group,hopefully I can get
some help there, thanks Dianne!

On Dec 13, 4:52 am, "Dianne Hackborn"  wrote:
> Hi, since native code is not currently supported in the SDK, this post is
> not appropriate for this group.  Please post on one of the open-source
> platformg groups such as android-platform.
>
>
>
>
>
> On Fri, Dec 12, 2008 at 1:53 AM, kevin_fan  wrote:
>
> > Hi Group!
>
> > I created my own android application using eclipse+ADT. Inside the
> > application, there is a class called "UniFNativeInterface", it loads
> > the library "libUniFNativeCode.so" and contains a few "native"
> > methods, which means it is simply a wrapper of native features. The
> > libray - "libUniFNativeCode.so" is for the native implementation. Of
> > course, before I run my application, I push the lib into to the
> > emulator.
> > This is scenario one, and everything worked fine.
>
> > Because of my curiosity, I tried to integrate the package
> > "com.android.unif"(where class "UniFNativeInterface" lives in) into
> > the platform, I simply locate the package folder under "D:\SourceCode
> > \android\mydroid\frameworks\base\core\java\com\android\", to make it a
> > part of framework.jar,  and then rebuild everything.
> > When I reboot the emulator with the newly - built images, and invoked
> > the use of class  "UniFNativeInterface", VM crashed with the below
> > log:
>
> > .
> > D/dalvikvm(  227): Trying to load lib /system/lib/libUniFNativeCode.so
> > 0x0
> > D/dalvikvm(  227): Added shared lib /system/lib/libUniFNativeCode.so
> > 0x0
> > W/dalvikvm(  227): JNI WARNING: JNI method called with exception
> > raised
> > W/dalvikvm(  227):              in Ljava/lang/Runtime;.nativeLoad
> > (Ljava/lang/String;Ljava/lang/ClassLoader;)Z (RegisterNatives)
> > W/dalvikvm(  227): Pending exception is:
> > I/dalvikvm(  227): Ljava/lang/NoClassDefFoundError;:
> > com.android.unif.UniFNativeInterface
> > I/dalvikvm(  227):      at java.lang.Runtime.nativeLoad(Native Method)
> > I/dalvikvm(  227):      at java.lang.Runtime.loadLibrary(Runtime.java:380)
> > I/dalvikvm(  227):      at java.lang.System.loadLibrary(System.java:458)
> > I/dalvikvm(  227):      at com.android.unif.UniFNativeInterface.
> > (UniFNativeInterface.java:113)
> > .
>
> > My code was built into the platform(framework.jar, more precisely)
> > successfully, otherwise libUniFNativeCode.so wouldn't be loaded
> > (crap...);
> > and the library was correctly found;
>
> > I think the problem took place when the native library tried to the
> > register native methods to class com.android.unif.UniFNativeInterface,
> > but Runtime could not find the definition of that class. However, we
> > can see from the log that the package and class name is exactly the
> > same as it is supposed to be, then why this happenedI saw there
> > are a few usages of JNI in framework, was there anything I missed??
>
> > The only difference I can see of above two scenarios are the
> > environment, any idea?
>
> > any suggestions will be appreciated!!! thanks in advance!!!
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using Homemade TrueType Fonts In Android

2008-12-13 Thread illiniwatcher

Mike:

The one that appears is the default Android system font (named
something like "DroidSans").  It's like not having a font applied at
all.  Any other suggestions?

Thanks,
Charles



On Dec 11, 3:31 pm, Mike Reed  wrote:
> If you substitute yourfontfor the one in ApiDemos, and rebuild them,  
> do you see yours appear in ApiDemos/src/com/example/android/apis/
> graphics/Typefaces.java?
>
> On Dec 11, 2008, at 3:58 PM, illiniwatcher wrote:
>
> To all:
>
> I've noticed that Android lets developers include their own TrueType
> fonts, by way of the assets\fonts folder.  This is a great feature,
> and works well.
>
> But I notice that if I copy one of my own homemade TrueType fonts -
> created using CorelDraw's export function - any text I render in 
> thatfontcomes out as the Android system defaultfontrather than in thefontI've 
> just included.
>
> Is there something the Android environment looks for in TrueType or
> *.TTF files - a digital signature, a certain character, something -
> that would cause a homemadefontfile's outlines to be ignored?
>
> The TTF files I've created only have a subset of the entire character
> set, usually consisting only of numbers and symbols.  The TTF file
> works just fine in major applications like Microsoft Office (even the
> latest one) and Adobe Photoshop.  Can any of the Android developers
> comment?
>
> Thanks,
> Charles
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Please help with android source making

2008-12-13 Thread Dr. Tingrong Lu
Hi,

I downloaded android source and make according to the doc (I've set the 
ANDROID_JAVA_HOME). The webkit browser on the emulator made from source cannot 
access the Internet, meanwhile the webkit browser on the emulator come with 
android SDK 1.0r1 can. Can anyone help figure out what's wrong with the 
emulator made from source?

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: The G1 (RC30) K-9 eMail client

2008-12-13 Thread SLSq

And, the update (v 0.21) ... continues to have the same problems !!!
The details have already been provided for the previous version.
The problems described were confirmed by reviewing the system
logs associated with actual email systems being used.


On Dec 5, 1:11 pm, SLSq  wrote:
> ... has the same kinds of problems as the builtin eMail client. This
> finding indicates problems with the underlying Android system.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 install the 'Radar' package to the android platform?

2008-12-13 Thread ying...@gmail.com

Hi,

How to install the 'Radar' package to the android platform?
When I run an application it said 'Please install Radar package'

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



[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-13 Thread Walter Chang
well, i ordered mine the very first day and it arrived at tao yuan, taiwan
on friday night(12/12).  so i should be able to play with it on monday.
can't wait!

On Sat, Dec 13, 2008 at 7:45 PM, Christine wrote:

>
>
>
> On Dec 13, 11:35 am, patte  wrote:
>
> > If UPS delivers saturdays I wil get it TODAY, if not on MONDAY ;-)
>
> They don't deliver on Saturdays unless the shipper buys an additional
> option for delivery on Saturday. I guess you'll get it on Monday. My
> order of 12-6 was removed from the tracking page today, so I guess
> I'll get mine on Monday too.
>
>
> >
> > Good luck guys ;-)
> >
> > On 12 Dez., 08:22, balachmar  wrote:
> >
> > > When did you place your order?
> > > I really hope that it ships soon, so that I can play with it during
> > > the holiday!
> >
> > > On Dec 11, 12:41 pm, patte  wrote:
> >
> > > > I got the tracking id from andr...@brightstarcorp.com - G1 is on its
> > > > way to Cologne ;-)
> >
> > > > On 10 Dez., 19:06, "ruwen@gmail.com" 
> wrote:
> >
> > > > > Did any one get a tracking id?
> >
> > > > > I think you can have a different ship address than the billing
> > > > > address.
> >
> > > > > On Dec 10, 11:32 am, DazBy  wrote:
> >
> > > > > > Does thephonehave to be shipped to the billing address or can I
> > > > > > specify a different address to that on my Credit Card?
> >
> > > > > > On Dec 7, 5:53 pm, "Justin (Google Employee)" 
> wrote:
> >
> > > > > > > Any appropriate customs duties and taxes will be added on top
> of the
> > > > > > > $399 purchase price. You are correct, that this can add a
> substantial
> > > > > > > the base price. However, it should not add any hassle. Is there
> some
> > > > > > > specific difficulty you're referring to?
> >
> > > > > > > Cheers,
> > > > > > > Justin
> > > > > > > Android Team @ Google
> >
> > > > > > > On Dec 6, 2:13 am, Marc Seeger  wrote:
> >
> > > > > > > > Hi,
> > > > > > > > I'm really interested in the possibility of buying a
> "AndroidDev
> > > > > > > >Phone1 " (-->http://code.google.com/android/dev-devices.html),
> the
> > > > > > > > only question I have concerns the shipping.
> > > > > > > > According to the site, it will be (?is?) available for order
> in
> > > > > > > > Germany, I can't find any information about the details
> though.
> > > > > > > > The price seems fair, but adding VAT + Import Taxes would add
> a BIG
> > > > > > > > amount of money to the final number (and a lot of hassle).
> >
> > > > > > > > Does Google ship all of its devices from the US or are
> devices for
> > > > > > > > European Devs shipped from inside the EU?
> >
>


-- 
...__o
...\<,
( )/ ( )...

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

2008-12-13 Thread Xiongzh

Hi friends,

A small issue in my emulator in Vista: Either I pressed the red phone
button for long time or pressed the power off button in the up-left
side, the emulator was in 'Shutting down ...' status for long time.

How can it be powered off as the real device?

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



[android-developers] Qustion about focus

2008-12-13 Thread ye11111...@gmail.com

For example,a ExpandableListView has many father view.Every father
view has a child view.Every child view has many buttons.
When I click the father view,I want to set focus to the buttons
instead of the child view.
How to ?
I tried set "NextfocusUp","NextfocusDown" and so on in xml but failed.
Is there a solution?
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 the sqlite database

2008-12-13 Thread Paul

In order to play nicely with the resources you share with other
applications I think you might want to consider creating your
connection in onCreate, and cleaning it up in onPause.  You mentioned
an issue when you tried that earlier but it might be worth resolving
within your app.  This will keep your connection open to the database
for only the amount of time when your application is actually being
viewed (i think).

http://code.google.com/android/reference/android/app/Activity.html

On Dec 13, 5:02 pm, thisnameagain  wrote:
> I cleared up my problem with the SQL not closing and creating a leak
> by make sure to close the connection in onDestroy. I had tried to
> close the connection earlier, but that caused a different problem.
> When I close it in onDestroy everything works well. Hope that might
> help someone.
>
> On Dec 13, 5:47 pm, thisnameagain  wrote:
>
> > Wondering if you ever solved this? I am getting a similar problem and
> > I have notfoundanything that works, or others solutions.
>
> > On Nov 26, 10:30 pm, "bharath kumar"  wrote:
>
> > > Hi AndroidDev,
> > > 11-24 19:27:38.287: ERROR/Database(5891):Leakfound
> > > 11-24 19:27:38.287: ERROR/Database(5891): java.lang.IllegalStateException:
> > > /data/data/com.vista.examples.List/databases/ev_dataSQLiteDatabasecreated
> > > andneverclosed
>
> > > i got the above error .how to resolve the problem.?
>
> > > Also ,please check my code below to create the database and accessign the
> > > database.
>
> > > [/code]public void onCreate(Bundle icicle) {
> > > super.onCreate(icicle);
> > > initDB(this);
> > > //mOpenHelper=new DatabaseHelper(this);
> > > itla = new IconifiedTextListAdapter(this);
> > > showEventList();}
>
> > > public void initDB(Context ctx) {
> > > db = ctx.openOrCreateDatabase(EVENT_DATA,
> > > Context.MODE_WORLD_WRITEABLE,null);
> > > db.execSQL("CREATE TABLE IF NOT EXISTS " + EVENT_DATA
> > > + " (EventType VARCHAR,Description VARCHAR, Image INTEGER,Msg_Template
> > > TEXT);");
>
> > > }
>
> > > public void showEventList() {
> > >SQLiteDatabasevDB=null;
> > > try{
> > > vDB=SQLiteDatabase.openDatabase(getDatabasePath(EVENT_DATA).toString(),
> > > null,SQLiteDatabase.OPEN_READONLY ); }catch(SQLiteException sqe){
> > > sqe.printStackTrace();}
>
> > > Cursor cursor=vDB.query(EVENT_DATA, new
> > > String[]{"EventType,Image,Description"}, null, null, null, null, null);
> > > cursor.moveToFirst();
> > > for(int position=0;(position!=cursor.getCount())&&
> > > cursor.getCount()!=0;position++){
> > > String text=cursor.getString(0);
> > > int im=cursor.getInt(1);
> > > itla.addItem(new IconifiedText(text, getResources().getDrawable(im)));
> > > cursor.moveToNext();}
>
> > > setListAdapter(itla);
> > > [code]
>
> > > I am using getDatabasePath to connect to db
> > > Is this is the proper way to create as well as accessing the database?
>
> > > Please suggest...
>
> > > Regards
> > > Bharat.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is a SIM Required for Dev 1?

2008-12-13 Thread cyntacks

Hi all,

This may be a dumb question, and it may be more apparent once my Dev 1
phone arrives but... Does the Dev 1 require a SIM card to test the
applications we build? In other words, we won't ever use the phone
outside of the "lab" (e.g. no phone calls). We just want to upload our
software and be sure it runs properly.

Is this possible?

Kevin


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



[android-developers] Re: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread Aaron

Worked perfectly for me.
Other people have said it, too.

On Dec 13, 5:10 pm, Yev  wrote:
> To US customers:
>
> Has anyone been able to track the phone 
> viahttps://www.fedex.com/AltRefTracking?cntry_code=us
>
> I was told if you put your order# in the reference, your ship date,
> country,
> it should show up.
>
> I ordered mine on 12/9 and still nothing.
>
> On Dec 13, 1:27 pm, sacoskun  wrote:
>
> > It is something really awkward. The time period of shipping ADP to
> > Florida is unknown.
> > Can we say less than a week or are there any faster shipping option?!
>
> > On Dec 13, 8:05 am, mmitchel  wrote:
>
> > > I received my developer phone following an order placed on the 8th.
> > > There was not
> > > any email or tracking information provided, it just showed up FedEx..
> > > Give it a
> > > little bit, we all are excited ;)
>
> > > On Dec 12, 8:50 pm, Disconnect  wrote:
>
> > > > For people who haven't yet gotten their ADP (or didn't order one) JF has
> > > > written up a nice summary of how it compares to his original G1 
> > > > athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but 
> > > > its his
> > > > content)
>
> > > > On Thu, Dec 11, 2008 at 5:19 PM, Aaron  
> > > > wrote:
>
> > > > > So is the Dev Phone essentially the exact same thing as the G1 but it
> > > > > has a different case, and it's unlocked?
> > > > > I was reading that Google Apps and different features might be missing
> > > > > from it and that worried me, and I was just wondering.
>
> > > > > On Dec 11, 11:57 am, Jackson Miller 
> > > > > wrote:
> > > > > > I chose overnight shipping.
>
> > > > > > FYI: here are my full APN settings for using my Android developer
> > > > > > device on AT&T.  It took me a while to search and try the various
> > > > > > recommendations.  I am on the iPhone data package if that makes a
> > > > > > difference:
>
> > > > > > Name: AT&T
> > > > > > APN: wap.cingular
> > > > > > Proxy: 
> > > > > > Port: 
> > > > > > Username: wap.cingulargprs.com
> > > > > > Password: CINGULAR1
> > > > > > Server: 
> > > > > > MMSC: mmsc.cingular.com
> > > > > > MMS proxy: 
> > > > > > MMS port: 80
> > > > > > MCC: 310
> > > > > > MNC: 410
> > > > > > APN type: 
>
> > > > > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > > > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, 
> > > > > > > set
> > > > > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > > > > >                        Mark
>
> > > > > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > > > > wrote:
>
> > > > > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > > > > Nashville, TN.
>
> > > > > > > > Unfortunately I am having a hard time getting the APN settings 
> > > > > > > > for
> > > > > > > > AT&T right.
>
> > > > > > > > -Jackson
>
> > > > > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. 
> > > > > > > > > I
> > > > > assume
> > > > > > > > > that nobody got it:
>
> > > > >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > > > > Where in US are you? How long did it take to reach and what 
> > > > > > > > > > was
> > > > > the
> > > > > > > > > > mode of shipping you used?
> > > > > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > > > > And is it illegal to personally carry a single phone from 
> > > > > > > > > > US to
> > > > > UK?
> > > > > > > > > > (Well without the carton box for myself).- Hide quoted text 
> > > > > > > > > > -
>
> > > > > > > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread Yev

To US customers:

Has anyone been able to track the phone via
https://www.fedex.com/AltRefTracking?cntry_code=us

I was told if you put your order# in the reference, your ship date,
country,
it should show up.

I ordered mine on 12/9 and still nothing.


On Dec 13, 1:27 pm, sacoskun  wrote:
> It is something really awkward. The time period of shipping ADP to
> Florida is unknown.
> Can we say less than a week or are there any faster shipping option?!
>
> On Dec 13, 8:05 am, mmitchel  wrote:
>
> > I received my developer phone following an order placed on the 8th.
> > There was not
> > any email or tracking information provided, it just showed up FedEx..
> > Give it a
> > little bit, we all are excited ;)
>
> > On Dec 12, 8:50 pm, Disconnect  wrote:
>
> > > For people who haven't yet gotten their ADP (or didn't order one) JF has
> > > written up a nice summary of how it compares to his original G1 
> > > athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but its 
> > > his
> > > content)
>
> > > On Thu, Dec 11, 2008 at 5:19 PM, Aaron  
> > > wrote:
>
> > > > So is the Dev Phone essentially the exact same thing as the G1 but it
> > > > has a different case, and it's unlocked?
> > > > I was reading that Google Apps and different features might be missing
> > > > from it and that worried me, and I was just wondering.
>
> > > > On Dec 11, 11:57 am, Jackson Miller 
> > > > wrote:
> > > > > I chose overnight shipping.
>
> > > > > FYI: here are my full APN settings for using my Android developer
> > > > > device on AT&T.  It took me a while to search and try the various
> > > > > recommendations.  I am on the iPhone data package if that makes a
> > > > > difference:
>
> > > > > Name: AT&T
> > > > > APN: wap.cingular
> > > > > Proxy: 
> > > > > Port: 
> > > > > Username: wap.cingulargprs.com
> > > > > Password: CINGULAR1
> > > > > Server: 
> > > > > MMSC: mmsc.cingular.com
> > > > > MMS proxy: 
> > > > > MMS port: 80
> > > > > MCC: 310
> > > > > MNC: 410
> > > > > APN type: 
>
> > > > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, 
> > > > > > set
> > > > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > > > >                        Mark
>
> > > > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > > > wrote:
>
> > > > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > > > Nashville, TN.
>
> > > > > > > Unfortunately I am having a hard time getting the APN settings for
> > > > > > > AT&T right.
>
> > > > > > > -Jackson
>
> > > > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I
> > > > assume
> > > > > > > > that nobody got it:
>
> > > >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > > > Where in US are you? How long did it take to reach and what 
> > > > > > > > > was
> > > > the
> > > > > > > > > mode of shipping you used?
> > > > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > > > And is it illegal to personally carry a single phone from US 
> > > > > > > > > to
> > > > UK?
> > > > > > > > > (Well without the carton box for myself).- Hide quoted text -
>
> > > > > > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with the sqlite database

2008-12-13 Thread thisnameagain

I cleared up my problem with the SQL not closing and creating a leak
by make sure to close the connection in onDestroy. I had tried to
close the connection earlier, but that caused a different problem.
When I close it in onDestroy everything works well. Hope that might
help someone.

On Dec 13, 5:47 pm, thisnameagain  wrote:
> Wondering if you ever solved this? I am getting a similar problem and
> I have notfoundanything that works, or others solutions.
>
> On Nov 26, 10:30 pm, "bharath kumar"  wrote:
>
> > Hi AndroidDev,
> > 11-24 19:27:38.287: ERROR/Database(5891):Leakfound
> > 11-24 19:27:38.287: ERROR/Database(5891): java.lang.IllegalStateException:
> > /data/data/com.vista.examples.List/databases/ev_dataSQLiteDatabasecreated
> > andneverclosed
>
> > i got the above error .how to resolve the problem.?
>
> > Also ,please check my code below to create the database and accessign the
> > database.
>
> > [/code]public void onCreate(Bundle icicle) {
> > super.onCreate(icicle);
> > initDB(this);
> > //mOpenHelper=new DatabaseHelper(this);
> > itla = new IconifiedTextListAdapter(this);
> > showEventList();}
>
> > public void initDB(Context ctx) {
> > db = ctx.openOrCreateDatabase(EVENT_DATA,
> > Context.MODE_WORLD_WRITEABLE,null);
> > db.execSQL("CREATE TABLE IF NOT EXISTS " + EVENT_DATA
> > + " (EventType VARCHAR,Description VARCHAR, Image INTEGER,Msg_Template
> > TEXT);");
>
> > }
>
> > public void showEventList() {
> >SQLiteDatabasevDB=null;
> > try{
> > vDB=SQLiteDatabase.openDatabase(getDatabasePath(EVENT_DATA).toString(),
> > null,SQLiteDatabase.OPEN_READONLY ); }catch(SQLiteException sqe){
> > sqe.printStackTrace();}
>
> > Cursor cursor=vDB.query(EVENT_DATA, new
> > String[]{"EventType,Image,Description"}, null, null, null, null, null);
> > cursor.moveToFirst();
> > for(int position=0;(position!=cursor.getCount())&&
> > cursor.getCount()!=0;position++){
> > String text=cursor.getString(0);
> > int im=cursor.getInt(1);
> > itla.addItem(new IconifiedText(text, getResources().getDrawable(im)));
> > cursor.moveToNext();}
>
> > setListAdapter(itla);
> > [code]
>
> > I am using getDatabasePath to connect to db
> > Is this is the proper way to create as well as accessing the database?
>
> > Please suggest...
>
> > Regards
> > Bharat.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 the sqlite database

2008-12-13 Thread thisnameagain

Wondering if you ever solved this? I am getting a similar problem and
I have not found anything that works, or others solutions.


On Nov 26, 10:30 pm, "bharath kumar"  wrote:
> Hi AndroidDev,
> 11-24 19:27:38.287: ERROR/Database(5891): Leak found
> 11-24 19:27:38.287: ERROR/Database(5891): java.lang.IllegalStateException:
> /data/data/com.vista.examples.List/databases/ev_data SQLiteDatabase created
> and never closed
>
> i got the above error .how to resolve the problem.?
>
> Also ,please check my code below to create the database and accessign the
> database.
>
> [/code]public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> initDB(this);
> //mOpenHelper=new DatabaseHelper(this);
> itla = new IconifiedTextListAdapter(this);
> showEventList();}
>
> public void initDB(Context ctx) {
> db = ctx.openOrCreateDatabase(EVENT_DATA,
> Context.MODE_WORLD_WRITEABLE,null);
> db.execSQL("CREATE TABLE IF NOT EXISTS " + EVENT_DATA
> + " (EventType VARCHAR,Description VARCHAR, Image INTEGER,Msg_Template
> TEXT);");
>
> }
>
> public void showEventList() {
> SQLiteDatabase vDB=null;
> try{
> vDB=SQLiteDatabase.openDatabase(getDatabasePath(EVENT_DATA).toString(),
> null,SQLiteDatabase.OPEN_READONLY ); }catch(SQLiteException sqe){
> sqe.printStackTrace();}
>
> Cursor cursor=vDB.query(EVENT_DATA, new
> String[]{"EventType,Image,Description"}, null, null, null, null, null);
> cursor.moveToFirst();
> for(int position=0;(position!=cursor.getCount())&&
> cursor.getCount()!=0;position++){
> String text=cursor.getString(0);
> int im=cursor.getInt(1);
> itla.addItem(new IconifiedText(text, getResources().getDrawable(im)));
> cursor.moveToNext();}
>
> setListAdapter(itla);
> [code]
>
> I am using getDatabasePath to connect to db
> Is this is the proper way to create as well as accessing the database?
>
> Please suggest...
>
> Regards
> Bharat.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Custom Components and Custom Attributes

2008-12-13 Thread tenacious

How can I distribute custom components which have custom attributes to
other projects?  Is it possible to define my custom attributes in code
(versus xml) which would make it easier to compile the entire
component into a JAR without the need for the host project to define
attributes in XML?  What am I missing?

For example I have a custom component and I want to package it as a
JAR for easy use in projects.  My custom component relies on a custom
attribute that I've defined in res/values/attrs.xml like so:
 



Where I get lost is...Does every project that uses my component need
to add/modify it's attrs.xml to have the "startIndex" definition?

I've been attempting various approaches.  It seems like ultimately
attributes belong to the package namespace - which would cause obvious
problems for the way I'm trying to distribute my component.  Will I
really have to tell all my users to edit their attrs.xml?

Any help is appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone get a tracking number for the dev phone?

2008-12-13 Thread jeroen020

Thanks a bunch! The reference check on the UPS website showed me the
details. It's in Cologne now, so I'm guessing a Monday arrival in
Amsterdam!

On Dec 11, 8:01 pm, cyntacks  wrote:
> Check out this thread:
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Dec 11, 1:58 pm, "Xavier Mathews"  wrote:
>
> > Everyone get a tracking code via email or phone so they can track there 
> > package.
>
> > On 12/11/2008, jeroen020  wrote:
>
> > > I ordered the dev phone on December 6th but other than receiving
> > > instant confirmation that my order was received via e-mail I have not
> > > heard anything since. I'm in The Netherlands and paid 578$ incl
> > > shipping.
>
> > > I know that some people here (in the US) have now received their dev
> > > phone, but I was wondering if you guys got a tracking code first. It's
> > > supposed to ship via 'UPS Innovation' and on their site you can only
> > > track shipments if you have a code.
>
> > > If you got a tracking code, how many days after you placed your order
> > > did you get it? And how long did it take for the phone to arrive after
> > > you got the tracking code?
>
> > > I can't find a way to contact customer support at the order site and
> > > the confirmation was sent from nore...@brightstarcorp.com so that
> > > sounds pointless too.
>
> > > Waiting for it to arrive is a lot less annoying when you're at least
> > > kept up to date on shipping status...
>
> > --
> > Xavier A. Mathews
> > Student/Browser Specialist/Developer/Web-Master
> > Google Group Client Based Tech Support Specialist
> > Hazel Crest Illinois
> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread sacoskun

It is something really awkward. The time period of shipping ADP to
Florida is unknown.
Can we say less than a week or are there any faster shipping option?!

On Dec 13, 8:05 am, mmitchel  wrote:
> I received my developer phone following an order placed on the 8th.
> There was not
> any email or tracking information provided, it just showed up FedEx..
> Give it a
> little bit, we all are excited ;)
>
> On Dec 12, 8:50 pm, Disconnect  wrote:
>
> > For people who haven't yet gotten their ADP (or didn't order one) JF has
> > written up a nice summary of how it compares to his original G1 
> > athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but its 
> > his
> > content)
>
> > On Thu, Dec 11, 2008 at 5:19 PM, Aaron  wrote:
>
> > > So is the Dev Phone essentially the exact same thing as the G1 but it
> > > has a different case, and it's unlocked?
> > > I was reading that Google Apps and different features might be missing
> > > from it and that worried me, and I was just wondering.
>
> > > On Dec 11, 11:57 am, Jackson Miller 
> > > wrote:
> > > > I chose overnight shipping.
>
> > > > FYI: here are my full APN settings for using my Android developer
> > > > device on AT&T.  It took me a while to search and try the various
> > > > recommendations.  I am on the iPhone data package if that makes a
> > > > difference:
>
> > > > Name: AT&T
> > > > APN: wap.cingular
> > > > Proxy: 
> > > > Port: 
> > > > Username: wap.cingulargprs.com
> > > > Password: CINGULAR1
> > > > Server: 
> > > > MMSC: mmsc.cingular.com
> > > > MMS proxy: 
> > > > MMS port: 80
> > > > MCC: 310
> > > > MNC: 410
> > > > APN type: 
>
> > > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, set
> > > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > > >                        Mark
>
> > > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > > wrote:
>
> > > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > > Nashville, TN.
>
> > > > > > Unfortunately I am having a hard time getting the APN settings for
> > > > > > AT&T right.
>
> > > > > > -Jackson
>
> > > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I
> > > assume
> > > > > > > that nobody got it:
>
> > >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > > Where in US are you? How long did it take to reach and what was
> > > the
> > > > > > > > mode of shipping you used?
> > > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > > And is it illegal to personally carry a single phone from US to
> > > UK?
> > > > > > > > (Well without the carton box for myself).- Hide quoted text -
>
> > > > > > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone 1™

2008-12-13 Thread Christine

In English: on the UPS website choose "tracking", then "tracking by
reference", provide the order number under "shipment reference", don't
fill out any other fields, press "track".

On Dec 13, 1:03 am, tweitzel  wrote:
> @p.christov92:
>
> Go to the UPS website, choose "Sendungsverfolgung", then click
> "Sendungsverfolgung anhand Referenznummer". Enter your Android Dev
> Phone order no. into the input field "Sendungsreferenz". If it has
> been sent, you'll get all the information.
>
> I've ordered mine on December 8th, it has been shipped on December
> 11th, and should arrive on December 15th. Near Frankfurt/Main
> (Germany) is where I live. And no, I never got any tracking
> information from Brightstar ("You haven't ordered anything yet").
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread Edmon

I've got mine.

Here are the details and pictures:

http://it.toolbox.com/blogs/web2-place/unlocked-g1-android-just-received-what-is-in-the-box-28770

On Dec 13, 2:36 pm, sidecircle  wrote:
> Maybe oversea people get a different treatement:  Speaking for me
> (France) I've placed my order last tuesday and as of today (saturday)
> I'm still without any news, without any shipping confirmation, without
> any tracking number... My credit card got indeed charged a juicy $580
> instantely.
>
> On 13 déc, 07:05, mmitchel  wrote:
>
> > I received my developer phone following an order placed on the 8th.
> > There was not
> > any email or tracking information provided, it just showed up FedEx..
> > Give it a
> > little bit, we all are excited ;)
>
> > On Dec 12, 8:50 pm, Disconnect  wrote:
>
> > > For people who haven't yet gotten their ADP (or didn't order one) JF has
> > > written up a nice summary of how it compares to his original G1 
> > > athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but its 
> > > his
> > > content)
>
> > > On Thu, Dec 11, 2008 at 5:19 PM, Aaron  
> > > wrote:
>
> > > > So is the Dev Phone essentially the exact same thing as the G1 but it
> > > > has a different case, and it's unlocked?
> > > > I was reading that Google Apps and different features might be missing
> > > > from it and that worried me, and I was just wondering.
>
> > > > On Dec 11, 11:57 am, Jackson Miller 
> > > > wrote:
> > > > > I chose overnight shipping.
>
> > > > > FYI: here are my full APN settings for using my Android developer
> > > > > device on AT&T.  It took me a while to search and try the various
> > > > > recommendations.  I am on the iPhone data package if that makes a
> > > > > difference:
>
> > > > > Name: AT&T
> > > > > APN: wap.cingular
> > > > > Proxy: 
> > > > > Port: 
> > > > > Username: wap.cingulargprs.com
> > > > > Password: CINGULAR1
> > > > > Server: 
> > > > > MMSC: mmsc.cingular.com
> > > > > MMS proxy: 
> > > > > MMS port: 80
> > > > > MCC: 310
> > > > > MNC: 410
> > > > > APN type: 
>
> > > > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, 
> > > > > > set
> > > > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > > > >                        Mark
>
> > > > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > > > wrote:
>
> > > > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > > > Nashville, TN.
>
> > > > > > > Unfortunately I am having a hard time getting the APN settings for
> > > > > > > AT&T right.
>
> > > > > > > -Jackson
>
> > > > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I
> > > > assume
> > > > > > > > that nobody got it:
>
> > > >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > > > Where in US are you? How long did it take to reach and what 
> > > > > > > > > was
> > > > the
> > > > > > > > > mode of shipping you used?
> > > > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > > > And is it illegal to personally carry a single phone from US 
> > > > > > > > > to
> > > > UK?
> > > > > > > > > (Well without the carton box for myself).- Hide quoted text -
>
> > > > > > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to get menu handler/instance

2008-12-13 Thread sjia

I'd like to disable/enable a menu item in the OnCreate() function

protected void onCreate(Bundle savedInstanceState)

Is there any system call to get the menu handler/instance?

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: Using resources in WebView

2008-12-13 Thread Xavier Mathews

Cant you just convert you image to the image type you want and then
format it to html? All your images should be page file that is where
you should find the drawabldm icons unless they are placed on a
toolbar.

On 12/13/2008, Eric  wrote:
>
> My app has ImageButtons that use icons in drawable. I want a help page
> that can refer to those icons. I made a help html file and put it in
> assets/help/help.html. Now I can load it using "file:///android_asset/
> help/help.html".
>
> The problem is how do I access the ImageButton icons? Is there a way
> for my html file to refer to the resource directory?
>
> I could not find a way, so I thought I'd put the icons in my help
> directory. Now they are easy to acces from my help.html. However, I
> have trouble referring to them from my code. My src code looks like
> this:
>
>   ImageButton correctAnswerButton = (ImageButton) findViewById
> (R.id.correct_answer);
>   File imgFile = new File("/android_asset/help/
> check_icon.png");
>   correctAnswerButton.setImageURI(Uri.fromFile(imgFile));
>
> This fails. I presume android_asset only works for WebView. I cannot
> find documentation on it anywhere -- I only found out about it from
> this group.
>
> Is there a way to load an image from assets? Or better, is there a way
> to refer to resources from an html asset?
>
>
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com
"Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread sidecircle

Maybe oversea people get a different treatement:  Speaking for me
(France) I've placed my order last tuesday and as of today (saturday)
I'm still without any news, without any shipping confirmation, without
any tracking number... My credit card got indeed charged a juicy $580
instantely.



On 13 déc, 07:05, mmitchel  wrote:
> I received my developer phone following an order placed on the 8th.
> There was not
> any email or tracking information provided, it just showed up FedEx..
> Give it a
> little bit, we all are excited ;)
>
> On Dec 12, 8:50 pm, Disconnect  wrote:
>
> > For people who haven't yet gotten their ADP (or didn't order one) JF has
> > written up a nice summary of how it compares to his original G1 
> > athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but its 
> > his
> > content)
>
> > On Thu, Dec 11, 2008 at 5:19 PM, Aaron  wrote:
>
> > > So is the Dev Phone essentially the exact same thing as the G1 but it
> > > has a different case, and it's unlocked?
> > > I was reading that Google Apps and different features might be missing
> > > from it and that worried me, and I was just wondering.
>
> > > On Dec 11, 11:57 am, Jackson Miller 
> > > wrote:
> > > > I chose overnight shipping.
>
> > > > FYI: here are my full APN settings for using my Android developer
> > > > device on AT&T.  It took me a while to search and try the various
> > > > recommendations.  I am on the iPhone data package if that makes a
> > > > difference:
>
> > > > Name: AT&T
> > > > APN: wap.cingular
> > > > Proxy: 
> > > > Port: 
> > > > Username: wap.cingulargprs.com
> > > > Password: CINGULAR1
> > > > Server: 
> > > > MMSC: mmsc.cingular.com
> > > > MMS proxy: 
> > > > MMS port: 80
> > > > MCC: 310
> > > > MNC: 410
> > > > APN type: 
>
> > > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, set
> > > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > > >                        Mark
>
> > > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > > wrote:
>
> > > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > > Nashville, TN.
>
> > > > > > Unfortunately I am having a hard time getting the APN settings for
> > > > > > AT&T right.
>
> > > > > > -Jackson
>
> > > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I
> > > assume
> > > > > > > that nobody got it:
>
> > >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > > Where in US are you? How long did it take to reach and what was
> > > the
> > > > > > > > mode of shipping you used?
> > > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > > And is it illegal to personally carry a single phone from US to
> > > UK?
> > > > > > > > (Well without the carton box for myself).- Hide quoted text -
>
> > > > > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread sidecircle

Maybe oversea people get a different treatement:  Speaking for me
(France) I've placed my order last tuesday and as of today (saturday)
I'm still without any news, without any shipping confirmation, without
any tracking number... My credit card got indeed charged a juicy $580
instantely.



On 13 déc, 07:05, mmitchel  wrote:
> I received my developer phone following an order placed on the 8th.
> There was not
> any email or tracking information provided, it just showed up FedEx..
> Give it a
> little bit, we all are excited ;)
>
> On Dec 12, 8:50 pm, Disconnect  wrote:
>
> > For people who haven't yet gotten their ADP (or didn't order one) JF has
> > written up a nice summary of how it compares to his original G1 
> > athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but its 
> > his
> > content)
>
> > On Thu, Dec 11, 2008 at 5:19 PM, Aaron  wrote:
>
> > > So is the Dev Phone essentially the exact same thing as the G1 but it
> > > has a different case, and it's unlocked?
> > > I was reading that Google Apps and different features might be missing
> > > from it and that worried me, and I was just wondering.
>
> > > On Dec 11, 11:57 am, Jackson Miller 
> > > wrote:
> > > > I chose overnight shipping.
>
> > > > FYI: here are my full APN settings for using my Android developer
> > > > device on AT&T.  It took me a while to search and try the various
> > > > recommendations.  I am on the iPhone data package if that makes a
> > > > difference:
>
> > > > Name: AT&T
> > > > APN: wap.cingular
> > > > Proxy: 
> > > > Port: 
> > > > Username: wap.cingulargprs.com
> > > > Password: CINGULAR1
> > > > Server: 
> > > > MMSC: mmsc.cingular.com
> > > > MMS proxy: 
> > > > MMS port: 80
> > > > MCC: 310
> > > > MNC: 410
> > > > APN type: 
>
> > > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, set
> > > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > > >                        Mark
>
> > > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > > wrote:
>
> > > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > > Nashville, TN.
>
> > > > > > Unfortunately I am having a hard time getting the APN settings for
> > > > > > AT&T right.
>
> > > > > > -Jackson
>
> > > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I
> > > assume
> > > > > > > that nobody got it:
>
> > >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > > Where in US are you? How long did it take to reach and what was
> > > the
> > > > > > > > mode of shipping you used?
> > > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > > And is it illegal to personally carry a single phone from US to
> > > UK?
> > > > > > > > (Well without the carton box for myself).- Hide quoted text -
>
> > > > > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Keeping a Service Alive

2008-12-13 Thread John Spurlock

Cannot thank you enough for this - exactly what we needed to know.

Using the shell command we found out that our service hosting the
playing mediaplayer was marked with an oom_adj of 2 - and would be
killed after opening several other apps or extended phone idle.

After changing the service to a foreground service using setForeground
(true), it was marked with an oom_adj of 0 or 1 - and stays alive!

Thanks again,
- John

On Dec 11, 9:45 pm, "Dianne Hackborn"  wrote:
> Do "adb shell dumpsys activity" to see the current state of the processes
> and your own.  Look at the oom_adj for the processes to see which ones are
> more important (larger is less important >= 8 is a background process that
> is okay to kill, 2 is a service process that we try hard not to kill).
>
> Service processes only start to get killed when there isn't enough memory to
> run any background processes, which should be rare unless a bunch of third
> party applications are all trying to run services.  There can also be some
> cases where the web browser uses so much memory that all of the background
> processes get killed, though I have never seem that result in services being
> killed.
>
> Making your service more efficient is not going to cause it to be a more
> likely candidate to be killed.
>
> Also just for you (don't tell anyone about this, it's our little secret):
>
> http://code.google.com/android/reference/android/app/Service.html#set...)
>
> On Thu, Dec 11, 2008 at 5:32 PM, John Spurlock wrote:
>
>
>
>
>
> > Any tips on this? Or are we on our own?  This is a big issue for us
> > right now.
>
> > On Dec 9, 10:40 pm, John Spurlock  wrote:
> > > Would you mind clarifying this a bit?  What are some techniques a
> > > "legitimate" background service hosting a running mediaplayer can
> > > employ to ensure that it does not get killed by the os?
>
> > > We are running into this right now - our app (hosting a running
> > > mediaplayer) is hosted in a service, and we are seeing our process
> > > killed abruptly in logcat.  Ironically the more efficient we make the
> > > service footprint (reducing gcs -> less cpu), the higher the odds that
> > > it becomes a candidate for removal!
>
> > > Thanks,
> > > - John
>
> > > On Nov 23, 7:47 pm, "Dianne Hackborn"  wrote:
>
> > > > Please please please be sure to stop the service when it is no longer
> > > > needed.  For a media player, this generally means only having it in the
> > > > running state when it is actively playing music; otherwise it should
> > only be
> > > > needed when there are clients bound to it.
>
> > > > If you don't stop your services, then the system has to assume it is
> > needed
> > > > forever and can't remove your process to allow for other things the
> > user is
> > > > actually doing.  I think this is actually one of our biggest third
> > party
> > > > application issues, applications that just starts a service and never
> > stops
> > > > it.  This sucks for the user, and just should not be done.  In fact
> > there is
> > > > already code in the system to look for services that have been running
> > a
> > > > long time without others doing things to them to let them be killed,
> > but
> > > > it's pretty clear we'll need to be even more brutal about this. :(
> >  (Which
> > > > sucks for things that really do want to run for a long time, like a
> > media
> > > > player, but it's not clear at all to me what to do about them.)
>
> > > > Also, there was a suggestion earlier to try running the service in
> > another
> > > > process.  Multiple processes is again something to be careful of, and
> > to
> > > > stay away from unless you really need them -- processes are quite
> > > > heavy-weight entities, so shouldn't be thrown around lightly.
>
> > > > On Sun, Nov 23, 2008 at 12:42 PM, G  wrote:
>
> > > > > EUREKA! I've figured it out based on some of the documentation I
> > > > > missed. For those who also have trouble...
>
> > > > > The docs for ContextWrapper.startService(Intent service) includes the
> > > > > following line...
> > > > > "Using startService() overrides the default service lifetime that is
> > > > > managed by bindService(Intent, ServiceConnection, int): it requires
> > > > > the service to remain running until stopService(Intent) is called,
> > > > > regardless of whether any clients are connected to it."
>
> > > > > This is the trick, simply run startService() before you attempt to
> > > > > bind to it! So before, my onCreate contained:
> > > > > bindService(new Intent(MDService.class.getName()),
> > > > > mConnection, Context.BIND_AUTO_CREATE);
>
> > > > > Now this has been replaced by:
> > > > >Intent i = new Intent(MDService.class.getName());
> > > > >startService(i);
> > > > >bindService(i, mConnection, Context.BIND_AUTO_CREATE);
>
> > > > > After that change, calling unbindService(mConnection) does NOT
> > destroy
> > > > > the service :)
>
> > > > > So starting a service by binding it from an activity links the

[android-developers] Using resources in WebView

2008-12-13 Thread Eric

My app has ImageButtons that use icons in drawable. I want a help page
that can refer to those icons. I made a help html file and put it in
assets/help/help.html. Now I can load it using "file:///android_asset/
help/help.html".

The problem is how do I access the ImageButton icons? Is there a way
for my html file to refer to the resource directory?

I could not find a way, so I thought I'd put the icons in my help
directory. Now they are easy to acces from my help.html. However, I
have trouble referring to them from my code. My src code looks like
this:

ImageButton correctAnswerButton = (ImageButton) findViewById
(R.id.correct_answer);
File imgFile = new File("/android_asset/help/
check_icon.png");
correctAnswerButton.setImageURI(Uri.fromFile(imgFile));

This fails. I presume android_asset only works for WebView. I cannot
find documentation on it anywhere -- I only found out about it from
this group.

Is there a way to load an image from assets? Or better, is there a way
to refer to resources from an html asset?


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



[android-developers] Re: A file folder and phone file storage feature requirment.

2008-12-13 Thread Justin (Google Employee)

You'd need to write an application that uses the camera and then saves
the data to internal storage. However, why do you want to do this?
Internal storage is extremely limited, please, please, for the benefit
of end users, only use for storage for data that must be secured and
can't be secured any other way.

Cheers,
Justin

On Dec 13, 1:28 am, JBQ  wrote:
> Hello everybody,
>   The G1 has no file folder,when take a picture,it must be saved to SD
> card.I want to save the new file to phone storage.then I have to do
> 1.change the save dirction and 2. make a file folder to show it.Could
> anybody give any advice?Thanks.
>
> JBQ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Link to buy unlocked phone does not work

2008-12-13 Thread tibor

I got to the the actual shop with checkout once but when I return now
to actually buy, it bounces back to the home page. I hope it's
temporary.


On Dec 6, 9:59 am, ARW  wrote:
> On the pagehttp://market.android.com/publish/Home, I see:
>
>   Development phones
>   As a registered developer, you can purchase an unlocked phone.
>  Buynow »
>
> That is wonderful. Thank you, Google!
>
> But then, when I click on the "Buynow" link, the browser bounces off
> android.brightstarcorp.com back to the same page. Happens on Chrome,
> Firefox and IE.
>
> Anyone had better luck with this?
>
> -arw

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



[android-developers] Re: error on my Mac 10.4 Power book: cannot execute binary file

2008-12-13 Thread janu0204

i too am facing the same problem but on Linux ubuntu

kindly let me know how did you solve this
regards
ram

On Nov 24, 10:11 pm, "elviani.huse...@googlemail.com"
 wrote:
> Hi, I am new toandroid, and I just install theandroidon the eclipse
> and trying to run my first HelloAndroidprogram and I have exactly
> the same problem. 'adbversion'failed! andFailedtoparsetheoutput
> of 'adbversion'.
> I am working on the Mac osx enviroment.
> Have you manage to solve the problem?
> Thank you.
>
> Elviani.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Has anybody received an android dev phone in the US yet?

2008-12-13 Thread mmitchel

I received my developer phone following an order placed on the 8th.
There was not
any email or tracking information provided, it just showed up FedEx..
Give it a
little bit, we all are excited ;)


On Dec 12, 8:50 pm, Disconnect  wrote:
> For people who haven't yet gotten their ADP (or didn't order one) JF has
> written up a nice summary of how it compares to his original G1 
> athttp://www.gotontheinter.net/node/12(disclaimer, that's my site but its his
> content)
>
> On Thu, Dec 11, 2008 at 5:19 PM, Aaron  wrote:
>
> > So is the Dev Phone essentially the exact same thing as the G1 but it
> > has a different case, and it's unlocked?
> > I was reading that Google Apps and different features might be missing
> > from it and that worried me, and I was just wondering.
>
> > On Dec 11, 11:57 am, Jackson Miller 
> > wrote:
> > > I chose overnight shipping.
>
> > > FYI: here are my full APN settings for using my Android developer
> > > device on AT&T.  It took me a while to search and try the various
> > > recommendations.  I am on the iPhone data package if that makes a
> > > difference:
>
> > > Name: AT&T
> > > APN: wap.cingular
> > > Proxy: 
> > > Port: 
> > > Username: wap.cingulargprs.com
> > > Password: CINGULAR1
> > > Server: 
> > > MMSC: mmsc.cingular.com
> > > MMS proxy: 
> > > MMS port: 80
> > > MCC: 310
> > > MNC: 410
> > > APN type: 
>
> > > On Dec 11, 10:40 am, Mark K  wrote:
>
> > > >    I'm using my G1 on AT&T , I had to add wap.cingular as an apn, set
> > > > 'wap.cingular' as the name and apn, left all other settings blank.
>
> > > >                        Mark
>
> > > > On Dec 10, 12:05 pm, Jackson Miller 
> > > > wrote:
>
> > > > > I just received my phone.  I ordered it on Saturday.  I am in
> > > > > Nashville, TN.
>
> > > > > Unfortunately I am having a hard time getting the APN settings for
> > > > > AT&T right.
>
> > > > > -Jackson
>
> > > > > On Dec 10, 12:45 pm, szeldon  wrote:
>
> > > > > > I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I
> > assume
> > > > > > that nobody got it:
>
> >http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> > > > > > On Dec 10, 1:02 pm, Rajesh  wrote:
>
> > > > > > > Where in US are you? How long did it take to reach and what was
> > the
> > > > > > > mode of shipping you used?
> > > > > > > I plan to order one if it is sure to reach in two weeks.
>
> > > > > > > And is it illegal to personally carry a single phone from US to
> > UK?
> > > > > > > (Well without the carton box for myself).- Hide quoted text -
>
> > > > > - Show quoted text -

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



[android-developers] Android using Pc's Internet over a USB connection

2008-12-13 Thread Ryan Hugo

Is it possible to use a USB connection to provide Android with
internet?
Can't seem to find a way on the web =\

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



[android-developers] Service Launch problem

2008-12-13 Thread Urig

Hi everybody,

I need help :)

I have an Activity which tries to start a Service (in the same
process).
It never succeeds... I recieve the following NullPointerException

12-13 11:39:06.158: ERROR/AndroidRuntime(324): Uncaught handler:
thread main exiting due to uncaught exception
12-13 11:39:06.178: ERROR/AndroidRuntime(324):
java.lang.RuntimeException: Unable to instantiate service
com.ex.LocalService: java.lang.NullPointerException
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2321)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.app.ActivityThread.access$2800(ActivityThread.java:112)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.os.Handler.dispatchMessage(Handler.java:88)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.os.Looper.loop(Looper.java:123)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.app.ActivityThread.main(ActivityThread.java:3742)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
java.lang.reflect.Method.invokeNative(Native Method)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
java.lang.reflect.Method.invoke(Method.java:515)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
dalvik.system.NativeStart.main(Native Method)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): Caused by:
java.lang.NullPointerException
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.content.ContextWrapper.getSystemService(ContextWrapper.java:
323)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
com.ex.LocalService.(LocalService.java:47)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
java.lang.Class.newInstance(Native Method)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2318)
12-13 11:39:06.178: ERROR/AndroidRuntime(324): ... 10 more

My onCreate method only calls the parent's onCreate.

the service is being started in the following way:

startService(new Intent(MyActivity.this, LocalService.class));

Any suggestions/ideas will make me very glad

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: Android Dev Phone 1™

2008-12-13 Thread tweitzel

@p.christov92:

Go to the UPS website, choose "Sendungsverfolgung", then click
"Sendungsverfolgung anhand Referenznummer". Enter your Android Dev
Phone order no. into the input field "Sendungsreferenz". If it has
been sent, you'll get all the information.

I've ordered mine on December 8th, it has been shipped on December
11th, and should arrive on December 15th. Near Frankfurt/Main
(Germany) is where I live. And no, I never got any tracking
information from Brightstar ("You haven't ordered anything yet").

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



[android-developers] Simple Image Application

2008-12-13 Thread Unionblitz

I'm new to Android and I have finished up a "Hello Android"
application.  I would like some pointers to learn how to add a simple
background image and a couple of buttons on an application.  So for,
it's been hard tackling the learning curve with the Android framework,
so obviously the more "plain english" the tutorial, the better.

Anybody?

Thank you!

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



[android-developers] programming tutorials and free source code

2008-12-13 Thread Caragea Silviu
Hello guys , 
Some times ago I had launched a developers
community , formed to provide a place where programmers around the world 
can meet and exchange ideas.
My community address is http://www.intelliproject.net . If you are 
interested to join us and to share some of your source code and
programming knowledge let me know. 
If  someone want to contact me it can reply at sil...@intelliproject.net

I'm waiting for your feedback , 
Kind regards, 
Silviu



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



[android-developers] Entering international characters (with diacritics)

2008-12-13 Thread František Fuka

How difficult is it (or is it even possible at all) to enter
international characters on Android? I know I can - for example - hold
down "A" and then choose one of "A" letters with different diacritics
but can I customize the characters that are offered? Many of these
characters are redundant for me because they don't appear in Czech
language at all. On the other hand, many Czech characters are not
offered at all using this method, for example "D with diacritics". See
here for Czech characters: http://en.wikipedia.org/wiki/Czech_alphabet

AFAIK, all Czech characters are correctly displayed everywhere in
Android interface (I have hundreds of GMail contacts with Czech
characters) but I have no idea how to enter them...

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



[android-developers] A file folder and phone file storage feature requirment.

2008-12-13 Thread JBQ

Hello everybody,
  The G1 has no file folder,when take a picture,it must be saved to SD
card.I want to save the new file to phone storage.then I have to do
1.change the save dirction and 2. make a file folder to show it.Could
anybody give any advice?Thanks.

JBQ

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



[android-developers] Group of Android developers

2008-12-13 Thread it.minsk

Group of Android, J2ME and Blackberry developers a 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: Android Dev Phone 1™

2008-12-13 Thread Doug Sims
I ordered mine on December 10 with regular ground shipping to Memphis.  My
credit card was charged on Dec 11 (by "Gotta Go Blue.")  I've called the
Brightstarcorp number repeatedly since then and finally got through today.
I spoke with Dana  who was, as someone else in this thread mentioned,
absolutely the nicest and most pleasant customer service person you might
wish for.  She said my order was still in process and hadn't been shipped
yet.  Apparently she's the only customer service person working on this.
I'm a little frustrated by the ordering fulfullment process at Brightstar
but appreciate the information Dana has provided.


On Fri, Dec 12, 2008 at 3:15 PM, Aaron  wrote:

>
> I just did a reference track on FedEx, using the order number from
> Brightstar, and it came up with my tracking number, and information
> about the package. :)
>
> On Dec 12, 1:58 pm, "Tammen Bruccoleri" 
> wrote:
> > I called and left a message with the Android Dev 1 Phone sales team,
> > inquiring about the status of my Dev phone which was purchased on 12.09.
> > Thinking that I would never even get a reply. I went to the water cooler
> and
> > came back, found a message on my voicemail. Donna or Dana pleasantly left
> my
> > FedEx tracking number and phone number to call back if I had any
> questions
> > or concerns. Not getting a tracking automatically was a bummer and I was
> > kinda concerned about my order. However, I have not seen this type of
> superb
> > customer service in such a long time. Donna or Dana if your reading these
> > threads your doing a great job !!! Can't wait to open this early
> Christmas
> > present... Should be at my door tomorrow according to the FedEx tracking
> > number.
> >
> > On Fri, Dec 12, 2008 at 2:46 PM, Aaron 
> wrote:
> >
> > > I ordered on 12/9, and I called just now and was told by a lady named
> > > Dana, that my phone is in today's queue and will be shipped from the
> > > warehouse today.
> > > It's a good thing I got 2-day shipping, I can't wait much longer. It's
> > > looking like I won't be getting it until Monday. :(
> >
> > > On Dec 11, 2:47 pm, sidecircle  wrote:
> > > > Same for me: ordered 9/12 and didn't get any news except a "your
> order
> > > > has been received" mail. Inquiries at wwsales at brightstarcorp stay
> > > > unanswered. FYI: Shipping to France is billed 183.81 USD.
> >
>

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

2008-12-13 Thread Mark F.

Whatever happened to that? I'm planning to write a game for the
Android platform using openGl, and i'm unable to find any
documentation/tutorials for it. Yes, I have looked through the Android
docs (several times and) and even external sources. Some docs that i
found covered some Android openGL library that didn't even exist (I
believe it was opengl.context)

If anyone can point me to a useful source of information regarding the
openGL library for Android, I would greatly appreciate it!


Thank you :)

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



[android-developers] Re: Android Dev Phone - shipping to Canada?

2008-12-13 Thread Matt Zukowski

The shipping charge is insane. I can't believe bright star is charging
this amount with a straight face.

I'm also not particularly impressed with that you don't see the
shipping charge until the very end, after you've already entered your
credit card info (and signed up for the Android Marketplace dev
program). Considering the shipping charge approaches the cost of the
actual product, you'd think the total cost would be shown at some
point prior to the very last step in the order process.

I think this may be the last straw for me... I was looking forward to
developing for Android, but I've pretty much run out of excuses and
may end up buying and developing for the iPhone instead.

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

2008-12-13 Thread bhavana

How to Handle Event Handlers?
http://interviewdoor.com/questions-faqs/viewtopic.php?f=155&t=1161

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

2008-12-13 Thread Dave Sparks

Some of the ringtones contain special metadata to make them loop.
These sounds will play forever and aren't appropriate for
notifications. Unless you want really annoy your users. :)

The notifications directory has sounds that don't loop.

On Dec 13, 12:02 am, elDoudou  wrote:
> Thank you for the information.
>
> I was mislead because the Android built-in ring tones under 'system/
> media/audio/ringtones' seem to loop when played. Yes, the idea of
> scheduling an alert for cancelling the notification is a solution, if
> the sound is looping.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Transitioning from Free to Paid

2008-12-13 Thread Craig

Here (http://www.google.com/support/forum/p/Android+Market/thread?
tid=360a84c852124bc5&hl=en) is another conversation about this I've
been tracking - I'm hoping Google (OHA?) will clarify this one.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Application icon still appears in the Android menu after uninstalling the application.

2008-12-13 Thread code_android_festival_way

Hello!

I got several feedback messages from users of my application that
after uninstalling it the application icon still appears in the
Android menu.

Could someone please help me finding the reason for that behaviour? Is
it something in the Manifest?

In addtition it would be interesting for me if there is a possibility
to define in the Manifest that the application will clear its
preferences before it gets upgraded from the market to the next
release of the application.

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



[android-developers] Re: Android Developers' Unlocked G1 Phone - Pictures and description of what is in the box

2008-12-13 Thread Disconnect
JF wrote an article up with pics (and he added the kb pics, since it is
somewhat unique) at www.gotontheinter.net/node/12 - it is a
not-quite-side-by-side comparison of the G1 he had with the ADP1 he has :)


On Sat, Dec 13, 2008 at 9:59 AM, Edmon  wrote:

>
> I just wanted to share images and description of what is really
> unlocked G1 phone.
>
> I got mine two days ago, so I took few pictures. I was somehow
> unpleasantly surprised how barebones the
> kit is and how the whole ordering process through Brightstar feels
> like you are ordering from a "mom&pop" electronics shop.
>
> Here is the entry from my blog showing unlocked G1:
>
>
> http://it.toolbox.com/blogs/web2-place/unlocked-g1-android-just-received-what-is-in-the-box-28770
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 Developers' Unlocked G1 Phone - Pictures and description of what is in the box

2008-12-13 Thread Edmon

I just wanted to share images and description of what is really
unlocked G1 phone.

I got mine two days ago, so I took few pictures. I was somehow
unpleasantly surprised how barebones the
kit is and how the whole ordering process through Brightstar feels
like you are ordering from a "mom&pop" electronics shop.

Here is the entry from my blog showing unlocked G1:

http://it.toolbox.com/blogs/web2-place/unlocked-g1-android-just-received-what-is-in-the-box-28770

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



[android-developers] Blending between views

2008-12-13 Thread Steff

Hi

I have a layout with two fullscreen views on top of each other. The
bottom view just shows a .png picture. The top view shows some OpenGL
rendered graphics. When some translucent objects on the top view moves
over a non-black area of the bottom view, blending is real bad
- example1: blue in bottom view and translucent yellow/red (fire) in
top view, turns out to be shiny green!?!)
- example2: gray in bottom view and translucent yellow/red (fire) in
top view, also turns out to be shiny green!?!)
How can I improve???
Blending internally in the top view (OpenGL) works fine.

Selected code:

Bottom view:
Fields
  private Bitmap mBackgroundImage;
  private SurfaceHolder mSurfaceHolder;
In view constructor:
  mSurfaceHolder = getHolder();
  mBackgroundImage = BitmapFactory.decodeResource(res,
R.drawable.mypic);
In doDraw
  Canvas c = mSurfaceHolder.lockCanvas(null);
  c.drawBitmap(mBackgroundImage, 0, 0, null);

Top view:
Fields
  EGL10 mEgl;
  EGLDisplay mEglDisplay;
  EGLSurface mEglSurface;
  EGLConfig mEglConfig;
  EGLContext mEglContext;
Initializing:
  int[] configSpec = {
EGL10.EGL_RED_SIZE,  8,
EGL10.EGL_GREEN_SIZE,8,
EGL10.EGL_BLUE_SIZE, 8,
EGL10.EGL_ALPHA_SIZE,8,
EGL10.EGL_DEPTH_SIZE,   16,
EGL10.EGL_NONE
};
  mEgl = (EGL10) EGLContext.getEGL();
  mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
  int[] version = new int[2];
  mEgl.eglInitialize(mEglDisplay, version);
  EGLConfig[] configs = new EGLConfig[1];
  int[] num_config = new int[1];
  mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1,
num_config);
  mEglConfig = configs[0];
  mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig,
EGL10.EGL_NO_CONTEXT, null);
  mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig,
holder, null);
  mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
mEglContext);
In doDraw:
  < do the OpenGL drawing >
  mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);




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

2008-12-13 Thread skink

On 13 Gru, 12:13, Charlie Collins  wrote:
> Also skink, I replied on your other thread about android-xmlrpc.
> Looks very promising, but for an open source project you need to
> provide the CODE, not just the binary artifact (and you licensed it
> Apache there, so it's open source).  If I could see the code I would
> check it out.

hi Charlie,

did you have any problems with seeing the code? it is both in
XMLRPC.tar.gz and now on svn trunk.

pskink







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



[android-developers] Re: How to use built in email application to send email from my application?

2008-12-13 Thread Mark Murphy

dileep singh wrote:
> hey please check this link.http://androidguys.com/?p=3100#comment-5168
> once again mark has proved himself that he is always dere to help 
> android guys.

Thank Peli, not me -- I just added some more words around the research 
he and the OpenIntents team did.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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

2008-12-13 Thread skink

> hi Charlie,
>
> i put XMLRPC.tar.gz in Downloads tab ;)
>
> in couple of hours i'll add the code to svn

actually it took not so long

svn is now ready for access

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

2008-12-13 Thread skink



On 13 Gru, 11:11, Charlie Collins  wrote:
> An android-xmlrpc might be cool, a good library for handling such
> networking would be a great thing actually (I wouldn't use xmlrpc in
> all cases, but in some, yes). Nevertheless, I was unable to get a peek
> at the code, are you using the Google Code SVN hosting for that
> project, or not?  At present the trunk is empty:
>
> http://android-xmlrpc.googlecode.com/svn/trunk/
>
> Where can we check out the code skink?
>
hi Charlie,

i put XMLRPC.tar.gz in Downloads tab ;)

in couple of hours i'll add the code to svn

so, stay tuned

cheers
pskink

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



[android-developers] Re: How to use built in email application to send email from my application?

2008-12-13 Thread blindfold

Fabulous Peli! Thank you. I found the online documentation a bit
intimidating at first, but this example gives a great flying start.

Regards

On Dec 12, 9:08 pm, Peli  wrote:
> > I'd love to see that one extra line in your example that shows how to
> > add an image file attachment with the image file stored on the SD
> > card. :-)
>
> Oh, sorry, you said image.
>
> sendIntent.setType("image/png");
> sendIntent.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/
> mygirlfriend.png");
>
> I'm sure the next question is how to have both, subject and
> attachment, but I'll leave this as an exercise to the reader :-)
>
> Peli
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: continuously polling webserver for updates.

2008-12-13 Thread Charlie Collins

Also skink, I replied on your other thread about android-xmlrpc.
Looks very promising, but for an open source project you need to
provide the CODE, not just the binary artifact (and you licensed it
Apache there, so it's open source).  If I could see the code I would
check it out.

On Dec 12, 7:44 am, skink  wrote:
> hi,
>
> > What's available for communication between android app and web application 
> > ?, HttpClient can be used, any other alternative?
>
> > How to transfer data between app and webapplication, may be XML? then what 
> > about images?
>
> you could use xmlrpc calls. this minimizes your client cod to just
> couple of lines of code.
> see:
>
> http://groups.google.pl/group/android-developers/browse_thread/thread...
>
> library can be downloaded from:
>
> http://code.google.com/p/android-xmlrpc
>
> pskink
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: light xmlrpc clent side lbrary

2008-12-13 Thread Charlie Collins

An android-xmlrpc might be cool, a good library for handling such
networking would be a great thing actually (I wouldn't use xmlrpc in
all cases, but in some, yes). Nevertheless, I was unable to get a peek
at the code, are you using the Google Code SVN hosting for that
project, or not?  At present the trunk is empty:

http://android-xmlrpc.googlecode.com/svn/trunk/

Where can we check out the code skink?

On Dec 11, 8:56 pm, skink  wrote:
> hi,
>
> after couple of weeks i finished ultra light XMLRPC client side
> library for android.
>
> XMLRPC.tgz contains library itself + small test app (.apk included in
>  bin folder) + test python server.py to run on your dev host.
>
> you can download it from this url (tab Downloads):
>
> http://code.google.com/p/android-xmlrpc
>
> pskink
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: continuously polling webserver for updates.

2008-12-13 Thread Charlie Collins

Yes, many Android applications use the network for data, it is very
common.  I have several that do so, and that includes binary data
(images).

For the upcoming Manning book Unlocking Android I wrote a
"NetworkExplorer" sample app that does a bunch of networking stuff and
demonstrates various approaches.  All the sample apps are hosted on
Google Code, so you can grab the apps and see some examples without
having ot buy the book (the book rocks too, but that's not the point
here ;)).

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

I find the HttpRequestHelper there, which uses HttpClient (and does
the request in a separate thread with a callback for you), to be
pretty handy:
http://unlocking-android.googlecode.com/svn/chapter6/trunk/NetworkExplorer/src/com/msi/manning/network/data/HTTPRequestHelper.java.
They key is to combine Android "Handler" and HttpClient
"ResponseHandler" and run your requests outside of the UI thread and
respond to callbacks.

In that example app I don't specifically have JSON going on, as I was
focusing more on the networking itself (HTTP, HTTPS, basic
authentication, Google ClientLogin token, etc) - but I do make calls
to the del.icio.us REST-like API (XML), and a few other things. If I
were rolling it all from scratch (not talking to del.icio.us, but
talking to my own server), I would probably use JSON.

You can set an image from the network onto your view as a bitmap.
This is a very crude example (you should cache it if you get it once,
not just do this every time, and it's better to use HttpClient to get
the data), but you get the idea:
URL url = new URL("url string here");
URLConnection conn = url.openConnection();
conn.connect();
BufferedInputStream bis = new BufferedInputStream(conn.getInputStream
());
Bitmap bm = BitmapFactory.decodeStream(bis);
bis.close();
ReviewDetail.this.reviewImage.setImageBitmap(bm);

As for running a Service all the time, that's generally discouraged.
It's Ok to run the Service while your app is running, to poll data for
your app, but after your app is shut down you should shut the Service
down too in 98% of cases (especially if it's a heavyweight thing that
is pulling network data).  See Dianne Hackborn's comments on this
thread: 
http://groups.google.pl/group/android-developers/browse_thread/thread/fa2848e31636af70.

I admit that I do have a few apps where a Service just runs all the
time (start at BOOT_COMPLETED and never get killed - like
WeatherReporter in the book samples), and they pull some minimal data
on a non aggressive schedule (every hour say), but you have to be
really careful with those. I guess the consensus is that "light" long
running services are needed in some cases, but the user should be
given the option of whether or not they want them running (make it an
option, tell the user, don't just make it stealthy).





On Dec 12, 7:44 am, "Android geek"  wrote:
> Thanks Charlie,
>
> I already have some experience of HttpClient, so it wouldn't be difficult.
>
> JSON: Yes, it will be easier and lightweight in comparision to XML and can
> replace XML.
>
> Data: Is it possible to host images on the server and still display on
> views, say imageview ?
>
> Again, I just want to know, if any one is using the similar technique for
> communication between android app and web application. There are lots of
> social networking apps, I think they all must be relying on the similar
> architecture.
>
> Again, my app need to get updates frequently. that is, a service needs to be
> running in background all the time, which polls server for say every minitue
> for updates, and gets data in the form of JSON or XML.
>
> Any comments on this type of architecture? is it fine to poll so frequently.
> (Actually app needs semi-realtime data from the server )
>
> Thanks
>
> - Original Message -
> From: "Charlie Collins" 
> To: "Android Developers" 
> Sent: Friday, December 12, 2008 4:54 PM
> Subject: [android-developers] Re: continuously polling webserver for
>
> updates.
>
> Communication: yes, HttpClient is the best option - you can also use
> plain java.net calls, but HttpClient is a lot easier and handles all
> the heavy lifting for you.
>
> Data: I would say use JSON if you can control the server side. Make a
> REST API on the server and return JSON. Then parse the JSON in
> Android, it's easy, Android has built in support for JSON (and then
> your API would also be usable outside of Android, if need be).  The
> other alternative is XML, yes, Android supports that pretty well too,
> just JSON is smaller. As for binary data (images), that's tougher for
> both JSON and XML, but can be done by encoding/serializing to base64.
> That's gonna be slow though.  Maybe you could host the images on the
> server and just use pointers to the URLs in your app (that has
> downsides too, but if you don't have a lot of them, and it's already a
> web focused app that has to be online. . . . .).
>
> On Dec 12, 1:22 am, "Android geek"  wrote:
> > Hello devs,
>
> > I 

[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-13 Thread Christine



On Dec 13, 11:35 am, patte  wrote:

> If UPS delivers saturdays I wil get it TODAY, if not on MONDAY ;-)

They don't deliver on Saturdays unless the shipper buys an additional
option for delivery on Saturday. I guess you'll get it on Monday. My
order of 12-6 was removed from the tracking page today, so I guess
I'll get mine on Monday too.


>
> Good luck guys ;-)
>
> On 12 Dez., 08:22, balachmar  wrote:
>
> > When did you place your order?
> > I really hope that it ships soon, so that I can play with it during
> > the holiday!
>
> > On Dec 11, 12:41 pm, patte  wrote:
>
> > > I got the tracking id from andr...@brightstarcorp.com - G1 is on its
> > > way to Cologne ;-)
>
> > > On 10 Dez., 19:06, "ruwen@gmail.com"  wrote:
>
> > > > Did any one get a tracking id?
>
> > > > I think you can have a different ship address than the billing
> > > > address.
>
> > > > On Dec 10, 11:32 am, DazBy  wrote:
>
> > > > > Does thephonehave to be shipped to the billing address or can I
> > > > > specify a different address to that on my Credit Card?
>
> > > > > On Dec 7, 5:53 pm, "Justin (Google Employee)"  wrote:
>
> > > > > > Any appropriate customs duties and taxes will be added on top of the
> > > > > > $399 purchase price. You are correct, that this can add a 
> > > > > > substantial
> > > > > > the base price. However, it should not add any hassle. Is there some
> > > > > > specific difficulty you're referring to?
>
> > > > > > Cheers,
> > > > > > Justin
> > > > > > Android Team @ Google
>
> > > > > > On Dec 6, 2:13 am, Marc Seeger  wrote:
>
> > > > > > > Hi,
> > > > > > > I'm really interested in the possibility of buying a "AndroidDev
> > > > > > >Phone1 " (-->http://code.google.com/android/dev-devices.html), the
> > > > > > > only question I have concerns the shipping.
> > > > > > > According to the site, it will be (?is?) available for order in
> > > > > > > Germany, I can't find any information about the details though.
> > > > > > > The price seems fair, but adding VAT + Import Taxes would add a 
> > > > > > > BIG
> > > > > > > amount of money to the final number (and a lot of hassle).
>
> > > > > > > Does Google ship all of its devices from the US or are devices for
> > > > > > > European Devs shipped from inside the EU?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] London Google Mobile Apps jobs...

2008-12-13 Thread Al Sutton

Just in case anyone in the UK is thinking of joining the mother ship

http://www.google.co.uk/support/jobs/bin/answer.py?answer=36918

Al.
http://andappstore.com/

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

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


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



[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-13 Thread patte

I placed my order 6th december.

Because i didnt get any message with any information about tracking
number i wrote to andr...@brightstarcorp.com at 10th december. They
answered very quick at the same day and provided me the ups tracking
number - "Your order has shipped."

UPS got the package 9th december! (PALATINE > HODGKINS > LOUISVILLE >
NEWARK > PHILADELPHIA > HERNE-BOERNIG > DUSSELDORF > KOELN )

KOELN (COLOGNE), DE 13.12.2008  0:45 UNTERWEGS

If UPS delivers saturdays I wil get it TODAY, if not on MONDAY ;-)

Good luck guys ;-)

On 12 Dez., 08:22, balachmar  wrote:
> When did you place your order?
> I really hope that it ships soon, so that I can play with it during
> the holiday!
>
> On Dec 11, 12:41 pm, patte  wrote:
>
> > I got the tracking id from andr...@brightstarcorp.com - G1 is on its
> > way to Cologne ;-)
>
> > On 10 Dez., 19:06, "ruwen@gmail.com"  wrote:
>
> > > Did any one get a tracking id?
>
> > > I think you can have a different ship address than the billing
> > > address.
>
> > > On Dec 10, 11:32 am, DazBy  wrote:
>
> > > > Does thephonehave to be shipped to the billing address or can I
> > > > specify a different address to that on my Credit Card?
>
> > > > On Dec 7, 5:53 pm, "Justin (Google Employee)"  wrote:
>
> > > > > Any appropriate customs duties and taxes will be added on top of the
> > > > > $399 purchase price. You are correct, that this can add a substantial
> > > > > the base price. However, it should not add any hassle. Is there some
> > > > > specific difficulty you're referring to?
>
> > > > > Cheers,
> > > > > Justin
> > > > > Android Team @ Google
>
> > > > > On Dec 6, 2:13 am, Marc Seeger  wrote:
>
> > > > > > Hi,
> > > > > > I'm really interested in the possibility of buying a "AndroidDev
> > > > > >Phone1 " (-->http://code.google.com/android/dev-devices.html), the
> > > > > > only question I have concerns the shipping.
> > > > > > According to the site, it will be (?is?) available for order in
> > > > > > Germany, I can't find any information about the details though.
> > > > > > The price seems fair, but adding VAT + Import Taxes would add a BIG
> > > > > > amount of money to the final number (and a lot of hassle).
>
> > > > > > Does Google ship all of its devices from the US or are devices for
> > > > > > European Devs shipped from inside the EU?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Using G1 as modem

2008-12-13 Thread Al Sutton

Please see the following informational poster in relation to Xavier 
http://tinyurl.com/2yqfx2

I'm not sure how the Google guys feel about him describing himself as a 
"Google Group Client Based Tech Support Specialist" in his signature 
(especially as it comes from a gmail address), but personally I wouldn't 
be overly concerned if he was banned from this group.

Now to address your point you may want to look at 
http://graha.ms/androidproxy/


Al.

Tee wrote:
> If you are not going to make a productive comment, its best to make no
> comment at all...Every other HTC phone can be used as a modem, like my
> previous mda vario 3 and the new mda vario iv...so theres no reason
> why there cant be one for G1..i just hope someone can make it
> quickas I recently hard the new G1 phone when it comes out will
> have hdpa usdpa and sat nav progam built in
>
> On Dec 11, 7:04 pm, "Xavier Mathews"  wrote:
>   
>> U No and why would anybody want to use the G1 as a phonemodem?
>>
>> On 12/11/2008, Tee  wrote:
>>
>>
>>
>> 
>>> Hi, the burning question on everyones lips are when is a developer
>>> going to make an app that allows us to use the G1 phone as amodem?
>>>   
>>> Is there anything in progress out there...besides the hacked version
>>> which seems like too much hassle
>>>   
>> --
>> Xavier A. Mathews
>> Student/Browser Specialist/Developer/Web-Master
>> Google Group Client Based Tech Support Specialist
>> Hazel Crest Illinois
>> xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
>> "Fear of a name, only increases fear of the thing itself."
>> 
> >
>   


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

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


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



[android-developers] Re: Using G1 as modem

2008-12-13 Thread Tee

If you are not going to make a productive comment, its best to make no
comment at all...Every other HTC phone can be used as a modem, like my
previous mda vario 3 and the new mda vario iv...so theres no reason
why there cant be one for G1..i just hope someone can make it
quickas I recently hard the new G1 phone when it comes out will
have hdpa usdpa and sat nav progam built in

On Dec 11, 7:04 pm, "Xavier Mathews"  wrote:
> U No and why would anybody want to use the G1 as a phonemodem?
>
> On 12/11/2008, Tee  wrote:
>
>
>
> > Hi, the burning question on everyones lips are when is a developer
> > going to make an app that allows us to use the G1 phone as amodem?
>
> > Is there anything in progress out there...besides the hacked version
> > which seems like too much hassle
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Google Group Client Based Tech Support Specialist
> Hazel Crest Illinois
> xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use built in email application to send email from my application?

2008-12-13 Thread dileep singh
hey please check this link.http://androidguys.com/?p=3100#comment-5168
once again mark has proved himself that he is always dere to help android
guys.
Thanks mark

On Sat, Dec 13, 2008 at 1:38 AM, Peli  wrote:

>
> > I'd love to see that one extra line in your example that shows how to
> > add an image file attachment with the image file stored on the SD
> > card. :-)
>
> Oh, sorry, you said image.
>
> sendIntent.setType("image/png");
> sendIntent.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/
> mygirlfriend.png");
>
> I'm sure the next question is how to have both, subject and
> attachment, but I'll leave this as an exercise to the reader :-)
>
> Peli
>
>
> >
>

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



[android-developers] A notification sound taken from the Android .apk

2008-12-13 Thread elDoudou

Hello.

I can't find in the API nor in this discussion group a way to attach a
sound which is present in my Android application 'res/raw' folder, to
a notification. Is it feasible? Since the "Nofitication.sound"
attribute is a URI, the problem can be thought in terms of finding a
way to turn an Android application raw resource into a valid URI, I
guess.

Thank you for your support.
Édouard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 control a sound notification duration?

2008-12-13 Thread elDoudou

Thank you for the information.

I was mislead because the Android built-in ring tones under 'system/
media/audio/ringtones' seem to loop when played. Yes, the idea of
scheduling an alert for cancelling the notification is a solution, if
the sound is looping.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---