[android-developers] Service questions

2010-04-05 Thread rizwan
Hi,

I have few question regarding running a service in background

Can we control User interface through service ? how this can be done ?
Can you provide any code snippet ?.
My understanding is that if service is already running then Activity
on create doesn't create any new instance
of intent ,this call is neglected.
how can we know a service is already running ?

Thanks

Rizwan

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: ad support?

2010-04-05 Thread ko5tik


On Apr 5, 8:25 pm, Abdul Mateen  wrote:
> Hi ko5tik,
> How much is your per day revenue with admob ? asking because mine is not
> good, instead of having 10K+ active installs.

Something to laugh at ;) Some 2-3$$ But I do not have to live off it,
as android development being my hobby
ATM.  I think it depends on nature of you application. My lines game
( http://www.cyrket.com/p/android/de.pribluda.games.android.lines/)
 is designed in a way to be used several hours at once (I observed
gameplay times over 100 hours in applet version) and is not time
constrained -
so there is a chance to display more ads and get click through from
users.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Droid Reboot when using VBO in opengl es codes

2010-04-05 Thread Louis
Hi, Robert, Not in my case, but the geometrics quite a lot in my
cases, the model file size around 7M, not sure if the Droid ( Or
android ) video card have some limitation on here?



On Apr 5, 8:20 pm, Robert Green  wrote:
> Hmm I wonder if this is at all related to the problems I'm having with
> GL lockups on the Droid at the moment.  I see a resize in there, are
> you flipping orientations?
>
> On Apr 5, 6:18 pm, Louis  wrote:
>
>
>
> > Hi, All:
>
> > I am working on a app which render geometrics with VBO in NDK opengl,
> > it works in other phone, but in Motola Droid, it will cause the
> > devices reboot
>
> > The logs like next, anyone can help me?
>
> > 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> > lib/libwebcore.so' for 'nativeResize' (wrong CL)
> > 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> > lib/libmedia_jni.so' for 'nativeResize' (wrong CL)
> > 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> > lib/libexif.so' for 'nativeResize' (wrong CL)
> > 04-05 15:36:21.609: INFO/SanAngeles(1320): resize w=480 h=778
> > 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> > lib/libwebcore.so' for 'nativeRender' (wrong CL)
> > 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> > lib/libmedia_jni.so' for 'nativeRender' (wrong CL)
> > 04-05 15:36:21.617: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> > lib/libexif.so' for 'nativeRender' (wrong CL)
> > 04-05 15:36:21.961: ERROR/IMGSRV(1034): sgxif.c:108: WaitForRender:
> > Timeout
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:42:
> > MapperDumpSyncObjects: Dumping all active sync objects..
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=20, 0xFHWR=0x0300, WOC
> > DevVAddr=0xd811a3c, ROC DevVAddr=0xd811a44
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=19, 0xFHWR=0x0300, WOC
> > DevVAddr=0xd80037c, ROC DevVAddr=0xd800384
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=18, 0xFHWR=0x0130, WOC
> > DevVAddr=0xd80058c, ROC DevVAddr=0xd800594
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=16, 0xFHWR=0x0130, WOC
> > DevVAddr=0xd80022c, ROC DevVAddr=0xd800234
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=10, 0xFHWR=0x0130, WOC
> > DevVAddr=0xd8005a4, ROC DevVAddr=0xd8005ac
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=8, 0xFHWR=0x0130, WOC
> > DevVAddr=0xd80055c, ROC DevVAddr=0xd800564
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=3, 0xFHWR=0x1000, WOC
> > DevVAddr=0xd800064, ROC DevVAddr=0xd80006c
> > 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> > MapperDumpSyncObjects: Sync object ID=2, 0xFHWR=0x1000, WOC
> > DevVAddr=0xd80004c, ROC DevVAddr=0xd800054

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Call blocking application

2010-04-05 Thread Abdul Qavi Paracha
Hi
I am developing a call blocking application for android. What i've
achieved so far is that my application gets informed whenever there is
some incoming call. Now i want my application to handle the incoming
call instead of default android application. So for this, i am trying
to kill the android phone process. Please tell me can i do so. If not,
then how can i reject the incoming call..

Best regards,
Abdul Qavi

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Unable to reject the incoming call

2010-04-05 Thread Abdul Qavi Paracha
Thank you Bibek for your respnose
Dear Bibek, I've already googled this issue so many times, and i came
across some posts which say it is not possible yet. But i get confused
when i see some applications which are already developed like
GBlocker, which you can follow at 
http://bubiloop.com/android-communication-gblocker
Hope you don't mind on my this question...
What i want to do is to block incoming call Pane, so that it does not
appear on incoming calls.
Thanks and best regards.
Abdul Qavi
On Apr 3, 7:22 pm, Kumar Bibek  wrote:
> Not possible. Please do a search before posting any question. This has
> already been asked and answered so many times.
>
> Thanks and Regards,
> Kumar Bibek
>
> On Mar 31, 1:25 pm, Abdul Qavi Paracha  wrote:
>
> > Hi
> >  I am creating an android application, and i want this app to handle
> > all incoming call. How can i do that.
> > Best regards,
> > Abdul Qavi

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Lists tutorial

2010-04-05 Thread patbenatar
http://developer.android.com/intl/fr/resources/tutorials/views/hello-listview.html

-Nick




On Apr 5, 9:25 pm, raqz  wrote:
> Hi
>
> Could someone please give me a good link that teaches how to use list
> view in android.
> Basically I have an array with names of people which I wanna display
> on the screen. The user can click and select multiple names, the
> selections are to be noted down for further processing.
> I googled and found a number of tutorials but they were of no great
> help. Please suggest some tutorial which has worked out for you.
>
> Thanks,
> raqz

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: UI android question/problem

2010-04-05 Thread patbenatar
Dig deeper in the ListView documentation... Look into adding a header
view [the method is like ListView.addHeaderView(View) or something..
verify this before using it].. You can use the header view for the +
Add A Place link and then the contents of the List will be the Places.

Hope this helps!
Nick



On Apr 5, 1:36 pm, Simon Donovan  wrote:
> Hi,
>
> I'm trying to recreate the UI screen called 'My Places' that is used
> in the Weather Channel app.  I'd attach a screenshot of it but I'm not
> sure if I can when posting here.  It seems they're using two listviews
> one on top of the other, but I'm not sure for certain.  Could anybody
> confirm this for me?  If they are doing this, how is this done?  I've
> tried to implement this, but without full success.  My top listview
> 'Add a place' 'comes up correctly, but the bottom listview will not
> appear/populate for me?  I shall attach my code so far..
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Simon
>
> header_row.xml
>
> ?xml version="1.0" encoding="utf-8"?>
>          xmlns:android="http://schemas.android.com/apk/res/android";
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content">
>                  android:id="@+id/icon"
>         android:layout_width="wrap_content"
>         android:layout_height="fill_parent"
>         android:layout_marginRight="6dip"
>         android:src="@drawable/ic_menu_add" />
>                  android:orientation="vertical"
>         android:layout_width="0dip"
>         android:layout_weight="1"
>         android:layout_height="fill_parent">
>                       android:id="@+id/caption"
>             android:layout_width="fill_parent"
>             android:layout_height="0dip"
>             android:layout_weight="1"
>             android:gravity="center_vertical"
>             android:text="Add a place"/>
>         
> 
>
> main.xml
>
> 
>  http://schemas.android.com/apk/res/
> android"
>         android:layout_width="fill_parent"
>         android:layout_height="?android:attr/listPreferredItemHeight"
>     android:padding="6dip">
>                          android:id="@+id/header"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"/>
>                          android:orientation="vertical"
>                 android:layout_width="fill_parent"
>                 android:layout_height="wrap_content">
>                                          android:id="@+id/list"
>                         android:layout_width="fill_parent"
>                         android:layout_height="wrap_content"/>
>         
> 
>
> public class ListViewTest extends Activity
> {
>         private static String[] items={"lorem", "ipsum", "dolor",
>                 "sit", "amet", "consectetuer",
>                 "adipiscing", "elit", "morbi",
>                 "vel", "ligula", "vitae",
>                 "arcu", "aliquet", "mollis",
>                 "etiam", "vel", "erat",
>                 "placerat", "ante",
>                 "porttitor", "sodales",
>                 "pellentesque", "augue",
>                 "purus"};
>
>         private ListView Header;
>         private ListView List;
>         private ArrayList caption = null;
>         private CaptionAdapter adapter;
>         private ArrayAdapter listAdapter;
>
>     @Override
>     public void onCreate(Bundle savedInstanceState)
>     {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         caption = new ArrayList();
>         Caption cap = new Caption();
>         cap.setCaption("Add a place");
>         caption.add(cap);
>
>         this.adapter = new CaptionAdapter(this, R.layout.header_row,
> caption);
>
>         Header = (ListView) findViewById(R.id.header);
>
>         Header.setAdapter(adapter);
>
>         //Log.d("ListViewTest", "caption size is:" + caption.size());
>
>         adapter.notifyDataSetChanged();
>
>         List = (ListView) findViewById(R.id.list);
>
>         listAdapter = new ArrayAdapter(this,
> android.R.layout.simple_list_item_1, items);
>
>         List.setAdapter(listAdapter);
>
>         listAdapter.notifyDataSetChanged();
>
>         //setListAdapter(new ArrayAdapter(this,
>                                 //android.R.layout.simple_list_item_1,
>                                 //items));
>     }
>
>     private class CaptionAdapter extends ArrayAdapter
>     {
>         private ArrayList caption;
>
>                 public CaptionAdapter(Context context, int textViewResourceId,
> ArrayList caption)
>                 {
>                         super(context, textViewResourceId, caption);
>                         this.caption = caption;
>                 }
>
>                 @Override
>             public View getView(int position, View convertView, ViewGroup
> parent)
>             {
>                         View v = convertView;
>
>                         if (v == null)
>             {
>            

[android-developers] android GPS

2010-04-05 Thread Jobs He
Hello :
       I have a netbook with android system,but it have no GPS, so can
I use a external GPS module on 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Google Maps API: How to detect when the user has stopped panning the map

2010-04-05 Thread patbenatar
JP- Thanks for your feedback! It has been very enlightening.
Overriding draw() sounds like a great idea that would cover any
possible form of interaction with the Map.

Just to make sure I'm clear on the basic idea here: you're saying
create an additional, empty MapOverlay, and purely using that Overlay
to track motion on the map? Or would it be OK to use my already
existing, subclassed ItemizedOverlay to do this?

> There's a residual chance that you don't receive that final .draw() to
> trigger the call for data when it would be warranted. A Thread that
> checks for such cases at, say, 200ms intervals, could be used to pick
> up such cases. Or, use that Thread exclusively to monitor the speed at
> which the map moves.

I don't understand... Why would I not receive the final draw() call?
Doesn't the Map HAVE to draw itself? If I don't receive the final
draw() call, that means the Map wouldn't be getting drawn at that
final point where the Map comes to a rest [correct? If I'm subclassing
the Overlay and the Overlay needs to draw itself to ensure all its
items are visible--this would be proper behavior--if I don't get the
final draw, no one does that doesn't make sense...]

Kinda a pain in the ass that we have to be so hacky to achieve such
key functionality!

Thanks so much!
Nick

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] DRM Protected Content Storage

2010-04-05 Thread s n
Hello all,

1)  Does this folder (under Settings, Applications, Manage
applications) content some default data? I see some 24KB (Applicaiton=16KB,
Data=8KB) data size.

2)  If I upload a protected audio file under /sdcard/, it does not
show up when I try to browse the file with Media Player or the RRingtone
application.  Why so?  Where does it look for rights information?

tia.

-sn

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

2010-04-05 Thread patbenatar
Hey Androiders!

I'm running into a strange intermittent issue with my app.. Basically
every time the app resumes I check if its internal data [fetched from
a Web API] is outdated and if it is I push off to my Splash/Loader
activity while I fetch new data. This works great ALMOST all the
time... Then every once in a while the system gives me a
java.lang.RuntimeException < android.view.InflateException <
java.lang.reflect.InvocationTargetException <
java.lang.OutOfMemoryError [that's the simplified stack trace]..

Here is the whole stack trace:

E/dalvikvm-heap(12914): Heap Massage needed (450-byte external
allocation too big)
E/dalvikvm-heap(12914): Full GC (don't collect SoftReferences)
I/ActivityManager( 1078): Process com.amazon.mp3 (pid 12917) has died.
D/dalvikvm(12914): GC freed 188 objects / 10224 bytes in 54ms
E/dalvikvm-heap(12914): Full GC (collect SoftReferences)
D/dalvikvm(12914): GC freed 47 objects / 1968 bytes in 56ms
E/dalvikvm-heap(12914): Try and trim Heap Source
E/dalvikvm-heap(12914): Heap Massage was unsuccessful for 450-
bytes!
E/dalvikvm-heap(12914): Heap Massage has failed...
E/(12914): VM won't let us allocate 450 bytes
D/AndroidRuntime(12914): Shutting down VM
W/dalvikvm(12914): threadid=3: thread exiting with uncaught exception
(group=0x4001b178)
E/AndroidRuntime(12914): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(12914): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.apwit.grubtruck/
com.apwit.grubtruck.Splash}: android.view.InflateException: Binary XML
file line #8: Error inflating class 
E/AndroidRuntime(12914):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
E/AndroidRuntime(12914):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
E/AndroidRuntime(12914):at android.app.ActivityThread.access
$2200(ActivityThread.java:119)
E/AndroidRuntime(12914):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime(12914):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(12914):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(12914):at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(12914):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(12914):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(12914):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(12914):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(12914):at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime(12914): Caused by: android.view.InflateException:
Binary XML file line #8: Error inflating class 
E/AndroidRuntime(12914):at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
E/AndroidRuntime(12914):at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
56)
E/AndroidRuntime(12914):at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
E/AndroidRuntime(12914):at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime(12914):at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime(12914):at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime(12914):at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime(12914):at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
E/AndroidRuntime(12914):at
android.app.Activity.setContentView(Activity.java:1622)
E/AndroidRuntime(12914):at
com.apwit.grubtruck.Splash.onCreate(Splash.java:45)
E/AndroidRuntime(12914):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
E/AndroidRuntime(12914):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
E/AndroidRuntime(12914):... 11 more
E/AndroidRuntime(12914): Caused by:
java.lang.reflect.InvocationTargetException
E/AndroidRuntime(12914):at
android.widget.ImageView.(ImageView.java:105)
E/AndroidRuntime(12914):at
java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime(12914):at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
E/AndroidRuntime(12914):at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
E/AndroidRuntime(12914):... 22 more
E/AndroidRuntime(12914): Caused by: java.lang.OutOfMemoryError: bitmap
size exceeds VM budget
E/AndroidRuntime(12914):at
android.graphics.Bitmap.nativeCreate(Native Method)
E/AndroidRuntime(12914):at
android.graphics.Bitmap.createBitmap(Bitmap.java:468)
E/AndroidRuntime(12914):at
android.graphics.Bitmap.cr

Re: [android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread nubh bhargava
There are few problems that are coming right now, the emulator shows these
messages dont know for which reasons


[2010-04-06 11:10:00 - HelloSpinner] ActivityManager: [1] Killed am start -D
-n c...

[2010-04-06 11:10:21 - HelloSpinner] Attempting to connect debugger to
'com.example.HelloSpinner' on port 8635

[2010-04-06 11:10:39 - Emulator] emulator: emulator window was out of view
and was recentred

The code is,

*public* *class* HelloSpinner *extends* Activity

{

// Here we initiate the spinners and provide a result

*public* *void* onCreate(Bundle savedInstanceState)

{

*super*.onCreate(savedInstanceState);

setContentView(R.layout.*main*);

// We define what we want to show here

String[] *PROJECTION* = *new* String[]

{

People.*_ID*, People.*NAME
*

};

Spinner spinner = (Spinner) findViewById(R.id.*spinner*);

spinner.setOnItemSelectedListener(*new* MyOnItemSelectedListener());

Cursor cur = getContentResolver().query(People.*CONTENT_URI*, *null*, *null*,
*null*, *null*);

SimpleCursorAdapter adapter2 = *new* SimpleCursorAdapter(*this*,

android.R.layout.*simple_spinner_item*,

// Use a template

// that displays a

// text view

cur,

// Give the cursor to the list adapter

*new* String[] {People.*NAME*},

// Map the NAME column in the

// people database to...

*new* *int*[] {android.R.id.*text1*});

// The "text1" view defined in

// the XML template

adapter2.setDropDownViewResource(android.R.layout.*
simple_spinner_dropdown_item*);

spinner.setAdapter(adapter2);

 } // The create method ends

*public* *class* MyOnItemSelectedListener *implements*OnItemSelectedListener

{

*public* *void* onItemSelected(AdapterView parent,

View view, *int* pos, *long* id)

{

Intent intent = *new* Intent(Intent.*ACTION_CALL*);

Cursor cursor = (Cursor) parent.getAdapter();

*long* phoneId = cursor.getLong(cursor.getColumnIndex(People.*
PRIMARY_PHONE_ID*));

intent.setData(ContentUris.*withAppendedId*(Phones.*CONTENT_URI*, phoneId));

startActivity(intent);

}

*public* *void* onNothingSelected(AdapterView parent)

{

// Do nothing.

}

}

}

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread nubh bhargava
Thanks for suggesting Activity class again, the code worked. But let me
check it with spinners. I heard 'Myths' regarding the use of multiple
spinners, but the code or the list I need to invoke in them is much similar
so need suggestions.

Thanks & Regards
NUBH

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread Kumar Bibek
1. Extend the Activity class
2. Put 4 spinners in the layout file.
3. Initialize them in the onCreate method

Do whatever you want after that. I am still not sure what you want.

Thanks and Regards,
Kumar Bibek.

On Apr 6, 10:06 am, nubh bhargava  wrote:
> I want fours spinners in my code so that any number I want to import in any
> of the spinner should be properly done, will the same code be of any help.
>
> Thanks in advance
> NUBH

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Upgrading of Applications

2010-04-05 Thread Stephen Lebed
I haven't had any issues upgrading my app through the market.  In fact
I haven't had any issues at all.  Once your app is on the market,
you'll have an option to upgrade it.  When you do upload your upgrade,
anyone who has your app installed will get a notification
automatically.  If they go to select the upgrade notification in the
toolbar it will go directly into the market app and display your app
with upgrade available next to its name.  The user simple selects it
to update the app.  Its all very simple and well designed.  My only
gripe is that the developer console is limited in terms how you can
interface with it (ie more images, more room for description, search
tags, more catagories, ect.)

Hope this helps!
Stephen Lebed
Developer
"On The Level 3"


On Apr 5, 3:03 pm, Eurig Jones  wrote:
> On Apr 5, 11:42 pm, "~ TreKing"  wrote:
>
> > On Mon, Apr 5, 2010 at 3:44 PM, Eurig Jones  wrote:
> > > I'm intending to release my application through the Android Market and I
> > > want to make sure I can deploy new releases of the app and the users will 
> > > be
> > > able to be notified of these and upgrade to them as soon as they can.
>
> > This should happen automatically via the Android Market app.
>
> Even for Android 1.5?
>
>
>
> > > The Android documentation states that, appart from the android:versionCode
> > > property, it is entirely up to the application to provide an upgrade
> > > routine.
>
> > This is entirely optional and not necessary. In fact, I'd recommend you not
> > waste your time with it and let people be notified by the Android Market app
> > (when it work, it often doesn't) or discover it on their own.
>
> So I guess the market app for doing this is a bit unreliable then?
>
>
>
> > > What is the best strategy to achieve this?
>
> > I don't know about "best", but you could simple have a file on a server that
> > had nothing more than a version code in it. On start up you app could check
> > this file and see if the code in that file was greater than it's own current
> > code. If so, it would notify the user that a new version was available and
> > could take them to the market to get it.
>
> Ok. So once I notify the user that there is a new release available,
> where or how do I link to the correct screen in the Market app for
> them to download it?
>
> Thanks for your reply!
> Eurig Jones

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Streaming of Wav Files using Native Player

2010-04-05 Thread Kamal Hasan
Hi Any one has any idea ?

Kamal

On Apr 5, 12:27 pm, Kamal Hasan  wrote:
> Hi,
> Our application needs streaming of audio files.I have done with
> streaming of mp3 files by calling the native player and passing the
> url to it. Whereas the default player is not able to play the wav
> format files from remote server.
>
> The following code worked for mp3 files.
>
>                             Intent intent = new
> Intent(android.content.Intent.ACTION_VIEW);
>                                 Uri data = 
> Uri.parse("http://myserverurl/voice.mp3";);
>                                 String type = "audio/mp3";
>                                 intent.setDataAndType(data, type);
>                                 startActivity(intent)
>
> I changed the mime type for wav format but it didn't worked
>
>                                 Intent intent = new
> Intent(android.content.Intent.ACTION_VIEW);
>                                 Uri data = 
> Uri.parse("http://myserverurl/voice.wav";);
>                                 String type = "audio/wav";  // tried String 
> type = "audio/x-wav";
>                                 intent.setDataAndType(data, type);
>                                 startActivity(intent)
>
> Anyone suggestions ?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread nubh bhargava
I want fours spinners in my code so that any number I want to import in any
of the spinner should be properly done, will the same code be of any help.

Thanks in advance
NUBH

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Getting the amount of Audio data buffered in the device

2010-04-05 Thread Kamal Hasan
Hi Kavitha,
  Did you got any decoder information ?I am also looking similar
one.Can you please share with me.

Kamal

On Apr 5, 3:06 pm, kavitha  wrote:
> could you please tell how to decode audio?
>
> On Mon, Apr 5, 2010 at 3:30 PM, KK wrote:
>
>
>
> > I am trying to write a streaming application. I have my own decoder
> > and I am playing PCM audio using AudioTrack. At any point in time I
> > want to know how much data is buffered with the device. I want to use
> > this so that if the data with the device go below a level, I want to
> > go into a buffering mode where I will buffer 2-3 seconds of data
> > before continuing playback again. Can someone please tell me how to do
> > this?
>
> > Thanks in advance
> > KK
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Getting the amount of Audio data buffered in the device

2010-04-05 Thread Kamal Hasan
Hi KK,
Can you please tell me how to decode mp3 to wav ? working with libmad
but not able to fix it.

Thanks and Regards,
Kamal

On Apr 5, 3:00 pm, KK  wrote:
> I am trying to write a streaming application. I have my own decoder
> and I am playing PCM audio using AudioTrack. At any point in time I
> want to know how much data is buffered with the device. I want to use
> this so that if the data with the device go below a level, I want to
> go into a buffering mode where I will buffer 2-3 seconds of data
> before continuing playback again. Can someone please tell me how to do
> this?
>
> Thanks in advance
> KK

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Splash Screen Appears only once

2010-04-05 Thread kavitha
No Yahel,,even putting splash screen code in onStart() doesnt solve the
problem.

I guess only onResume() is triggered everytime activity shown.But that is
not
right place to display splash screen.

Thanks
Kavitha


On Tue, Apr 6, 2010 at 2:15 AM, patbenatar  wrote:

> Would onStart be a better place to do View manipulation than onResume?
> What is the benefit of onStart over onResume in this context?
>
> Thanks,
> Nick
>
>
>
> On Apr 5, 12:19 pm, Kumar Bibek  wrote:
> > Yup, onStart is a good option. :)
> >
> > Thanks and Regards,
> > Kumar Bibek
> >
> > On Apr 5, 11:56 pm, Yahel  wrote:
> >
> >
> >
> > > You can try to put your splash screen logic in the onStart method.
> >
> > > It is triggered everytime your activity is shown.
> >
> > > Yahel
> >
> > > On 5 avr, 12:04, kavitha  wrote:
> >
> > > > Hi Kumar,,
> >
> > > > I guess Dror520 is doing same,,even i am using same,,,
> >
> > > > But OnCreate() method is not called at all upon relaunch of
> application
> >
> > > > that is the problem,how to solve it?
> >
> > > > Thanks
> > > > Kavitha
> >
> > > > On Mon, Apr 5, 2010 at 1:25 PM, Kumar Bibek 
> wrote:
> > > > > Well, you cannot run two Activities simultaneously. When one
> Activity
> > > > > is in the foreground, the next activity will be in paused/stop
> state.
> > > > > Only when your foreground activity finishes, you background
> activity
> > > > > will come alive.
> >
> > > > > Show your splash screen for 5 secs. Then start the next activity
> and
> > > > > finish your flash activity.
> >
> > > > > Thanks and Regards,
> > > > > Kumar Bibek
> >
> > > > > On Apr 5, 6:13 am, Dror520  wrote:
> > > > > > thanks for your answer! i figured it out it was actually my fault
> ...
> > > > > > lol
> > > > > > now i'm having a hard time figuring out how to start the mydeals
> > > > > > activity but keep the splashscreen activity showing on the screen
> and
> > > > > > when the mydeals activity is done move to that activity ...
> > > > > > thanks!
> >
> > > > > > On Apr 3, 7:34 am, Kumar Bibek  wrote:
> >
> > > > > > > Make sure that your onCreate method is called, and it is not
> resumed.
> > > > > > > You can put some Log statements to check this in your onCreate
> method.
> >
> > > > > > > Thanks and Regards,
> > > > > > > Kumar Bibek
> >
> > > > > > > On Mar 30, 3:45 am, Dror520  wrote:
> >
> > > > > > > > Hey, i made a splash screen:
> > > > > > > > public class SplashScreen extends Activity  {
> >
> > > > > > > > protected int splashTime = 2000;
> >
> > > > > > > > @Override
> > > > > > > > public void onCreate(Bundle savedInstanceState) {
> > > > > > > >   super.onCreate(savedInstanceState);
> > > > > > > >   setContentView(R.layout.splash);
> > > > > > > >   new Handler().postDelayed(new Runnable(){
> > > > > > > >   @Override
> > > > > > > >   public void run() {
> > > > > > > >   Intent intent = new
> Intent(SplashScreen.this,
> > > > > MyDeals.class);
> > > > > > > >   SplashScreen.this.startActivity(intent);
> > > > > > > >   SplashScreen.this.finish();
> > > > > > > > }
> >
> > > > > > > >   }, splashTime);
> >
> > > > > > > > }
> >
> > > > > > > > }
> >
> > > > > > > > AndroidMenifiest:
> >
> > > > > > > >  > > > > > > >
> android:theme="@android:style/Theme.NoTitleBar"
> > > > > > > >   android:screenOrientation="portrait">
> > > > > > > > 
> > > > > > > >  android:name="android.intent.action.MAIN" />
> > > > > > > >   > > > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > > > > 
> > > > > > > > 
> > > > > > > >  > > > > > > >
> android:theme="@android:style/Theme.NoTitleBar"
> > > > > > > >   android:screenOrientation="portrait">
> > > > > > > > 
> > > > > > > >  > > > > android:name="android.intent.action.DEFAULT"/>
> > > > > > > >  android:name="android.intent.catagory.VIEW"
> > > > > /
> >
> > > > > > > > 
> > > > > > > > 
> >
> > > > > > > > it works the first time i put it on the device. but then when
> i kill
> > > > > > > > the application so the application can start over i don't see
> it. it
> > > > > > > > goes straight to the next activity MyDeals.
> >
> > > > > > > > can you please help me thanks!
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > > > To unsubscribe, reply using "remove me" as the subject.
>
> --
>

[android-developers] Re: Multiple Listviews in single Activity?

2010-04-05 Thread javame_android
Hi,

Is there anyone who can let me know whats the issue with the code
above?


Thanks & Regards
Sunil

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Lists tutorial

2010-04-05 Thread raqz
Hi

Could someone please give me a good link that teaches how to use list
view in android.
Basically I have an array with names of people which I wanna display
on the screen. The user can click and select multiple names, the
selections are to be noted down for further processing.
I googled and found a number of tutorials but they were of no great
help. Please suggest some tutorial which has worked out for you.

Thanks,
raqz

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: App released but only tested using the emulator. Could you please test it to me?

2010-04-05 Thread Gabriel Simões
Working on Google Nexus One (v 1.0.2)  (Thanks for the feedback Bob)
Any other reports?
Also, are the UI changes (click count) syncronized with the sound
click well?

Thanks for your time and patience.


On 5 abr, 10:55, Gabriel Simões  wrote:
> Also, the compile once run everywhere mantra is known for itś
> incompatibilities between different versions of the virtual machine!
> hehehehe
>
> On Apr 5, 10:52 am, Gabriel Simões  wrote:
>
>
>
> > After a little more investigation it seems this issue is related to
> > RelativeLayout on Android up to 1.5
>
> > There's a known "bug" that up to cupcake, RelativeLayout would build
> > the UI based on the order in which you declare the widgets on you
> > Action's XML.
> > This way, you could end with views drawn one over another (the problem
> > you have just related). This launches no warnings or Exceptions as the
> > system understands this is the way things should be done.
>
> > At night, when I get back I will try to reorder the views so it build
> > up ok on 1.5. If this doesn't work I will probably have to develop a
> > special UI only for 1.5
>
> > About this problem, any advices?
> > What about the app. Is it working properly for 1.6 - 2.1?
>
> > Thanks,
> > Gabriel
>
> > On Apr 5, 10:07 am, Yahel  wrote:
>
> > > No worries Gabriel,
>
> > > I really don't know why this layout problem appears, doesn't really
> > > show off the compile once/run everywhere mantra :D
>
> > > Tell me if you find a fix, I'll try it again.
>
> > > Yahel
>
> > > On 5 avr, 14:37, Gabriel Simões  wrote:
>
> > > > The layout was built using Relative Layout.
> > > > By what I´ve read so far, it should work on 1.5, right? I´ve also read
> > > > elsewhere that until 1.6 relative layout had problems with the order
> > > > in which the widgets where built.
> > > > Yahel, sorry for the inconvenience, I will try to fix it as soon as
> > > > possible, ok?
>
> > > > Thanks,
> > > > Gabriel
>
> > > > On 5 abr, 09:23, Yahel  wrote:
>
> > > > > Ok, I can run it now but the layout is completely off :
>
> > > > >http://www.mediafire.com/imageview.php?quickkey=tyaiewfnk0i&thumb=4
>
> > > > > Yahel
>
> > > > > On 5 avr, 13:46, Gabriel Simões  wrote:
>
> > > > > > I have just updated the app to v. 1.0.1
>
> > > > > > - Fixed a reported bug on AudioTrack´s internal buffersize
> > > > > > - Added Android 1.5
>
> > > > > > The thing I´d like to know is how well are the audio click and UI
> > > > > > changes syncronized. It´s hard to measure it using the emulator and
> > > > > > right now Android is not made for it. Tried some different 
> > > > > > approaches
> > > > > > but can´t confirm which one is the best. I hope it´s the one I´ve
> > > > > > used! hehehehe
>
> > > > > > Please give me your feedbacks about how it´s working!
>
> > > > > > Thanks,
> > > > > > Gabriel Simões
>
> > > > > > On 5 abr, 08:06, Gabriel Simões  wrote:
>
> > > > > > > Updating right now 
>
> > > > > > > On 5 abr, 08:03, Carl Whalley  wrote:
>
> > > > > > > > I ran into this recently. Try this in your AndroidManifest.xml
>
> > > > > > > >  > > > > > > > android:minSdkVersion="3"
> > > > > > > > android:targetSdkVersion="4" />
>
> > > > > > > > --
> > > > > > > > Android Academyhttp://androidacademy.com
>
> > > > > > > > On Apr 5, 6:01 am, Gabriel Simões  wrote:
>
> > > > > > > > > Hi all,
>
> > > > > > > > > After spending some time learning about Android´s SDK I´ve 
> > > > > > > > > finally
> > > > > > > > > "finished" a first version of my first app: a metronome.
> > > > > > > > > It´s a simple app but I´ve faced some problems with 
> > > > > > > > > AudioTrack, most
> > > > > > > > > trying to syncronize the audio with changes on the UI. In the 
> > > > > > > > > end I
> > > > > > > > > did all my tests using the Android Emulator (1.6 and 2.1) 
> > > > > > > > > since I don
> > > > > > > > > ´t have an Android device right now.
> > > > > > > > > I´ve posted this first version on some sites to get an initial
> > > > > > > > > feedback about it: how it works, how is the syncronization 
> > > > > > > > > between
> > > > > > > > > audio and UI, how easy it is to understand the UI, if it´s 
> > > > > > > > > stable,
> > > > > > > > > etc.
> > > > > > > > > I would appreciate if you could give me some feedback:
>
> > > > > > > > >https://slideme.org/application/mobile-metronomehttp://andappstore.co...
>
> > > > > > > > > I will post it on Android market as soon as I confirm it´s 
> > > > > > > > > stable and
> > > > > > > > > working properly.
>
> > > > > > > > > Thanks,
> > > > > > > > > Gabriel Simões- Ocultar texto das mensagens anteriores -
>
> > > > > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > > > > mensagens anteriores -
>
> > > > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > > > mensagens anteriores -
>
> > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores 

[android-developers] Re: App released but only tested using the emulator. Could you please test it to me?

2010-04-05 Thread Gabriel Simões
Relating working on Google Nexus One (v 1.0.2)
Any other reports?
Also, is the UI syncronizing with the sound click well?

Thanks for your time and patience.

On 5 abr, 10:55, Gabriel Simões  wrote:
> Also, the compile once run everywhere mantra is known for itś
> incompatibilities between different versions of the virtual machine!
> hehehehe
>
> On Apr 5, 10:52 am, Gabriel Simões  wrote:
>
>
>
> > After a little more investigation it seems this issue is related to
> > RelativeLayout on Android up to 1.5
>
> > There's a known "bug" that up to cupcake, RelativeLayout would build
> > the UI based on the order in which you declare the widgets on you
> > Action's XML.
> > This way, you could end with views drawn one over another (the problem
> > you have just related). This launches no warnings or Exceptions as the
> > system understands this is the way things should be done.
>
> > At night, when I get back I will try to reorder the views so it build
> > up ok on 1.5. If this doesn't work I will probably have to develop a
> > special UI only for 1.5
>
> > About this problem, any advices?
> > What about the app. Is it working properly for 1.6 - 2.1?
>
> > Thanks,
> > Gabriel
>
> > On Apr 5, 10:07 am, Yahel  wrote:
>
> > > No worries Gabriel,
>
> > > I really don't know why this layout problem appears, doesn't really
> > > show off the compile once/run everywhere mantra :D
>
> > > Tell me if you find a fix, I'll try it again.
>
> > > Yahel
>
> > > On 5 avr, 14:37, Gabriel Simões  wrote:
>
> > > > The layout was built using Relative Layout.
> > > > By what I´ve read so far, it should work on 1.5, right? I´ve also read
> > > > elsewhere that until 1.6 relative layout had problems with the order
> > > > in which the widgets where built.
> > > > Yahel, sorry for the inconvenience, I will try to fix it as soon as
> > > > possible, ok?
>
> > > > Thanks,
> > > > Gabriel
>
> > > > On 5 abr, 09:23, Yahel  wrote:
>
> > > > > Ok, I can run it now but the layout is completely off :
>
> > > > >http://www.mediafire.com/imageview.php?quickkey=tyaiewfnk0i&thumb=4
>
> > > > > Yahel
>
> > > > > On 5 avr, 13:46, Gabriel Simões  wrote:
>
> > > > > > I have just updated the app to v. 1.0.1
>
> > > > > > - Fixed a reported bug on AudioTrack´s internal buffersize
> > > > > > - Added Android 1.5
>
> > > > > > The thing I´d like to know is how well are the audio click and UI
> > > > > > changes syncronized. It´s hard to measure it using the emulator and
> > > > > > right now Android is not made for it. Tried some different 
> > > > > > approaches
> > > > > > but can´t confirm which one is the best. I hope it´s the one I´ve
> > > > > > used! hehehehe
>
> > > > > > Please give me your feedbacks about how it´s working!
>
> > > > > > Thanks,
> > > > > > Gabriel Simões
>
> > > > > > On 5 abr, 08:06, Gabriel Simões  wrote:
>
> > > > > > > Updating right now 
>
> > > > > > > On 5 abr, 08:03, Carl Whalley  wrote:
>
> > > > > > > > I ran into this recently. Try this in your AndroidManifest.xml
>
> > > > > > > >  > > > > > > > android:minSdkVersion="3"
> > > > > > > > android:targetSdkVersion="4" />
>
> > > > > > > > --
> > > > > > > > Android Academyhttp://androidacademy.com
>
> > > > > > > > On Apr 5, 6:01 am, Gabriel Simões  wrote:
>
> > > > > > > > > Hi all,
>
> > > > > > > > > After spending some time learning about Android´s SDK I´ve 
> > > > > > > > > finally
> > > > > > > > > "finished" a first version of my first app: a metronome.
> > > > > > > > > It´s a simple app but I´ve faced some problems with 
> > > > > > > > > AudioTrack, most
> > > > > > > > > trying to syncronize the audio with changes on the UI. In the 
> > > > > > > > > end I
> > > > > > > > > did all my tests using the Android Emulator (1.6 and 2.1) 
> > > > > > > > > since I don
> > > > > > > > > ´t have an Android device right now.
> > > > > > > > > I´ve posted this first version on some sites to get an initial
> > > > > > > > > feedback about it: how it works, how is the syncronization 
> > > > > > > > > between
> > > > > > > > > audio and UI, how easy it is to understand the UI, if it´s 
> > > > > > > > > stable,
> > > > > > > > > etc.
> > > > > > > > > I would appreciate if you could give me some feedback:
>
> > > > > > > > >https://slideme.org/application/mobile-metronomehttp://andappstore.co...
>
> > > > > > > > > I will post it on Android market as soon as I confirm it´s 
> > > > > > > > > stable and
> > > > > > > > > working properly.
>
> > > > > > > > > Thanks,
> > > > > > > > > Gabriel Simões- Ocultar texto das mensagens anteriores -
>
> > > > > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > > > > mensagens anteriores -
>
> > > > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > > > mensagens anteriores -
>
> > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

-- 
You received this message because you 

[android-developers] Maintaining a free and paid version & maybe other version

2010-04-05 Thread Marc
I used to be a C/C++ programmer before getting in to android. I am not
sure how people maintain 2 versions of a program without using #ifdef
preprocessor macros. Right now I am changing the package name in
eclipse and changing the code manually, but this seems really
inefficient. Can anybody suggest a good way of having 2 or more
projects that share most of the code?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Can´t set the emulator´s dns servers on windows

2010-04-05 Thread Gabriel Simões
What´s up Bob? hehehehe

Well, adding -dns-server (my actual dns) on Eclipse doesn´t solve the
problem: I still get "no network connection" when I open the browser.
Using the same machine and the same network connection, everything
works great on linux. Unfortunately linux is not my main OS, hehehe.

On 5 abr, 22:17, Bob Kerns  wrote:
> You don't generally have to use your ISP'sDNSservers, you can use
> anyDNSservers you want.
>
> I use OpenDNS myself, and ignore Comcast's.
>
> However, occasionally some firewall or other security software will
> blockDNSto other servers. So this is worth a try.
>
> On Apr 5, 4:03 pm, Brion Emde  wrote:
>
>
>
> > I think that you need to find out what yourDNSservers are for your
> > ISP. There are instructions on the internet for Window, Mac and Unix
> > on how to do this.
>
> > On a windows machine, you run ipconfig /all and look for nameserver or
> >DNSlines and copy those IP addresses.
>
> > For example, myDNSservers are:
>
> > 68.87.85.102 and 68.87.69.150
>
> > so I set them for the emulator, like this:
>
> > -dns-server 68.87.85.102,68.87.69.150
>
> > On Apr 5, 4:24 pm, Gabriel Simões  wrote:
>
> > > Well,
>
> > > Running the emulator manually with parameters -dns-server and -
> > > verbose, I found out that the emulator complains it could not resolve
> > > theDNSserver specified (which is an IP for GoogleDNS, or any other
> > >dnsyou want).
> > > It says it´s going to use the defaultDNSbut seems not to find any
> > > defautdns.
> > > When I open the emulators browser, obviously noDNScan be resolved,
> > > but all the websites work if I use their IP.
>
> > > isn´t there a way to force the emulator to use an IP address as adns
> > > server?
> > > Is there anything I can do or will I be forced to develop on linux (so
> > > everytime I go back and forth systems I face problems with accents and
> > > special caracters on my source code).
>
> > > Thanks
>
> > > On 4 abr, 23:38, Gabriel Simões  wrote:
>
> > > > Actualy 8.8.8.8 is google´s openDNS
> > > > The second should be 8.8.4.4
>
> > > > On 4 abr, 22:54, Brion Emde  wrote:
>
> > > > > That's a funny lookingDNSthat you're entering. How are you finding
> > > > > yourDNS?
>
> > > > > I'm not saying those are not right, but I suspect that if they were
> > > > > right, I youremulatorwould work.
>
> > > > > On Apr 4, 7:37 pm, Gabriel Simões  wrote:
>
> > > > > > Hello,
>
> > > > > > Right now my app needs to use the device´s (emulator´s) internet
> > > > > > connection. I´ve read before that since my computer has internet the
> > > > > >emulatorshould be able to access it.
> > > > > > On linux everything works but on windows theemulatorcan´t find the
> > > > > >DNSI´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s
> > > > > > launch options.
>
> > > > > > I´ve tried on Android 1.6 and 2.1.
> > > > > > Is there anything else I should try?
>
> > > > > > Thanks
> > > > > > Gabriel
>
> > > > > > ps: I know it´s aDNSproblem because if I open the browser and set
> > > > > > any website´s ip as the address everything just works.- Ocultar 
> > > > > > texto das mensagens anteriores -
>
> > > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das 
> > > > > mensagens anteriores -
>
> > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das mensagens 
> > > > anteriores -
>
> - Mostrar texto das mensagens anteriores -

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Droid Reboot when using VBO in opengl es codes

2010-04-05 Thread Robert Green
Hmm I wonder if this is at all related to the problems I'm having with
GL lockups on the Droid at the moment.  I see a resize in there, are
you flipping orientations?

On Apr 5, 6:18 pm, Louis  wrote:
> Hi, All:
>
> I am working on a app which render geometrics with VBO in NDK opengl,
> it works in other phone, but in Motola Droid, it will cause the
> devices reboot
>
> The logs like next, anyone can help me?
>
> 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> lib/libwebcore.so' for 'nativeResize' (wrong CL)
> 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> lib/libmedia_jni.so' for 'nativeResize' (wrong CL)
> 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> lib/libexif.so' for 'nativeResize' (wrong CL)
> 04-05 15:36:21.609: INFO/SanAngeles(1320): resize w=480 h=778
> 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> lib/libwebcore.so' for 'nativeRender' (wrong CL)
> 04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> lib/libmedia_jni.so' for 'nativeRender' (wrong CL)
> 04-05 15:36:21.617: DEBUG/dalvikvm(1320): +++ not scanning '/system/
> lib/libexif.so' for 'nativeRender' (wrong CL)
> 04-05 15:36:21.961: ERROR/IMGSRV(1034): sgxif.c:108: WaitForRender:
> Timeout
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:42:
> MapperDumpSyncObjects: Dumping all active sync objects..
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=20, 0xFHWR=0x0300, WOC
> DevVAddr=0xd811a3c, ROC DevVAddr=0xd811a44
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=19, 0xFHWR=0x0300, WOC
> DevVAddr=0xd80037c, ROC DevVAddr=0xd800384
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=18, 0xFHWR=0x0130, WOC
> DevVAddr=0xd80058c, ROC DevVAddr=0xd800594
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=16, 0xFHWR=0x0130, WOC
> DevVAddr=0xd80022c, ROC DevVAddr=0xd800234
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=10, 0xFHWR=0x0130, WOC
> DevVAddr=0xd8005a4, ROC DevVAddr=0xd8005ac
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=8, 0xFHWR=0x0130, WOC
> DevVAddr=0xd80055c, ROC DevVAddr=0xd800564
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=3, 0xFHWR=0x1000, WOC
> DevVAddr=0xd800064, ROC DevVAddr=0xd80006c
> 04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
> MapperDumpSyncObjects: Sync object ID=2, 0xFHWR=0x1000, WOC
> DevVAddr=0xd80004c, ROC DevVAddr=0xd800054

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
Bob, am I taking the wrong approach here? I'm hardly satisfied that it's
just "working". I'd like to fully understand what's going on here.

Thanks,
J

On Mon, Apr 5, 2010 at 8:32 PM, Jason LeBlanc wrote:

> Here is my onCreate(), that works:
> ===
>
>   // Called at the start of the full lifetime.
>   @Override
>   public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.light_control);
>
> // Initialize activity.
>
> // Obtain the Unit ID from the intent
> Bundle extras = getIntent().getExtras();
> unitId = extras.getInt("com.scs.haus.UNIT_ID", 0);
>
> //  Bind to the Connection Service
>
> Intent bindIntent = new Intent(LightController.this,
> ConnectionService.class);
> bindService(bindIntent, mConnection,
> Context.BIND_AUTO_CREATE);
>
> viewUnitProperties = new Runnable(){
> @Override
>public void run() {
>   try {
> Thread.sleep(1000);
> } catch (InterruptedException e) {
> Log.e("SLEEP","I CANT SLEEP");
> }
>
> getUnitProperties();
> }
> };
> Thread thread =  new Thread(null, viewUnitProperties,
> "ViewUnitPropertiesThread");
> thread.start();
>   }
> ===
> standard binder stuff
> ===
> // Handles the connection between the service and activity
> private ServiceConnection mConnection = new ServiceConnection() {
> public void onServiceConnected(ComponentName className, IBinder
> service) {
> // Called when the connection is made
> serviceBinder =
> ((ConnectionService.MyBinder)service).getService();
> Log.i("LightController","Service Connected");
> }
>
> public void onServiceDisconnected(ComponentName className) {
> // Received when the service unexpectedly disconnects
> serviceBinder = null;
> Log.i("LightController","Service Disconnected");
> }
> };
> ===
>
> If I try to run the getUnitProperties() method outside of the Thread, I get
> a NullExceptionPointer AND the Log.i for onServiceConnected() shows up in
> the log after the exception.
>
> Thanks,
> J
>
>
> On Mon, Apr 5, 2010 at 8:08 PM, Bob Kerns  wrote:
>
>> It looks like you are trying to access the connection before the
>> onBind() method is called?
>>
>> You should NOT be sleeping the thread. You should be returning, and
>> then picking up your work once onBind() is called.
>>
>> You're actually blocking the service from running until you do return,
>> since it needs to run in that same thread.
>>
>> On Apr 5, 2:53 pm, Jason LeBlanc  wrote:
>> > Thanks for the response. I haven't meant to spam the group, I wasn't
>> sure if
>> > my post were posting.
>> >
>> > Problem Activity: LightController
>> > Service: ConnectionService
>> > Object within Service: Connection
>> >
>> > Basically all I am attempting to do is start the Service (from a Splash
>> > Screen Activity) which will provide a Connection to a hardware
>> controller. I
>> > hope to use this Connection to send and receive messages with the
>> hardware
>> > controller.
>> >
>> > I have been able to bind to the Service and send/receive commands with
>> the
>> > controller in the Activity that loads after the Splash Screen. The
>> problem
>> > arose when I tried to create another Activity (LightController) and
>> connect
>> > to the same Service. Since, I'm just learning I assumed I was doing
>> > something wrong with the Service (e.g. binding, unbinding, object
>> sharing,
>> > etc.)
>> >
>> > I finally realized in my LogCat that it was reporting that the Service
>> was
>> > connected after the bit of code I had written to test my connection. I'm
>> > still not sure why this happens. Perhaps something to do with the way
>> these
>> > commands are queued?
>> >
>> > _ begin code snippet from onCreate()_
>> >
>> > // Bind to the Connection Service
>> > Intent bindIntent = new Intent(LightController.this,
>> > ConnectionService.class);
>> > bindService(bindIntent, mConnection, Context.BIND_AUTO_CREATE);
>> >
>> > // Request data from the controller
>> > if (unit = serviceBinder.c.connected() ) {
>> > Log.i(Connection Service is connected);} else {
>> >
>> > Log.i(Connection Service is not connected);
>> >
>> > }
>> >
>> > _ end code snippet from onCreate()_
>> >
>> > Anyhow, the above if/then would result in a NullPointerException. I
>> > eventually moved it to a try/catch which resulted in a WARN instead of
>> an
>> > ERROR (see LogCat posted above).
>> >
>> > So finally, I have moved the if/then statement to a Thread and all is
>> well.
>> > I sleep for 1000 ms in the Thread prior to attempting to access the
>> > Co

[android-developers] HTML Email with inline image

2010-04-05 Thread Isaac Wagner
Is it possible to send an HTML email with an inline image via the SDK?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Google Maps API: How to detect when the user has stopped panning the map

2010-04-05 Thread JP

1. Here's my initial thoughts (but strike that, it won't be
sufficient)
Subclass MapView, and override onTouchEvent() as well as
onTrackballEvent().
The latter to cover cases where users use the trackball to manipulate
the MapView.
A MotionEvent is passed to these methods which allows the capture of
ACTION_UP events, among others. Read out the map center with
MapView.getMapCenter().
I haven't verified this - you might receive ACTION_UP events when the
user operates the zoom controls. This shouldn't hurt with your
particular use case, because map zooming anchors at the map center.
An extra challenge might be relating to pinch-to-zoom. You may have to
get a device that allows you to study how the sequence of calls to
onTouchEvent() occur.

2. ...insufficient, because in many cases the map center will keep on
be moving on, after the ACTION_UP event, before it eventually settles
in a location.
What I would try then is the indirect method of tracking the map
center in an overridden MapOverlay.draw(). You can determine the speed
at which the map moves, and when it settles down at a threshold,
execute that call for fresh data. This is a general solution, i.e.
will also cover pinch-to-zoom, users not lifting the finger while
moving the map center around, the use of the trackball, and all sorts
of other ways to manipulate the map, including you calling
MapController.animateTo().
There's a residual chance that you don't receive that final .draw() to
trigger the call for data when it would be warranted. A Thread that
checks for such cases at, say, 200ms intervals, could be used to pick
up such cases. Or, use that Thread exclusively to monitor the speed at
which the map moves.

JP





On Apr 3, 2:49 am, Nick Giancola  wrote:
> Hey all-
>
> I need to know when the user is panning the map so I can check if they've 
> panned outside of the initial radius that I fetch data from the API with when 
> the app launches. If the user pans outside this radius, when they stop 
> panning I will get the new center point of the map and fetch new data with 
> that geo-point. So far I can't find anything in the Google Maps API docs [and 
> I've inspected the entire class tree] that notifies developers when any 
> animation actions are occurring or completed.. It seems weird that Google 
> wouldn't give us some sort of event listener or protected method to override 
> on the MapView or something to do this.
>
> I looked into what methods were available to override on the View class and 
> it does have onAnimationEnd() but I guess panning or zooming the map doesn't 
> count as an animation or is never passed up from the MapView or something... 
> I tried running a simple log in onAnimationEnd() and it is never being 
> called...
>
> Any help here would be great! Searching the interwebs gave me nothing but 
> some never-successfully-answered posts.
>
> Thanks so much,
> Nick

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Multiple Activity History Management

2010-04-05 Thread mr.winky
In addendum, B-C and A will never run at the same time.

On Apr 5, 7:41 pm, "mr.winky"  wrote:
> I've searched through the postings and believe this is a unique case
> where it is appropriate to ask for feedback. Take the following
> example:
>
> Program contains 3 activities : A, B, C
> and one service: S
>
> The launch of the activities is as follows:
>
> B->C
> S->A
>
> Therefore activity B and C are part of a separate execution than what
> the service launches (activity A).
>
> The problem:
>
> User launches B from the launcher, navigates to C and presses the
> 'home' key (the history stack is now B->C). Sometime in the future the
> service launches activity A, and upon exiting activity A the user is
> now presented with activity C which is not the desired intent.
>
> Using "no history" is not an option on B/C because I want the user to
> be able to navigate 'back' from C to B. My question to the forum is
> how to setup the project such that when A is launched, the activity
> stack is always A, and not B->C->A or B->A.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Multiple Activity History Management

2010-04-05 Thread mr.winky
I've searched through the postings and believe this is a unique case
where it is appropriate to ask for feedback. Take the following
example:

Program contains 3 activities : A, B, C
and one service: S

The launch of the activities is as follows:

B->C
S->A

Therefore activity B and C are part of a separate execution than what
the service launches (activity A).

The problem:

User launches B from the launcher, navigates to C and presses the
'home' key (the history stack is now B->C). Sometime in the future the
service launches activity A, and upon exiting activity A the user is
now presented with activity C which is not the desired intent.

Using "no history" is not an option on B/C because I want the user to
be able to navigate 'back' from C to B. My question to the forum is
how to setup the project such that when A is launched, the activity
stack is always A, and not B->C->A or B->A.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
Here is my onCreate(), that works:
===

  // Called at the start of the full lifetime.
  @Override
  public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.light_control);

