[android-developers] Re: zygote preloading jars

2013-03-23 Thread skink


On Saturday, March 23, 2013 6:41:51 AM UTC+1, miten wrote:

 Hi,

 I already modified the platform.xml as below:


   !-- This is a list of all the libraries available for application
code to link against. --

   library name=android.test.runner
   file=/system/framework/android.test.runner.jar /
   library name=javax.obex
   file=/system/framework/javax.obex.jar/
   library name=androidtoast
   file=/system/framework/androidtoast.jar/
   library name=toastcounter
   file=/system/framework/toastcounter.jar/


 androidtoast and toastcounter are my shared jars.  I pulled from emulator 
 using adb and then push back.  Do I still need to do some thing related to 
 img file ?

 Please give bit more detailed steps on it if possible though it sounds 
 like bit hard to believe that for configuring things we need to work with 
 img file.


this is what i've done in order to add android-support-v4.jar to the 
emulator:

1. unpack system.img with unyaffs to out folder
2. modify out/system/etc/permissions/platform.xml

  library name=android-support-v4
  file=/system/framework/android-support-v4.jar/

3. copy android-support-v4.jar to 
out/system/framework/android-support-v4.jar, make sure its dxed jar, that 
is. created by:
*dx --output=dxed.jar --dex original.jar*

4. create system.img using mkyaffs2image

when it comes to phisical device its has to be rooted and you have to just 
modify platform.xml and copy dxed jar file

pskink
 

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




[android-developers] Re: SlidingDrawer

2013-03-23 Thread Pent
 I mean allowing the user to dynamically change the size of the open drawer.
 Right now, when you let go, it either springs open or shut.

Ah, misunderstood you then.

Since there's no 'amount open' callback in the API I guess it's not
intended to remain in a partial state, you would have to change the
source.

As a side note, SlidingDrawer is deprecated in 17 and they advise to
copy the source into your project anyway :-)

Pent

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




Re: [android-developers] Re: zygote preloading jars

2013-03-23 Thread Mark Murphy
On Sat, Mar 23, 2013 at 1:43 AM, miten imi...@yahoo.com wrote:
 You are suggesting that custom ROM is the only way to get apks share
 libraries ?

It is the only way to distribute a shared library. The recipe that
skink is having you follow is fine if you have one device (or
emulator), which you can root and change.

 I would like to see some simplified article showing how to
 achieve it in addition to google link you provided before I start in this
 custom rom direction.

Read skink's messages. Then ask yourself how you plan on forcing
everyone who uses your apps to follow skink's recipe.

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

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

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




[android-developers] Re: SdkController app

2013-03-23 Thread Sebioff
Did you get it working in the meantime? This would be such an awesome tool, 
but I can't get it working either and not many people seem to know that 
this even exists, so it's hard to find help...

Am Mittwoch, 14. November 2012 00:24:38 UTC+1 schrieb colin:

 Hi,
  
 Has anybody been able to get the SdkController app to work with the 
 emulator?  I found an old thread about this and tried to revive it, but I 
 don't think I will be getting a reply there - 
 https://groups.google.com/d/topic/adt-dev/TyZiFZ_Ns5Y/discussion.
  
 Given the video of it working on a Mac from Google 
 IOhttp://androiddevelopment.info/google-io-2012-whats-new-in-android-developers-tools/,
  
 I'm wondering if there is a problem with the Windows version of the 
 emulator.
  


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




[android-developers] How to fire key-up event only?

2013-03-23 Thread Farhan Tariq
Hi guys,

I am in a tricky situation, hope you can help me with it. I have 4 buttons,
horizontally placed one after another in a linear layout. When I press on
button 1, drag my finger to any other button and release touch, I want to
be able to get the view(button) on which the finger was lifted. I went over
the keyEvent api, it says that every event starts with a key_down action.
Since other buttons won't fire that event, how can I get the reference to
the button on which I lifted my finger?

Any help is greatly appreciated. Thank you


Regards,

Farhan

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




[android-developers] Invitation to use Google Talk

2013-03-23 Thread Google Talk
---

