[android-developers] Re: Porting JMF - Native source code to android based

2009-01-22 Thread Dave Sparks

We do not support native code on Android at this time, but we have
plans to publish a native SDK soon.

On Jan 22, 2:03 am, MRK  wrote:
> I am creating an Android application which uses the JMF (SIP, RTP,
> JAIN). So i downloaded the JMF source code for some adhoc change to my
> application.
>
> The basic questions
> 1. How will it behave the "native files - C/C++/header" in JMF source
> files(downloaded)? because android is based on java right now.
> 2. Is there any complete different way to porting/doing the SIP, RTP
> working in android?
>
> Note : The downloaded JMF source code is not direct under from sun.com
> (this) site but thread start from this forum only.
>
> Is there any link from sun.com(this) site for JMF source code?
>
> Any suggestion and comment about this?
>
> Advance 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] Unique ID for contacts?

2009-01-22 Thread sukumar

hi,

Does android contacts support unique identifier for each contact
Item ?. I mean, some way of identifiing uniqueness of each contacts.
My application needs to track all modified contacts,if android
contacts support unique Identification, I can use these Ids than
storing entire contact Item.Please let me know for any better
suggestions of keeping track of modified contacts. Thanks.

-Sukumar.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Not allowing horizontal spacing between grid view item

2009-01-22 Thread Romain Guy

Use android:stretchMode to stretch the width or to disable stretching.

On Thu, Jan 22, 2009 at 10:19 PM, jj  wrote:
>
> Not allowing horizontal spacing between grid view item,
>
> I am using following for grid view , I don't want horizontal space
> between grid view item.
>android:horizontalSpacing="0px"
>android:verticalSpacing="0px"
>
> by using this there no vertical space between item. But the horizontal
> space remain  there, how to
> eliminate this horizontal space between grid items.
>
> will anybody suggest.
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Not allowing horizontal spacing between grid view item

2009-01-22 Thread jj

Not allowing horizontal spacing between grid view item,

I am using following for grid view , I don't want horizontal space
between grid view item.
android:horizontalSpacing="0px"
android:verticalSpacing="0px"

by using this there no vertical space between item. But the horizontal
space remain  there, how to
eliminate this horizontal space between grid items.

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

2009-01-22 Thread ena

it can't work...anything else...
On Jan 23, 12:54 am, Scynasty  wrote:
> ScrollView.setVerticalScrollBarEnabled(false);
>
> On Jan 22, 1:15 pm, ena  wrote:
>
> > Hi All,
> > Im using scrollview...i need to disable scrolling bar on particular
> > time ..is it possible??plz help me out...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to remove the image displayed in ImageView

2009-01-22 Thread cindy

I could not find any API to remove the image displayed in ImageVIew.
Help!

On Jan 22, 11:16 am, cindy  wrote:
> Hi
>
> How can we removed image displayed in Imageview?
>
> Thanks!
>
> Cindy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ACTION_CALL without permission

2009-01-22 Thread Massimo Carli
Hi all,
I'm making some test about Android permission with a very simple
application. I'm launching this Intent

 Uri callUri = Uri.parse("tel://12345678");
 Intent callIntent = new Intent(Intent.ACTION_CALL,callUri);
 callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(callIntent);

and using this configuration file


http://schemas.android.com/apk/res/android";
   android:versionCode="1"
   android:versionName="1.0.0"
package="it.libroandroid.cap03.call">
 
 
 
 
 
 
 
 


without any permission.

The problem is the phone dial the number but I didn't set any
permission. I know something has changed in last release but.

Where's the trouble?

Thankx
Max

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

2009-01-22 Thread Honest

I created one application to start application After particular time
interval. My application working fine but it does not do particular
work
after particular time. I mean it does not used to start automatically
after the time which i set in AlaramManager.

My coding and xml file is as below.


The following is the code of my mail class which extends Activity. I
have done following thing in it

try
{




Intent intent = new Intent(Lalu_Android.this, OneShotAlarm.class);
PendingIntent sender = PendingIntent.getBroadcast(Lalu_Android.this,
0, intent, 0);

// We want the alarm to go off 30 seconds from now.
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(System.currentTimeMillis());
calendar.add(Calendar.SECOND, 15);

// Schedule the alarm!
AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
tv.setText("Successful");
setContentView(tv);
//finish();

}
catch(Exception e)
{

tv.setText("Url not called successfully");
setContentView(tv);

}


The following is a class which extends BroadcastReceiver . Which
should
be invoked after particular time.

public class OneShotAlarm extends BroadcastReceiver
{
//Lalu_Android la=new Lalu_Android();
CallUrl ca;

//TextView tv = new TextView();
public void onReceive(Context context, Intent intent)
{
System.out.println("In one shot alaram");
Toast.makeText(context, "Alaram", Toast.LENGTH_SHORT).show();
ca=new CallUrl();
//Toast.makeText(context, R.string.one_shot_received,
Toast.LENGTH_SHORT).show();
/*Intent smsIntent = new Intent();
smsIntent.setClassName("com.android.hello",
"com.android.hello.SendSms");
//startActivity(smsIntent);
//la. */
}
}


The CallUrl is a another class which i want to execute its method
onCreate() when application starts by AlaramManager so i create the
object of it in the OneShotAlaram.


The following my xml file.




http://schemas.android.com/apk/res/android";
package="com.saltriver.android"
android:versionCode="1"
android:versionName="1.0.0">














I am in the big trouble i hope some one will reply me as early as
possible.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to know which element of my list is selected when long click

2009-01-22 Thread Romain Guy

That's the reason:
http://android-developers.blogspot.com/2008/12/touch-mode.html

And to get the selected item, use the following:

@Override
public boolean onContextItemSelected(MenuItem item) {
final AdapterView.AdapterContextMenuInfo info =
(AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
}

The info object contains everything you need.

On Thu, Jan 22, 2009 at 8:26 PM, Anonymous Anonymous
 wrote:
> Hi All,
>
> Me too have the same problem,whenever i uses getSelectedItemId(), its
> returning some weired value,however getcount() and other things works fine.
>
> Thanks
> Steve
>
> On Fri, Jan 23, 2009 at 6:05 AM, polo777  wrote:
>>
>> Hi everyone,
>>
>> I have a list using a customized BaseAdapter. When one element of the
>> list is hit during a long time, a contextual menu appears. I want to
>> use this one to delete or edit the selected item but I don't know how
>> to get id or anything else that could help me.
>>
>> I tried getListView.getSelectedItem() thinking that it will give me
>> the object returned by the method getItem(int position) inherited in
>> my customized BaseAdapter. I got null.
>> When I tried getSelectedItemId(), I got -1.
>>
>> Does someone have a solution?
>>
>> Thanks a lot,
>> Polo
>>
>>
>
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: String resource issue

2009-01-22 Thread Mahesh Vaghela
If you want to keep them out side of an apk, than you need to set up for a
webserver from where you can download your string file as and when you need.

On Thu, Jan 22, 2009 at 12:08 PM, 川何  wrote:

>
> Hi, All
>
> In Android, resources are packaged into each ".apk" file. Now I'd like
> separate string resources with other resources - put all string resources
> into a single file which I can easily replace. Does anybody know about this?
>
> Thanks
>
> >
>


-- 
Mahesh Vaghela
IndiaNic Infotech Ltd.|
www.indianic.com

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



[android-developers] Re: Help required: ListView

2009-01-22 Thread Don Rules
But How do i get the focus to the button.. Which API should be called?

On Fri, Jan 23, 2009 at 1:22 AM, Scynasty  wrote:

>
> you could try running an onitemselected with a setfocus to the button
> so when an item is selected focus is placed to the button.
>
> On Jan 22, 2:17 am, Don Rules  wrote:
> > Hi Folks,
> > I have a list view, in which each of the list item contain a TextView and
> a
> > button.
> > when i click the button, the list item is deleted. Anyways i have
> > implemented this feature.
> >
> > I have a problem in focusing the button..
> >
> > I dont want the listitem to get selected. rather i need the button to be
> > focused, while i scroll through list items.
> >
> > Can anyone please help on this..
> >
> > Thanks in advance,
> >
> > Regards,
> > Don..
> >
>

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



[android-developers] Re: How to know which element of my list is selected when long click

2009-01-22 Thread Anonymous Anonymous
Hi All,

Me too have the same problem,whenever i uses getSelectedItemId(), its
returning some weired value,however getcount() and other things works fine.

Thanks
Steve

On Fri, Jan 23, 2009 at 6:05 AM, polo777  wrote:

>
> Hi everyone,
>
> I have a list using a customized BaseAdapter. When one element of the
> list is hit during a long time, a contextual menu appears. I want to
> use this one to delete or edit the selected item but I don't know how
> to get id or anything else that could help me.
>
> I tried getListView.getSelectedItem() thinking that it will give me
> the object returned by the method getItem(int position) inherited in
> my customized BaseAdapter. I got null.
> When I tried getSelectedItemId(), I got -1.
>
> Does someone have a solution?
>
> Thanks a lot,
> Polo
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: pls Help me to restore my dial on the desktop for my G1.

2009-01-22 Thread Anonymous Anonymous
Open the main menu - drag the dial(long press- then drag)to same way to
desktop :)

On Fri, Jan 23, 2009 at 9:01 AM, mawei1981  wrote:

>
> Hi,All
>
> pls  Help me to restore my dial on the desktop for my G1.
>
> last night I show the drag the icon function on my G1 to my wife,
> then, she has very interested on that, so she drag the dial,as fast,
> she drag the dial to the bottom of the screen, the dial has been red,
> then the dial missed.
>
>
> how can I restore the dial to my G1 desktop?
>
> who can tell me?
> >
>

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



[android-developers] Re: Background Repeat in relativeLayout

2009-01-22 Thread Romain Guy

Use a BitmapDrawable and its tiling feature.

On Thu, Jan 22, 2009 at 6:07 AM, galina.sebast...@gmail.com
 wrote:
>
> Hi all !
>
> There is an repeating background attribute like in css for layout on
> Android API ?
>
> Sorry for my english ... i'am a frenchy ...
>
> Thx for your help !
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: android.intent.category.LAUNCHER

2009-01-22 Thread Romain Guy

It is not supported by the current Home application right now.

On Thu, Jan 22, 2009 at 10:12 AM, CE2009  wrote:
>
> When defining the manifest file, can you create/define your own new
> category, instead of using the LAUNCHER category? Let's say, I am an
> enterprise developer and I would like to create a separate view to
> store my apps rather than bundle them together in the common pool.
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: Using android 1.5 emulator, the sdcard can't be mounted

2009-01-22 Thread Jean-Baptiste Queru

This would be more appropriate for the android-framework mailing list,
since there hasn't been any official SDK released from the cupcake
source tree yet.

Thanks,
JBQ

On Thu, Jan 22, 2009 at 1:21 AM, tony  wrote:
>
> Command sequence is:
>
> 1.make sdk first, and
> cd /home/tony/android-sdk_eng.tony_linux-x86/tools/
> 2../emulator  -image ../platforms/android-1.5/images/system.img -
> kernel ../platforms/android-1.5/images/kernel-qemu -ramdisk ../
> platforms/android-1.5/images/ramdisk.img -data ../platforms/
> android-1.5/images/userdata.img -sdcard /home/motorola/sdcard.img -
> skindir ../platforms/android-1.5/skins -skin HVGA
>
> 3. ./adb push NOTICE.txt /sdcard
> failed to copy 'NOTICE.txt' to '/sdcard/NOTICE.txt': Read-only file
> system
>
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, 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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] pls Help me to restore my dial on the desktop for my G1.