// Initialize activity.

// Obtain the Unit ID from the intent
Bundle extras = getIntent().getExtras();
unitId = extras.getInt("com.scs.haus.UNIT_ID", 0);

//  Bind to the Connection Service
Intent bindIntent = new Intent(LightController.this,
ConnectionService.class);
bindService(bindIntent, mConnection,
Context.BIND_AUTO_CREATE);

viewUnitProperties = new Runnable(){
@Override
   public void run() {
  try {
Thread.sleep(1000);
} catch (InterruptedException e) {
Log.e("SLEEP","I CANT SLEEP");
}

getUnitProperties();
}
};
Thread thread =  new Thread(null, viewUnitProperties,
"ViewUnitPropertiesThread");
thread.start();
  }
===
standard binder stuff
===
// Handles the connection between the service and activity
private ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder
service) {
// Called when the connection is made
serviceBinder =
((ConnectionService.MyBinder)service).getService();
Log.i("LightController","Service Connected");
}

public void onServiceDisconnected(ComponentName className) {
// Received when the service unexpectedly disconnects
serviceBinder = null;
Log.i("LightController","Service Disconnected");
}
};
===

If I try to run the getUnitProperties() method outside of the Thread, I get
a NullExceptionPointer AND the Log.i for onServiceConnected() shows up in
the log after the exception.

