[android-developers] Re: XML With Xliff

2009-04-13 Thread Dianne Hackborn
creen and wanted to do it myself > so i took this line: >Connect > at least >%d dots. Try again: > > But i get XML Parsing Error until i erase the entire xliff tag... > Thx for replying. > > > > -- Dianne Hackborn Android framework engineer hack...@android.

[android-developers] Re: Embed Contacts activity

2009-04-13 Thread Dianne Hackborn
embed the activity we own, but I am wondering how the phone app > embeds the activity from contacts? Is there any tricks for that? > > Thanks. > Bin > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I

[android-developers] Re: SDKs & comparison with the iPhone

2009-04-13 Thread Dianne Hackborn
lization changes introduced. The next update isn't out yet. Maybe we'll do better? Will you stop complaining if we do? -- 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 s

[android-developers] Re: Permissions to install other apps...

2009-04-13 Thread Dianne Hackborn
Nothing has been announced yet. On Mon, Apr 13, 2009 at 1:37 PM, tiwana wrote: > > So when will be the cupcake available? > > On Apr 9, 7:06 pm, Dianne Hackborn wrote: > > That's why apps can't install other apps without the user being involved. > I > >

[android-developers] Re: Persistant Variables

2009-04-13 Thread Dianne Hackborn
ever, that each time the phone > > > is rotated, the onCreate method is called and all of my instance > > > variables are reset. Is there any way to make the values of these > > > variables persists? > > > > > Thanks, > > > > > Kirk > > > -- D

[android-developers] Re: Monket testing results in fatal ANR

2009-04-13 Thread Dianne Hackborn
oid.internal.os.ZygoteInit$MethodAndArgsCaller.run > (ZygoteInit.java:739) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) > at dalvik.system.NativeStart.main(Native Method) > > --- > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: plea

[android-developers] Re: How-to start service automatically on system startup and on installation

2009-04-13 Thread Dianne Hackborn
ent définir un service qui se lancerai > > automatiquement au démarrage et/ou lors de l'installation sans pour > > autant passer par une "activity". J'ai beau regarder un peu partout, > > je ne trouve que les fonctions startService et BindService mais qui >

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-13 Thread Dianne Hackborn
e bugs that may have some minor side effects. > > For instance, we changed the minimum size of some widgets in 1.5 that > > may impact on your layouts. > > > > This SDK contains both 1.1 and 1.5, so you should keep compiling your > > applications against Android 1.1 but test the

[android-developers] Re: emulator speed

2009-04-14 Thread Dianne Hackborn
P and my team mates use Vista >> >> On Apr 14, 1:03 pm, "admin.androidsl...@googlemail.com" >> wrote: >> > Why is pc android emulator slower than real device but mac iphone >> > emulator faster than real device? >> > >> > I can understand the latter

[android-developers] Re: su permission denied

2009-04-14 Thread Dianne Hackborn
You can't get root on a regular G1. On Tue, Apr 14, 2009 at 9:30 AM, Jon Webb wrote: > > Any idea why I get permission denied when I run su in adb shell? I've > seen multiple posts here claiming all you have to do is run su, but it > never works for me. Why? > > >

[android-developers] Re: ListAdapter: View.GONE on some element

2009-04-14 Thread Dianne Hackborn
ies (using View.GONE in my getView method). > > The line is erase, but i've still grey line between each record. > > How can I change that? > > Thanks a lot! > > Regards > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-14 Thread Dianne Hackborn
ndr... > > > > Have fun! > > > > Xav > > -- > > Xavier Ducrohet > > Android Engineer, Google. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't hav

[android-developers] Re: emulator speed

2009-04-14 Thread Dianne Hackborn
> > -Original Message- > > > > From: android-developers@googlegroups.com > > > > > > [mailto:android-develop...@googlegroups.com] On Behalf Of > > > > admin.androidsl...@googlemail.com > > > > Sent: 14 April 2009 09:04 > >

[android-developers] Re: SDK 1.5 released - A Couple Questions

2009-04-14 Thread Dianne Hackborn
e been > redesigned. Does the "re" mean they won't be backwards compatible? Or > just new things added? The old APIs still exist and work the same; our goal is to not break any applications using the official SDK (though of course subtle problems can happen so this isn't

[android-developers] Re: onscreen keypad interactions