2009-01-22 Thread mawei1981

Hi,All

pls  Help me to restore my dial on the desktop for my G1.

last night I show the drag the icon function on my G1 to my wife,
then, she has very interested on that, so she drag the dial,as fast,
she drag the dial to the bottom of the screen, the dial has been red,
then the dial missed.


how can I restore the dial to my G1 desktop?

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



[android-developers] Re: why Android disable wlan interface when receive EVENT_SUPPLICANT_DISCONNECT

2009-01-22 Thread Jean-Baptiste Queru

This would probably be more appropriate for the android-platform
mailing list (if you want to actively contribute changes) or
android-discuss (if you just want to passively discuss), since it
isn't directly related to developing applications with the SDK.

Thanks,
JBQ

On Wed, Jan 21, 2009 at 10:27 PM, sky_walker  wrote:
>
> Hi,
>
> From Android source, WifiStateTracker will resetInterface when
> disconnect with current AP. In resetInterface, disableInterface will
> be called.
>
> It is strange, because when device disconnect from current AP, most
> cases will rescan APs and continue to other AP for data communication
> or monitor last network. But if the wlan interface is disabled, if you
> are using standard wireless extension methods to operation wlan card,
> ioctl will fail because network down. Is it expected? Or my
> understanding is wrong?
>
> Best Regards
> Walker
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, 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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Preferences not saved *sometimes*

2009-01-22 Thread Sundog

Trying to post this again... Can you save your preferences when they
change, instead of upon exit?

On Jan 22, 2:04 pm, A T  wrote:
> I'm having this problem with one of my apps where some people are reporting
> that their preferences are not being saved when they close and resume the
> app. The preferences theyre talking about happen to be actual Preferences
> (i.e. the built-in preferences manager for an activity). They say they're
> not doing anything special, just exiting the app and going back to it. Does
> anyone know why the prefs wouldn't be saved for only this select few people?
> I'm at a complete loss.
> Thank you

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



[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-22 Thread Andrew Hedges

I'm one of the "design guys" Mark was talking about.

I found scant documentation on Apple's site about -webkit-focus-ring-
color, but from what I saw and my own tests on an Android emulator and
Safari, it appears that this is not a writable property, but an OS-
level constant that is applied to elements with focus. Here's the page
I found that calls this a constant and not a property:

http://developer.apple.com/documentation/appleapplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html

For example, I tried the following:


1


In Android, the focus ring remained orange. In Safari, it remained
blue.

Mark, not sure what this means for us. Maybe you can hack the OS and
set this value to transparent? C'mon, you can do magic, right? :-)

On Jan 23, 2:07 am, Mark Murphy  wrote:
> Fred Grott(shareme) wrote:
> > Found it :) I hope
>
> > how about webkit-focus-ring-color
>
> > Does that sound correct Mark?
>
> > I mean there would have to be say an admin.css with webkit in Android
> > setting this to orange correct?
>
> > Thus, the question is can we override it?
>
> In my case, I'd settle for just disabling it. Based on researching that
> constant you cited, I thought maybe the :focus CSS pseudo-class would
> allow me to disable the focus ring, but apparently not.
>
> Of course, my CSS-fu is weak.
>
> I'll pass this info on to the design guys and see if it gives them any help.
>
> Thanks!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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

2009-01-22 Thread Coder J

well... i found some basic code with ServerSocket and Socket... and it
works fine on emulation with port redirection but as far as the t-
mobile network with the g1 it seems to be firewalled.  Though not sure
about the wifi, you can probably work through that.

On Jan 22, 4:24 pm, Michael  wrote:
> > I want to setup a TCP connection between two devices running the
> > Android OS. Is this possible, If so, please tell me how to accomplish
> > it.
>
> Just like you would with Java on any other platform.  Perhaps pick up
> a Java networking book?

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

2009-01-22 Thread Sundog

Can you save the preferences at the point when they change instead of
on exit?

On Jan 22, 2:04 pm, A T  wrote:
> I'm having this problem with one of my apps where some people are reporting
> that their preferences are not being saved when they close and resume the
> app. The preferences theyre talking about happen to be actual Preferences
> (i.e. the built-in preferences manager for an activity). They say they're
> not doing anything special, just exiting the app and going back to it. Does
> anyone know why the prefs wouldn't be saved for only this select few people?
> I'm at a complete loss.
> Thank you

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



[android-developers] android.intent.category.LAUNCHER

2009-01-22 Thread CE2009

When defining the manifest file, can you create/define your own new
category, instead of using the LAUNCHER category? Let's say, I am an
enterprise developer and I would like to create a separate view to
store my apps rather than bundle them together in the common pool.

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



[android-developers] how do i set bank information for receiving 70% rev?

2009-01-22 Thread kom

I am about to pay $25 and set up my android market account by google
checkout/credit card. can anyone tell me what i need after that?

my google checkout account does not have us/uk bank info. i do not
even have us/uk bank account... how do i set up my market account to
receive 70% rev of my charged apps? what sort of options available???

Cheers

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] peer not authenticated while executing DefaultHttpClient httpclient

2009-01-22 Thread srinivas reddy

Hi All,

Iam able to connect to http sites and some https sites using

DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("url");
httpclient.execute(httppost)

But getting this Exception while accessing some https sites.

Exception in thread "main" javax.net.ssl.SSLPeerUnverifiedException:

peer not authenticated
   at
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates

(SSLSessionImpl.java:345)

   at org.apache.http.conn.ssl.AbstractVerifier.verify
(AbstractVerifier.java:129)
   at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket
(SSLSocketFactory.java:322)
   at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:129)
   at org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:164)
   at org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:119)
   at org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:347)
   at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:555)
   at org.apache.http.impl.client.AbstractHttpClient.execute

(AbstractHttpClient.java:487)

   at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:465)

   at Tripit.main(Tripit.java:151)

Please suggest.

Thanks in advance.

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



[android-developers] Emulator's /dev/ttyS0

2009-01-22 Thread coolio

Hi,

When I adb shell to emulator, I can see /dev/ttyS0. In my program, I
can open this device but the device is not mapped to my host /dev/
ttyS0. Can anybody tell me how to add or map emulator's serial port,
such /dev/ttySx to the serial port on host?

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] start Activity without Manifest

2009-01-22 Thread AlexKar

Hi!
I create my Network provider and I want to start Activity from it.
Is it necessary to create separate Activity with Manifest and then
launch it using startActivity?
Can I launch unregistered Activity directly from my provider?

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



[android-developers] How to know which element of my list is selected when long click

2009-01-22 Thread polo777

Hi everyone,

I have a list using a customized BaseAdapter. When one element of the
list is hit during a long time, a contextual menu appears. I want to
use this one to delete or edit the selected item but I don't know how
to get id or anything else that could help me.

I tried getListView.getSelectedItem() thinking that it will give me
the object returned by the method getItem(int position) inherited in
my customized BaseAdapter. I got null.
When I tried getSelectedItemId(), I got -1.

Does someone have a solution?

Thanks a lot,
Polo

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



[android-developers] How to create blur surface from android.view.Surface?

2009-01-22 Thread Max R.

Hi, how do I create blur surface from android.view.Surface?

I found this flag but there is no constructors to pass this.
 FX_SURFACE_BLUR

Max R.

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

2009-01-22 Thread Bamboo

I'm currently having problems displaying camera images as thumbnails.
I use the following code when I am taking the camera photo...

String filename = timeStampFormat.format(new Date());
ContentValues values = new ContentValues();
values.put(Media.TITLE, filename);
values.put(Media.DESCRIPTION, "new Image");
values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg");

//insert file onto SD card
imageUri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);
camDemo = new ImageCaptureCallback( getContentResolver
().openOutputStream(imageUri));

This Image capture callback code is as follows...

public void onPictureTaken(byte[] data, Camera camera) {
try {
filoutputStream.write(data);
//pic.compress(Bitmap.CompressFormat.JPEG, 40, 
filoutputStream);
filoutputStream.flush();
filoutputStream.close();
} catch(Exception ex) {
ex.printStackTrace();
}
}

When I try to display the full size image it works ok but when I try
to display as a thumbnail I get the following exception...

Uri uri = Uri.withAppendedPath
(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "72");

Can anyone help?

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



[android-developers] Discover bluetooth devices

2009-01-22 Thread porzino

Hi,

I know there isn't bluetooth API in 1.0 SDK, but I have a doubt.
I need to know the visible bluetooth devices. That is, I only need do
a scan of the bluetooth devices and save the diferent addresses. I
don't need connect to them.

I have read here

http://groups.google.com/group/android-beginners/browse_thread/thread/8ae8f68a4be98811/7c5099aa48bc2cef?lnk=gst&q=bluetooth

that API "only expose functionality to use/control headsets (audio
profile)."

And now my question: It is possible do this functionality? Can I find
which bluetooth devices are visible?

Thanks in advance

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



[android-developers] Re: two threads, the main closes the DB but the second is still running and need to use the DB!

2009-01-22 Thread polo777

Dianne,

Thanks a lot for your answers. Really helpful!

Another question, just to make sure I understood what you meant:

> The main UI thread isn't destroyed.  Well, it is destroyed when the process
> is killed, and at that point it doesn't matter because the entire process is
> gone.

It means that any secondary threads is living within the process and
it is not a "process" by itself?

Thx,
polo

On Jan 21, 5:16 pm, Dianne Hackborn  wrote:
> On Wed, Jan 21, 2009 at 5:01 PM, polo777  wrote:
> > 1 - What would be the life cycle of this class singleton if the user
> > sends the application (and so the activity that was displayed) in the
> > background and the activity is destroyed for instance?
> > 2 - How to make sure this singleton will stay alive as long as the
> > secondary thread needs?
>
> If you want to have work happening while in the background without the
> system thinking you are just a background app and available to be killed,
> you need to start a Service and have the work associated with that.
>
> > 3 - I still don't really understand what happens when the secondary
> > thread posts runnable toward the UI main thread that has been
> > destroyed or sent to the background!
>
> The main UI thread isn't destroyed.  Well, it is destroyed when the process
> is killed, and at that point it doesn't matter because the entire process is
> gone.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.

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



[android-developers] Re: Why Android?

2009-01-22 Thread Massimo Carli
Hi all,
I have experience in J2ME and Symbian developing too. I'm also a Java
programmer since 1995. At the moment I think Android is the best mobile
platform for me because it's relatively easy to develop and permits a great
integration with the device. I just have a doubt. Is maybe Android a
"developer oriented" platform or can be also a "user oriented platform". I
think that, at the moment, iPhone has something more but I hope that Android
devices will arrive at the same level or more from the user experience point
of view.

Bye
Max

2009/1/22 Fred Grott(shareme) 