Thanks,
J

On Mon, Apr 5, 2010 at 8:08 PM, Bob Kerns  wrote:

> It looks like you are trying to access the connection before the
> onBind() method is called?
>
> You should NOT be sleeping the thread. You should be returning, and
> then picking up your work once onBind() is called.
>
> You're actually blocking the service from running until you do return,
> since it needs to run in that same thread.
>
> On Apr 5, 2:53 pm, Jason LeBlanc  wrote:
> > Thanks for the response. I haven't meant to spam the group, I wasn't sure
> if
> > my post were posting.
> >
> > Problem Activity: LightController
> > Service: ConnectionService
> > Object within Service: Connection
> >
> > Basically all I am attempting to do is start the Service (from a Splash
> > Screen Activity) which will provide a Connection to a hardware
> controller. I
> > hope to use this Connection to send and receive messages with the
> hardware
> > controller.
> >
> > I have been able to bind to the Service and send/receive commands with
> the
> > controller in the Activity that loads after the Splash Screen. The
> problem
> > arose when I tried to create another Activity (LightController) and
> connect
> > to the same Service. Since, I'm just learning I assumed I was doing
> > something wrong with the Service (e.g. binding, unbinding, object
> sharing,
> > etc.)
> >
> > I finally realized in my LogCat that it was reporting that the Service
> was
> > connected after the bit of code I had written to test my connection. I'm
> > still not sure why this happens. Perhaps something to do with the way
> these
> > commands are queued?
> >
> > _ begin code snippet from onCreate()_
> >
> > // Bind to the Connection Service
> > Intent bindIntent = new Intent(LightController.this,
> > ConnectionService.class);
> > bindService(bindIntent, mConnection, Context.BIND_AUTO_CREATE);
> >
> > // Request data from the controller
> > if (unit = serviceBinder.c.connected() ) {
> > Log.i(Connection Service is connected);} else {
> >
> > Log.i(Connection Service is not connected);
> >
> > }
> >
> > _ end code snippet from onCreate()_
> >
> > Anyhow, the above if/then would result in a NullPointerException. I
> > eventually moved it to a try/catch which resulted in a WARN instead of an
> > ERROR (see LogCat posted above).
> >
> > So finally, I have moved the if/then statement to a Thread and all is
> well.
> > I sleep for 1000 ms in the Thread prior to attempting to access the
> > Connection. I am assuming this small time delay is what was needed in
> order
> > to establish the binding to the service. Is it that, or are all of the
> > commands queued until the end of the onCreate() and then executed in some
> > order determined by Android? (can this be clarified?).
> >
> > Additionally, I should probably check to see if the binding has been
> > completed instead of sleeping the t

[android-developers] Can't get animations working.

2010-04-05 Thread Ozymandias
I am trying to create a menu that slides in when it is drawn. I
created an animation in res/anim called map_toolbar_in.xml:


http://schemas.android.com/apk/res/android";
android:fromYDelta="100%"
android:toYDelta="0%"
android:duration="150"/>

Then I have a linearLayout which I attempt to use it in:


http://schemas.android.com/apk/res/
android"
  android:id="@+id/zoom_buttons"
  android:orientation="horizontal"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_alignParentRight="true"
  android:layout_alignParentTop="true"
  android:layout_marginTop="20dp"
  android:layout_marginRight="20dp"
  android:layoutAnimation="@anim/map_toolbar_in"
  >


When I run the program I get a bunch of errors, starting with:

04-05 18:17:05.287: ERROR/AndroidRuntime(4258): Caused by:
java.lang.RuntimeException: Unknown layout animation name: translate
04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at
android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java:
178)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at
android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java:
153)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at
android.view.animation.AnimationUtils.loadLayoutAnimation(AnimationUtils.java:
134)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at
android.view.ViewGroup.initFromAttributes(ViewGroup.java:343)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at
android.view.ViewGroup.(ViewGroup.java:286)