You've been invited by rambabu mareedu to use Google Talk.

If you already have a Google account, login to Gmail and accept this chat
invitation:
http://mail.google.com/mail/b-3f8a247e93-b2e4f4bc21-yLFgs_9TaAix6CIjw59UaYAWbRM

To sign up for a Google account and get started with Google Talk, you can
visit:
http://mail.google.com/mail/a-3f8a247e93-b2e4f4bc21-yLFgs_9TaAix6CIjw59UaYAWbRM?pc=en-rf---a

Learn more at:
http://www.google.com/intl/en/landing/accounts/


Thanks,
The Google Team

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




[android-developers] TimerTask and Handler without inner class.

2013-03-23 Thread MarkG123
Got a bit of a problem. I am trying to use TimerTask and Handler to do my 
background work, all the examples I have seen use the TimerTask as an inner 
class. I need my class to be a regular class, as it's called from a couple 
of different classes. Is this possible? Can someone show me how? 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] TimerTask and Handler without inner class.

2013-03-23 Thread TreKing
On Sat, Mar 23, 2013 at 8:03 AM, MarkG123 mark.gilles...@gmail.com wrote:

 Got a bit of a problem. I am trying to use TimerTask and Handler to do my
 background work, all the examples I have seen use the TimerTask as an inner
 class. I need my class to be a regular class, as it's called from a couple
 of different classes. Is this possible? Can someone show me how? Thanks.


Have you tried anything so far? Like making this separate class and trying
to use it?

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

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




[android-developers] Re: Sending and Receiving SMS/MMS in Android

2013-03-23 Thread Etienne
This now has a 200 Reputation Bounty !!!  
http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Transfer of entire database directly from one phone to another via Bluetooth - possible?

2013-03-23 Thread Boyd Speer
Is it possible to transfer an entire database directly from one phone to 
another via Bluetooth?
(no phone-to-computer-to-phone)

If it is do-able would anyone have any suggestions as to where to find the 
procedure of sample code for doing so?
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: How to solve the issue with Dalvik compiler limitation on 64K methods?

2013-03-23 Thread Eric Lafortune
If you apply ProGuard with shrinking enabled but optimization and 
obfuscation disabled (-dontoptimize -dontobfuscate), the code will already 
be more compact, and you can still use a debugger. The source files, class 
names, method names, line numbers, etc remain unchanged and any breakpoints 
in removed unreachable code are irrelevant.


The debug build in the Android plugin for Eclipse always skips ProGuard 
though, so you'd have to use another build process.

Eric

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




[android-developers] Re: Compatibility mode issues on 4.x

2013-03-23 Thread user123
Nobody uses compatibility mode? I thought it would be a superbasic 
question, there are a lot of tablets and there are a lot of apps which 
don't optimize for that size...


Am Dienstag, 19. März 2013 17:46:49 UTC+1 schrieb user123:

 I'm trying to force compatibility mode on tablets, for a certain app, 
 because I don't work on it anymore - and currently it looks really really 
 messed up on tablets.

 According to the documentation:
 http://developer.android.com/guide/practices/screen-compat-mode.html

 There are many different options to set up in the manifest, to make it 
 possible, to the user, to enable compatibility mode. This is not exactly 
 what I want, but anyways, maybe worth to mention, these options didn't 
 work. I couldn't find anything on the device to switch to compatibility 
 mode. I used a Nexus 7 with 4.2.

 Now there's the part which I need - and I also can't get it to work. To 
 force compatibility mode, it I have to use this element:

 supports-screens android:largestWidthLimitDp=320 /

 When I let the value 320 there, my Galaxy Nexus smartphone goes in 
 compatibility mode. That is unwanted.
 The Nexus 7 also does, this is good.
 So I have to use bigger dp - But starting at 321, for some reason I don't 
 understand, the Nexus 7 doesn't go anymore in compatibility mode.

 Is this normal? According to what I read the dp of the shortest side of the 
 Nexus 7 is more than 500, why then it stops on 321?

 I would let it on 320, but I have optimized layouts for this screen size and 
 don't want these to go in compatibility mode.

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.