>
> John, mine is different in places.
>
> I come from the bowels of j2me and Symbian development..even have
> source code ina dev tol that Nokia, IBM, SonyEricsson, and etc use..
>
> My outlook is that its too expensive to port among mobile platforms
> both in time and money.
>
> Thus, my new direction is to develop mobile hybrid apps that use web
> code asa base but behave like native apps and can access GPS and etc
> using javascript..
>
> The current framework I use is QuickConnect but I also play with
> PhoneGap..
>
> The reason I choose Android first is lower  dev out of pocket expenses
> and almost free-reign on app approval
>
>
>
>
>
> On Jan 22, 9:18 am, Jon Smith  wrote:
> > Thanks a lot,
> >
> > Can anyone else add to this? Any input would be appreciated.
> >
> > On 16 Jan, 20:46, "hmmm"  wrote:
> >
> > > I did some programming in Symbian and now I'm doing someAndroidstuff
> and
> > > for meAndroidis much easier in comparison with Symbian.
> > > This is because Symbian has some real weird limitations and some real
> > > annoying stuff to remember like those push/pop stack things and no
> > > exceptions in constructors and that TDes family that's all real weird
> whileAndroidis just plain Java. Even though sometimesAndroidis a little hard
> > > as for example with that awful lot of methods in a base View class
> still I
> > > think it's easier to bake up something inAndroidthan in Symbian.
> > > Never did Windows Mobile though should be relatively easy too.
> >
> > > - Original Message -
> > > From: 
> > > To: "AndroidDevelopers" 
> > > Sent: Friday, January 16, 2009 7:19 PM
> > > Subject: [android-developers] WhyAndroid?
> >
> > > > I need to develop a network security auditing application for the use
> > > > on a Smartphone. As this is for my final year dissertation project, I
> > > > need some primary research and it would be really good to get
> feedback
> > > > on why I should chooseAndroidover any other Smartphone operating
> > > > system from people that have developed for other operating systems,
> or
> > > > from an official spokesperson.
> >
> > > > Thanks in advance
> >
> > > > Jon
> >
> > > > I apologise if this is double posted, but my first post did not show.
> >
>

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

2009-01-22 Thread Massimo Carli
2009/1/22 Timothy DeWees 

>
> Hello,
>
> I have an application with a preferences pane that allows you to show/
> hide tabs.  I've walked through the code below and I AM passing the
> right index to the setDefaultTab(int) method; however, when the screen
> renders the tab is NOT selected.
>
> Any idea?
>
>   SharedPreferences settings = getSharedPreferences
> (Preferences.PREFS_NAME, 0);
>int index = 0;
>int bookIndex = 0;
>int cdIndex = 0;
>int gameIndex = 0;
>int movieIndex = 0;
>int loanIndex = 0;
>String defaultTab = "";
>TabHost host=getTabHost();
>
>if(settings.getBoolean(Preferences.KEY_SHOW_BOOK_TAB,
> true)){
>bookIntent = new Intent(this, movies.class);
>bookIntent.putExtra(MoviesDbAdapter.KEY_MOVIE_TYPE,
> KEY_BOOK);
>host.addTab(host.newTabSpec("one")
>.setIndicator("Book")
>.setContent(bookIntent));
>bookIndex = index;
>index++;
>}
>if(settings.getBoolean(Preferences.KEY_SHOW_CD_TAB, true)) {
>cdIntent = new Intent(this, movies.class);
>cdIntent.putExtra(MoviesDbAdapter.KEY_MOVIE_TYPE, KEY_CD);
>host.addTab(host.newTabSpec("two")
>.setIndicator("CD")
>.setContent(cdIntent));
>cdIndex = index;
>index ++;
>}
>if(settings.getBoolean(Preferences.KEY_SHOW_GAME_TAB, true))
> {
>gameIntent = new Intent(this, movies.class);
>gameIntent.putExtra(MoviesDbAdapter.KEY_MOVIE_TYPE,
> KEY_GAME);
>host.addTab(host.newTabSpec("three")
>.setIndicator("Game")
>.setContent(gameIntent));
>gameIndex = index;
>index ++;
>}
>if(settings.getBoolean(Preferences.KEY_SHOW_MOVIE_TAB,
> true)) {
>movieIntent = new Intent(this, movies.class);
>movieIntent.putExtra(MoviesDbAdapter.KEY_MOVIE_TYPE,
> KEY_MOVIE);
>host.addTab(host.newTabSpec("four")
>.setIndicator("Movie")
>.setContent(movieIntent));
>movieIndex = index;
>index++;
>}
>if(settings.getBoolean(Preferences.KEY_SHOW_LOAN_TAB, true))
> {
>rentalIntent = new Intent(this, Rentals.class);
>host.addTab(host.newTabSpec("five")
>   .setIndicator("Loans")
>.setContent(rentalIntent));
>loanIndex = index;
>}
>//Set default tab index
>defaultTab = settings.getString(Preferences.KEY_DEFAULT_TAB,
> "").toUpperCase();
>if(defaultTab.equals("BOOK")){
>index = bookIndex;
>} else if(defaultTab.equals("CD")){
>index = cdIndex;
>} else if(defaultTab.equals("GAME")){
>index = gameIndex;
>} else if(defaultTab.equals("MOVIE")){
>index = movieIndex;
>} else if(defaultTab.equals("LOAN")){
>index = loanIndex;
>} else {
>index = 0;
>}
>setDefaultTab(index);
> >
>

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



[android-developers] Re: Why Android?

2009-01-22 Thread Massimo Carli
Hi all,
I have experience in J2ME and Symbian developing too. I'm also a Java
programmer since 1995. At the moment I think Android is the best mobile
platform for me because it's relatively easy to develop and permits a great
integration with the device. I just have a doubt. Is maybe Android a
"developer oriented" platform or can be also a "user oriented platform". I
think that, at the moment, iPhone has something more but I hope that Android
devices will arrive at the same level or more from the user experience point
of view.

Bye
Max

2009/1/22 Jon Smith 

>
> Thanks a lot,
>
> Can anyone else add to this? Any input would be appreciated.
>
> On 16 Jan, 20:46, "hmmm"  wrote:
> > I did some programming in Symbian and now I'm doing someAndroidstuff and
> > for meAndroidis much easier in comparison with Symbian.
> > This is because Symbian has some real weird limitations and some real
> > annoying stuff to remember like those push/pop stack things and no
> > exceptions in constructors and that TDes family that's all real weird
> whileAndroidis just plain Java. Even though sometimesAndroidis a little hard
> > as for example with that awful lot of methods in a base View class still
> I
> > think it's easier to bake up something inAndroidthan in Symbian.
> > Never did Windows Mobile though should be relatively easy too.
> >
> > - Original Message -
> > From: 
> > To: "AndroidDevelopers" 
> > Sent: Friday, January 16, 2009 7:19 PM
> > Subject: [android-developers] WhyAndroid?
> >
> > > I need to develop a network security auditing application for the use
> > > on a Smartphone. As this is for my final year dissertation project, I
> > > need some primary research and it would be really good to get feedback
> > > on why I should chooseAndroidover any other Smartphone operating
> > > system from people that have developed for other operating systems, or
> > > from an official spokesperson.
> >
> > > Thanks in advance
> >
> > > Jon
> >
> > > I apologise if this is double posted, but my first post did not show.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Search & Dine (Restaurant search Android app by Mofirst)

2009-01-22 Thread nitichandra ingle
*Search & Dine*

Intro:

Search & Dine alleviates Searching food anywhere across United States of
America. Suppose you are travelling, amidst you get hungry and look for a
place to eat then Search & Dine can locate the nearest restaurant for you.
It is a handy application when you are planning a trip or if you are at a
new place or to just explore the restaurants nearby.



More:

You can search by either entering the zip code or restaurant name. Favorite
Food items can be selected from a wide range of cuisines displayed on the
screen. Instantly after the search click, the address as well as the contact
number is displayed and you can make a call to the desired restaurant.* * The
map enhances the search by displaying the options of Satellite, Map or
Street view adding spice to the Food search



About:
 Mofirst designed the product for Google Android and launched it with the
Rising Sun on 19th Jan all over the market. This is their first product for
Google Android and it is just the beginning from the committed team of IIT
graduates as they have a lot to offer in the coming future.

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



[android-developers] Background Repeat in relativeLayout

2009-01-22 Thread galina.sebast...@gmail.com

Hi all !

There is an repeating background attribute like in css for layout on
Android API ?

Sorry for my english ... i'am a frenchy ...

Thx for your help !

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



[android-developers] Re: Search & Dine (Restaurant search Android app by Mofirst)

2009-01-22 Thread nitichandra ingle
you can even watch the video of the application on youtube by searching for
it the link is

http://in.youtube.com/watch?v=a9b-i9qWuCg

On Thu, Jan 22, 2009 at 7:51 PM, nitichandra ingle wrote:

> *Search & Dine*
>
> Intro:
>
> Search & Dine alleviates Searching food anywhere across United States of
> America. Suppose you are travelling, amidst you get hungry and look for a
> place to eat then Search & Dine can locate the nearest restaurant for you.
> It is a handy application when you are planning a trip or if you are at a
> new place or to just explore the restaurants nearby.
>
>
>
> More:
>
> You can search by either entering the zip code or restaurant name. Favorite
> Food items can be selected from a wide range of cuisines displayed on the
> screen. Instantly after the search click, the address as well as the contact
> number is displayed and you can make a call to the desired restaurant.* * The
> map enhances the search by displaying the options of Satellite, Map or
> Street view adding spice to the Food search
>
>
>
> About:
>  Mofirst designed the product for Google Android and launched it with the
> Rising Sun on 19th Jan all over the market. This is their first product
> for Google Android and it is just the beginning from the committed team of
> IIT graduates as they have a lot to offer in the coming future.
>

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



[android-developers] ACTION_CALL works without permission

2009-01-22 Thread Massimo Carli
Hi all,
I'm makeing some test about Android permission with a very simple
application. I'm launching this Intent

   Uri callUri = Uri.parse("tel://12345678");
   Intent callIntent = new Intent(Intent.ACTION_CALL,callUri);
   callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   startActivity(callIntent);

and using this configuration file


http://schemas.android.com/apk/res/android";
 android:versionCode="1"
 android:versionName="1.0.0"
package="it.libroandroid.cap03.call">
   
   
   
   
   
   
   
   


without any permission.

The problem is the phone dial the number but I didn't set any
permission. I know something has changed in last release but.

Where's the trouble?

Thankx
Max

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

2009-01-22 Thread Massimo Carli

Hi all,
I'm makeing some test about Android permission with a very simple
application. I'm launching this Intent

   Uri callUri = Uri.parse("tel://12345678");
   Intent callIntent = new Intent(Intent.ACTION_CALL,callUri);
   callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   startActivity(callIntent);

and using this configuration file


http://schemas.android.com/apk/res/android";
 android:versionCode="1"
 android:versionName="1.0.0"
package="it.libroandroid.cap03.call">
   
   
   
   
   
   
   
   


without any permission.

The problem is the phone dial the number but I didn't set any
permission. I know something has changed in last release but.

Where's the trouble?

Thankx
Max

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

2009-01-22 Thread MRK

I am creating an Android application which uses the JMF (SIP, RTP,
JAIN). So i downloaded the JMF source code for some adhoc change to my
application.

The basic questions
1. How will it behave the "native files - C/C++/header" in JMF source
files(downloaded)? because android is based on java right now.
2. Is there any complete different way to porting/doing the SIP, RTP
working in android?

Note : The downloaded JMF source code is not direct under from sun.com
(this) site but thread start from this forum only.

Is there any link from sun.com(this) site for JMF source code?

Any suggestion and comment about this?

Advance 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] ACTION_CALL works without permission

2009-01-22 Thread massimocarli

Hi all,
I'm makeing some test about Android permission with a very simple
application. I'm launching this Intent

Uri callUri = Uri.parse("tel://12345678");
Intent callIntent = new Intent(Intent.ACTION_CALL,callUri);
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(callIntent);

and using this configuration file


http://schemas.android.com/apk/res/android";
  android:versionCode="1"
  android:versionName="1.0.0"
package="it.libroandroid.cap03.call">










without any permission.

The problem is the phone dial the number but I didn't set any
permission. I know something has changed in last release but.