Does anyone have any ideas?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Can´t set the emulator´s dns servers on windows

2010-04-05 Thread Bob Kerns
You don't generally have to use your ISP's DNS servers, you can use
any DNS servers you want.

I use OpenDNS myself, and ignore Comcast's.

However, occasionally some firewall or other security software will
block DNS to other servers. So this is worth a try.

On Apr 5, 4:03 pm, Brion Emde  wrote:
> I think that you need to find out what your DNS servers are for your
> ISP. There are instructions on the internet for Window, Mac and Unix
> on how to do this.
>
> On a windows machine, you run ipconfig /all and look for nameserver or
> DNS lines and copy those IP addresses.
>
> For example, my DNS servers are:
>
> 68.87.85.102 and 68.87.69.150
>
> so I set them for the emulator, like this:
>
> -dns-server 68.87.85.102,68.87.69.150
>
> On Apr 5, 4:24 pm, Gabriel Simões  wrote:
>
>
>
> > Well,
>
> > Running the emulator manually with parameters -dns-server and -
> > verbose, I found out that the emulator complains it could not resolve
> > the DNS server specified (which is an IP for Google DNS, or any other
> > dns you want).
> > It says it´s going to use the default DNS but seems not to find any
> > defaut dns.
> > When I open the emulators browser, obviously no DNS can be resolved,
> > but all the websites work if I use their IP.
>
> > isn´t there a way to force the emulator to use an IP address as a dns
> > server?
> > Is there anything I can do or will I be forced to develop on linux (so
> > everytime I go back and forth systems I face problems with accents and
> > special caracters on my source code).
>
> > Thanks
>
> > On 4 abr, 23:38, Gabriel Simões  wrote:
>
> > > Actualy 8.8.8.8 is google´s openDNS
> > > The second should be 8.8.4.4
>
> > > On 4 abr, 22:54, Brion Emde  wrote:
>
> > > > That's a funny lookingDNSthat you're entering. How are you finding
> > > > yourDNS?
>
> > > > I'm not saying those are not right, but I suspect that if they were
> > > > right, I youremulatorwould work.
>
> > > > On Apr 4, 7:37 pm, Gabriel Simões  wrote:
>
> > > > > Hello,
>
> > > > > Right now my app needs to use the device´s (emulator´s) internet
> > > > > connection. I´ve read before that since my computer has internet the
> > > > >emulatorshould be able to access it.
> > > > > On linux everything works but on windows theemulatorcan´t find the
> > > > >DNSI´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s
> > > > > launch options.
>
> > > > > I´ve tried on Android 1.6 and 2.1.
> > > > > Is there anything else I should try?
>
> > > > > Thanks
> > > > > Gabriel
>
> > > > > ps: I know it´s aDNSproblem because if I open the browser and set
> > > > > any website´s ip as the address everything just works.- Ocultar texto 
> > > > > das mensagens anteriores -
>
> > > > - Mostrar texto das mensagens anteriores -- Ocultar texto das mensagens 
> > > > anteriores -
>
> > > - Mostrar texto das mensagens anteriores -

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Bob Kerns
It looks like you are trying to access the connection before the
onBind() method is called?

You should NOT be sleeping the thread. You should be returning, and
then picking up your work once onBind() is called.

You're actually blocking the service from running until you do return,
since it needs to run in that same thread.

On Apr 5, 2:53 pm, Jason LeBlanc  wrote:
> Thanks for the response. I haven't meant to spam the group, I wasn't sure if
> my post were posting.
>
> Problem Activity: LightController
> Service: ConnectionService
> Object within Service: Connection
>
> Basically all I am attempting to do is start the Service (from a Splash
> Screen Activity) which will provide a Connection to a hardware controller. I
> hope to use this Connection to send and receive messages with the hardware
> controller.
>
> I have been able to bind to the Service and send/receive commands with the
> controller in the Activity that loads after the Splash Screen. The problem
> arose when I tried to create another Activity (LightController) and connect
> to the same Service. Since, I'm just learning I assumed I was doing
> something wrong with the Service (e.g. binding, unbinding, object sharing,
> etc.)
>
> I finally realized in my LogCat that it was reporting that the Service was
> connected after the bit of code I had written to test my connection. I'm
> still not sure why this happens. Perhaps something to do with the way these
> commands are queued?
>
> _ begin code snippet from onCreate()_
>
> // Bind to the Connection Service
> Intent bindIntent = new Intent(LightController.this,
> ConnectionService.class);
> bindService(bindIntent, mConnection, Context.BIND_AUTO_CREATE);
>
> // Request data from the controller
> if (unit = serviceBinder.c.connected() ) {
> Log.i(Connection Service is connected);} else {
>
> Log.i(Connection Service is not connected);
>
> }
>
> _ end code snippet from onCreate()_
>
> Anyhow, the above if/then would result in a NullPointerException. I
> eventually moved it to a try/catch which resulted in a WARN instead of an
> ERROR (see LogCat posted above).
>
> So finally, I have moved the if/then statement to a Thread and all is well.
> I sleep for 1000 ms in the Thread prior to attempting to access the
> Connection. I am assuming this small time delay is what was needed in order
> to establish the binding to the service. Is it that, or are all of the
> commands queued until the end of the onCreate() and then executed in some
> order determined by Android? (can this be clarified?).
>
> Additionally, I should probably check to see if the binding has been
> completed instead of sleeping the thread for an arbitrary time period. Then
> if the service is not bound, sleep for shorter time periods, and then check
> again. This may improve the responsiveness of the app. I'm assuming a
> _while_ or _for_ loop would be a good method to perform this check.
>
> Thanks,
> J
>
> On Apr 5, 2010 1:42 PM, "jotobjects"  wrote:
>
> Certainly not obvious what you are doing or why it doesn't work.  Can
> you boil this down to a short example that causes the problem so we
> can see the code rather than just a long logcat?
>
> On Apr 5, 8:30 am, Jason LeBlanc  wrote:
>
> > Is there an obvious reason why ...
> > On Apr 4, 2010 9:01 AM, "Tunneling"  wrote:
>
> > I have a Connection objec...
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
>
>  nsubscr...@googlegroups.com>
>
> > For more options, visit this group athttp://
>
> groups.google.com/group/android-developers?hl=en
>
>
>
> > To unsubscribe, reply using "remove me" as the subject.
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group...

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


Re: [android-developers] I want to get Listview click event

2010-04-05 Thread syuta
thanks!
I executed your advice.

I could get a event when mouse down. great!
but, I could not to get selected Item object.

getSelectedItem,getItemAtPosition,getSelectedItemId...
These returned Null, in onScrollStateChange,onScroll.

I think a little more.
thank you.



2010/4/5 dillirao malipeddi 

> implement onScrollListeners
>
>  public abstract void onScroll (AbsListView view, int firstVisibleItem,
> int visibleItemCount, int totalItemCount)
> Since: API Level 1
>
> Callback method to be invoked when the list or grid has been scrolled. This
> will be called after the scroll has completed
>  Parameters  view The view whose scroll state is being reported
> firstVisibleItem the index of the first visible cell (ignore if
> visibleItemCount == 0) visibleItemCount the number of visible cells
> totalItemCount the number of items in the list adaptor
>  public abstract void onScrollStateChanged (AbsListView view, int
> scrollState)
> Since: API Level 1
>
> Callback method to be invoked while the list view or grid view is being
> scrolled. If the view is being scrolled, this method will be called before
> the next frame of the scroll is rendered. In particular, it will be called
> before any calls to getView(int, View, ViewGroup).
>  Parameters  view The view whose scroll state is being reported
> scrollState The current scroll state. One of SCROLL_STATE_IDLE,
> SCROLL_STATE_TOUCH_SCROLL or SCROLL_STATE_IDLE.
>
> On Mon, Apr 5, 2010 at 6:26 AM, syuta  wrote:
>
>> hello.
>> I use ListView.(Adapter is a Custom Adapter) *extends BaseAdapter
>>
>> I wanto to get selected item, when I click the item in the list.
>> now, I use OnItemClickListener, OnItemSelectedListener.
>> but, This program doesn't do the operation for which I hope.
>>
>> not click. I want to get a selected Item in the list, when like
>> mouse_down.
>> (Moment when color of item in list changed?)
>>
>> Can this be done?
>>
>> --
>>
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>> To unsubscribe, reply using "remove me" as the subject.
>>
>
>
>
> --
> Thank you,
> Dilli Rao. M
> www.arijasoft.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
>

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

Re: [android-developers] Where are ADT eclipse plugin sources?

2010-04-05 Thread Xavier Ducrohet
They moved to sdk.git with most of the developer tools.

http://android.git.kernel.org/?p=platform/sdk.git;a=tree;f=eclipse;h=4d71e8e58e172e46a95abf8acd0c67c1ed3f66d3;hb=master

xav

2010/4/5 Juan Gómez :
> Hi,
> I would like to see the implementation of Android Development Tool
> (ADT) plugin for Eclipse, but I cannot find the sources in the
> repository. Time ago, they where under [/platform/development.git] /
> tools/eclipse.
> Could you help me to find them? :)
>
> Regards.
>
> Juan.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread Xavier Ducrohet
On Mon, Apr 5, 2010 at 11:31 AM, HeHe  wrote:
> OR, i should not run a debug build on a real device and hope map api
> works...

You seem to think that there is a difference between a debug build and
a release build, when there isn't.

The code itself is always the same, whether you use "Run" or "Debug"
in Eclipse, or whether your compile with Ant with the "debug" or
"release" target.
Even if you export a release package from Eclipse, the code is still the same.

What changes are:

- debuggable=true in the manifest. What this does is make the
application accept debugger connection. It's not needed in the
emulator because the emulator has a "debug" build (devices, unlike
applications, do have debug/release builds) and those let applications
accept debuggers always. On production devices (release builds) they
do not (for security reason) so you need to explicitly tell the system
that your app is debuggable.

- Run/Debug session from Eclipse means only that, in Debug mode, a
debugger is automatically connected to the application for you.
Everything else, including the way the application is started on the
device is the same.

- Exporting a release application from Eclipse (or building with the
"release" target of Ant) only signs the application differently, using
your own certificate (that you must create to ship your app). This
requires you to manually enter your password, which is cumbersome for
successive debugging, so instead the application is signed with a
certificate that's automatically created with a known password (so
that you are not prompted for it every time you compile, which is
everytime you save a file in Eclipse)

Hope that clears (some) things up.
Xav
-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Droid Reboot when using VBO in opengl es codes

2010-04-05 Thread Louis
Hi, All:

I am working on a app which render geometrics with VBO in NDK opengl,
it works in other phone, but in Motola Droid, it will cause the
devices reboot

The logs like next, anyone can help me?

04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
lib/libwebcore.so' for 'nativeResize' (wrong CL)
04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
lib/libmedia_jni.so' for 'nativeResize' (wrong CL)
04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
lib/libexif.so' for 'nativeResize' (wrong CL)
04-05 15:36:21.609: INFO/SanAngeles(1320): resize w=480 h=778
04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
lib/libwebcore.so' for 'nativeRender' (wrong CL)
04-05 15:36:21.609: DEBUG/dalvikvm(1320): +++ not scanning '/system/
lib/libmedia_jni.so' for 'nativeRender' (wrong CL)
04-05 15:36:21.617: DEBUG/dalvikvm(1320): +++ not scanning '/system/
lib/libexif.so' for 'nativeRender' (wrong CL)
04-05 15:36:21.961: ERROR/IMGSRV(1034): sgxif.c:108: WaitForRender:
Timeout
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:42:
MapperDumpSyncObjects: Dumping all active sync objects..
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=20, 0xFHWR=0x0300, WOC
DevVAddr=0xd811a3c, ROC DevVAddr=0xd811a44
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=19, 0xFHWR=0x0300, WOC
DevVAddr=0xd80037c, ROC DevVAddr=0xd800384
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=18, 0xFHWR=0x0130, WOC
DevVAddr=0xd80058c, ROC DevVAddr=0xd800594
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=16, 0xFHWR=0x0130, WOC
DevVAddr=0xd80022c, ROC DevVAddr=0xd800234
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=10, 0xFHWR=0x0130, WOC
DevVAddr=0xd8005a4, ROC DevVAddr=0xd8005ac
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=8, 0xFHWR=0x0130, WOC
DevVAddr=0xd80055c, ROC DevVAddr=0xd800564
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=3, 0xFHWR=0x1000, WOC
DevVAddr=0xd800064, ROC DevVAddr=0xd80006c
04-05 15:36:21.961: WARN/IMGSRV(1034): mapper.c:50:
MapperDumpSyncObjects: Sync object ID=2, 0xFHWR=0x1000, WOC
DevVAddr=0xd80004c, ROC DevVAddr=0xd800054

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-05 Thread Atif
I got the Droid last week and I am in the same boat that I don't want
to sign up with Verizon. I know I can use Droid over WiFi, but I can't
use it for testing actual phone related app functionality until I sign
up with Verizon. If anyone wants to trade their N1 with Droid, please
shoot me an email. I will be more than happy to make the switch as I
am already a T-Mobile customer and can swap my SIM from my existing
Android phone to N1 for all kinds of testing.

On Mar 8, 5:19 pm, JasonC  wrote:
> TheDroidcomes with 30 days for Free service. So you CAN activate the
> phone and get it working so you can test on it.
>
> On Mar 6, 6:13 pm, "anton.slut...@gmail.com" 
> wrote:
>
>
>
> > Do Verizon phones even load without being hooked up to Verizon?  Sorry
> > for being ignorant.  Have never had Verizon and not huge on mobile
> > protocols.  I know a gsm phone wont let you past the boot prompt
> > without a valid sim card.
>
> > On Mar 6, 9:04 pm, Quartertone  wrote:
>
> > > Well, I don't know about anyone else, but I would prefer to have a
> > > device that I can use with my current plan. I have T-mobile service
> > > with a MyTouch, so I'm definitely hoping for a Nexus One.
>
> > > For any developers in the New Orleans area, I have a proposition:
> > > If you're hoping for aDroidand you get a Nexus One, i'll gladly
> > > trade you for it (that is, if i end up getting aDroid). Just keep me
> > > in mind and contact me in 2-4 weeks when you get your device if youre
> > > interested.
>
> > > cheers
>
> > > On Mar 6, 6:15 pm, niko20  wrote:
>
> > > > Geez people. Who cares if u "can't use the phone if its on Verizon".
> > > > You can develop on any google phone it doesn't need to ha e actual
> > > > service unless u are writing app that uses the phone or such. But for
> > > > game writing it would be fine, etc. Actually for example I already
> > > > have aDroidbut even if I got a nexus one I couldn't use it much here
> > > > since its GSM and I don't get T-Mobile in my area. But I can still
> > > > test the apps I make on it.
>
> > > > On Mar 6, 7:01 pm, Mariano Kamp  wrote:
>
> > > > > What kind of confirmation is that? Is that the first mail or a 
> > > > > confirmation
> > > > > after you went to their website?
>
> > > > > I am asking, because I haven't got any email even though I have an 
> > > > > app in
> > > > > the Market that would qualify. Should I start to worry or are the 
> > > > > first
> > > > > mails sent out incrementally?
>
> > > > > On Sat, Mar 6, 2010 at 1:10 PM, Thomas Riley 
> > > > > wrote:
>
> > > > > > I also have the confirmation email.
> > > > > > It says they will arrive in 2-4 weeks, but can it really be so slow?
> > > > > > Or is that use an over estimate?
>
> > > > > > On Mar 6, 10:51 am, Rootko  wrote:
> > > > > > > Just got mine confirmation email, but unfortunately they removed
> > > > > > > leading zero in my zip code, so I've responded to change it. 
> > > > > > > Hopefully
> > > > > > > this won't be a problem and I'll enjoy my Nexus One soon (I'm in 
> > > > > > > EU).
>
> > > > > > > Hooray, thanks Google!
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "Android Developers" group.
> > > > > > To post to this group, send email to 
> > > > > > android-developers@googlegroups.com
> > > > > > To unsubscribe from this group, send email to
> > > > > > android-developers+unsubscr...@googlegroups.com > > > > >  cr...@googlegroups.com>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Activating Bluetooth

2010-04-05 Thread NoImJosh
I don't mean to hijack this thread, but how do you import
android.bluetooth.BluetoothDevice on 1.x?


On Apr 4, 12:35 pm, DulcetTone  wrote:
> Ok... it's ugly.  Indeed, this was one of the things I found difficult
> to do in the same manner in Android 1.x and Android 2.x
>
> I actually found it difficult to have one app exercise both these
> interfaces, one of the several reasons I wish I had a separate app for
> 1.x vs 2.x  -- if you've not yet made a final choice there, split them
> up and you will be happier.
>
> In Android 1.x, this will do it, cribbed and reduced from Android
> source.
> I had to bring over a considerable portion of android.bluetoothto get
> this working.
>
> You would call the staticenable() function to do it:
>
> import android.bluetooth.BluetoothDevice;
> import android.content.Context;
>
> public class LocalBluetoothManager {
>
>     private static LocalBluetoothManager sSingleton;
>     /** Used when obtaining a reference to the singleton instance. */
>     private static Object INSTANCE_LOCK = new Object();
>
>     private boolean mInitialized;
>     private BluetoothDevice mManager;
>
>     public static booleanenable(Context context, boolean b) {
>
>         synchronized (INSTANCE_LOCK) {
>             if (sSingleton == null) {
>                 sSingleton = new LocalBluetoothManager();
>             }
>
>             if (!sSingleton.init(context)) {
>                 return false;
>             }
>             return b ? sSingleton.mManager.enable() :
> sSingleton.mManager.disable();
>         }
>
>     }
>
>     private boolean init(Context context) {
>         if (mInitialized) return true;
>         mInitialized = true;
>
>         mManager = (BluetoothDevice)
>             context.getSystemService("bluetooth"); //
> Context.BLUETOOTH_SERVICE);
>         if (mManager == null) {
>             return false;
>         }
>
>         return true;
>     }
>
> }
>
> In Android 2.x, it is simpler:
>
> import android.bluetooth.BluetoothAdapter;
> BluetoothAdapter adapt = BluetoothAdapter.getDefaultAdapter();
> adapt.enable(); // or adapt.disable();
>
> You MAY need to have these permissions in your manifest:
>
>     
>      android:name="android.permission.BLUETOOTH_ADMIN" />
>
> Make sure you test on both Android 1.x and 2.x before going to Market.
>
> tone

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Can any one see my message?

2010-04-05 Thread NoImJosh
I can see your post...

On Apr 4, 2:40 am, Xiaobaobao  wrote:
> Hi all,
>
> when I try to post a new topic, I received a email saying that I am
> treated as spam and my message is not able to delivered. And there is
> a link to dreamhost.
>
> I believe that is a spam email and if any one is able to see my post,
> can you please reply me so that I know my posts can be seen.
>
> 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Initializing a custom view via XML

2010-04-05 Thread jrichards1...@googlemail.com
As the title says, i am trying to use a custom view i have created and
initializing the size of it using the above xml code snippet located
inside my layout folder.:



The height and width of my custom view doesnt seem to work. i have to
manualy hard code it to adjust and see my custom view using the bit of
code below located on my main activity class:

rssText = (ScrollingText) findViewById(R.id.rss);
rssText.setWidthHeight(200,50);