2009-04-14 Thread Dianne Hackborn
h as we have with layout-land- > keyshidden...such as layout-land-osk? > > - John > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't

[android-developers] Re: Permissions to install other apps...

2009-04-14 Thread Dianne Hackborn
uld not write anything to the system folder. > > > > 2009/4/14 Dianne Hackborn > > > > > Nothing has been announced yet. > > > > > On Mon, Apr 13, 2009 at 1:37 PM, tiwana > wrote: > > > > >> So when will be the cupcake available? &

[android-developers] Re: Permissions to install other apps...

2009-04-14 Thread Dianne Hackborn
, tiwana wrote: > > I am sorry i am not sure if i get it . So are you tryin to say that > one third party app would not be able to install another > app which will run as a separate app but it can add classes to the > existing process > > On Apr 14, 8:39 pm, Dianne Hackbor

[android-developers] Re: Android doesn't support ICC Profile related API?

2009-04-14 Thread Dianne Hackborn
No, and no. On Tue, Apr 14, 2009 at 8:51 PM, freeanderson wrote: > > Android doesn't support ICC(INTERNATIONAL COLOR CONSORTIUM) profile > related API? > > Does Google have a plan? > > > > > -- Dianne Hackborn Android framework engineer hack...@android.c

[android-developers] Re: Place to feedback to Android Engineers?

2009-04-14 Thread Dianne Hackborn
tc-dream-running-on-version-15-aka-cupcake-magic-build/<http://www.codeandroid.org/%0A2009/04/13/htc-dream-running-on-version-15-aka-cupcake-magic-build/> > ) > and is loving the update. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please d

[android-developers] Re: Note on Size of Apps

2009-04-15 Thread Dianne Hackborn
> > with 10 characters takes up 4kb on disk. > > > > I'm not complaining, just curious. Is the built in calculator app that > > shows up in Manage Applications just a shortcut, or whatever, into the > > OS, and the functionality actually resides there? > > >

[android-developers] Re: sendBroadcast() is crashing

2009-04-15 Thread Dianne Hackborn
ontext, Intent intent) >{ > //doing something >} > } > > Please help me.. > > Thanks in advance, > Yogi > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please d

[android-developers] Re: broadcasts as communication path between custom views and activity

2009-04-15 Thread Dianne Hackborn
: > > > > skink wrote(a): > > > > basically, i would like to know whether broadcasts/broadcast receivers > > are lightweight stuff or it involves much processing and i should use > > own interface based listeners. > > bump :) > > any thoughts what is better?

[android-developers] Re: How to sign .apk file with system certificate

2009-04-15 Thread Dianne Hackborn
er to sign my .apk file is the > alias fo the keystore. Does anyone know what the alias is? Or is there > an easier way to do this that I'm missing. I know this not a standard > thing to do, and is perhaps a hack, but I have a client requirement to > meet. Thanks. > >