Where's the trouble?

Thankx
Max


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

2009-01-22 Thread Bamboo

I am currently calling the dialer from within my activity using the
following code

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.withAppendedPath(Phones.CONTENT_URI, contactId));
startActivity(intent);

is it possible to return to my activity once the call has ended?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using android 1.5 emulator, the sdcard can't be mounted

2009-01-22 Thread tony

Command sequence is:

1.make sdk first, and
cd /home/tony/android-sdk_eng.tony_linux-x86/tools/
2../emulator  -image ../platforms/android-1.5/images/system.img -
kernel ../platforms/android-1.5/images/kernel-qemu -ramdisk ../
platforms/android-1.5/images/ramdisk.img -data ../platforms/
android-1.5/images/userdata.img -sdcard /home/motorola/sdcard.img -
skindir ../platforms/android-1.5/skins -skin HVGA

3. ./adb push NOTICE.txt /sdcard
failed to copy 'NOTICE.txt' to '/sdcard/NOTICE.txt': Read-only file
system


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



[android-developers] Re: Emit a signal

2009-01-22 Thread simpcl

I think that Nico want to send a signal "clicked" instead of pressing
the button manually. Am I right?

If it is, I want to know how to implement that.

BRs,
simpcl

On Jan 22, 2:00 am, Gavin Aiken  wrote:
> Hey,
> Cool, I misunderstood, I think this is what you're looking for;
>
> http://code.google.com/android/reference/android/view/MotionEvent.html
>
> Let me know if that helps!
>
> On Wed, Jan 21, 2009 at 8:50 AM, Nico  wrote:
>
> > Actually, I have a onClickedListener on a button.
> > I need to simulate a click on this button from another object.
>
> > On 21 jan, 09:35, Gavin Aiken  wrote:
> > > Hey Nico,
> > > Can you clarify the question, you want an action to be performed after a
> > > button is clicked? As in with a button listener? Or is your request more
> > > complex than this?
>
> > > Cheers,
>
> > > Gav
>
> > > On Wed, Jan 21, 2009 at 8:31 AM, Nico  wrote:
>
> > > > Hi,
> > > > I need to emit a signal "clicked" to a button. How can I do it ?
> > > > Thx.

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