Code below is the ScrollingText methods.

Constructor:
public ScrollingText(Context context, AttributeSet attrs) {
super(context, attrs);

textPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
textPaint.setColor(Color.BLACK);
textBoxPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
textBoxPaint.setColor(Color.WHITE);
textPaint.setTextSize(20);




}


public void setWidthHeight(int width, int height){
this.height = height;
this.width = width;
}


private void drawTextBox(Canvas c) {

// TODO: Experiment with these co-ordinates
c.drawRect(10, 0, width - 10, height, textBoxPaint);

}

private void drawTextRss(Canvas c) {
int textHeight = (int) textPaint.getTextSize();
printDebug("text height =  "+ textHeight);
c.drawText(text, 10, height + 10, textPaint);
//c.drawText("Hello, why doesnt this work", 10, 50,
textPaint);
}

@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
drawTextBox(canvas);
drawTextRss(canvas);
setVisibility(VISIBLE);
}



@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{


setMeasuredDimension(width,height);
}

I hope my explanations and code is enough to help me figure out how i
can set the size of the custom view from the xml layout file.

Not sure why android:layout_height="wrap_content"
android:layout_width="wrap_content" doesnt ??

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] application installer

2010-04-05 Thread rhardy
My company is developing a new device that will run on Android.  I'm
tasked to develop the software installation process, including
application installations and updates as well as system software
updates.  I want to leverage as much as possible from the Android
SDK.  I'm looking for any advice or references to help me get
started.  I've downloaded the source code for Android 2.1 and have
been tracing the source code path for software installations via adb.
The path has taken me through adb client -> adb server -> adb deamon -
> PackageManagerService -> installd.

I'm thinking my software update process will begin with downloading an
update package to our device's SD card.  Then, if the update package
contains apk files to install, I guess I'll have to develop a package
installer app that get the apk files individually and command
PackageManagerService to install them similar to how adb does?

If my update package has system software to update, such as a new
version of Android, I'll have to reboot the system in recovery mode
and somehow make it install the system software components?

Am I on the right track or totally off?  I'd appreciate any advice or
pointers to related reference docs or examples.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Where are ADT eclipse plugin sources?

2010-04-05 Thread Juan Gómez
Hi,
I would like to see the implementation of Android Development Tool
(ADT) plugin for Eclipse, but I cannot find the sources in the
repository. Time ago, they where under [/platform/development.git] /
tools/eclipse.
Could you help me to find them? :)

Regards.

Juan.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Google Maps API: How to detect when the user has stopped panning the map

2010-04-05 Thread Eduardo Barrios
Hello,

I'm running into the exact same issue you are, I need a way to figure
out when the user finishes moving the map around so I can fetch fresh
data from a XML source. This is really easy to do using the Maps API
for Javascript, but the Android Maps API doesn't have anything like
it.

I've been researching for a few hours and this solution you posted
here is the only one I've found to this problem, this sounds like a
bit of a hack though since you'd probably have to use an additional
Overlay that can handle the event on the MapView, it sucks that there
isn't something more elegant. The alternative I found is to use a
WebView that can handle the Javascript version instead of a
MapActivity... which may work for my purposes, but no clue if it's
what you're looking for.

Eduardo

On Apr 3, 4:41 am, patbenatar  wrote:
> Alright just had a revelation on my drive home from the office... If
> there is no built-in functionality to handle this, here's what I plan
> on doing:
>
> After a finger up event, start polling the map for it's centerpoint
> every 50ms or so and store the point in an instance variable. Check
> the stored centerpoint against each new centerpoint and if it's
> different, overwrite the store. Otherwise stop the timeout and we now
> know thepanningis complete.
>
> The only problem I see with this is that from reading around the Web
> it seems that clicking on the zoom controls will fire a finger up
> event on the MapView... I haven't verified this behavior but others
> apparently have.. Two possible fixes I can think of: 1) Subclass the
> zoom controls [if possible] and override it to consume the event so
> finger up won't bubble to the MapView. 2) Don't worry about the event
> bubbling, but rather check if the View the finger up event was fired
> on is the zoom controls view or not.
>
> Any input before I try this out?
>
> Thanks,
> Nick
>
> On Apr 3, 2:49 am, Nick Giancola  wrote:
>
>
>
> > Hey all-
>
> > I need to know when the user ispanningthe map so I can check if they've 
> > panned outside of the initial radius that I fetch data from the API with 
> > when the app launches. If the user pans outside this radius, when they 
> > stoppanningI will get the new center point of the map and fetch new data 
> > with that geo-point. So far I can't find anything in the Google Maps API 
> > docs [and I've inspected the entire class tree] that notifies developers 
> > when any animation actions are occurring or completed.. It seems weird that 
> > Google wouldn't give us some sort of event listener or protected method to 
> > override on the MapView or something to do this.
>
> > I looked into what methods were available to override on the View class and 
> > it does have onAnimationEnd() but I guesspanningor zooming the map doesn't 
> > count as an animation or is never passed up from the MapView or 
> > something... I tried running a simple log in onAnimationEnd() and it is 
> > never being called...
>
> > Any help here would be great! Searching the interwebs gave me nothing but 
> > some never-successfully-answered posts.
>
> > Thanks so much,
> > Nick

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Enabling download of a particular file (extension) in native android browser

2010-04-05 Thread sfomra
Hello,

This is my first post here. Hope i find some help :).

So I have an application which opens file with extentions .ttk (this
extention is an example). When i browse to my site and try to open
these files by clicking on links for them, the browser download fails
saying that the file type is not supported. So here are my questions,

1. Is there a to enable download of these files in the native browser
2. If it can be done then, can the browser automatically broadcast an
intent to view the downloaded file (on download completion of course)
for which my application has a filter to accept and view.

Pls help me, i have been trying to find a solution to without much
success.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] UI android question/problem

2010-04-05 Thread Simon Donovan
Hi,

I'm trying to recreate the UI screen called 'My Places' that is used
in the Weather Channel app.  I'd attach a screenshot of it but I'm not
sure if I can when posting here.  It seems they're using two listviews
one on top of the other, but I'm not sure for certain.  Could anybody
confirm this for me?  If they are doing this, how is this done?  I've
tried to implement this, but without full success.  My top listview
'Add a place' 'comes up correctly, but the bottom listview will not
appear/populate for me?  I shall attach my code so far..

Any help would be greatly appreciated.

Thanks

Simon

header_row.xml

?xml version="1.0" encoding="utf-8"?>
http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="wrap_content">


 



main.xml


 http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip">






public class ListViewTest extends Activity
{
private static String[] items={"lorem", "ipsum", "dolor",
"sit", "amet", "consectetuer",
"adipiscing", "elit", "morbi",
"vel", "ligula", "vitae",
"arcu", "aliquet", "mollis",
"etiam", "vel", "erat",
"placerat", "ante",
"porttitor", "sodales",
"pellentesque", "augue",
"purus"};

private ListView Header;
private ListView List;
private ArrayList caption = null;
private CaptionAdapter adapter;
private ArrayAdapter listAdapter;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

caption = new ArrayList();
Caption cap = new Caption();
cap.setCaption("Add a place");
caption.add(cap);

this.adapter = new CaptionAdapter(this, R.layout.header_row,
caption);

Header = (ListView) findViewById(R.id.header);

Header.setAdapter(adapter);

//Log.d("ListViewTest", "caption size is:" + caption.size());

adapter.notifyDataSetChanged();

List = (ListView) findViewById(R.id.list);

listAdapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, items);

List.setAdapter(listAdapter);

listAdapter.notifyDataSetChanged();

//setListAdapter(new ArrayAdapter(this,
//android.R.layout.simple_list_item_1,
//items));
}

private class CaptionAdapter extends ArrayAdapter
{
private ArrayList caption;

public CaptionAdapter(Context context, int textViewResourceId,
ArrayList caption)
{
super(context, textViewResourceId, caption);
this.caption = caption;
}

@Override
public View getView(int position, View convertView, ViewGroup
parent)
{
View v = convertView;

if (v == null)
{
LayoutInflater vi =
(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.header_row, null);
}

Caption c = caption.get(position);

if (c != null)
{
TextView caption = (TextView) 
v.findViewById(R.id.caption);

if (caption != null)
{
 
caption.setText(c.getCaption());
}
}

return v;
}

}
}

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Question about AlphaAnimation

2010-04-05 Thread igray
I'm having trouble getting AlphaAnimation to work.  Can anyone explain
why the following patch to
com.example.android.apis.graphics.AnimateDrawables.java in the
provided samples does not produce an image that fades away?

--- AnimateDrawables.java.orig  2010-04-05 12:56:45.0 -0500
+++ AnimateDrawables.java   2010-04-05 12:57:39.0 -0500
@@ -46,7 +46,8 @@
 Drawable dr =
context.getResources().getDrawable(R.drawable.beach);
 dr.setBounds(0, 0, dr.getIntrinsicWidth(),
dr.getIntrinsicHeight());

-Animation an = new TranslateAnimation(0, 100, 0, 200);
+Animation an = new AlphaAnimation(1.0f, 0.0f);
 an.setDuration(2000);
 an.setRepeatCount(-1);
 an.initialize(10, 10, 10, 10);

I know that the Drawable properly responds to setAlpha().  I also
tried ensuring that the Transformation in
com.example.android.apis.graphics.AnimateDrawable.java was
setTransformationType(Transformation.TYPE_BOTH), even though I suspect
that is the default setting.

Is there some requirement of the View to allow for animated alpha
transparency that I'm missing?

Thanks for any help or explanation.

Iain

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Can any one see my message?

2010-04-05 Thread Martin
I can see your message.

Best regards,
Martin

2010/4/4 Xiaobaobao 

> Hi all,
>
> when I try to post a new topic, I received a email saying that I am
> treated as spam and my message is not able to delivered. And there is
> a link to dreamhost.
>
> I believe that is a spam email and if any one is able to see my post,
> can you please reply me so that I know my posts can be seen.
>
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

2010-04-05 Thread NoImJosh
I think Android 1.5 has a bug where it does not call onDelete.  If you
are running 1.5, you should implement something in your onReceive()
that is similar to this:

final String action = intent.getAction();
if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) {
final int appWidgetId =
intent.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID);
if (appWidgetId != 
AppWidgetManager.INVALID_APPWIDGET_ID) {
this.onDeleted(context, new int[] { appWidgetId 
});
}
}

On Apr 5, 1:51 pm, Abdul Mateen  wrote:
> Hi,
> I have a AppWidget, after I delete it from HomeScreen it seems not stopping
> the AlarmManager attached with it. I have supported it with the AlarmManger,
> that call the ProviderImplementation class every 1 minute and in onReceive I
> put the code to call onUpdate. and in onDelete I explicitly stop the alarm,
> but it seems it is running continously and not stopping. any cure of it ?
>
> I have stopped it with cancel(pendingintent) function.
>
> thank you,
> Abdul Mateen.

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


[android-developers] IPv6 Problem solved

2010-04-05 Thread Markus Schaber
Hi,

Just do document it here (as suggested by evancharlton on freenode
#android-dev), so it's googlable:

On my Debian Lenny x86_64 machine, both the eclipse plugin and the
ddms standalone application were unable to connect to the adb daemon.
"adb devices" showed both the emulator and my milestone, so that
connection was okay.

ddms and eclipse both kept spitting out the following messages every
second:

57:29 E/DeviceMonitor: Connection attempts: 1
57:30 E/DeviceMonitor: Connection attempts: 2
57:31 E/DeviceMonitor: Connection attempts: 3
57:32 E/DeviceMonitor: Connection attempts: 4
57:33 E/DeviceMonitor: Connection attempts: 5
57:34 E/DeviceMonitor: Connection attempts: 6
57:35 E/DeviceMonitor: Connection attempts: 7
57:36 E/DeviceMonitor: Connection attempts: 8
57:37 E/DeviceMonitor: Connection attempts: 9
57:38 E/DeviceMonitor: Connection attempts: 10
[...]

I tried this for 5 minutes and longer without any connection.

I tried all the usual workarounds, including "adb reset" in eclipse,
"adb kill-server" from command line, and rebooting, and asked on the
abovementioned IRC channel.

After hours of trying and googling, I suspected it to be an IPv6
problem, as I found some reports some IPv6 problems under Windows.
However, editing /etc/hosts in analogy to the windows solution did not
solve my problem.

Some tries and googling later, I found the solution: Adding the jvm
argument -Djava.net.preferIPv4Stack=true to both the ddms shell script
and the eclipse.ini vm arguments solved the problem for eclipse and
ddms.

I hope this helps others to solve this problem, which annoyed me for
more than 6 hours now when trying to get sdk_r05 to run, and an equal
amount of time when I had my first try using sdk_r04 some weeks ago.
My hope was that r05 fixes that problem, which is not really true, it
seems.

HTH,
Markus

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread Brill Pappin
DEBUG mode doesn't factor into it and gmaps doesn't care.
AFAIK if you are simply trying to change the map key so it works on
the emulator or the device, then this is a reasonable way to do it.

So, to reiterate, it *does not* matter if you are running in debug
mode or not. The emulator uses the same generated key all the time
with the same alias and you use the same key all the time with the
same alias when you deploy... so, problem solved. If you have a team
of people all needing dev mode, then simply share the same dev
keystore.

- Brill Pappin

On Apr 5, 2:31 pm, HeHe  wrote:
> Brill, thanks for comment. using your approach, do you run a DEBUG
> build on a real device and still succeed in map api?
>
> my apk has no problem telling itself if it is running on emulator or
> not, because running on emulator an apk should always assume itself a
> debug build. my release build has no problem running on real device
> either.
>
> AFAIK, the map api key that an apk should use is decided by the app
> signing key used to sign the apk; it is not decided by which emulator/
> device the apk runs on.
>
> so, when a DEBUG build runs on my REAL phone, it fails map api key,
> because there seems to me no way to tell build type of an apk, UNLESS
> like Bob suggested i put some "semi-auto" attribute or metadata in my
> code, and remember to remove it before formal RELEASE, or devise some
> makefile to put/remove the metadata for me automatically.
>
> OR, i should not run a debug build on a real device and hope map api
> works...
>
> On Apr 5, 10:39 am, Brill Pappin  wrote:
>
>
>
> > actually i had the same issue with different Map keys for dev and
> > production.
>
> > My solution was a little bit of code that checks to see if your
> > running in the emulator or not. It works for at least Android 2.1
> > update 1:
>
> > public static final boolean isEmulator() {
> >                 if ("1".equals(System.getProperties()
> >                                 .getProperty("ro.kernel.qemu", "0"))) {
> >                         // Emulator
> >                         return true;
> >                 }
> >                 return false;
> >         }
>
> >         public static final String getGoogleMapsAPiKey() {
> >                 if (isEmulator()) {
> >                         return "YOUDEVKEY";
> >                 }
> >                 return "YOURPRODKEY";
> >         }
>
> > I've actually deployed this to a device and it seems to work just
> > fine.
>
> > - Brill Pappin
>
> > On Apr 5, 1:27 pm, HeHe  wrote:
>
> > > Bob, sounds like you are going to devise some "Makefile" to achieve
> > > the purpose and i also have to look outside of Eclipse IDE and my code
> > > to find my "machine gun". please forget my problem and have a nice
> > > breakfast :) thanks anyway for your comments.
>
> > > On Apr 5, 9:49 am, Bob Kerns  wrote:
>
> > > > Your application is ALWAYS going to see Config.DEBUG as FALSE. You
> > > > seem stuck on that. Config.DEBUG has nothing to do with your
> > > > application whatsoever. It  has to do with your device.
>
> > > > I need to get breakfast, I'm getting grumpy. In addition to the link I
> > > > sent you, look at this link (which is linked from the link I sent
> > > > you!):
>
> > > >http://developer.android.com/intl/de/reference/android/content/pm/App...
>
> > > > You get the package manager, and get the application info for your
> > > > program, and examine its flags, to see the state of
> > > > android:debuggable. Again, nothing whatsoever to do with Config.DEBUG,
> > > > which you should forget you ever saw!
>
> > > > The SDK tool chain provides NO WAY to identify a "debug build" of your
> > > > application -- because that could mean almost anything.
>
> > > > YOU need to decide what it means -- you could have a debug build, a
> > > > test build, a build with extra logging, a build that contacts a debug
> > > > version of your back-end service, etc. etc.
>
> > > > The best way to distinguish them is through the manifest. You can use
> > > > the android:debuggable attribute, but that's not its primary purpose.
> > > > But if your needs align with it, you can use it.
>
> > > > More generally, you can include metadata in your manifest, and examine
> > > > that to determine how your program behaves. You can also use resources
> > > > for the purpose, but I would prefer such things to be done through the
> > > > manifest.
>
> > > > I'm planning to start writing up my approach to building multiple
> > > > versions of an application from a single source tree, sometime within
> > > > the next couple days.  One aspect of my approach is that
> > > > android:debuggable='true' is what appears in the manifest, unless I'm
> > > > creating a production build, where it is automatically set to false
> > > > instead. But I don't examine it in my code; I have metadata to control
> > > > various aspects of that. (I also automatically manage build numbers,
> > > > etc).
>
> > > > On Apr 5, 9:12 am, HeHe  wrote:
>
> > 

Re: [android-developers] SDK2.1, WVGA800 return wrong getWidth(), getHeight()

2010-04-05 Thread Xavier Ducrohet
This is because your app is running in compatibility mode.

See: http://developer.android.com/guide/practices/screens_support.html

Xav

On Mon, Apr 5, 2010 at 4:50 PM, sblantipodi
 wrote:
> As title,
> g.getWidth()/getHeight()
> return this value on the emulator with an avd
> 320x569
>
> Is there someone who can help me understanding why please?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] SDK2.1, WVGA800 return wrong getWidth(), getHeight()

2010-04-05 Thread sblantipodi
As title,
g.getWidth()/getHeight()
return this value on the emulator with an avd
320x569

Is there someone who can help me understanding why please?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] commands to sent to device to run JUnit tests

2010-04-05 Thread j
What are the commands that Android Eclipse plugin send to device to
run JUnit tests?  I need that to automated unit testing for my hourly
build machine (CruiseControl).

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread Bob Kerns
Actually, the package manager would be able to check using the API.
The only thing that was at question was whether the byte sequence
included anything beyond the certificate or not. We know the API
doesn't. Actually, what I'd like to know is whether it includes the
certificate, or just the public key from the certificate!

You've effectively answered the first question, at least for now. But
since the API doesn't say -- you can't really depend on the bytes
anyway. All you can really do with them is the comparison.

The issues around being able to keep secrets within an application are
pretty deep. Let's just say it's never been made practical and
robust.

On Apr 5, 11:20 am, ko5tik  wrote:
> On Apr 5, 6:09 pm, Bob Kerns  wrote:
>
> > Hashcode would not be secure. That is, you can construct an alternate
> > app+signature that would produce the same hash code. That may be good
> > enough for you, but I would discourage such a technique. However, you
> > could construct a secure SHA-1 hash of the value!
>
> The problem is,  that every other application can also read this
> signature
> and produce hash out of it...
>
> > Unfortunately, the contract given for PackageManager does not even
> > guarantee that you'd get the same 979-character string consistently,
> > even for the same version of the same application. I'd be quite
> > surprised if you didn't. A more relevant question is if you get the
> > same value for two different versions of your app. If they include the
> > hash portion of the signature, and its encrypted counterpart, then the
> > answer is no.
>
> I checked  - it was the same.  Otherwise market app/installer would be
> unable to
> check whether you are upgrading existing application.
>
> > or user, yes, but application, no. Nothing in a .apk can be regarded
> > as secret.
>
> ... It would be cool feature request  for android.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Can´t set the emulator´s dns servers on windows