[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK

2009-04-16 Thread Dianne Hackborn
ay > to do this, please send me the API name and usage. > > Regards > Surendra > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so

[android-developers] Re: where can i get the source code of the command monkey?

2009-04-16 Thread Dianne Hackborn
. > > > example: adb shellmonkey-f . > > > But the command unknown option -f. > > > So I want to get the source code of the commandmonkey, then open > > > this option and rebuild it. > > > > > Regards, > > > Adrian > > > > &g

[android-developers] Re: C\C++ support for application level

2009-04-16 Thread Dianne Hackborn
+?? Is there any way to bypass DVM > to execute a code?? Core android librarys are C\C++ only... > > Regardz, > > Asif > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to p

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-04-16 Thread Dianne Hackborn
ous answer in any way? > > On Mar 20, 10:50 pm, Dianne Hackborn wrote: > > Sorry maybe someone else can help you but I can't; I work on the Android > > platform, I am not that familiar with what is going on with the Google > apps. > > > > On Fri, Mar 20, 20

[android-developers] Re: How to debug the Launcher activity of android in eclipse

2009-04-16 Thread Dianne Hackborn
if you select one and break it (by clicking the > "pause" icon), it should show the stack trace, source file, and line > where execution is at. Breakpoints and whatnot should all work. > > My question is which threads I need to select in order to debug > Launcher Ac

[android-developers] Re: Accessing System Brightness

2009-04-16 Thread Dianne Hackborn
nd sharing a snippet of code on how to do this in Cupcake > using the new API? > > Thanks! > > Stan > > On Apr 8, 3:49 pm, Dianne Hackborn wrote: > > There is a new API to be able to force the screen brightness while your > > window is on-screen. > > > >

[android-developers] Re: Quality of paid applications on the Market...

2009-04-16 Thread Dianne Hackborn
On Thu, Apr 16, 2009 at 6:36 AM, Tom wrote: > Um, 30% seems like a generous cut of app profits. That money isn't going to Google. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time

[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK

2009-04-16 Thread Dianne Hackborn
ay, since I have to have this in my APP. > Is there any workaround for this or any hidden API ? > > Regards > Surendra > > > > On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn wrote: > >> You can't do this. The only way a third party app can install another &g

[android-developers] Re: inject long home key press

2009-04-16 Thread Dianne Hackborn
gt; On Apr 14, 11:23 am, Dan Raaka wrote: > > > > > > Is there a keycode to inject long home key press into a device via > adb > > > > like below ? > > > > > > $ adb shell input keyevent 7# for key '0' > > > > > > -Dan &g

[android-developers] Re: Factory configurable data

2009-04-16 Thread Dianne Hackborn
vantage is that you don't need to recompile your entire > project. > > Thanks in advance. > > Best Regards, > Zhubham > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't

[android-developers] Re: What thread is ViewRoot runs

2009-04-16 Thread Dianne Hackborn
calling the onDraw of the > Activty? > > Thank you. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All s

[android-developers] Re: Straight-forward BroadcastReceiver to open/read file

2009-04-16 Thread Dianne Hackborn
that how I'm supposed to do it? Do I assume the that file manager, > email. or browser app will send the file to my app by sending a file > URI or URL (I'm unclear on the distinction) in the data field of the > intent? To be honest, I'm not sure if I'm even close to the

[android-developers] Re: Question about Android lifecycle

2009-04-16 Thread Dianne Hackborn
e implementation of handleLaunchActivity of > ActivityThread make sure this "The foreground lifetime of an activity > happens between a call to onResume() until a corresponding call to > onPause(). During this time, the activity is in front of all other > activities on scree

[android-developers] Re: attributes for multiple resources in attrs.xml

2009-04-17 Thread Dianne Hackborn
ml, Eclipse > starts to whine: "ERROR Attribute "color" has already been defined" > XML: > > > name="DotMatrix"> > name="color" > format="integer" /> > &

[android-developers] Re: How to access "shared data/settings" across multiple application? ContentProvider or SharedPreferences?

2009-04-17 Thread Dianne Hackborn
you can use > the underlying Context.getSharedPreferences() method to retrieve a > preferences object stored under a specific name." > > What is the differenet between these 2 ? > > Thanks a lot! > > > > -- Dianne Hackborn Android framework engineer hack...@android

[android-developers] Re: Changing background color on a selected listview item

2009-04-17 Thread Dianne Hackborn
/color/... > > > http://schemas.android.com/apk/res/android";> > >android:color="@color/plain_yellow" /> > > > > > > plain_yellow is a color i've defined in /res/values. > > I've tried to assign that selector programatical

[android-developers] Re: Auto launch Service

2009-04-17 Thread Dianne Hackborn
now the steps mainly I have to runing service > automatically when Android starting.and this service will used > sqlite,so it would be great if you could let me know what all > permission short > of thing to take care. > > thanks. > > > > -- Dianne Hackborn Android f

[android-developers] Re: Touch Sensitivity With HTC Dream 1 Device Lacking

2009-04-17 Thread Dianne Hackborn
n any case, I am requesting some > reasonable explanation for this as I know it's not an isolated > incident. > > Google - what can you tell me about this? Also - is there any > recourse to remove such negative feedback from my ratings since this > is the fault of the har

[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK

2009-04-17 Thread Dianne Hackborn
ay, since I have to have this in my APP. > > Is there any workaround for this or any hidden API ? > > > > Regards > > Surendra > > > > On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn >wrote: > > > > > > > > > > > > > Yo

[android-developers] Re: Start a service from Launcher

2009-04-17 Thread Dianne Hackborn
mpany your service, just so users have a better sense for what it is > > they downloaded and what benefit it is providing to them. > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > _The Busy Coder's Guide to Android Development_ Version 2.0 Availabl

[android-developers] Re: How to browse deeper into /data/data/package/app_/

2009-04-17 Thread Dianne Hackborn
7; there, > > the directory is reported to be empty, though I'm sure there must be > > something inside. > > > > app_mycoustomname has the permissions drwxrwx-wx > > app_mycoustomname/mysubdirectory has the permissions drwxrwxrwx > > > > I have the same

[android-developers] Re: memory problems

2009-04-17 Thread Dianne Hackborn
does not > Am I doing something wrong? how can I free this temp memory after I > have used it? > > many 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 pr

[android-developers] Re: Theme.NoDisplay raises RuntimeException

2009-04-17 Thread Dianne Hackborn
ave to do to get rid of this exception? Am I something > missing? > > --- > WARN/WindowManager(577): java.lang.RuntimeException: Binary XML file > line #26: You must supply a layout_height attribute. > > > > -- Dian

[android-developers] Re: Theme.NoDisplay raises RuntimeException

2009-04-17 Thread Dianne Hackborn
But it raises a > java.lang.Runtime Exception! > > I found a workaround: Now I define an own Style with parent > Theme.Dialog and override the attributes which are defined in > Theme.NoDisplay. > However, Theme.NoDisplay should work without Exception, shouldn't it? > > > --

[android-developers] Re: TrackBall an event states: is there always a ACTION_DOWN before ACTION_MOVE

2009-04-18 Thread Dianne Hackborn
all both > for shooting and moving. > The user should be able to move, but not to shoot.. > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won'

[android-developers] Re: Check if a View contains another View

2009-04-18 Thread Dianne Hackborn
plements Runnable { >>>//@Override >>>public void run() { >>>while(true) { >>> if (myLayout.contains(reportAll)) { >>>//Do something >>>} >>>

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Dianne Hackborn
elephonyManager.NETWORK_TYPE_GPRS: >Log.i("CONNECTION", "GPRS"); >break; >case TelephonyManager.NETWORK_TYPE_UMTS: >Log.i("CONNECTION", "UMTS"); >break; >

[android-developers] Re: memory problems

2009-04-18 Thread Dianne Hackborn
After a few calls to this function, it runs out memory > > In C++ I would use delete at the end, and here in java I've been told > > that GC takes care of it, but it seems that it does not > > Am I doing something wrong? how can I free this temp memory after I > > have us

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-20 Thread Dianne Hackborn
need to step back and rethink what you are doing. Also, executing code from the SD card is a security hole for your app, no matter how short a time you have the code there. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me,

[android-developers] Re: Could title bar of activity listen to click event?

2009-04-20 Thread Dianne Hackborn
d any information about how to manipulate the title > bar. > Please kindly give me some advices. > > Thanks in advance. > > Regards > Milton > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to m

[android-developers] Re: Could title bar of activity listen to click event?

2009-04-20 Thread Dianne Hackborn
height issue) > > Thanks again. > > Regards > Milton > > On 4月20日, 下午4時19分, Dianne Hackborn wrote: > This > probably isn't going to be t... > > > On Sun, Apr 19, 2009 at 8:38 PM, milton > wrote: > > > Hi all > > > I w... > > hack...@

[android-developers] Re: As application developers are we allowed to access system properties like ro.config.sync?

2009-04-20 Thread Dianne Hackborn
gt; just to let someone check/un-check auto-sync is bizarre... > > BTW, there are plenty of other things you can do "behind the user's > back" that are just as important that are available (data roaming for > example.) > > Hans > > > -- Dianne Hackbo

[android-developers] Re: android:launchMode?

2009-04-20 Thread Dianne Hackborn
. for memory reasons) then they should be > with the standard behaviour. Even if the system needs to kill the process for memory, they will still return to the previous activity -- it will be re-created with its previous saved state when this is needed. -- Dianne Hackborn Android

[android-developers] Re: Rings Extended obsoleted by new builds?

2009-04-20 Thread Dianne Hackborn
king > for them... that wouldn't seem nice. Perhaps T-Mobile has not pushed > out newer/newest builds to everyone? I'm confused - it's hard to tell > who has what, it seems. > > Thanks, > Rob > > > -- Dianne Hackborn Android framework engineer hack.

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread Dianne Hackborn
ave been unable to find documents on how > to hook our application in, so that it would be called instead of the > standard G1 screen lock. > > Is there a broadcast sent when the standard lock is activated? > Any information would be much appreciated. > Dmitriy > > > >

[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK

2009-04-20 Thread Dianne Hackborn
That brings up the system UI, allowing the user to confirm the install. On Sat, Apr 18, 2009 at 7:13 AM, Peter wrote: > > Ok...how does this relate to what you said about installing apps being > prohibited? > > On Apr 17, 1:10 pm, Dianne Hackborn wrote: > > Yes it can. &

[android-developers] Re: interaction between notification and service

2009-04-20 Thread Dianne Hackborn
I do this? > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Dianne Hackborn
nd where there is another call, I wanna update the caller-ID shown. > > > > > I have tried OnNewIntent but this callback wasn't called. > > > > It's onNewIntent() with a lowercase 'o'. > > > -- Dianne Hackborn Android framework engineer hack...

[android-developers] Re: As application developers are we allowed to access system properties like ro.config.sync?

2009-04-20 Thread Dianne Hackborn
On Mon, Apr 20, 2009 at 1:07 PM, Hans wrote: > On Apr 20, 1:02 pm, Dianne Hackborn wrote: > > The data roaming thing is fixed in Cupcake. > Fixed? It's not broken as far as I can tell. It's a System setting. > Seriously, why on earth would you change it? I'

[android-developers] Re: Could title bar of activity listen to click event?

2009-04-20 Thread Dianne Hackborn
one result. > menu->action->result > If I could use title bar, than I could let user do what he/she want in > one action. > title bar -> result > No matter it's onclick or long press or something else. > But it looks like current framework doesn't support such b

[android-developers] Re: How to access "shared data/settings" across multiple application? ContentProvider or SharedPreferences?

2009-04-20 Thread Dianne Hackborn
. > > On Sun, Apr 19, 2009 at 6:54 PM, APLY wrote: > >> >> Hi, >> Thanks a lot. >> I get it! >> >> >> >> >> On Apr 18, 12:58 am, Dianne Hackborn wrote: >> > Are you talking about two applications as in your title or two >>

[android-developers] Re: how to color key 2d sprite backgound?

2009-04-20 Thread Dianne Hackborn
gt; Is this possible to do color keying in android? I looked at several > > other threads about this topic but the all ended without a solution. > > > > Also I am now using the canvas.drawBitmap to render my sprites, but > > will using opengl be faster? > > > -- D

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Dianne Hackborn
er. Depending on comparing against > >a fixed set of types is not robust. > > > -- > jason.software.particle > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to prov

[android-developers] Re: Android theme inheritance relation implied by name?

2009-04-21 Thread Dianne Hackborn
Yes the default rule is to inherit from the theme before the '.'. On Mon, Apr 20, 2009 at 11:17 PM, jking wrote: > > Hi, > > When I search across the source of framework resources packages, I > found the theme definitions in themes.xml using the naming pattern > like this: > > Theme > Theme.Blac

[android-developers] Re: Why the service is always to restart even if force to kill it?

2009-04-22 Thread Dianne Hackborn
Eckel wrote: > > Hi, > > Is there any way not to force to restart the service once the service > crash and is killed? > > Thanks in advance. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me,

[android-developers] Re: Starting multiple services sequentially

2009-02-03 Thread Dianne Hackborn
gt; 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 enginee

[android-developers] Re: Questions about using Android native apps on commercial products

2009-02-03 Thread Dianne Hackborn
ing these open source applications? > > Thanks > bercago > > > > -- 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

[android-developers] Re: Generate .apk without debug info in .class

2009-02-03 Thread Dianne Hackborn
. > > How can I remove debug information for my final releases ? > > I use Eclipse. > > 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 supp

[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Dianne Hackborn
can't find anything here: > http://code.google.com/android/reference/android/app/Instrumentation.html > > Thanks in advance. > > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don&

[android-developers] Re: Listview layout and other widgets

2009-02-03 Thread Dianne Hackborn
android:id="@+id/delete" > > > android:layout_width="wrap_content" > > > android:layout_height="wrap_content" > > > > android:src="@android:drawable/ic_delete" > > >

[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Dianne Hackborn
I did try google it, but I don't see the anything > useful. Look at the docs on Instrumentation, there are methods and such for this. Sorry I don't have any specific example code handy, maybe someone else can help. -- Dianne Hackborn Android framework engineer hack...@android.com

[android-developers] Re: [android-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Dianne Hackborn
; > Appreciate for your help! > > > > With best wishes > > Jerry Yang > > > > > > > > -- 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 priva

[android-developers] Re: [android-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Dianne Hackborn
droid/reference/java/lang/System.html#loadLibrary%28java.lang.String%29> > " > > Is this api not supported in Android SDK now? > > Thanks > > With best wishes > > Jerry > > > > *From:* android-developers@googlegroups.com [mailto: > android-develop...@goo

[android-developers] Re: [android-developers]Using JNI to call C lib on android platform

2009-02-03 Thread Dianne Hackborn
t; Jerry > > > > *From:* android-developers@googlegroups.com [mailto: > android-develop...@googlegroups.com] *On Behalf Of *Dianne Hackborn > *Sent:* Wednesday, February 04, 2009 12:09 PM > > *To:* android-developers@googlegroups.com > *Subject:* [android-developers] Re:

[android-developers] Re: What is the 'correct' way to set styles programmatically?

2009-02-03 Thread Dianne Hackborn
able in 1.0 Release 2, I > guess it's time to implement this properly? > > I note: > > 1. AssetManager.applyStyle is package-protected > 2. Theme.obtainStyleAttributes is hardcoded to use XmlBlock$Parser, > not just an AttributeSet > > So what is the 'offic

[android-developers] Re: folder lock application

2009-02-03 Thread Dianne Hackborn
gt; user a pre-set password when he clicks on a specified folder.Sir I am > not getting any clue regarding how to get the event generated by > operating system when the user opens the folder.Or if there is any > such event generated at all. > > > > -- Dianne Hackborn Android fram

[android-developers] Re: What is the 'correct' way to set styles programmatically?

2009-02-03 Thread Dianne Hackborn
w TextView(); >applyStyle( view, R.mystyle ); > > Regards, > > Richard. > > > > -- 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.

[android-developers] Re: Storing data in the APK after creating it

2009-02-04 Thread Dianne Hackborn
gt;> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com >> Android Training in Sweden -- http://www.sotrium.com/training.php >> >> >> > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don&

[android-developers] Re: fileobserver

2009-02-04 Thread Dianne Hackborn
t; it is efficient. is there any other method for do so? > > > > -- 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 p

[android-developers] Re: Using JNI to call C lib on android platform

2009-02-04 Thread Dianne Hackborn
java/lang/Object;)V",(void > *)android_media_MediaPlayer_native_setup}, >{"native_finalize", "()V", (void > *)android_media_MediaPlayer_native_finalize}, > }; > > > On 2月4日, 上午10时27分, "Jerry Y

[android-developers] Re: windowAnimationStyle - ignored in theme?

2009-02-04 Thread Dianne Hackborn
lt;item name="android:activityCloseEnterAnimation">@anim/fade_in</ > item> ><item name="android:activityCloseExitAnimation">@anim/fade_in</ > item> > > > fade_in.xml > http://schemas.android.com/apk/res/android"; > androi

[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread Dianne Hackborn
n has many images) > > and store it as one file, as this could further bring down the .apk > > size. I understand it needs more runtime memory though.. Are there any > > options to pack the resources this way already.. > > > > As Android seems to run j2se.. I am assuming th

[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread Dianne Hackborn
Oh btw there is one improvement we have in aapt for Cupcake to better compress .png image files. On Wed, Feb 4, 2009 at 2:24 PM, Dianne Hackborn wrote: > Yep I think they are pretty compact in their current form. Note that the > resource table itself is not stored compressed in the .a

[android-developers] Re: is there any setStyle method?

2009-02-04 Thread Dianne Hackborn
t; > Note the poster says he has an R.style.MyStyle. So which constructor > accepts an id? I only see ones that accept AttributeSets. Is there a > way to create an AttributeSet from an id? > > Regards, > > Richard. > > > -- Dianne Hackborn Android framework engineer hack...@android

[android-developers] Re: Query regarding the Media Provider : android:sharedUserId and android:multiprocess="false"

2009-02-04 Thread Dianne Hackborn
if Package1 has android:sharedUserId="android.media" specified and > it uses > uses the android's media provider , the media provider would run in a > separate process or > in the same process as the caller? > > > -- Dianne Hackborn Android framework engineer

[android-developers] Re: How to show dialogs in a service process...

2009-02-04 Thread Dianne Hackborn
nException: Unable to add window -- token > null is not for an application > > The reason seems to be that the dialog is not used in a application > context (activity should be fine?) > > Was there any way that can solve this problem? any advises will be > approciated!!! >

[android-developers] Re: limit screen size of an application ..

2009-02-04 Thread Dianne Hackborn
-- > > for example, I want to mandate application to use only bottom half of > the screen? but the application need not know this !! It could use a > scroll bar in order to compensate for this reduced height !! > -- Dianne Hackborn Android framework engineer hack...@android.c

[android-developers] Re: Question about linking to Android camera libraries from C++

2009-02-05 Thread Dianne Hackborn
en in the minlibs.inc file > above. I also tried using an alternate constructor by passing in a null > pointer: > > android::QualcommCameraHardware *qcam = NULL; > android::sp cam(qcam); > //android::sp cam; > > My C++ function really only contains these lines, a call to &g

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread Dianne Hackborn
} > > > public class ActivityB extends Activity { > >@Override >public void onCreate(Bundle savedInstanceState) { >super.onCreate(savedInstanceState); >super.onCreate(savedInstanceState); >TextView tv = new TextView(this); >tv.

[android-developers] Re: Problem loading using JNI if C++ class has virtual function (vtable)

2009-02-05 Thread Dianne Hackborn
bj/jini.o > > Is there a command line switch I'm missing that will allow this to be > used in android? > > FWIW, I'm building the .so on Fedora Core 8 with the arm-2007q3 > toolset and I'm running the android emulator on windowsXP. > > Thanks for any insight

[android-developers] Re: how to use camera application without sd card detect?

2009-02-05 Thread Dianne Hackborn
ng > properly. Is there anyway to use android camera application without sd > card? > > > > -- 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 q

[android-developers] Re: Current orientation of the device

2009-02-05 Thread Dianne Hackborn
Context.getResources().getConfiguration() On Thu, Feb 5, 2009 at 1:57 PM, Layeeq wrote: > > Hi, > 1. How do i find the current orientation of the phone (portrait or > landscape) ? > 2. How do i find the slider position ? > > Thanks, > Layeeq > > > --

[android-developers] Re: Merging spannables?

2009-02-05 Thread Dianne Hackborn
TextUtils.concat(). On Thu, Feb 5, 2009 at 4:20 PM, Ivan Soto wrote: > Is it possible to merge spannables? > > like > Spannable spa = null; > spa = Html.fromHtml("text text asds"); > > spa = spa + Html.fromHtml("asdasdasd"); > > Thanks > >

[android-developers] Re: Application storage data growing

2009-02-06 Thread Dianne Hackborn
plication is adding to it somehow, but I have no handle to tell what > content is stored there. > > > On Feb 5, 5:08 am, Chander Pechetty wrote: > > Not sure if you can do this, but check outhttp:// > code.google.com/android/intro/develop-and-debug.html#developin... > >

[android-developers] Re: How to invoke a service of one APK in another APK

2009-02-06 Thread Dianne Hackborn
;t find any concret > idea of how to impliment. > http://code.google.com/android/reference/aidl.html > http://minicompact.com/mobiletalk/?tag=android-service > http://minicompact.com/mobiletalk/?p=18 > http://code.google.com/android/reference/android/os/IBinder.html > > It

[android-developers] Re: .apk file resource optimisation

2009-02-06 Thread Dianne Hackborn
> But now I am paying the cost of decompression while loading those assets. > > I hope the Android platform can improve the compression of the apk > file itself in a subsequent release. > > Thanks > Inder > > > On Wed, Feb 4, 2009 at 2:25 PM, Dianne Hackborn > wrote

[android-developers] Re: Application storage data growing

2009-02-06 Thread Dianne Hackborn
files that are explicitly created by > the app? Preferences? SQLite databases? Anything else? The data > storage value seems to gradually grow over time while using the app... > from initial size of 76K to nearly a meg. > > > On Feb 6, 11:51 am, Dianne Hackborn wrote: > > Un

<    1   2   3   4   5   6   7   8   9   10   >