[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-22 Thread Bismark

Try

sudo apt-get install libreadline5-dev

instead of lib32readline5-dev

Bismark

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

2009-01-22 Thread 川何
Hi, All

In Android, resources are packaged into each ".apk" file. Now I'd like
separate string resources with other resources - put all string resources
into a single file which I can easily replace. Does anybody know about this?

Thanks

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



[android-developers] why Android disable wlan interface when receive EVENT_SUPPLICANT_DISCONNECT

2009-01-22 Thread sky_walker

Hi,

>From Android source, WifiStateTracker will resetInterface when
disconnect with current AP. In resetInterface, disableInterface will
be called.

It is strange, because when device disconnect from current AP, most
cases will rescan APs and continue to other AP for data communication
or monitor last network. But if the wlan interface is disabled, if you
are using standard wireless extension methods to operation wlan card,
ioctl will fail because network down. Is it expected? Or my
understanding is wrong?

Best Regards
Walker

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-01-22 Thread tony

I met same issue.

On 1月21日, 下午11时12分, moontain  wrote:
> Hi,
>
>   I checked out cupcake branch yesterday and made the full build and sdk
> successfully, and I also built the ADT 0.9 with the command
> cupcake/development/tools/eclipse/scripts/build_server.sh on another Linux
> box. Then I updated the ADT 0.9 and set new SDK on Eclipse.
>Then I created a simple Android project Test with Android Project Wizard,
> the Eclipse created project files except the R.java and then reported
> following errors.
> Seems the resources are  not correctly parsed.
>
> Errors:
>
> [2009-01-21 15:07:32 - Test] W/ResourceType(  267): Unable to get buffer of
> resource asset file
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> resource identifier found for attribute 'orientation' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> resource identifier found for attribute 'layout_width' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> resource identifier found for attribute 'layout_height' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> resource identifier found for attribute 'layout_width' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> resource identifier found for attribute 'layout_height' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> resource identifier found for attribute 'text' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> resource identifier found for attribute 'versionCode' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> resource identifier found for attribute 'versionName' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> resource identifier found for attribute 'icon' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> resource identifier found for attribute 'label' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> resource identifier found for attribute 'name' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> resource identifier found for attribute 'label' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERROR No
> resource identifier found for attribute 'name' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERROR No
> resource identifier found for attribute 'name' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:15: ERROR No
> resource identifier found for attribute 'minSdkVersion' in package 'android'
> [2009-01-21 15:07:32 - Test] W/ResourceType(  268): Unable to get buffer of
> resource asset file
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> resource identifier found for attribute 'orientation' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> resource identifier found for attribute 'layout_width' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> resource identifier found for attribute 'layout_height' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> resource identifier found for attribute 'layout_width' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> resource identifier found for attribute 'layout_height' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> resource identifier found for attribute 'text' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> resource identifier found for attribute 'versionCode' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> resource identifier found for attribute 'versionName' in package 'android'
> [2009-01-21 15:07:32 - Test]
> /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> resource identifier found for attrib

[android-developers] Re: Does Android Browser support "right menu - open with" ?

2009-01-22 Thread Guolong

thanks, I'll take a try...

On Jan 23, 3:28 am, Scynasty  wrote:
> there is a way to run a two finger click like the one on macs.
>
> if you run an if statement in ontouchevent
>
> if (event.getSize > .6) {
>
> }
>
> this will get the size of the touch to the screen. placing two fingers
> on the screen makes the screen see one big finger even if the fingers
> are not touching. most single finger clicks are around .3 for their
> size while double finger is around .8 so it is almost impossible to
> run this if statement with one finger.
>
> On Jan 22, 3:16 am, Guolong  wrote:
>
> > Hello,
>
> > I want to implement the following scenario:
>
> > when user browses a web page and "right-click" a link, then user can
> > choose to open the link with a different Application (except Browser).
>
> > Is it possible in 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
-~--~~~~--~~--~--~---



[android-developers] Re: Does Android Browser support "right menu - open with" ?

2009-01-22 Thread Guolong

Thanks you all, guys...
In my scenario, the link is just a common HTML page. User could choose
to open the link with another application.
So copy the link to the clipboard could work. Then user paste the link
to the application for input.
I just wonder are there some more user-friendly solution (e.g. "right
menu - open with application").


On Jan 22, 9:59 pm, Mike Reed  wrote:
> If you long-press on a link, the browser brings up a menu of options.
> If that isn't sufficient, can you explain in more detail the scenario
> you'd like to support? What is the link to? Is it sufficient that you
> can "copy" the link to the clipboard?
>
> On Thu, Jan 22, 2009 at 3:16 AM, Guolong  wrote:
>
> > Hello,
>
> > I want to implement the following scenario:
>
> > when user browses a web page and "right-click" a link, then user can
> > choose to open the link with a different Application (except Browser).
>
> > Is it possible in 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
-~--~~~~--~~--~--~---



[android-developers] How to get the UTC bias from TimeZone information?

2009-01-22 Thread yukinoba

to dear all Android developers,

I need to know the UTC bias of my phone to correct the UTC time
information I got from a site. I have read earlier posts and already
found the solution to get TimeZone information from the
"System.currentTimeMillis();" method. However, I need to translate the
TimeZone (as like, "Asia/Taipei") to the UTC bias that it has to be
(as like, "UTC+8" or other formats).

Does anyone know the actual API solution? I have surveyed
android.util.TimeUtils and found nothing to do this.

The worst solution may I have is to build a "TimeZone/UTC" database
table to translate this...

Best regards,
Nicholas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: FloatBuffer.put() bug...

2009-01-22 Thread Patrick

As a standalone app, it might be difficult, since the problem does not
seem to occur if we look at content of the buffer through java code.
But it does have a problem if openGL tries to access it to render, so
to get the bug requires a lot of code around it.

To get the bug to repro, in the API demos, in Cube.java :

- Remove line 75.
mVertexBuffer.put(vertices);

- After the call to mVertexBuffer.position(0), add the following
code :

for (int i = 0; i < vertices.length; i ++)
mVertexBuffer.put(vertices[i]);

Essentially adding vert data one entry at a time, instead of in one
shot.

You'll see the "cube" displayed is not a cube at all. The verts are
messed up. But how it's messed up is different each time you run it.

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



[android-developers] Re: How to re-install & sign android built-in applications

2009-01-22 Thread Dianne Hackborn
Anything that requires root access to install an application is in no way
how Android is designed to work.

First you really need to separate developer restrictions from user
restrictions.  Whether or not a phone allows root access is ultimately a
decision of the manufacturer, but generally for Android our preference is
for users to have that kind of control of their phone.

For what applications can do, however, yes we do have a lot of control over
them, and that is very deliberate and not going to change.  Giving the user
trust that some random app they download from the market is not going to
wreak havoc with their device is a basic goal of Android, and we think it is
key to having a strong, robust, and open application environment.

On Thu, Jan 22, 2009 at 2:09 AM, Marcio Alexandroni  wrote:

>  >> I thought part of the point of the AOSP was that you could use those
> apps as bases for your own development. (I can go digging for more
> website/marketing/etc quotes if you really want, but..)
>
>  Ok, perhaps we should move this discussion to android-discuss but as it
> started and continued here...
>
>
>
> What it seems is that **Android** is based exactly on this idea but device
> manufacturers don't want developers to do it, so if it does not happen that
> a manufacturer sells an open device like dev phone to people in general,
> Android will continue being a very good idea. Not that you can't jailbreak
> your device, I did it and it works fine, but users in general won't do it.
>
>
>
> I've been working with PalmOS and Windows Mobile for years and I still feel
> uncomfortable with the manu security issues on the OS and surprised with the
> "you can't". In these operating systems, it's up to the user to decide what
> is going to happen with his device and the worst case if a terrible
> developer does something mad, you can always hard reset the device and you
> are up and running again.
>
>
>
> I hope the future versions bring us your President's statement "Yes, we
> can" (do what we developers want to do).
>
>
>
> Marcio Alexandroni.
>
>
>  --
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Disconnect
> *Sent:* Wednesday, January 21, 2009 18:08
> *To:* android-developers@googlegroups.com
> *Subject:* [android-developers] Re: How to re-install & sign android
> built-in applications
>
>
>
> I don't understand why taking the AOSP launcher, for example, and modifying
> it is "simply not correct" but writing one from scratch is..?
>
> I thought part of the point of the AOSP was that you could use those apps
> as bases for your own development. (I can go digging for more
> website/marketing/etc quotes if you really want, but..)
>
>  On Wed, Jan 21, 2009 at 3:04 PM, Romain Guy  wrote:
>
>
> Replacing a core application is achieved using intent filters. This is
> how you can replace Home with your own application or replace Browser
> with your own web browser, et.
>
>
> On Wed, Jan 21, 2009 at 11:58 AM, Disconnect 
> wrote:
> > I thought one of the core tenants of Android was that developers could
> > write, and end users could install, apps that replaced the default apps.
> > (Such as k9 and k9sms.)
> >
> > Is this not, in fact, true? (And please don't try to claim that sms/mms
> > isn't a core feature of a mobile phone OS. And both of those projects
> are,
> > from the start, forks of the AOSP applications.)
> >
> > Looking at the Android page (http://code.google.com/android/) I see:
> >
> > Any app on the mobile device can be replaced or extended -- even core
> > components such as the dialer or home.
> >
> > ..the dialer has already been hashed over (at best, you can make
> > non-emergency calls, but you cannot in fact "replace or extend" the
> dialer
> > completely.) Are you now saying that the entire statement is false?
> >
> > On Wed, Jan 21, 2009 at 2:41 PM, Dianne Hackborn 
> > wrote:
> >>
> >> Yes in this case probably what is desired is changing the package name,
> >> though that wasn't explicitly requested.  But in Android that is how you
> >> install an alternative version of an app -- by installing a -different-
> app
> >> with the same public capabilities (handling the same intents etc) as the
> >> built-in app.  Then the user is free to decide when and where they want
> to
> >> use that new app, if at all.
> >>
> >> For the desire to just install a custom version of a built-in app that
> has
> >> the same name, and is thus treated as a new version, of the built-in
> app,
> >> the basic answer is:
> >>
> >> - In the current platform, it is not possible to install an UPDATE (key
> >> word) to a built-in application in to the data partition; updates can
> only
> >> be done by replacing the app in /system.
> >> - In Cupcake we will have this facility, HOWEVER:
> >>   1. You still must be able to sign the app with the same certificate as
> >> the version in the system partition.  If you can't, you can't upda

[android-developers] Re: P2P Android

2009-01-22 Thread jtaylor

In August this was on the Android Developers Blog. I haven't heard any
more on it though.

"One of our top priorities after the first devices ship is to develop
a device-to-device (and possibly device-to-server) RPC mechanism that
is fast, reliable, and protective of developers and users alike."
http://android-developers.blogspot.com/search?q=rpc

- Juan T.

On Jan 17, 7:55 am, Tez  wrote:
> Hi,
>
> I want to establish a p2p connection between 2 android devices. Is
> this possible. If yes, how can i do it?
>
> Cheers,
> Earlence
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to re-install & sign android built-in applications

2009-01-22 Thread Dianne Hackborn
You just have an application with the same activities etc that support the
same actions.  Then the system will let the user pick your app when it is
appropriate.

On Thu, Jan 22, 2009 at 4:55 PM, Anonymous Anonymous <
firewallbr...@googlemail.com> wrote:

> Hi Romain,
>
> How this can be achieved using intent filter? Can you please show an
> example assuming IM.apk?
>
> Thanks in Advance
> Steve
>
>
> On Thu, Jan 22, 2009 at 1:34 AM, Romain Guy  wrote:
>
>>
>> Replacing a core application is achieved using intent filters. This is
>> how you can replace Home with your own application or replace Browser
>> with your own web browser, et.
>>
>> On Wed, Jan 21, 2009 at 11:58 AM, Disconnect 
>> wrote:
>> > I thought one of the core tenants of Android was that developers could
>> > write, and end users could install, apps that replaced the default apps.
>> > (Such as k9 and k9sms.)
>> >
>> > Is this not, in fact, true? (And please don't try to claim that sms/mms
>> > isn't a core feature of a mobile phone OS. And both of those projects
>> are,
>> > from the start, forks of the AOSP applications.)
>> >
>> > Looking at the Android page (http://code.google.com/android/) I see:
>> >
>> > Any app on the mobile device can be replaced or extended -- even core
>> > components such as the dialer or home.
>> >
>> > ..the dialer has already been hashed over (at best, you can make
>> > non-emergency calls, but you cannot in fact "replace or extend" the
>> dialer
>> > completely.) Are you now saying that the entire statement is false?
>> >
>> > On Wed, Jan 21, 2009 at 2:41 PM, Dianne Hackborn 
>> > wrote:
>> >>
>> >> Yes in this case probably what is desired is changing the package name,
>> >> though that wasn't explicitly requested.  But in Android that is how
>> you
>> >> install an alternative version of an app -- by installing a -different-
>> app
>> >> with the same public capabilities (handling the same intents etc) as
>> the
>> >> built-in app.  Then the user is free to decide when and where they want
>> to
>> >> use that new app, if at all.
>> >>
>> >> For the desire to just install a custom version of a built-in app that
>> has
>> >> the same name, and is thus treated as a new version, of the built-in
>> app,
>> >> the basic answer is:
>> >>
>> >> - In the current platform, it is not possible to install an UPDATE (key
>> >> word) to a built-in application in to the data partition; updates can
>> only
>> >> be done by replacing the app in /system.
>> >> - In Cupcake we will have this facility, HOWEVER:
>> >>   1. You still must be able to sign the app with the same certificate
>> as
>> >> the version in the system partition.  If you can't, you can't update
>> it.
>> >> Only the original author of an application can create new versions of
>> their
>> >> own applications.  You won't be able to do this with any of the
>> built-in
>> >> apps, because HTC and Google own the various certificates.
>> >>   2. It simply is not correct to install a your own update to one of
>> the
>> >> system apps (contacts, calendar, etc) because those are part of the
>> open
>> >> source platform and the company who made the phone you are installing
>> it on
>> >> could have customized that app in significant ways.  Your "update"
>> could
>> >> actually be a regression, or completely incompatible with how the
>> built-in
>> >> app stores its data.
>> >>
>> >>
>> >>
>> >> On Wed, Jan 21, 2009 at 9:42 AM, Disconnect 
>> >> wrote:
>> >>>
>> >>> ..android-platform covers building apps with the sdk?  Thats new.
>> >>>
>> >>> I think he's looking for info on changing package names so that he can
>> >>> replace the default apps. (I don't have that info handy, sorry..)
>> >>>
>> >>> On Wed, Jan 21, 2009 at 12:14 PM, Andrew Stadler 
>> >>> wrote:
>> 
>>  Wrong list.  Please see android-platform, which covers topics such as
>>  this.
>> 
>>  http://source.android.com/discuss for more information.
>> 
>> 
>>  On Tue, Jan 20, 2009 at 12:24 AM, Gerald  wrote:
>>  >
>>  > Hi,
>>  > I want to customize some built-in applications on android, for
>> example
>>  > Launcher or Contacts, etc.
>>  > I've downloaded the source code and compile it by eclipse
>>  > successfully.
>>  > But when I tried to run it, a signing error comes:
>>  > [2009-01-20 16:17:27 - Launcher] Installing Launcher.apk...
>>  > [2009-01-20 16:17:35 - Launcher] Application already exists.
>>  > Attempting to re-install instead...
>>  > [2009-01-20 16:17:43 - Launcher] Re-installation failed due to
>>  > different application signatures.
>>  > [2009-01-20 16:17:43 - Launcher] You must perform a full uninstall
>> of
>>  > the application. WARNING: This will remove the application data!
>>  > [2009-01-20 16:17:43 - Launcher] Please execute 'adb uninstall
>>  > com.android.launcher' in a shell.
>>  >
>>  > I followed above instruction: adb uninstall com.android.launcher,
>> but
>>  > it

[android-developers] Re: How to re-install & sign android built-in applications

2009-01-22 Thread Anonymous Anonymous
Hi Romain,

How this can be achieved using intent filter? Can you please show an example
assuming IM.apk?

Thanks in Advance
Steve

On Thu, Jan 22, 2009 at 1:34 AM, Romain Guy  wrote:

>
> Replacing a core application is achieved using intent filters. This is
> how you can replace Home with your own application or replace Browser
> with your own web browser, et.
>
> On Wed, Jan 21, 2009 at 11:58 AM, Disconnect 
> wrote:
> > I thought one of the core tenants of Android was that developers could
> > write, and end users could install, apps that replaced the default apps.
> > (Such as k9 and k9sms.)
> >
> > Is this not, in fact, true? (And please don't try to claim that sms/mms
> > isn't a core feature of a mobile phone OS. And both of those projects
> are,
> > from the start, forks of the AOSP applications.)
> >
> > Looking at the Android page (http://code.google.com/android/) I see:
> >
> > Any app on the mobile device can be replaced or extended -- even core
> > components such as the dialer or home.
> >
> > ..the dialer has already been hashed over (at best, you can make
> > non-emergency calls, but you cannot in fact "replace or extend" the
> dialer
> > completely.) Are you now saying that the entire statement is false?
> >
> > On Wed, Jan 21, 2009 at 2:41 PM, Dianne Hackborn 
> > wrote:
> >>
> >> Yes in this case probably what is desired is changing the package name,
> >> though that wasn't explicitly requested.  But in Android that is how you
> >> install an alternative version of an app -- by installing a -different-
> app
> >> with the same public capabilities (handling the same intents etc) as the
> >> built-in app.  Then the user is free to decide when and where they want
> to
> >> use that new app, if at all.
> >>
> >> For the desire to just install a custom version of a built-in app that
> has
> >> the same name, and is thus treated as a new version, of the built-in
> app,
> >> the basic answer is:
> >>
> >> - In the current platform, it is not possible to install an UPDATE (key
> >> word) to a built-in application in to the data partition; updates can
> only
> >> be done by replacing the app in /system.
> >> - In Cupcake we will have this facility, HOWEVER:
> >>   1. You still must be able to sign the app with the same certificate as
> >> the version in the system partition.  If you can't, you can't update it.
> >> Only the original author of an application can create new versions of
> their
> >> own applications.  You won't be able to do this with any of the built-in
> >> apps, because HTC and Google own the various certificates.
> >>   2. It simply is not correct to install a your own update to one of the
> >> system apps (contacts, calendar, etc) because those are part of the open
> >> source platform and the company who made the phone you are installing it
> on
> >> could have customized that app in significant ways.  Your "update" could
> >> actually be a regression, or completely incompatible with how the
> built-in
> >> app stores its data.
> >>
> >>
> >>
> >> On Wed, Jan 21, 2009 at 9:42 AM, Disconnect 
> >> wrote:
> >>>
> >>> ..android-platform covers building apps with the sdk?  Thats new.
> >>>
> >>> I think he's looking for info on changing package names so that he can
> >>> replace the default apps. (I don't have that info handy, sorry..)
> >>>
> >>> On Wed, Jan 21, 2009 at 12:14 PM, Andrew Stadler 
> >>> wrote:
> 
>  Wrong list.  Please see android-platform, which covers topics such as
>  this.
> 
>  http://source.android.com/discuss for more information.
> 
> 
>  On Tue, Jan 20, 2009 at 12:24 AM, Gerald  wrote:
>  >
>  > Hi,
>  > I want to customize some built-in applications on android, for
> example
>  > Launcher or Contacts, etc.
>  > I've downloaded the source code and compile it by eclipse
>  > successfully.
>  > But when I tried to run it, a signing error comes:
>  > [2009-01-20 16:17:27 - Launcher] Installing Launcher.apk...
>  > [2009-01-20 16:17:35 - Launcher] Application already exists.
>  > Attempting to re-install instead...
>  > [2009-01-20 16:17:43 - Launcher] Re-installation failed due to
>  > different application signatures.
>  > [2009-01-20 16:17:43 - Launcher] You must perform a full uninstall
> of
>  > the application. WARNING: This will remove the application data!
>  > [2009-01-20 16:17:43 - Launcher] Please execute 'adb uninstall
>  > com.android.launcher' in a shell.
>  >
>  > I followed above instruction: adb uninstall com.android.launcher,
> but
>  > it failed (Can't remove the application).
>  > The official document only provides "How to sign a new application",
>  > but it's not usable in my case.
>  >
>  > Does anyone know how to do it?
>  > Thank you very much
>  >
>  > Gerald
>  >
>  > >
>  >
> 
> 
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Dianne Hackborn
> >> Android framework engineer
> >> 

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Dianne Hackborn
On Thu, Jan 22, 2009 at 4:36 PM, Stoyan Damov wrote:

> Hang on - my problem is not related to locking the entire surface, but
> only a part of it, passing a dirty rectangle. Locking the entire
> surface works, locking a part of it doesn't. I would assume that
> lockCanvas(dirtyRect) is widely used in the system but would
> appreciate you confirming that.


Yeah that's what I meant, for example it is used every time we are redrawing
a dirty part of the view hierarchy.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

Well, at least I found that this behavior is not 100% reproducible,
because I wrote that sample app which demonstrates the bug, and it
works as expected :(
My code, and the code in the sample app is pretty much the same, but I
guess I'll have to review it a few more times.

Thanks Romain - that actually helped ;)

Cheers,
Stoyan

On Fri, Jan 23, 2009 at 2:00 AM, Stoyan Damov  wrote:
> On Fri, Jan 23, 2009 at 1:49 AM, Romain Guy  wrote:
>>
>> Try with a longer sleep. If it still doesn't work, could you come up
>> with a small and simple reproducible case that we can run on our side
>> to see what's going? You can also file a bug at
>> code.google.com/p/android/issues.
>
> I put the thread to sleep 5 seconds - same story - I see the events
> logged but nothing is displayed on screen.
> I cannot possibly think of a smaller case than the one I described but
> if that'll help, I'll make the smallest possible app with single
> activity that demonstrates the issue.
>
> Cheers
>

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

2009-01-22 Thread Stoyan Damov

On Fri, Jan 23, 2009 at 1:57 AM, Dianne Hackborn  wrote:
> On Thu, Jan 22, 2009 at 2:40 PM, Stoyan Damov 
> wrote:
>>
>> I wish someone read my post about the
>> surfaceHolder.lockCanvas(dirtyRectangle) post too :)
>
> I read it, but lockCanvas() is used by the system fairly extensively and
> works in those cases.  Without having simple easy to run code that
> demonstrates the problem, there is not much help that can be offered.

Hang on - my problem is not related to locking the entire surface, but
only a part of it, passing a dirty rectangle. Locking the entire
surface works, locking a part of it doesn't. I would assume that
lockCanvas(dirtyRect) is widely used in the system but would
appreciate you confirming that.

Cheers,
Stoyan

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

2009-01-22 Thread Stoyan Damov

On Fri, Jan 23, 2009 at 1:49 AM, Romain Guy  wrote:
>
> Try with a longer sleep. If it still doesn't work, could you come up
> with a small and simple reproducible case that we can run on our side
> to see what's going? You can also file a bug at
> code.google.com/p/android/issues.

I put the thread to sleep 5 seconds - same story - I see the events
logged but nothing is displayed on screen.
I cannot possibly think of a smaller case than the one I described but
if that'll help, I'll make the smallest possible app with single
activity that demonstrates the issue.

Cheers

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

2009-01-22 Thread Torgny

I think it could be possible if you extended res/drawable/
progress_small.xml. Take a look at those inside the git repository.
Not sure, but it's an idea.

On Dec 3 2008, 4:31 am, "Gnanesh Radhakrishnan"
 wrote:
> Hello,
>
> I'm using the circular progress bar in the title of my app. The default
> color provided by the SDK is yellow. Is there any way in which i can change
> my progress bar's color?
>
> Thanks for your time.
>
> Gyan.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Dianne Hackborn
On Thu, Jan 22, 2009 at 2:40 PM, Stoyan Damov wrote:

> I wish someone read my post about the
> surfaceHolder.lockCanvas(dirtyRectangle) post too :)


I read it, but lockCanvas() is used by the system fairly extensively and
works in those cases.  Without having simple easy to run code that
demonstrates the problem, there is not much help that can be offered.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Romain Guy

Try with a longer sleep. If it still doesn't work, could you come up
with a small and simple reproducible case that we can run on our side
to see what's going? You can also file a bug at
code.google.com/p/android/issues.

On Thu, Jan 22, 2009 at 3:46 PM, Stoyan Damov  wrote:
>
> Any ideas?
>
> On Fri, Jan 23, 2009 at 12:40 AM, Stoyan Damov  wrote:
>> Hi Romain,
>>
>> Actually before I posted this I put a SystemClock.sleep(1000) between
>> the 2 calls and it didn't make any difference.
>> But thanks for asking me about this, it seems you guys at Google are
>> paying attention! I wish someone read my post about the
>> surfaceHolder.lockCanvas(dirtyRectangle) post too :)
>>
>> Cheers,
>> Stoyan
>>
>> On Fri, Jan 23, 2009 at 12:37 AM, Romain Guy  wrote:
>>>
 DIALOG 888: about to display: Blah
 // onCreateDialog is NOT called, which is what's expected, the dialog is 
 cached
 DIALOG 888: prepared with message: Blah
 DIALOG 888: dismissed
>>>
>>> How much time is spent between "prepared with message" and
>>> "dismissed."? It looks like you are simply dismissing the dialog
>>> immediately.
>>>
>>> --
>>> Romain Guy
>>> Android framework engineer
>>> romain...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time
>>> to provide private support.  All such questions should be posted on
>>> public forums, where I and others can see and answer them
>>>
>>> >>
>>>
>>
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

Any ideas?

On Fri, Jan 23, 2009 at 12:40 AM, Stoyan Damov  wrote:
> Hi Romain,
>
> Actually before I posted this I put a SystemClock.sleep(1000) between
> the 2 calls and it didn't make any difference.
> But thanks for asking me about this, it seems you guys at Google are
> paying attention! I wish someone read my post about the
> surfaceHolder.lockCanvas(dirtyRectangle) post too :)
>
> Cheers,
> Stoyan
>
> On Fri, Jan 23, 2009 at 12:37 AM, Romain Guy  wrote:
>>
>>> DIALOG 888: about to display: Blah
>>> // onCreateDialog is NOT called, which is what's expected, the dialog is 
>>> cached
>>> DIALOG 888: prepared with message: Blah
>>> DIALOG 888: dismissed
>>
>> How much time is spent between "prepared with message" and
>> "dismissed."? It looks like you are simply dismissing the dialog
>> immediately.
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
>>
>> >>
>>
>

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



[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread Mark Murphy

cindy wrote:
> My application also crashes somtimes when screen oritention change. I
> don't have big image at all.
> Do I need to some special code to handle screen orientation change?

Possibly. By default, your activity is destroyed and recreated when the
screen orientation changes. In theory, your application should handle
this just fine, since it might occur in other cases (e.g., call comes in
and your app is abandoned for an extended period).

I have a series of blog posts on this topic that may help:

http://androidguys.com/?s=rotational+forces

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

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

2009-01-22 Thread Anna PS

Hi

When you get GPS location using getLastKnownLocation, is there a way
to check how old the data is, i.e. when the location was last
updated?

I'm noticing that sometimes my app is giving me an out-of-date
location (usually because the sky is not visible when the app starts)
- it'd be good to warn the user about this.

It's possible to check the age of the data on the iPhone I believe, is
it possible in Android?

thanks!
Anna
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: FloatBuffer.put() bug...

2009-01-22 Thread fadden

On Jan 22, 12:51 pm, Patrick  wrote:
> There seems to be a bug where calling FloatBuffer.put() on a buffer
> create as such :

There are some known problems with the 1.0 implementation, e.g.:

  http://code.google.com/p/android/issues/detail?id=1585

Can you provide a stand-alone class that exercises the problem, with
expected vs. actual output?  (If it's a stand-alone main() we can run
it under a desktop VM and under Dalvik and compare the results.)

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

2009-01-22 Thread Stoyan Damov

Hi Romain,

Actually before I posted this I put a SystemClock.sleep(1000) between
the 2 calls and it didn't make any difference.
But thanks for asking me about this, it seems you guys at Google are
paying attention! I wish someone read my post about the
surfaceHolder.lockCanvas(dirtyRectangle) post too :)

Cheers,
Stoyan

On Fri, Jan 23, 2009 at 12:37 AM, Romain Guy  wrote:
>
>> DIALOG 888: about to display: Blah
>> // onCreateDialog is NOT called, which is what's expected, the dialog is 
>> cached
>> DIALOG 888: prepared with message: Blah
>> DIALOG 888: dismissed
>
> How much time is spent between "prepared with message" and
> "dismissed."? It looks like you are simply dismissing the dialog
> immediately.
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> >
>

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



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Romain Guy

> DIALOG 888: about to display: Blah
> // onCreateDialog is NOT called, which is what's expected, the dialog is 
> cached
> DIALOG 888: prepared with message: Blah
> DIALOG 888: dismissed

How much time is spent between "prepared with message" and
"dismissed."? It looks like you are simply dismissing the dialog
immediately.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: How to switch from Activity to ListActivity ?

2009-01-22 Thread Dianne Hackborn
You don't -have- to derive from ListActivity, that class is just a
convenience for the common case when an activity contains a list.  You can
just use a regular Activity and put a list in its content view hierarchy if
you want.

On Thu, Jan 22, 2009 at 5:02 AM, Nico  wrote:

>
> Hi,
> I have a main class derived from Activity, I need a ListActivity
> (displayed when the "menu" button is clicked).
> How can I proceed. I don't understand how I can switch from one to the
> other ?
> Thx
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: MotionEvent & its historical values

2009-01-22 Thread Dianne Hackborn
offsetLocation() is called as the event is dispatched down the hierarchy.
You calling it one more time isn't going to be a big deal. :)

On Thu, Jan 22, 2009 at 12:19 PM, skink  wrote:

>
>
>
> skink wrote:
> > On 22 Sty, 08:12, skink  wrote:
> > > hi,
> > >
> > > i saw that history is appended
> > > via addBatch method but failed on finding who/where/when/why call it.
> >
> > seems i didn't grep good enough...
> >
> > now i found that addBatch is called from
> > com.android.server.InputDevice but still it doesn't help me much since
> > it's not so easy to figure out the whole context it's called from.
>
> or maybe it would be better, instead of using offsetLocation, use one
> of MotionEvent.obtain() method?
>
> i need to change X/Y coords in event when using GestureDetector and
> dont know whether to offsetLocation() or create new event by obtain()
> ing it.
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix

OK, I found a thread dealing with this option ("Including SQLite
database with application")

On Jan 22, 10:37 pm, Svend Erix  wrote:
> I just got an idea: Anyone know if and how the following could be
> done:
>
> Can I create the SQLite DB (a single SQLite file) and then include it
> in my APK and connect to it? - or is the SQLite DBs in an android
> application shielded from such a solution.
>
> On Jan 22, 1:52 am, Mark Murphy  wrote:
>
> > Svend Erix wrote:
> > > My application may consist og 100Kb code and 800 Kb Database content.
> > > If I include a datafile with the 800Kb data and import it into an
> > > SQLite database under the initial run of the applcation, I cannot
> > > delete the data file afterwards and my application will take up 800 Kb
> > > unnecessarily.
>
> > Technically, if that's 800KB pre-compression, your actual storage
> > footprint will be smaller, since your datafile will be compressed the APK.
>
> > > Is there a better way to include/import my data?
>
> > Not at this time, at least given your following restriction:
>
> > > (I want my application to not depend on being online after download -
> > > so the data should be downloaded with the application.)
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > Android Training in Sweden --http://www.sotrium.com/training.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android:manageSpaceActivity ?

2009-01-22 Thread Dianne Hackborn
It's just the activity component to be launched from the "manage
applications" UI.  There is nothing more to it than that.

On Thu, Jan 22, 2009 at 2:02 PM, deepdr...@googlemail.com <
deepdr...@googlemail.com> wrote:

>
> hi there,
>
> does there anywhere exist an example on how the applications attribute
> "android:manageSpaceActivity" is used? ..
>
> The documentation sounds interesting, but I do not really have an
> exact idea on what this attribute does.
> Or what an Activity named here (that is the attribute value, right?)
> should do or look like.
>
> thanks -
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

Hi guys,

I think there's a bug in either showDialog, dismissDialog or
showing/dismissing a ProgressDialog using these 2 methods, which might
or might not be related to the fact that I'm displaying the dialog
from another thread (marshalled correctly via runOnUiThread).

Here's what I do:

I have a UI thread with a SurfaceView, and another thread which is
doing something asynchronously and needs to show progress.
So, let's say I have these methods on my view, which are accessed by
the background thread:

// BEGIN CODE

private static final int PROGRESS_DIALOG_ID = 888;
private String mProgressMessage;

void showProgress(final String message)
{
mProgressMessage = message;
mActivity.runOnUiThread(new Runnable()
{
public final void run()
{
System.out.println("DIALOG " + PROGRESS_DIALOG_ID + ":
about to display: " + message);
mActivity.showDialog(PROGRESS_DIALOG_ID);
}
});
}

and

void hideProgress()
{
mActivity.runOnUiThread(new Runnable()
{
public final void run()
{
mActivity.dismissDialog(PROGRESS_DIALOG_ID);
System.out.println("DIALOG " + PROGRESS_DIALOG_ID + ": 
dismissed");
}
});
}

Here's the implementation of onCreate/onPrepareDialog in my activity:

@Override
protected Dialog onCreateDialog(int id)
{
if (id == PROGRESS_DIALOG_ID)
{
System.out.println("DIALOG " + id + ": onCreateDialog called");

mProgressDialog = new ProgressDialog(this);
// setXxx, setYyy...
mProgressDialog.setMessage(mProgressMessage);

return mProgressDialog;
}
return super.onCreateDialog(id);
}

@Override
protected void onPrepareDialog(int id, Dialog dialog)
{
super.onPrepareDialog(id, dialog);
if (id == PROGRESS_DIALOG_ID)
{
((ProgressDialog)dialog).setMessage(mProgressMessage);
System.out.println("DIALOG " + id + ": prepared with message:
" + mProgressMessage);
}
}

// END CODE

So, in my background thread, I call showProgress("Some message"), do
some work, and then call hideProgress() - this works, and the output
is:

DIALOG 888: about to display: Some message
DIALOG 888: onCreateDialog called
DIALOG 888: prepared with message: Some message
DIALOG 888: dismissed

But most importantly is that the dialog is indeed displayed.

Then, I chose an item from my menu, which makes the background thread
do some more work, and again it calls:
showProgress("Blah"), does some work, and then hideProgress -
according to the log all is good:

DIALOG 888: about to display: Blah
// onCreateDialog is NOT called, which is what's expected, the dialog is cached
DIALOG 888: prepared with message: Blah
DIALOG 888: dismissed

*EXCEPT* that the dialog is *NOT DISPLAYED* at all.

Now, this *IS* a bug and I'm pretty sure it's not mine too. I *know*
that, because even if I create the dialog and then *remove* it, and
then try to show another dialog (newly created, and even with a
different id!) it won't work either.

Has anyone experienced that and does anyone knows if there's a
workaround for this no matter how pervert it might be.

Thanks,
Stoyan

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

2009-01-22 Thread Michael

> Im guessing you'll need a central server with which to relay files
> between. I dont believe phones have unique IPs which you can directly
> access from phone to phone - its been a while since I checked though,
> maybe someone else can confirm this?

If they're on wifi, you can assign them any IP you want.

The original poster needs to provide a lot more information here.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: TCP connections

2009-01-22 Thread Michael

> I want to setup a TCP connection between two devices running the
> Android OS. Is this possible, If so, please tell me how to accomplish
> it.

Just like you would with Java on any other platform.  Perhaps pick up
a Java networking book?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Screen Orientation change performance Question

2009-01-22 Thread cindy

My application also crashes somtimes when screen oritention change. I
don't have big image at all.
Do I need to some special code to handle screen orientation change?

On Jan 22, 1:07 am, blindfold  wrote:
> According to DDMS, my app leaks about 30 KB every time I quit and
> restart it. It may well be that this is caused by context references,
> but so far I have been unable to track it down. I think we desperately
> need some tool or a straightforward method to know exactly *what* is
> leaking *where* from run to run. With a pointer exception one at least
> knows *where* things go wrong, which is a great help, but with these
> context related memory leakage issues I have a very hard time
> isolating the culprits. As a workaround I now still kill my app's
> process in onDestroy() to prevent any leak from building up from run
> to run, but of course that runs against the spirit of Android. There
> is no leaking during a run of my app. So how can one effectively
> pinpoint and debug context related memory leaks that build up from run
> to run?
>
> Thanks!
>
> On Jan 22, 12:59 am, Romain Guy  wrote:
>
> > Hi,
>
> > You can forward them to the next activity using
> > Activity.onRetainNonConfigurationInstance(). You can also keep static
> > references to the drawables if you remove their callbacks in
> > onDestroy(). You can look at Home's source code for an example of the
> > latter or at the source code of Photostream
> > (code.google.com/p/apps-for-android) for an example of the former.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix

1) it is a matter of principle - if we all take up twice as much space
as we needed, it would matter eventually
2) I would like the user to download more applications of this type of
mine :-) Depending on the type of user (and on my succes), the user
may choose to download and use more than ten of these applications

On Jan 22, 10:47 pm, Stoyan Damov  wrote:
> I'm not sure I understand your problem. You have 100K app code and
> 800K initialization data - that's below 1 MB. If the app is worth it I
> don't see any user would complain about your app's size. Most
> (non-trivial) games will be bigger than that.
>
> Cheers,
> Stoyan
>
> On Thu, Jan 22, 2009 at 12:52 AM, Svend Erix  
> wrote:
>
> > My application may consist og 100Kb code and 800 Kb Database content.
> > If I include a datafile with the 800Kb data and import it into an
> > SQLite database under the initial run of the applcation, I cannot
> > delete the data file afterwards and my application will take up 800 Kb
> > unnecessarily.
> > Is there a better way to include/import my data?
> > (I want my application to not depend on being online after download -
> > so the data should be downloaded with the application.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SaxParser with POST to URL

2009-01-22 Thread Mark Hansen

I have an API I'm using that requires me to POST instead of use GET to
submit my credentials before receiving back my XML response.

I've parsed a bunch of various XML services like this, but this is the
first time I've run across having to post to the URL.

Basically they want a username and password parameter submitted as a
post to the URL before the XML is fed back.

Does anyone have a working example, or maybe able to point me in the
right direction?

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



[android-developers] android:manageSpaceActivity ?

2009-01-22 Thread deepdr...@googlemail.com

hi there,

does there anywhere exist an example on how the applications attribute
"android:manageSpaceActivity" is used? ..

The documentation sounds interesting, but I do not really have an
exact idea on what this attribute does.
Or what an Activity named here (that is the attribute value, right?)
should do or look like.

thanks -

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



[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Stoyan Damov

I'm not sure I understand your problem. You have 100K app code and
800K initialization data - that's below 1 MB. If the app is worth it I
don't see any user would complain about your app's size. Most
(non-trivial) games will be bigger than that.

Cheers,
Stoyan

On Thu, Jan 22, 2009 at 12:52 AM, Svend Erix  wrote:
>
> My application may consist og 100Kb code and 800 Kb Database content.
> If I include a datafile with the 800Kb data and import it into an
> SQLite database under the initial run of the applcation, I cannot
> delete the data file afterwards and my application will take up 800 Kb
> unnecessarily.
> Is there a better way to include/import my data?
> (I want my application to not depend on being online after download -
> so the data should be downloaded with the application.)
>
> >
>

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



[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix

I just got an idea: Anyone know if and how the following could be
done:

Can I create the SQLite DB (a single SQLite file) and then include it
in my APK and connect to it? - or is the SQLite DBs in an android
application shielded from such a solution.

On Jan 22, 1:52 am, Mark Murphy  wrote:
> Svend Erix wrote:
> > My application may consist og 100Kb code and 800 Kb Database content.
> > If I include a datafile with the 800Kb data and import it into an
> > SQLite database under the initial run of the applcation, I cannot
> > delete the data file afterwards and my application will take up 800 Kb
> > unnecessarily.
>
> Technically, if that's 800KB pre-compression, your actual storage
> footprint will be smaller, since your datafile will be compressed the APK.
>
> > Is there a better way to include/import my data?
>
> Not at this time, at least given your following restriction:
>
> > (I want my application to not depend on being online after download -
> > so the data should be downloaded with the application.)
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android Training in Sweden --http://www.sotrium.com/training.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix

It is important that the application is fully functioning imeediately
after download. The user should not need to do anything further to use
it - so no second downloads.

On Jan 22, 8:40 pm, "info.sktechnol...@gmail.com"
 wrote:
> Not the best solution, but may save your users some memory:
> Have 2 versions of the software, one with the database and
> one without.  After the database is installed, have the user
> download the new version wothout the database.  You could have a menu
> item in the large application that downloads the smaller one.
>
> On Jan 22, 9:05 am, jsm  wrote:
>
> > Even if you had the import feature, the user would still need to get
> > the 800k data...from somewhere either online or from the device?
>
> > Sorry if I did not understand your problem...
>
> > On Jan 22, 6:59 am, Svend Erix  wrote:
>
> > > Thanks for the clear answer - yes the restriction mentioned is
> > > important to me :-)
>
> > > On Jan 22, 1:52 am, Mark Murphy  wrote:
>
> > > > Svend Erix wrote:
> > > > > My application may consist og 100Kb code and 800 Kb Database content.
> > > > > If I include a datafile with the 800Kb data and import it into an
> > > > > SQLite database under the initial run of the applcation, I cannot
> > > > > delete the data file afterwards and my application will take up 800 Kb
> > > > > unnecessarily.
>
> > > > Technically, if that's 800KB pre-compression, your actual storage
> > > > footprint will be smaller, since your datafile will be compressed the 
> > > > APK.
>
> > > > > Is there a better way to include/import my data?
>
> > > > Not at this time, at least given your following restriction:
>
> > > > > (I want my application to not depend on being online after download -
> > > > > so the data should be downloaded with the application.)
>
> > > > --
> > > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > > Android Training in Sweden --http://www.sotrium.com/training.php-Hide 
> > > > quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Preferences not saved *sometimes*

2009-01-22 Thread A T
I'm having this problem with one of my apps where some people are reporting
that their preferences are not being saved when they close and resume the
app. The preferences theyre talking about happen to be actual Preferences
(i.e. the built-in preferences manager for an activity). They say they're
not doing anything special, just exiting the app and going back to it. Does
anyone know why the prefs wouldn't be saved for only this select few people?
I'm at a complete loss.
Thank you

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



[android-developers] FloatBuffer.put() bug...

2009-01-22 Thread Patrick

There seems to be a bug where calling FloatBuffer.put() on a buffer
create as such :

ByteBuffer bufferVerts = ByteBuffer.allocateDirect(numVerts * 3 * 4);
bufferVerts.order(ByteOrder.nativeOrder());
m_bufferVerts = bufferVerts.asFloatBuffer();
m_bufferVerts.position(0);

does not properly write. Basically, calling :

m_bufferVerts.put(-0.5f);
m_bufferVerts.put(0.5f);
m_bufferVerts.put(0.0f);

does not give a vert at that location. The vert location is random
(Changes each time I run the app), indicating that put did not write
anything, leaving memory to whatever garbage it initially had.

However, calling

m_bufferVerts.put(0, -0.5f);
m_bufferVerts.put(1, 0.5f);
m_bufferVerts.put(2, 0.0f);

works.

I can keep my own position counter, but since FloatBuffer claims to
have one internally, shouldn't those two pieces of code have the same
result?

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

2009-01-22 Thread skink



skink wrote:
> On 22 Sty, 08:12, skink  wrote:
> > hi,
> >
> > i saw that history is appended
> > via addBatch method but failed on finding who/where/when/why call it.
>
> seems i didn't grep good enough...
>
> now i found that addBatch is called from
> com.android.server.InputDevice but still it doesn't help me much since
> it's not so easy to figure out the whole context it's called from.

or maybe it would be better, instead of using offsetLocation, use one
of MotionEvent.obtain() method?

i need to change X/Y coords in event when using GestureDetector and
dont know whether to offsetLocation() or create new event by obtain()
ing it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: disable scrolling

2009-01-22 Thread Scynasty

ScrollView.setVerticalScrollBarEnabled(false);

On Jan 22, 1:15 pm, ena  wrote:
> Hi All,
> Im using scrollview...i need to disable scrolling bar on particular
> time ..is it possible??plz help me out...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Help required: ListView

2009-01-22 Thread Scynasty

you could try running an onitemselected with a setfocus to the button
so when an item is selected focus is placed to the button.

On Jan 22, 2:17 am, Don Rules  wrote:
> Hi Folks,
> I have a list view, in which each of the list item contain a TextView and a
> button.
> when i click the button, the list item is deleted. Anyways i have
> implemented this feature.
>
> I have a problem in focusing the button..
>
> I dont want the listitem to get selected. rather i need the button to be
> focused, while i scroll through list items.
>
> Can anyone please help on this..
>
> Thanks in advance,
>
> Regards,
> Don..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread info.sktechnol...@gmail.com

Not the best solution, but may save your users some memory:
Have 2 versions of the software, one with the database and
one without.  After the database is installed, have the user
download the new version wothout the database.  You could have a menu
item in the large application that downloads the smaller one.

On Jan 22, 9:05 am, jsm  wrote:
> Even if you had the import feature, the user would still need to get
> the 800k data...from somewhere either online or from the device?
>
> Sorry if I did not understand your problem...
>
> On Jan 22, 6:59 am, Svend Erix  wrote:
>
>
>
> > Thanks for the clear answer - yes the restriction mentioned is
> > important to me :-)
>
> > On Jan 22, 1:52 am, Mark Murphy  wrote:
>
> > > Svend Erix wrote:
> > > > My application may consist og 100Kb code and 800 Kb Database content.
> > > > If I include a datafile with the 800Kb data and import it into an
> > > > SQLite database under the initial run of the applcation, I cannot
> > > > delete the data file afterwards and my application will take up 800 Kb
> > > > unnecessarily.
>
> > > Technically, if that's 800KB pre-compression, your actual storage
> > > footprint will be smaller, since your datafile will be compressed the APK.
>
> > > > Is there a better way to include/import my data?
>
> > > Not at this time, at least given your following restriction:
>
> > > > (I want my application to not depend on being online after download -
> > > > so the data should be downloaded with the application.)
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > Android Training in Sweden --http://www.sotrium.com/training.php- Hide 
> > > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: want urgent solution for this

2009-01-22 Thread James Yum

Hi,

Android has good support for creating and manipulating bitmaps. Can't
you create small bitmaps from the original source bitmap? Perhaps
using something like this:

http://code.google.com/android/reference/android/graphics/Bitmap.html#createBitmap(android.graphics.Bitmap,
int, int, int, int, android.graphics.Matrix, boolean)

Or do you really need to create smaller bitmaps? Is it a sprite? I
believe you could draw subsets of the image when drawing it to the
canvas.

Cheers,
James

On Wed, Jan 21, 2009 at 9:56 PM, jalandar  wrote:
>
> I want clip image into small-small square, the ready-made image(e.g.
> from gallery)
> I did lot R/D for this, there is no method or class, I found to clip
> image into square or rect.
>
> Will anybody suggest the solution for this, Its an uregent.
>
> Thank you
> >
>

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



[android-developers] Re: Does Android Browser support "right menu - open with" ?

2009-01-22 Thread Scynasty

there is a way to run a two finger click like the one on macs.

if you run an if statement in ontouchevent

if (event.getSize > .6) {

}

this will get the size of the touch to the screen. placing two fingers
on the screen makes the screen see one big finger even if the fingers
are not touching. most single finger clicks are around .3 for their
size while double finger is around .8 so it is almost impossible to
run this if statement with one finger.

On Jan 22, 3:16 am, Guolong  wrote:
> Hello,
>
> I want to implement the following scenario:
>
> when user browses a web page and "right-click" a link, then user can
> choose to open the link with a different Application (except Browser).
>
> Is it possible in 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
-~--~~~~--~~--~--~---



[android-developers] how to remove the image displayed in ImageView

2009-01-22 Thread cindy

Hi

How can we removed image displayed in Imageview?

Thanks!

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



[android-developers] Re: How do I refer to a string ressource in the array.xml?

2009-01-22 Thread James Yum

Hi,

That looks fine. The problem must be somewhere else. What is the error
you're seeing?

Cheers,
James

On Thu, Jan 22, 2009 at 4:18 AM, code_android_festival_way
 wrote:
>
> Is there a possibility to refer to a string ressource in the
> arrays.xml?
>
> I have tried:
>
>
>@strings/call
>
>
> which I would normally do in a layout file. But it failed. Could
> someonte tell me the right way to do that.
>
> Regards
> >
>

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



[android-developers] Re: How to switch from Activity to ListActivity ?

2009-01-22 Thread Scynasty

you have to create another class which extends listadapter either in
the same java file or a new one.

On Jan 22, 8:02 am, Nico  wrote:
> Hi,
> I have a main class derived from Activity, I need a ListActivity
> (displayed when the "menu" button is clicked).
> How can I proceed. I don't understand how I can switch from one to the
> other ?
> Thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: what is image file format of images taken from camera

2009-01-22 Thread Scynasty

jpeg

On Jan 22, 5:19 am, jalandar  wrote:
> what is image file format of images taken from camera, and images
> provider and images which are displayed in Picture app(android's
> inbuilt app ) anybody clear me in detail.
>
> Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] disable scrolling

2009-01-22 Thread ena

Hi All,
Im using scrollview...i need to disable scrolling bar on particular
time ..is it possible??plz help me out...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MotionEvent & its historical values

2009-01-22 Thread skink



On 22 Sty, 08:12, skink  wrote:
> hi,
>
> i saw that history is appended
> via addBatch method but failed on finding who/where/when/why call it.

seems i didn't grep good enough...

now i found that addBatch is called from
com.android.server.InputDevice but still it doesn't help me much since
it's not so easy to figure out the whole context it's called from.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How secure are the IPC methods?

2009-01-22 Thread Dianne Hackborn
It depends on how paranoid you want to be.  The IPC channels are secure --
they generally use shared memory, but it is only mapped either between the
processes that are communicating or between a single process and the
kernel.  Often though people like to be extra paranoid about passwords, and
now hand them out to other entities (hashed or not) at all.  For example,
all of the Google services give their applications access to a session ID
allowing them to do just the operations they are supposed to and that can be
revoked at any time; they don't get to see your password.

On Thu, Jan 22, 2009 at 7:42 AM, Al Sutton  wrote:

>
> I was spinning some ideas in my brain and started to wonder how secure
> the inter-process communication methods are.
>
> For example; If application A is has data unlocked using a password, and
> application B wants to make use of it, should application B pass to
> application A the password in cleartext via using a ContentProvider
> interface?, should it pass the password as a hash?, should it not use
> ContentProvider and use something else?
>
> Anyone have any thoughts?
>
> Al.
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Query about Content Provider queries...

2009-01-22 Thread A T
Oh, that's not the problem. That will only have to be done once -- the first
time the app is run on a device. The rest of the queries and updates will be
to and from my own database. The updates to the content provider will be
done in the background, and it's ok if the data isn't up to date immediately
upon creation/resuming. The user shouldn't have enough time to see incorrect
data and quit the app before he sees it get updated, but it's ok if the
incorrect data is seen for a brief period.

The thing is, that's what is happening now, but since the queries themselves
take a long time, the user doesn't even get to see the incorrect data right
away!  There is an annoying lag in the program when it is created/resumed,
and THEN it gets updated after another brief lag. If I can get rid of the
initial lag, long updates done in the background are no problem.

I think I have my answer, though. From what you said and with the queries
I'm using, I think it will be faster. Thanks a lot for your reply!

AT

On Thu, Jan 22, 2009 at 12:36 PM, Dianne Hackborn wrote:

> It would be hard to say, it depends very much on what exactly you are
> doing.  In general direct queries on a database are quite fast, but it would
> be hard to say how fast it will be to retrieve all data from an existing
> provider and write it into your own database.
>
>
> On Thu, Jan 22, 2009 at 8:52 AM, A T  wrote:
>
>> So, I'm working on an app that is accessing an existing content provider
>> which holds a significant amount of data. I will be querying and updating
>> this content provider frequently, and it has proven to cause noticeable
>> delays due to the constraints that are required for these queries. I am
>> wondering if it would be quicker to load the data into a local SQLite DB and
>> use that to query/update, then commit the data less frequently (like when
>> the app finishes). I'm hoping that since I can create custom tables and use
>> raw SQL queries, the responses will be faster, and I can do the updating to
>> the actual content provider in the background, when the user won't notice.
>>
>> Yeah, I could just try it rather than asking, but I also want to know if
>> this is good practice for Android. Or maybe I'm thinking the wrong way and
>> this is actually what you're supposed to do in a case like this?
>>
>> ...Also, I'm lazy and I didn't want to do all the work only to find out
>> it's just as slow :P What can I say?
>>
>> Thanks
>>
>>
>>
>>
>> On Thu, Jan 15, 2009 at 6:31 PM, A T  wrote:
>>
>>> You are right about that :)
>>> Yeah, so, in other words, it doesn't sound like a problem I'm going to be
>>> able to solve here and now, for the project I'm working on.
>>>
>>> Ok, no worries. I'm sure I'll figure something out. Thanks again for your
>>> help!
>>>
>>>
>>>
>>>
>>> On Thu, Jan 15, 2009 at 4:18 PM, Mark Murphy wrote:
>>>

 > Ok, I did not realize that. I had made the assumption that they were
 all
 > DB-based.

 Some will be, but I'm under the impression that ContentProvider was
 specifically designed not to force it. For example, some people are
 using
 ContentProvider to serve static Web content to a WebView, which IMHO
 doesn't fit a database pattern terribly well.

 > Anyway, I guess I will have to figure out some other way, then. If
 anyone
 > has any suggestions, I welcome them :)

 I'm sorry if I sounded too harsh in my previous response.

 Given time and effort, you could:

 -- Design a way for ContentProviders to support OPTIONAL additional
 interfaces that provide some of the hooks you seek

 -- Modify the built-in ContentProviders to support those interfaces

 -- Submit both as patches to Android and hope they are approved

 However, the keys are "time", "effort", "OPTIONAL", and "approved", none
 of which might line up with your near-term objectives...

 --
  Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!





>>
>>
>>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
> >
>

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



  1   2   >