2010-04-05 Thread Brion Emde
I think that you need to find out what your DNS servers are for your
ISP. There are instructions on the internet for Window, Mac and Unix
on how to do this.

On a windows machine, you run ipconfig /all and look for nameserver or
DNS lines and copy those IP addresses.

For example, my DNS servers are:

68.87.85.102 and 68.87.69.150

so I set them for the emulator, like this:

-dns-server 68.87.85.102,68.87.69.150



On Apr 5, 4:24 pm, Gabriel Simões  wrote:
> Well,
>
> Running the emulator manually with parameters -dns-server and -
> verbose, I found out that the emulator complains it could not resolve
> the DNS server specified (which is an IP for Google DNS, or any other
> dns you want).
> It says it´s going to use the default DNS but seems not to find any
> defaut dns.
> When I open the emulators browser, obviously no DNS can be resolved,
> but all the websites work if I use their IP.
>
> isn´t there a way to force the emulator to use an IP address as a dns
> server?
> Is there anything I can do or will I be forced to develop on linux (so
> everytime I go back and forth systems I face problems with accents and
> special caracters on my source code).
>
> Thanks
>
> On 4 abr, 23:38, Gabriel Simões  wrote:
>
>
>
> > Actualy 8.8.8.8 is google´s openDNS
> > The second should be 8.8.4.4
>
> > On 4 abr, 22:54, Brion Emde  wrote:
>
> > > That's a funny lookingDNSthat you're entering. How are you finding
> > > yourDNS?
>
> > > I'm not saying those are not right, but I suspect that if they were
> > > right, I youremulatorwould work.
>
> > > On Apr 4, 7:37 pm, Gabriel Simões  wrote:
>
> > > > Hello,
>
> > > > Right now my app needs to use the device´s (emulator´s) internet
> > > > connection. I´ve read before that since my computer has internet the
> > > >emulatorshould be able to access it.
> > > > On linux everything works but on windows theemulatorcan´t find the
> > > >DNSI´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s
> > > > launch options.
>
> > > > I´ve tried on Android 1.6 and 2.1.
> > > > Is there anything else I should try?
>
> > > > Thanks
> > > > Gabriel
>
> > > > ps: I know it´s aDNSproblem because if I open the browser and set
> > > > any website´s ip as the address everything just works.- Ocultar texto 
> > > > das mensagens anteriores -
>
> > > - Mostrar texto das mensagens anteriores -- Ocultar texto das mensagens 
> > > anteriores -
>
> > - Mostrar texto das mensagens anteriores -

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: para de mandar essas mensagens pro mau hotmail

2010-04-05 Thread Bob Kerns
I'm afraid you'll have to remove yourself from the list; we can't do
it for you.  Go to the group website and unsubscribe yourself there.

http://groups.google.com/group/android-developers/subscribe

On Apr 5, 6:56 am, Shirley Mara  wrote:
> não quero receber mais essas mensagens no meu hotmail esta congestinando meu
> email por favor pare de mandar essas mensagens

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread Bob Kerns
You should ALWAYS look outside the IDE for production builds. Any IDE.
Builds should always be automateable and as automated as possible.
Including managing revision control stategy. IDEs are simply not
designed for repeatability.

However, the main part of the process is vanilla ant script produced
by the 'android' tool. It's just the setup and how it's driven that's
separate (and can be shared between projects).

Remember, too, that ant scripts can integrate with the Eclipse IDE.

On Apr 5, 10:27 am, HeHe  wrote:
> Bob, sounds like you are going to devise some "Makefile" to achieve
> the purpose and i also have to look outside of Eclipse IDE and my code
> to find my "machine gun". please forget my problem and have a nice
> breakfast :) thanks anyway for your comments.
>
> On Apr 5, 9:49 am, Bob Kerns  wrote:
>
>
>
> > Your application is ALWAYS going to see Config.DEBUG as FALSE. You
> > seem stuck on that. Config.DEBUG has nothing to do with your
> > application whatsoever. It  has to do with your device.
>
> > I need to get breakfast, I'm getting grumpy. In addition to the link I
> > sent you, look at this link (which is linked from the link I sent
> > you!):
>
> >http://developer.android.com/intl/de/reference/android/content/pm/App...
>
> > You get the package manager, and get the application info for your
> > program, and examine its flags, to see the state of
> > android:debuggable. Again, nothing whatsoever to do with Config.DEBUG,
> > which you should forget you ever saw!
>
> > The SDK tool chain provides NO WAY to identify a "debug build" of your
> > application -- because that could mean almost anything.
>
> > YOU need to decide what it means -- you could have a debug build, a
> > test build, a build with extra logging, a build that contacts a debug
> > version of your back-end service, etc. etc.
>
> > The best way to distinguish them is through the manifest. You can use
> > the android:debuggable attribute, but that's not its primary purpose.
> > But if your needs align with it, you can use it.
>
> > More generally, you can include metadata in your manifest, and examine
> > that to determine how your program behaves. You can also use resources
> > for the purpose, but I would prefer such things to be done through the
> > manifest.
>
> > I'm planning to start writing up my approach to building multiple
> > versions of an application from a single source tree, sometime within
> > the next couple days.  One aspect of my approach is that
> > android:debuggable='true' is what appears in the manifest, unless I'm
> > creating a production build, where it is automatically set to false
> > instead. But I don't examine it in my code; I have metadata to control
> > various aspects of that. (I also automatically manage build numbers,
> > etc).
>
> > On Apr 5, 9:12 am, HeHe  wrote:
>
> > > thanks for the good idea to turn debuggable apk to red. however, the
> > > problem i am experiencing that even after i set "debuggable" attribute
> > > in manifest to TRUE and build and launch my apk using Eclipse "Run>
> > > Debug As", my apk still sees "Config.DEBUG" as FALSE. so right now i
> > > don't know how my apk can programmatically learn that it is a debug
> > > built. do you have a snippet teaching me how? thanks in adavance.
>
> > > On Apr 5, 8:59 am, "~ TreKing"  wrote:
>
> > > > On Mon, Apr 5, 2010 at 10:42 AM, HeHe  wrote:
> > > > > but what i need is some info telling my apk that it was a debug or 
> > > > > release
> > > > > built without changing the "debuggable" attribute in manifest each 
> > > > > time
> > > > > between debug/release builds.
>
> > > > This is not possible. You will have to make sure to remember to change 
> > > > that
> > > > "debuggable" flag. Maybe add some code that sets your primary layout's
> > > > background color to red in debug mode or something if you're so worried
> > > > about it so you always know that you have that flag set.
>
> > > > > i need it because in case i forget to change the debuggable attribute 
> > > > > of my
> > > > > release built to false my apk can still behave correctly.
>
> > > > So you don't really NEED it ... you just have to be careful before
> > > > publishing your app. Even a rudimentary test on your release APK should
> > > > alert you that you still have the debuggable flag set (for example, by
> > > > setting your background to red in debug mode), in which case it takes 
> > > > about
> > > > 2 seconds to switch it and rebuild.
>
> > > > (1). i dont want to change the debuggable attribute in manifest between
>
> > > > > debug and release builds.
>
> > > > You 
> > > > should.http://developer.android.com/intl/fr/guide/publishing/preparing.html
> > > > Read section 4
>
> > > > In fact, as far as Android is concerned, that debuggable flag is pretty 
> > > > much
> > > > what defines "DEBUG" vs "RELEASE", AFAIK.
>
> > > > ---
> > > >  --
> > > > TreKing - Chi

[android-developers] GPX and/or KML Mock Location routes not loading on Android Device (or Emulator) using DDMS

2010-04-05 Thread Sydney
Hi All,

I'm having trouble using the DDMS to playback a geo-location route
that I recorded using Google's My Tracks application. My Tracks is
able to save a route in two formats (GPX and KML) to my SD Card, which
I then save onto my development computer, and try to load into my
application on my android device (Motorola Droid v2.1). Both of GPX
and KML formats are supposedly supported by the DDMS (DDMS > Emulator
Control > Location Controls), but I cannot seem to get them to load
into the DDMS.

I originally tried using the Motorola Droid, but everything in the
Emulator Control section in the DDMS is disabled (grayed out). I have
enabled "Allow Mock Location" in the Development Settings. Before I go
on, I'd just like to mention that getting this to work on the actual
device would solve my problem, so if someone knows how to do this,
please help me here. Otherwise, read on to the next section about
using the Emulator.

Moving to an emulator, the Emulator Control section is enabled, but
when I try to load either my GPX or KML files, nothing happens (no
errors, but location is not updated).

What does seem to work is the 'Manual' mode, where a single
(Longitude, Latitude) pair is sent to the emulator. But to simulate a
route by manually entering (Longitude, Latitude) pairs which are
updated about once per second would be very tedious and annoying.

Does anyone have any contributions on this subject? 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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: droid

2010-04-05 Thread Disconnect
Supposedly droids/nexus one randomly in the states, but it seems more like
the majority of app devs got nexus ones and the majority of forum
contributors got droids.

(Mine sold, and is on it's way to a happy vzw user. Trying to decide if I
want the -much more expensive- nexus one, or save $30 and get an n900.
There's already a proof of concept android port, and hacking on that for a
while could be fun.)

On Mon, Apr 5, 2010 at 4:42 PM, patbenatar  wrote:

> > didn't bother opening/using it since i was
> > hoping for a nexus one.
>
> Hahahaha you are so spoiled! Want to mail me your Droid? ;-)
>
> > it seems that only droids have been sent out
> > so far..
>
> I think they sent Nexus Ones to Europe and Droids to the States.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

2010-04-05 Thread DP
Does anyone know how can I use this undocumented API in normal 2.1
release?

android.media.MediaRecorder.setParameters

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Can´t set the emulator ´s dns servers on windows

2010-04-05 Thread David Turner
On Mon, Apr 5, 2010 at 3:24 PM, Gabriel Simões  wrote:

> Well,
>
> Running the emulator manually with parameters -dns-server and -
> verbose, I found out that the emulator complains it could not resolve
> the DNS server specified (which is an IP for Google DNS, or any other
> dns you want).
> It says it´s going to use the default DNS but seems not to find any
> defaut dns.
> When I open the emulators browser, obviously no DNS can be resolved,
> but all the websites work if I use their IP.
>
> isn´t there a way to force the emulator to use an IP address as a dns
> server?
>

It should work, it's probably a regression in the emulator. I'll look into
it.


> Is there anything I can do or will I be forced to develop on linux (so
> everytime I go back and forth systems I face problems with accents and
> special caracters on my source code).
>
> Thanks
>
> On 4 abr, 23:38, Gabriel Simões  wrote:
> > Actualy 8.8.8.8 is google´s openDNS
> > The second should be 8.8.4.4
> >
> > On 4 abr, 22:54, Brion Emde  wrote:
> >
> >
> >
> > > That's a funny lookingDNSthat you're entering. How are you finding
> > > yourDNS?
> >
> > > I'm not saying those are not right, but I suspect that if they were
> > > right, I youremulatorwould work.
> >
> > > On Apr 4, 7:37 pm, Gabriel Simões  wrote:
> >
> > > > Hello,
> >
> > > > Right now my app needs to use the device´s (emulator´s) internet
> > > > connection. I´ve read before that since my computer has internet the
> > > >emulatorshould be able to access it.
> > > > On linux everything works but on windows theemulatorcan´t find the
> > > >DNSI´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s
> > > > launch options.
> >
> > > > I´ve tried on Android 1.6 and 2.1.
> > > > Is there anything else I should try?
> >
> > > > Thanks
> > > > Gabriel
> >
> > > > ps: I know it´s aDNSproblem because if I open the browser and set
> > > > any website´s ip as the address everything just works.- Ocultar texto
> das mensagens anteriores -
> >
> > > - Mostrar texto das mensagens anteriores -- Ocultar texto das mensagens
> anteriores -
> >
> > - Mostrar texto das mensagens anteriores -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

2010-04-05 Thread FrankD
Sorry i missed out on your question

No, i never did get it to work using multiple "?" placeholders.

What i ended up doing is taking the parameters i was trying to use in
the "selectionArgs" String array and used string concatenation to
create one big query string. Then I passed that new string to rawQuery
with null as the selectionArgs.

For ex...
String sql = "SELECT SUM(MIN(fp - " + firstParameter + ", ap))
FROM.";
rawQuery(sql, null);

Don't know if this was a good way of doing it but it was the only way
i could get it to work and i have experienced no problems with this
method.

Frank

On Mar 11, 4:13 pm, Nathan  wrote:
> On Mar 10, 5:29 pm, Mark Murphy  wrote:
>
>
>
> > I'm not aware of any. I'm not even sure it's Android that is doing the ?
> > replacement -- the Ruby SQLite library has the same feature, so it might
> > be handled by SQLite itself.
>
> It could certainly be in SQlite or its JDBC driver. .NET SQLite
> provider worked with the exact same query string - but it had typed
> parameters, not an array of strings.
>
> Given the nature of SQLite, I wouldn't be surprised if it is casting
> the column to a string and doing a string comparison.
>
> If this is the case, to be fixed, I'd have to request a new signature
> for rawQuery.
>
> rawQuery (String sql, Object... params)
>
> If I come up with a smaller case, I'll post it. It is 100%
> reproducible with FLOAT columns and inequality in my code.
>
> Nathan

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Can´t set the emulator´s dns servers on windows

2010-04-05 Thread Gabriel Simões
Well,

Running the emulator manually with parameters -dns-server and -
verbose, I found out that the emulator complains it could not resolve
the DNS server specified (which is an IP for Google DNS, or any other
dns you want).
It says it´s going to use the default DNS but seems not to find any
defaut dns.
When I open the emulators browser, obviously no DNS can be resolved,
but all the websites work if I use their IP.

isn´t there a way to force the emulator to use an IP address as a dns
server?
Is there anything I can do or will I be forced to develop on linux (so
everytime I go back and forth systems I face problems with accents and
special caracters on my source code).

Thanks

On 4 abr, 23:38, Gabriel Simões  wrote:
> Actualy 8.8.8.8 is google´s openDNS
> The second should be 8.8.4.4
>
> On 4 abr, 22:54, Brion Emde  wrote:
>
>
>
> > That's a funny lookingDNSthat you're entering. How are you finding
> > yourDNS?
>
> > I'm not saying those are not right, but I suspect that if they were
> > right, I youremulatorwould work.
>
> > On Apr 4, 7:37 pm, Gabriel Simões  wrote:
>
> > > Hello,
>
> > > Right now my app needs to use the device´s (emulator´s) internet
> > > connection. I´ve read before that since my computer has internet the
> > >emulatorshould be able to access it.
> > > On linux everything works but on windows theemulatorcan´t find the
> > >DNSI´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s
> > > launch options.
>
> > > I´ve tried on Android 1.6 and 2.1.
> > > Is there anything else I should try?
>
> > > Thanks
> > > Gabriel
>
> > > ps: I know it´s aDNSproblem because if I open the browser and set
> > > any website´s ip as the address everything just works.- Ocultar texto das 
> > > mensagens anteriores -
>
> > - Mostrar texto das mensagens anteriores -- Ocultar texto das mensagens 
> > anteriores -
>
> - Mostrar texto das mensagens anteriores -

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Android and read email

2010-04-05 Thread David Toledo
Hi All

>
> I need to read Email from Gmail. exist some APIs to receive Email
programmatically

Thanks
Davud

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: using camcorder app

2010-04-05 Thread Nayeem
Plus it also seems like some of the packages are missing from the SDK.
I downloaded the camera.git and loaded it into eclipse but it keeps
complaining about some of the packages not being resolved for eg.,
android.os.SystemProperties;
android.provider.DrmStore;
etc etc
How do I get around this?
Has anybody compiled it in eclipse?

Thanks

-Nayeem

On Apr 5, 12:56 pm, Nayeem  wrote:
> Thanks for the response. I was wondering whether there was a way to
> use the camcorder app without having to download the whole source code
> into my app, since the app is already in the phone. Downloading it
> separately for my app would cause redundancy. However, if that is the
> only solution, we gotta do what we gotta do.
>
> Thanks
>
> -Nayeem
>
> On Apr 5, 12:27 pm, wurp  wrote:
>
> > You can download the source code for the camera app that comes with
> > the phone with this command:
> > git clone git://android.git.kernel.org/platform/packages/apps/Camera
>
> > That app includes video camera support, of course.
>
> > You'll have to install git if you don't already have it, but you
> > should do that anyway :-)
>
> > Bobby
>
> > On Apr 4, 10:54 pm, Nayeem  wrote:
>
> > > Hi,
>
> > > Could someone tell me how we could use the inbuilt camcorder api for
> > > our applications?
> > > I am trying to use the camcorder application to record videos for my
> > > own application. I would really appreciate an example of how to use
> > > it.
>
> > > Thanks
>
> > > -Nayeem

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Send email in background

2010-04-05 Thread RMD
Thanks!


Robert

On Apr 5, 11:38 am, Jiri  wrote:
> See this:
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Jiri
>
> On 05/04/2010 15:58, Mark Murphy wrote:
>
>
>
> >> Is there and accepted way to send an email in the background?
>
> > You would need to integrate your own email client library (e.g.,
> > JavaMail), as there is no way to send email in Android natively without
> > user intervention.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Customizing ExpandableListView

2010-04-05 Thread Walt Armour
And alas this is not to be.  I ended up having to try this and it
fails.

The ExpandableListView considers a collapsed group to be empty (code
indicates for performance).  This means the selector will always draw
the empty version of the indicator.

It may be possible by extending ELV and overriding getIndicator().
Unfortunately that method is marked private so I'll have to replace
all the code.  Lots of private methods in Android that may be better
suited as protected.  C'est la vie.  I may give it a try.

On Apr 5, 12:32 pm, Walt Armour  wrote:
> I've been fighting with styling on ExpandableListView as well (an area
> that could use some improvement in a future release).
>
> The problem with the current implementation is in the selector element
> for the group expander.  It can be found in expander_group.xml and
> looks like this:
>
> http://schemas.android.com/apk/res/android";>
>              android:state_expanded="true"
>         android:drawable="@drawable/expander_ic_maximized" />
>              android:drawable="@drawable/expander_ic_minimized" />
> 
>
> The problem is that it lacks a state for empty.  The code and
> attributes support it (state_empty) but it isn't defined in here.
> Here are the hypothetical (completely untested) steps you could use to
> achieve this:
>
> - Grab the existing expander_group.xml and put it into your drawable
> directory.
> - Modify it to include a section for the empty state with no image.
> Something like this:
>     
> - Modify your ExpandableListView element and set the group indicator
> to be your private expander_group.xml
>
> Let us know how it works out.  For myself, I need even more control so
> I'm about to move to the "roll my own" stage.
>
> On Feb 22, 8:35 pm, ls02  wrote:
>
> > setGroupIndicator will set ALL groups indicator. What I need is to
> > remove expandable arrow only from those items that have no chidren.
>
> > On Feb 22, 8:53 pm, TreKing  wrote:
>
> > > On Mon, Feb 22, 2010 at 5:19 PM, ls02  wrote:
> > > > How do I remove expandable arrow from some of the items in
> > > > ExpandableListView?
>
> > > Have you tried the setViewIndicator() function?
>
> > > > Also is there way to customize this arrow, move it
> > > > to another place in the item?
>
> > > Haven't tried it but the documentation has indicatorLeft and 
> > > indicatorRight
> > > xml attributes that are supposed to be for the left and right bounds of 
> > > the
> > > icon.
>
> > > ---­--
> > > TreKing - Chicago transit tracking app for Android-powered 
> > > deviceshttp://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Upgrading of Applications

2010-04-05 Thread Eurig Jones


On Apr 5, 11:42 pm, "~ TreKing"  wrote:
> On Mon, Apr 5, 2010 at 3:44 PM, Eurig Jones  wrote:
> > I'm intending to release my application through the Android Market and I
> > want to make sure I can deploy new releases of the app and the users will be
> > able to be notified of these and upgrade to them as soon as they can.
>
> This should happen automatically via the Android Market app.

Even for Android 1.5?

>
> > The Android documentation states that, appart from the android:versionCode
> > property, it is entirely up to the application to provide an upgrade
> > routine.
>
> This is entirely optional and not necessary. In fact, I'd recommend you not
> waste your time with it and let people be notified by the Android Market app
> (when it work, it often doesn't) or discover it on their own.

So I guess the market app for doing this is a bit unreliable then?

>
> > What is the best strategy to achieve this?
>
> I don't know about "best", but you could simple have a file on a server that
> had nothing more than a version code in it. On start up you app could check
> this file and see if the code in that file was greater than it's own current
> code. If so, it would notify the user that a new version was available and
> could take them to the market to get it.

Ok. So once I notify the user that there is a new release available,
where or how do I link to the correct screen in the Market app for
them to download it?

Thanks for your reply!
Eurig Jones

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: WSDL2Java for Android

2010-04-05 Thread kypriakos

I have been looking for WSDL and Axis1.x/2 tools in general for
mobile
devices and most people have discouraged me in doing so - practically
a lot of people still view the cell phone/mobile device as a client
and not
a server. I have been successful in deploying REST services on mobiles
as well and using Jalimo (open source Java based on the GNU class
path)
on the N800 I was able to run a SOAP-based web service but I didn't
go far with it.
You can look into kSOAP as well but most likely you will need to parse
the WSDL on your own. By the way, even if you find a WSDL2Java tool
how will you be compiling the resulting code/stubs? Off the mobile
device?

The best of luck and please keep us posted

On Mar 30, 2:32 am, Ro  wrote:
> Hi there!
> We are trying different web service technologies on the Android
> platform. We have tried RestFull technologies, and it seems to be the
> best option, but we want to try also WSDL based web services.
> Anybody knows any wsdl2java tool for Andorid Platform?
>
> Thanks in advance!
> Robert.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
Thanks for the response. I haven't meant to spam the group, I wasn't sure if
my post were posting.

Problem Activity: LightController
Service: ConnectionService
Object within Service: Connection

Basically all I am attempting to do is start the Service (from a Splash
Screen Activity) which will provide a Connection to a hardware controller. I
hope to use this Connection to send and receive messages with the hardware
controller.

I have been able to bind to the Service and send/receive commands with the
controller in the Activity that loads after the Splash Screen. The problem
arose when I tried to create another Activity (LightController) and connect
to the same Service. Since, I'm just learning I assumed I was doing
something wrong with the Service (e.g. binding, unbinding, object sharing,
etc.)

I finally realized in my LogCat that it was reporting that the Service was
connected after the bit of code I had written to test my connection. I'm
still not sure why this happens. Perhaps something to do with the way these
commands are queued?

_ begin code snippet from onCreate()_

// Bind to the Connection Service
Intent bindIntent = new Intent(LightController.this,
ConnectionService.class);
bindService(bindIntent, mConnection, Context.BIND_AUTO_CREATE);

// Request data from the controller
if (unit = serviceBinder.c.connected() ) {
Log.i(Connection Service is connected);
} else {
Log.i(Connection Service is not connected);
}

_ end code snippet from onCreate()_

Anyhow, the above if/then would result in a NullPointerException. I
eventually moved it to a try/catch which resulted in a WARN instead of an
ERROR (see LogCat posted above).

So finally, I have moved the if/then statement to a Thread and all is well.
I sleep for 1000 ms in the Thread prior to attempting to access the
Connection. I am assuming this small time delay is what was needed in order
to establish the binding to the service. Is it that, or are all of the
commands queued until the end of the onCreate() and then executed in some
order determined by Android? (can this be clarified?).

Additionally, I should probably check to see if the binding has been
completed instead of sleeping the thread for an arbitrary time period. Then
if the service is not bound, sleep for shorter time periods, and then check
again. This may improve the responsiveness of the app. I'm assuming a
_while_ or _for_ loop would be a good method to perform this check.

Thanks,
J

On Apr 5, 2010 1:42 PM, "jotobjects"  wrote:

Certainly not obvious what you are doing or why it doesn't work.  Can
you boil this down to a short example that causes the problem so we
can see the code rather than just a long logcat?


On Apr 5, 8:30 am, Jason LeBlanc  wrote:
> Is there an obvious reason why ...

> On Apr 4, 2010 9:01 AM, "Tunneling"  wrote:
>
> I have a Connection objec...
> android-developers+unsubscr...@googlegroups.com

>
> For more options, visit this group athttp://
groups.google.com/group/android-developers?hl=en

>
> To unsubscribe, reply using "remove me" as the subject.
--

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

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

[android-developers] Checking for font support at runtime?

2010-04-05 Thread kelly
Hi,

have an application that is going to be shipping on devices with
varying font support in several different locales. Some of them will
have the standard Android fonts on them (supporting Latin, Cyrillic,
Chinese characters, etc.), and others will have extended font support
(Thai, Hindi, others).

My application displays text in languages that aren't guaranteed to be
supported by Android's native fonts on all the devices it will ship
on.  (This is outside of the normal translated string resources). So I
would like to know if it's possible to interrogate font support for a
given language at runtime. In other words, given a string of text, can
I interrogate something in the Android API that tells me whether
there's a font available to display the text? I can get the Unicode
block for a given string of characters easily enough. Given that
information, I would think I could get a list of fonts in Android, and
see if there's support for my Unicode block in the available fonts.

Is that possible? Any insights greatly appreciated.

Thanks,
Kelly

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: intensive writing to internal memory

2010-04-05 Thread Nadav
Indeed we are not able to push continuously to a server - both because
of network availability and also the power consumption is probably
much higher than saving it and sending in bulk.

I think we will indeed aim for the 3 level approach and try to put as
little as possilbe on the main memory just to be safe..

Thanks to everyone who answered!
Nadav

On Apr 4, 4:37 pm, Bob Kerns  wrote:
> If Jason's suggestion of pushing it to a server is inadequate, you can
> buffer events, and only write them out once a minute or 10 minutes or
> something. This will put an upper bound on the number of writes
> performed.
>
> You can combine the approaches, and push to the server, and only write
> to the filesystem if you don't succeed in pushing to the server within
> a decent interval. Then when communications is reestablished, push the
> saved data up first.
>
> You could also send it to the SD -- and when the SD is not available,
> buffer it on the local filesystem until it becomes available again.
>
> Essentially, we're looking at a 3-level buffering hierarchy -- RAM,
> local flash, and either SD or server. The more the buffering in RAM,
> the more data you risk losing in the event of a crash, but the fewer
> writes and less battery required.
>
> On Apr 4, 12:53 pm, Nadav  wrote:
>
> > Thanks Bob and Dianne,
>
> > The issue is that I have no choice but do a lot of writing since this
> > is a research app that constantly logs phone and user activity over
> > many months...  We are dealing ok with battery and processing power
> > (we only write every several minutes), and the main concern remains
> > the Flash lifetime.
>
> > We are working with cyclic log files (that roll over every several
> > hours), and have already found a way to move our older files to the SD
> > card. However our current dilemma is whether to do all writing on the
> > SD-card, or keep the "current" open file on the main memory, and copy
> > it to SD when moving to the next log file.
>
> > The problem of doing everything on the SD card is that when a user
> > mounts the card to a PC, we can't access it for logging and other
> > tasks, and that leads to various crashes and issues, so I thought it
> > might be simpler if we work with the "current" file on the main
> > memory, but I fear the Flash degradation... I'm willing to buy new SD
> > cards every few months, but I really don't want to mess up the phone
> > itself!
>
> > On Apr 4, 2:27 am, Dianne Hackborn  wrote:
>
> > > If you are talking about internal storage (not RAM memory), then yes this 
> > > is
> > > generally flash memory, and you want to be careful about how much you 
> > > write
> > > to it for numerous reasons: also extremely important are the battery 
> > > impact
> > > (writing to flash is expensive) and performance (causing other things that
> > > are accessing flash storage to be blocked by what you are doing).
>
> > > That said, properly designed flash storage won't let you write to the same
> > > block over and over.  Writes are spread across the flash storage just to
> > > avoid that kind of issue.
>
> > > On Sat, Apr 3, 2010 at 9:49 AM, Nadav  wrote:
> > > > Hi All,
>
> > > > I'm wondering how worried should I be about writing an app that does a
> > > > lot of writing (logs + db files) to the phone's main memory.
>
> > > > In the past I was involved in a project that had to do a lot of
> > > > writing to SD card, and the SD cards started malfunctioning after 2-3
> > > > months due to this, and had to be replaced every now and then. The
> > > > developer realized  he was reaching the flash memory's read/write
> > > > guarantees (don't remember the exact specs).
>
> > > > If the phone's main memory is also flash based, should this be a
> > > > concern? I wouldn't want to damage the phone's memory in a permanent
> > > > way
>
> > > > I'm also not sure if the issue is related to reading writing to the
> > > > same physical block (the guy was using a single log file and kept
> > > > appending it, so he was constantly accessing the file's header block),
> > > > and whether writing cyclic log files might remedy a problem like
> > > > this..
>
> > > > Would appreciate any thoughts on this issue.
>
> > > > 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 > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > To unsubscribe, reply using "remove me" as the subject.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such

Re: [android-developers] Upgrading of Applications

2010-04-05 Thread ~ TreKing
On Mon, Apr 5, 2010 at 3:44 PM, Eurig Jones  wrote:

> I'm intending to release my application through the Android Market and I
> want to make sure I can deploy new releases of the app and the users will be
> able to be notified of these and upgrade to them as soon as they can.
>

This should happen automatically via the Android Market app.


> The Android documentation states that, appart from the android:versionCode
> property, it is entirely up to the application to provide an upgrade
> routine.
>

This is entirely optional and not necessary. In fact, I'd recommend you not
waste your time with it and let people be notified by the Android Market app
(when it work, it often doesn't) or discover it on their own.


> What is the best strategy to achieve this?
>

I don't know about "best", but you could simple have a file on a server that
had nothing more than a version code in it. On start up you app could check
this file and see if the code in that file was greater than it's own current
code. If so, it would notify the user that a new version was available and
could take them to the market to get it.

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

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Android and Remail

2010-04-05 Thread David Toledo
Hi All

Is possible integrate remail with android app. or some similar

Thanks
David

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Application already deployed. No need to reinstall.

2010-04-05 Thread Eurig Jones
It's only happened to me once, so I had to recreate the project only
once and it's not happened since.

On Mar 29, 3:17 pm, Pinheiro  wrote:
> I'm having the same problem and found the same solution but it's very,
> very annoying.
> It seems like some file has a date somewhere in the future or it's
> just a big bug in Eclipse.
> Anyone found a easier/faster way to solve this?

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

2010-04-05 Thread jotobjects
There is a fair amount of sometimes conflicting information about
this.  Here are some previous threads.

http://groups.google.com/group/android-developers/browse_thread/thread/cbc9d4cad48a7fb7/42aceb303e8b42f6?#42aceb303e8b42f6

http://groups.google.com/group/android-developers/browse_thread/thread/467d7917b2aee063/eafcf0513a38aca

On Apr 5, 1:38 pm, Greg Donald  wrote:
> On Mon, Apr 5, 2010 at 3:30 PM, Anna PS  
> wrote:
> > I figured this out. Just generate a random string (using Java UUID)
> > and save it in Settings. That's enough to distinguish each user :)
>
> Wouldn't re-installing the app change it though?
>
> --
> Greg Donald
> destiney.com | gregdonald.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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Android Navigation Tutorial

2010-04-05 Thread patbenatar
First off, consider that Google Navigation Beta comes free on all
Android phones inside of the Maps app... And it's an exquisite
navigation program and is already integrated with the Car Mode app
thingie and all. Do you see yours being that much better that user's
will see a reason to switch from the standard, free, kickass Google
app to your paid app? Sorry, I don't mean to burst your bubble, just
trying to be realistic.

Now, if you still wish to continue: OpenStreetMaps and GoogleMaps try
their best to know traffic rules--basically they know as many rules as
have been programmed into them on their GIS layers thus far. I have
certainly had experiences with Google Maps where it has told me to
make a left or right onto a one-way street going the opposite
direction. Gotta thank my brain for catching those mistakes early
enough!! Basically, all these mapping softwares have disclaimers
taking away any blame for inaccurate map data.

Both street map systems are capable of routing a path only on drivable
paths (ie, roads).. If you dig around the Google Maps Android API docs
[over at code.google.com], I believe I've seen some methods in there
for getting driving routes.

I doubt Navigation tutorials exist, but there are loads of Google Maps
intro tutorials. Google "android maps api tutorial" or something.

Hope this helps,
Nick



On Apr 5, 9:55 am, Károly Holczhauser  wrote:
> Hi Boys and Girls !
>
> I would like to make an navigation application, but I don't want to use an
> openSource, because I want my to be payable.
> I have some question, what would be great if you can give me some answers or
> tips where can I check them :
>
>  - If I set my Target marker on the map How can the application know what is
> the way ? Why not set the route across buildings, park,etc... how are the
> other navigation application knows where are the streets, corners ? So How
> can link the graph nodes to corners and How can the graph ways to be
> streets  ?
>
>  - I would like to use OpenStreetMaps or Google Maps for the mapping. Are
> these know the Traffic rules ? For example One Way streets ?
>
>       I'm looking for a tutorial witch may teach about navigation and could
> give some answer to me ? Do you know some of them ?
>
>                Thank you so much: Károly Holczhauser

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

2010-04-05 Thread patbenatar
Would onStart be a better place to do View manipulation than onResume?
What is the benefit of onStart over onResume in this context?

Thanks,
Nick



On Apr 5, 12:19 pm, Kumar Bibek  wrote:
> Yup, onStart is a good option. :)
>
> Thanks and Regards,
> Kumar Bibek
>
> On Apr 5, 11:56 pm, Yahel  wrote:
>
>
>
> > You can try to put your splash screen logic in the onStart method.
>
> > It is triggered everytime your activity is shown.
>
> > Yahel
>
> > On 5 avr, 12:04, kavitha  wrote:
>
> > > Hi Kumar,,
>
> > > I guess Dror520 is doing same,,even i am using same,,,
>
> > > But OnCreate() method is not called at all upon relaunch of application
>
> > > that is the problem,how to solve it?
>
> > > Thanks
> > > Kavitha
>
> > > On Mon, Apr 5, 2010 at 1:25 PM, Kumar Bibek  wrote:
> > > > Well, you cannot run two Activities simultaneously. When one Activity
> > > > is in the foreground, the next activity will be in paused/stop state.
> > > > Only when your foreground activity finishes, you background activity
> > > > will come alive.
>
> > > > Show your splash screen for 5 secs. Then start the next activity and
> > > > finish your flash activity.
>
> > > > Thanks and Regards,
> > > > Kumar Bibek
>
> > > > On Apr 5, 6:13 am, Dror520  wrote:
> > > > > thanks for your answer! i figured it out it was actually my fault ...
> > > > > lol
> > > > > now i'm having a hard time figuring out how to start the mydeals
> > > > > activity but keep the splashscreen activity showing on the screen and
> > > > > when the mydeals activity is done move to that activity ...
> > > > > thanks!
>
> > > > > On Apr 3, 7:34 am, Kumar Bibek  wrote:
>
> > > > > > Make sure that your onCreate method is called, and it is not 
> > > > > > resumed.
> > > > > > You can put some Log statements to check this in your onCreate 
> > > > > > method.
>
> > > > > > Thanks and Regards,
> > > > > > Kumar Bibek
>
> > > > > > On Mar 30, 3:45 am, Dror520  wrote:
>
> > > > > > > Hey, i made a splash screen:
> > > > > > > public class SplashScreen extends Activity  {
>
> > > > > > >         protected int splashTime = 2000;
>
> > > > > > >         @Override
> > > > > > >         public void onCreate(Bundle savedInstanceState) {
> > > > > > >           super.onCreate(savedInstanceState);
> > > > > > >           setContentView(R.layout.splash);
> > > > > > >           new Handler().postDelayed(new Runnable(){
> > > > > > >               @Override
> > > > > > >               public void run() {
> > > > > > >                   Intent intent = new Intent(SplashScreen.this,
> > > > MyDeals.class);
> > > > > > >                   SplashScreen.this.startActivity(intent);
> > > > > > >               SplashScreen.this.finish();
> > > > > > >                 }
>
> > > > > > >           }, splashTime);
>
> > > > > > >         }
>
> > > > > > > }
>
> > > > > > > AndroidMenifiest:
>
> > > > > > >  > > > > > >                   android:theme="@android:style/Theme.NoTitleBar"
> > > > > > >                   android:screenOrientation="portrait">
> > > > > > >                 
> > > > > > >                  > > > > > > />
> > > > > > >                   > > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > > >             
> > > > > > >             
> > > > > > >          > > > > > >                   android:theme="@android:style/Theme.NoTitleBar"
> > > > > > >                   android:screenOrientation="portrait">
> > > > > > >                 
> > > > > > >                  > > > android:name="android.intent.action.DEFAULT"/>
> > > > > > >                  > > > > > > android:name="android.intent.catagory.VIEW"
> > > > /
>
> > > > > > >             
> > > > > > >         
>
> > > > > > > it works the first time i put it on the device. but then when i 
> > > > > > > kill
> > > > > > > the application so the application can start over i don't see it. 
> > > > > > > it
> > > > > > > goes straight to the next activity MyDeals.
>
> > > > > > > can you please help me thanks!
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > To unsubscribe, reply using "remove me" as the subject.

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


[android-developers] Upgrading of Applications

2010-04-05 Thread Eurig Jones
I'm intending to release my application through the Android Market and
I want to make sure I can deploy new releases of the app and the users
will be able to be notified of these and upgrade to them as soon as
they can.

The Android documentation states that, appart from the
android:versionCode property, it is entirely up to the application to
provide an upgrade routine.

What is the best strategy to achieve this?

Note: I would also like to support Android 1.5 and onwards, if that
makes a difference.

Thanks in advance!
Eurig Jones

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

2010-04-05 Thread patbenatar
> didn't bother opening/using it since i was
> hoping for a nexus one.

Hahahaha you are so spoiled! Want to mail me your Droid? ;-)

> it seems that only droids have been sent out
> so far..

I think they sent Nexus Ones to Europe and Droids to the States.

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

2010-04-05 Thread Greg Donald
On Mon, Apr 5, 2010 at 3:30 PM, Anna PS  wrote:
> I figured this out. Just generate a random string (using Java UUID)
> and save it in Settings. That's enough to distinguish each user :)

Wouldn't re-installing the app change it though?


-- 
Greg Donald
destiney.com | gregdonald.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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: call onCreate each time app starts

2010-04-05 Thread patbenatar
onCreate will be called whenever your activity is being run and the
system has no currently running instance of your app (say they run
your app yesterday and between then and now they run Browser, Gmail,
and a couple games--chances are the memory allocated to your app has
been freed so the games could use it and your running app has now been
completely destroyed--requiring the system to restart your app
entirely, calling onCreate). If your memory has not been purged since
your last run, when your activity starts it will skip onCreate and go
straight to onResume.

Basically, any code that you need to run every time the user opens
your activity should go in onResume, not onCreate.

-Nick




On Apr 5, 11:04 am, hiwa  wrote:
> > How to call Activity's onCreate() method each time it starts?
>
> > Only first time when installed on device it calls onCreate method.
>
> If I have understood you correctly, then you need to read a bit more
> about Activity in general (http://developer.android.com/reference/
> android/app/Activity.html). But to answer your question, your
> applications main Activity is launched every time your app is started.
> There is no way to call "onCreate" again and again on any activity in
> general, you can call restart and resume to run code, but cannot call
> onCreate itself unless you kill the activity or call onStop().
>
> Hiwa

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

2010-04-05 Thread Anna PS
I figured this out. Just generate a random string (using Java UUID)
and save it in Settings. That's enough to distinguish each user :)

On Mar 27, 5:49 pm, Anna PS  wrote:
> Yes, I really wanted to avoid TelephonyManager because it has
> particularly scary-looking permissions.
>
> And indeed I don't need to know any identifying info about the phone
> or the user: I just need an easy way to distinguish one phone from
> another (so that I can ban problem users if necessary).
>
> Any ideas anyone?
>
> On Mar 26, 9:29 pm, Shane Isbell  wrote:
>
>
>
> > I also use TelephonyManager in my app, but I do, on occasion, get an angry
> > e-mail asking why the app needs to make phone calls. Many users just don't
> > understand the phone state permission.
>
> > On Fri, Mar 26, 2010 at 2:20 PM, Ken H  wrote:
> > > Can't say anything about the ANDROID_ID thing. What's wrong with the
> > > TelephonyManager? You can get the device ID, subscriber ID, Sim serial
> > > number, etc. I think the only permission you need is
>
> > > 
>
> > > in the manifest.
>
> > > Ken
>
> > > On Mar 25, 6:28 am, Anna PS  wrote:
> > > > Odd - I posted this message yesterday and got sent a copy, but it
> > > > doesn't seem to have shown up in the group... Here it is again.
>
> > > > 
>
> > > > This seems to be a bit of a vexed issue: seehttp://
> > > groups.google.com/group/android-developers/browse_thread/threa...
>
> > > > Like the person who started that thread, I need to get a unique ID for
> > > > a device, without using scary permissions for TelephonyManager. I've
> > > > tried
>
> > > >    id =
> > > > android.provider.Settings.Secure.getString(getContentResolver(),
> > > > android.provider.Settings.Secure.ANDROID_ID);
>
> > > > but that just produces "android_id" on my phone. Anyone know a way
> > > > that works? I'm using a Nexus One and Android 2.1.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > > To unsubscribe from this group, send email to android-developers+
> > > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > > ME" as the subject.
>
> > --
> > Shane Isbell (Founder of 
> > ZappMarket)http://twitter.com/sisbellhttp://twitter.com/zappstorehttp://zappmark...

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: AudioTrack in streaming mode

2010-04-05 Thread Simone
Allright, I'll give it a try, thanks
Simone

On 5 Apr, 08:43, ani  wrote:
> You can use audiomanager apis to do what you are trying to do...

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Eclipse setup - how can I run the Email app from the plattform source

2010-04-05 Thread Ralph Bergmann
Hello,

I set up my Eclipse as it is described on
http://source.android.com/using-eclipse.

But how can I run the Email app on my device? An "run as..." on the
source folder miss the Android simulator. When I use the Email sources
to build a Android project, it miss a lot of dependencies.


Ralph

-- 

Ralph Bergmann


www  http://www.dasralph.de/
mail ra...@dasralph.de
skypedasralph

xing http://www.xing.com/profile/Ralph_Bergmann3
linkedin http://www.linkedin.com/in/ralphbergmann
facebook http://www.facebook.com/dasralph

pgp key id   30C4ECD8
pgp fingerprint  C6E4 3435 7CC8 5008 54EC 1C86 4176 7F75 30C4 ECD8

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Forcing the Symbols Soft Keyboard

2010-04-05 Thread Nmix
Looks like I spoke too soon. I must not have tried the combination
before, but specifying:

android:inputType="number"
android:digits="

does exactly what I need. I get the symbols soft keyboard and it is
free form input with the characters I specify in android:digits. It
isn't what I expected, but it works so I won't complain.

On Apr 5, 9:40 am, Nmix  wrote:
> Thanks, but that does not solve my problem. I specify android:digits
> because the acceptable characters for the EditText are more than just
> numerals. From my brief perusal of the IME samples in the SDK (not the
> actual Android source code), specifying android:digits always brings
> up the qwerty softkeyboard, which is not what I want.
>
> On Apr 5, 4:26 am, Kumar Bibek  wrote:
>
> > For your edit text, use this property.
> > android:inputType="number"
>
> > This will pop up thekeyboardwith numbers only. But in this case you
> > will not be able to enter anything other than numbers.
> > Thanks and Regards,
> > Kumar Bibek
>
> > On Apr 5, 12:57 am, Nmix  wrote:
>
> > > I have an EditText that specifies android:digits where all the
> > > specified characters are on the standard symbols softkeyboard.
> > > Unfortunately it seems that just using android:digits is enough to
> > > always cause the qwertykeyboardto pop up. Always having to press the
> > > 123? key for that one EditText is a bit inconvenient for my users and,
> > > sad to say, it's a difficult concept for a few.
>
> > > Apart from writing up a custom IME, is there a way toforcethe
> > > symbolskeyboardon an EditText? I did look around and even try a few
> > > things, but I'm now thinking this isn't possible. Hopefully I'm wrong.
> > > 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] Intent to upload or download files over SFTP, FTPS or FTP

2010-04-05 Thread Derek
Hi,

AndFTP provides intents for third party applications to transfer files/
folders to any FTP, SFTP or FTPS server from sdcard. Here is a sample
for upload:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK);
// FTP URL (Starts with ftp://, sftp:// or ftps:// followed by
hostname and port).
Uri ftpUri = Uri.parse("ftp://yourftpserver.com:21";);
intent.setDataAndType(ftpUri, "vnd.android.cursor.dir/
lysesoft.andftp.uri");
// FTP credentials (optional)
intent.putExtra("ftp_username", "anonymous");
intent.putExtra("ftp_password", "someth...@somewhere.com");
//intent.putExtra("ftp_keyfile", "/sdcard/dsakey.txt");
//intent.putExtra("ftp_keypass", "optionalkeypassword");
// FTP settings (optional)
intent.putExtra("ftp_pasv", "true");
//intent.putExtra("ftp_resume", "true");
//intent.putExtra("ftp_encoding", "UTF8");
// Upload
intent.putExtra("command_type", "upload");
// Activity title
intent.putExtra("progress_title", "Uploading files ...");
intent.putExtra("local_file1", "/sdcard/subfolder1/file1.zip");
intent.putExtra("local_file2", "/sdcard/subfolder2/file2.zip");
// Optional initial remote folder (it must exist before upload)
intent.putExtra("remote_folder", "remotefolder/subfolder");
startActivityForResult(intent, 1);

More samples at:
http://www.lysesoft.com/support/forums/viewtopic.php?f=5&t=157
http://www.lysesoft.com/support/forums/viewtopic.php?f=5&t=158

Hope it helps.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Determining the current foreground activity

2010-04-05 Thread MobileDataSys
Is there a way for a background thread to determine if an activity
within the same process is the current activity?

I have a subscription based application with a trial period that
periodically updates information on a background thread. If the
background thread detects that the trial period has expired, I want to
bring my application to the foreground and notify the user that the
trial has ended.

I can start the main activity from the background thread using
FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_CLEAR_TOP when the main
activity is not in the foreground or if the main acitivity has started
a child activity but I run into problems if the main activity is in
the foreground. In this case I need to send it a message.

Any help would be 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Moving a graphic on different screen sizes with the right ratio?

2010-04-05 Thread Bevor
Hello,

thanks for your answer. Meanwhile I found a very satisfying solution.
In my layout xml I used scaled-independend pixels:


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











So the button bar is always dynamic and the "game panel" static. In
this case static means, that it grows or shrinks depending on the
density due to the scaled pixel. In the code I just get the density
value from DisplayMetrics and use it as multiplier for the motion of
the graphic. This works great in every tested screen size. No matter
which density or screen size, the game panel and the motion of the
graphic is always in the correct ratio.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Selling apps from Canada in the Market?

2010-04-05 Thread Brill Pappin
It's downright crazy. I don't think it's all the Android Market
department's fault, as they relay on Google Checkout to handle
payment, but the checkout folks will not allow a Canadian address or
account information as a seller (I was able to buy my N1 through the
market without any problem though).

It may be that nobody is driving at Android Market because we *still*
can do something as simple as link to an app.

Anyway, somebody at Android Market needs to do some Google Checkout
ass kicking ASAP.

- Brill



On Apr 5, 2:14 pm, Kevin Duffey  wrote:
> You still can't? That is crazy.. wonder why... one thing I still don't get
> is why there is no built in conversion of money. If I can buy a UK app,
> can't it list it in USD or at least show both so I can know how much it will
> cost.. and then allow me to buy it? I've not bought an app yet, just from
> what I've read it sounds like that is an issue. If not, I retract this
> statement.
>
>
>
> On Mon, Apr 5, 2010 at 7:06 AM, Brill Pappin  wrote:
> > Does anyone have any idea when Google plans to allow us Canadian
> > developers to actually create accounts for selling apps in the Market?
>
> > I am completely flabbergasted that I can't set that up. Major FAIL.
>
> > - Brill Pappin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe, reply using "remove me" as the subject.

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


Re: [android-developers] browse via usb

2010-04-05 Thread ~ TreKing
On Sun, Apr 4, 2010 at 2:23 AM, justin  wrote:

> Is their a way to browse/edit the phones files via usb?


If you mean the files stored locally on the phone, no, you can't browse or
edit these.

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

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

Re: [android-developers] Problem with the Spinner in ListView Activity

2010-04-05 Thread ~ TreKing
On Mon, Apr 5, 2010 at 4:43 AM, Nubh  wrote:

> I am trying to invoke a list in spinner can anyone tell me where I am
> having trouble.
>

What, exactly, is the problem you're having?

Also, you probably shouldn't call your class "Spinner" - this is just going
to lead to confusion.

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

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Customizing ExpandableListView

2010-04-05 Thread Walt Armour
I've been fighting with styling on ExpandableListView as well (an area
that could use some improvement in a future release).

The problem with the current implementation is in the selector element
for the group expander.  It can be found in expander_group.xml and
looks like this:

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




The problem is that it lacks a state for empty.  The code and
attributes support it (state_empty) but it isn't defined in here.
Here are the hypothetical (completely untested) steps you could use to
achieve this:

- Grab the existing expander_group.xml and put it into your drawable
directory.
- Modify it to include a section for the empty state with no image.
Something like this:

- Modify your ExpandableListView element and set the group indicator
to be your private expander_group.xml

Let us know how it works out.  For myself, I need even more control so
I'm about to move to the "roll my own" stage.


On Feb 22, 8:35 pm, ls02  wrote:
> setGroupIndicator will set ALL groups indicator. What I need is to
> remove expandable arrow only from those items that have no chidren.
>
> On Feb 22, 8:53 pm, TreKing  wrote:
>
> > On Mon, Feb 22, 2010 at 5:19 PM, ls02  wrote:
> > > How do I remove expandable arrow from some of the items in
> > > ExpandableListView?
>
> > Have you tried the setViewIndicator() function?
>
> > > Also is there way to customize this arrow, move it
> > > to another place in the item?
>
> > Haven't tried it but the documentation has indicatorLeft and indicatorRight
> > xml attributes that are supposed to be for the left and right bounds of the
> > icon.
>
> > ---­--
> > TreKing - Chicago transit tracking app for Android-powered 
> > deviceshttp://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: how to DEBUG build an APK?

2010-04-05 Thread HeHe
thanks and have a nice lunch :)

On Apr 5, 11:55 am, "~ TreKing"  wrote:
> On Mon, Apr 5, 2010 at 12:39 PM, Brill Pappin  wrote:
> > My solution was a little bit of code that checks to see if your running in
> > the emulator or not.
>
> Running in the emulator IS NOT the same as running in debug. You can run a
> release APK on the emulator (and you should be for testing any
> configurations you don't have a device for before publishing your app).
>
> And running on a device IS NOT the same as running in release. You can (and
> should) run a debug APK on a real device while you're developing it.
>
> On Mon, Apr 5, 2010 at 1:31 PM, HeHe  wrote:
> > because there seems to me no way to tell build type of an apk
>
> I'm blown away by your inability or outright refusal to follow the advice
> posted here thus far.
> The easiest and most straightforward way to check for "debug mode" is the
> debuggable attribute in your manifest that has been mentioned about 50 times
> now, which Bob posted a link to so you can check it at run time.
>
> All you have to do is check for that one flag. That's it. You should be
> running in debug mode (i.e., "debuggable=true") about 99% of the time. When
> you're ready to publish your app, it takes about 1 SECOND to switch that
> flag to "false" before you rebuild your app for a release version. This is
> so easy and happens so infrequently, that it really, truly IS NOT WORTH THE
> EFFORT you're spending trying to find some clever trick to determine this
> automatically.
>
> THAT'S IT. Why is that so flipping complicated to understand?
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: launch canceled during runing of application

2010-04-05 Thread Kumar Bibek
> [2010-04-05 11:44:26 - Notepadv2] Failed to upload Notepadv2.apk on
> device 'emulator-5554'
> [2010-04-05 11:44:26 - Notepadv2] java.io.IOException: Unable to
> upload file: timeout

Try again. Simple.
If it happens everytime, try shutting resetting your emulator and
eclipse.

Thanks and Regards,
Kumar Bibek

On Apr 5, 6:26 pm, Muhammad Shair Ali 
wrote:
> [2010-04-05 11:43:21 - Notepadv2] --
> [2010-04-05 11:43:21 - Notepadv2] Android Launch!
> [2010-04-05 11:43:21 - Notepadv2] adb is running normally.
> [2010-04-05 11:43:21 - Notepadv2] Performing
> com.android.demo.notepad2.Notepadv2 activity launch
> [2010-04-05 11:43:21 - Notepadv2] Automatic Target Mode: launching new
> emulator with compatible AVD 'SecondTarget'
> [2010-04-05 11:43:21 - Notepadv2] Launching a new emulator with
> Virtual Device 'SecondTarget'
> [2010-04-05 11:43:31 - Notepadv2] New emulator found: emulator-5554
> [2010-04-05 11:43:31 - Notepadv2] Waiting for HOME
> ('android.process.acore') to be launched...
> [2010-04-05 11:44:19 - Notepadv2] WARNING: Application does not
> specify an API level requirement!
> [2010-04-05 11:44:19 - Notepadv2] Device API version is 7 (Android
> 2.1)
> [2010-04-05 11:44:19 - Notepadv2] HOME is up on device 'emulator-5554'
> [2010-04-05 11:44:19 - Notepadv2] Uploading Notepadv2.apk onto device
> 'emulator-5554'
> [2010-04-05 11:44:26 - Notepadv2] Failed to upload Notepadv2.apk on
> device 'emulator-5554'
> [2010-04-05 11:44:26 - Notepadv2] java.io.IOException: Unable to
> upload file: timeout
> [2010-04-05 11:44:26 - Notepadv2] Launch canceled!

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Splash Screen Appears only once

2010-04-05 Thread Kumar Bibek
Yup, onStart is a good option. :)

Thanks and Regards,
Kumar Bibek

On Apr 5, 11:56 pm, Yahel  wrote:
> You can try to put your splash screen logic in the onStart method.
>
> It is triggered everytime your activity is shown.
>
> Yahel
>
> On 5 avr, 12:04, kavitha  wrote:
>
> > Hi Kumar,,
>
> > I guess Dror520 is doing same,,even i am using same,,,
>
> > But OnCreate() method is not called at all upon relaunch of application
>
> > that is the problem,how to solve it?
>
> > Thanks
> > Kavitha
>
> > On Mon, Apr 5, 2010 at 1:25 PM, Kumar Bibek  wrote:
> > > Well, you cannot run two Activities simultaneously. When one Activity
> > > is in the foreground, the next activity will be in paused/stop state.
> > > Only when your foreground activity finishes, you background activity
> > > will come alive.
>
> > > Show your splash screen for 5 secs. Then start the next activity and
> > > finish your flash activity.
>
> > > Thanks and Regards,
> > > Kumar Bibek
>
> > > On Apr 5, 6:13 am, Dror520  wrote:
> > > > thanks for your answer! i figured it out it was actually my fault ...
> > > > lol
> > > > now i'm having a hard time figuring out how to start the mydeals
> > > > activity but keep the splashscreen activity showing on the screen and
> > > > when the mydeals activity is done move to that activity ...
> > > > thanks!
>
> > > > On Apr 3, 7:34 am, Kumar Bibek  wrote:
>
> > > > > Make sure that your onCreate method is called, and it is not resumed.
> > > > > You can put some Log statements to check this in your onCreate method.
>
> > > > > Thanks and Regards,
> > > > > Kumar Bibek
>
> > > > > On Mar 30, 3:45 am, Dror520  wrote:
>
> > > > > > Hey, i made a splash screen:
> > > > > > public class SplashScreen extends Activity  {
>
> > > > > >         protected int splashTime = 2000;
>
> > > > > >         @Override
> > > > > >         public void onCreate(Bundle savedInstanceState) {
> > > > > >           super.onCreate(savedInstanceState);
> > > > > >           setContentView(R.layout.splash);
> > > > > >           new Handler().postDelayed(new Runnable(){
> > > > > >               @Override
> > > > > >               public void run() {
> > > > > >                   Intent intent = new Intent(SplashScreen.this,
> > > MyDeals.class);
> > > > > >                   SplashScreen.this.startActivity(intent);
> > > > > >               SplashScreen.this.finish();
> > > > > >                 }
>
> > > > > >           }, splashTime);
>
> > > > > >         }
>
> > > > > > }
>
> > > > > > AndroidMenifiest:
>
> > > > > >  > > > > >                   android:theme="@android:style/Theme.NoTitleBar"
> > > > > >                   android:screenOrientation="portrait">
> > > > > >                 
> > > > > >                 
> > > > > >                   > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > >             
> > > > > >             
> > > > > >          > > > > >                   android:theme="@android:style/Theme.NoTitleBar"
> > > > > >                   android:screenOrientation="portrait">
> > > > > >                 
> > > > > >                  > > android:name="android.intent.action.DEFAULT"/>
> > > > > >                  > > > > > android:name="android.intent.catagory.VIEW"
> > > /
>
> > > > > >             
> > > > > >         
>
> > > > > > it works the first time i put it on the device. but then when i kill
> > > > > > the application so the application can start over i don't see it. it
> > > > > > goes straight to the next activity MyDeals.
>
> > > > > > can you please help me thanks!
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > > To unsubscribe, reply using "remove me" as the subject.

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


  1   2   3   4   >