[android-developers] Re: sharing jars across applications

2012-07-22 Thread Ubuntu guy
add it to the system libraries Do you mean framework.jar? On Jul 21, 8:55 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Sun, Jul 22, 2012 at 11:56 AM, Ubuntu guy sam_...@yahoo.co.in wrote: To be more specific, this is a platform library provided by the OEM (as an sdk

Re: [android-developers] Re: sharing jars across applications

2012-07-22 Thread Nikolay Elenkov
On Sun, Jul 22, 2012 at 3:20 PM, Ubuntu guy sam_...@yahoo.co.in wrote: add it to the system libraries Do you mean framework.jar? Not necessarily, but same idea. System libraries (including framework.jar) are preloaded by the OS and shared by all applications. -- You received this

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread Dianne Hackborn
On Sat, Jul 21, 2012 at 8:02 PM, Jim Graham spooky1...@gmail.com wrote: I'm not sure I understand Are you saying that display.getWidth and display.getHeight don't return valid numbers? Or did I miss something? I am saying that I don't recommend using them, and I have no good strong use

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Dianne Hackborn
TransactionTooLarge means that the data being sent through the IPC call is too large. I just checked my test case and verified that this doesn't kill the service's process *if* it is in the foreground (with Service.startForeground()). I'm not sure what may be different in your situation... one

Re: [android-developers] Call web service that returns an object

2012-07-22 Thread Mohammed Zarqa
Thank you for your hint i got it corrected as follows SoapObject response = (SoapObject)envelope.bodyIn; SoapObject c2 = (SoapObject)response.getProperty(0); tv.setText(Category + c2.getProperty(0)); On Saturday, July 21, 2012 8:28:53 PM UTC+3, TreKing wrote: On Sat,

[android-developers] Documentation for adb shell getevent / sendevent

2012-07-22 Thread matt
hello, is there any documentation on the format of the getevent and sendevent shell commands? specifically the ones for touchevents. or is this device-dependent? it is a bit hard to guess what those ids are doing. thanks! -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Kostya Vasilyev
I'm also seeing my application get killed even while it has a foreground service. It appears to happen on the next sendBroadcast() - which is an implementation detail of how some of my components interact, and has nothing to do with the service's startForeground() state. The service remains in

[android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Pent
Oh boy, I very much don't like the sound of that. Not particularly looking forward to getting a JB OTA update anymore after all the other backwards compat problems already reported by users. Pent -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Using android.R.id.title and getParent to remove TitleBar

2012-07-22 Thread Mark Murphy
On Sat, Jul 21, 2012 at 11:09 PM, Vance Turnewitsch betweenthehi...@gmail.com wrote: Is what I am doing safe? Not really. It could break on past versions of Android, future versions of Android, manufacturer-modified versions of Android, etc. Simply do not have a title bar managed by the system

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Andy dev
Kostya, after tracking mine down more, it seems to be exactly the same. It doesn't actually get killed until I get a broadcast. I'm not sending them I'm receiving them from things like the SMS service, the battery level the screen state etc, but any of those I've registered for cause the

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Kostya Vasilyev
2012/7/22 Pent supp...@apps.dinglisch.net Oh boy, I very much don't like the sound of that. Not particularly looking forward to getting a JB OTA update anymore after all the other backwards compat problems already reported by users. You can look forward to 4.1.2, 4.2 or 5.0... Pent

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread Jim Graham
On Sun, Jul 22, 2012 at 12:06:30AM -0700, Dianne Hackborn wrote: Do you have a specific use case where you think they are the right way to go? I use them for determining the maximum preview size for the camera preview. Whether that's the right way to go or not, I can't say, but it works

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread RichardC
How about View width and height instead of Display? On Sunday, July 22, 2012 12:31:21 PM UTC+1, Spooky wrote: On Sun, Jul 22, 2012 at 12:06:30AM -0700, Dianne Hackborn wrote: Do you have a specific use case where you think they are the right way to go? I use them for determining the

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread Mark Murphy
On Sun, Jul 22, 2012 at 7:46 AM, RichardC richard.crit...@googlemail.com wrote: How about View width and height instead of Display? Precisely. It matters not a whit how big the display is. What matters is how big the preview SurfaceView can be, after taking everything else into account. So,

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Kostya Vasilyev
2012/7/22 Andy dev andrewpmo...@gmail.com Kostya, after tracking mine down more, it seems to be exactly the same. It doesn't actually get killed until I get a broadcast. I'm not sending them I'm receiving them from things like the SMS service, the battery level the screen state etc, but any

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread Jim Graham
On Sun, Jul 22, 2012 at 07:55:59AM -0400, Mark Murphy wrote: On Sun, Jul 22, 2012 at 7:46 AM, RichardC richard.crit...@googlemail.com wrote: How about View width and height instead of Display? Precisely. It matters not a whit how big the display is. What matters is how big the preview

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread Mark Murphy
On Sun, Jul 22, 2012 at 8:21 AM, Jim Graham spooky1...@gmail.com wrote: That's probably what I'm not clear on What is everything else in this case? It doesn't matter. Put your SurfaceView in your layout, then calculate your preview size based upon the SurfaceView's size. I see what this

[android-developers] USB support for All Android Devices...........

2012-07-22 Thread Kumar Maheswaran
*Hi all, I am using HCL ME U1(Android-4.0.3) tablet for my tablet development. My question is All the android-4.0.3 IceCream Sandwitch device irrespective of vendor will support UsbManager and UsbAccessory library?? Because i have included USB_Host_shiel-2.0 library into Arduino-1.0.1 IDE

[android-developers] Re: USB support for All Android Devices...........

2012-07-22 Thread Kumar Maheswaran
Please take the heading as ADK support for all android-4.0.3 devices Thanks, Mahes On Sunday, July 22, 2012 7:03:16 PM UTC+5:30, Kumar Maheswaran wrote: *Hi all, I am using HCL ME U1(Android-4.0.3) tablet for my tablet development. My question is All the android-4.0.3 IceCream

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Piren
I always wondered about this feature... i found out Foreground services keep on running by accident... kinda surprised me since you then have to make sure the code knows how to retain information the Service is responsible of if the UI is brought back up. Is any of this documented anywhere? i

[android-developers] HtcLinkifyDispatcher.apk messing default app association

2012-07-22 Thread b0b
Thanks to the geniuses of this world, on some HTC phones (in the US only it seems), HTC has modified the default Intent Chooser to comply with some Apple absurd patents: http://www.theverge.com/2012/5/16/3024889/htc-one-x-evo-4g-lte-custom-android-build-apple-patent-linkify The consequence is

Re: [android-developers] Usage of DisplayMetrics

2012-07-22 Thread Dianne Hackborn
On Sun, Jul 22, 2012 at 5:21 AM, Jim Graham spooky1...@gmail.com wrote: That's probably what I'm not clear on What is everything else in this case? If display.getWidth and display.getHeight report that my tablet's display size is 1280x752 (which, I just discovered, is NOT what

[android-developers] System.gc() causing slowdown from the second start of Activity

2012-07-22 Thread Tamás Kovács
I know that System.gc() is needless and discouraged, and I don't try to suggest otherwise, but the point is that it shouldn't cause issues either (i.e. it should be useless at most). If I add the following code to my Activity.onPause(), then my application will be slow after the second start of

[android-developers] Re: System.gc() causing slowdown from the second start of Activity

2012-07-22 Thread RichardC
Run the profiler. On Sunday, July 22, 2012 5:41:55 PM UTC+1, Tamás Kovács wrote: I know that System.gc() is needless and discouraged, and I don't try to suggest otherwise, but the point is that it shouldn't cause issues either (i.e. it should be useless at most). If I add the following

[android-developers] Re: System.gc() causing slowdown from the second start of Activity

2012-07-22 Thread Tamás Kovács
Do you mean TraceView? I tried with Debug.startAllocCounting, Debug.startMethodTracking(...), made a lot of reports, but the result is the same: practically same % spent in all methods. Just everything is slower in absolute time during the GLSurfaceView rendering. For example, the GL effects I

[android-developers] Re: System.gc() causing slowdown from the second start of Activity

2012-07-22 Thread Tamás Kovács
In fact, traceview seems to report IDENTICAL times absolutely too, which is strange, because if I use SystemClock.uptimeMillis() for measurent, then I get higher values. And REALITY shows too that methods take more time. But traceview reports contain same absolute values --- I guess because

[android-developers] LVL + proguard: Google play answers Market not Managed

2012-07-22 Thread Gabriel Simões
Hello, I´ve always used Android LVL + proguard without issues. After upgrading my apps to android 4 and above (V13), I´ve started having issues with LVL answers. If I test my app straight from Eclipse, using a test signature, everything works as expected. On the other side, after compiling

Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-22 Thread JP
Well there's two problems: One: the device does not show in $ ADB devices Two: There's of course no log info or anything that could help decipher what's going on, at least that I know of. On Saturday, July 21, 2012 10:00:19 AM UTC-7, Nikolay Elenkov wrote: On Jul 22, 2012 12:05 AM, JP

Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-22 Thread Nikolay Elenkov
On Jul 23, 2012 3:08 AM, JP joachim.pfeif...@gmail.com wrote: Well there's two problems: One: the device does not show in $ ADB devices Two: There's of course no log info or anything that could help decipher what's going on, at least that I know of. Does Windows register a new device when

Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-22 Thread Jim Graham
On Sun, Jul 22, 2012 at 11:06:46AM -0700, JP wrote: Well there's two problems: One: the device does not show in $ ADB devices Two: There's of course no log info or anything that could help decipher what's going on, at least that I know of. Just for what it's worth, when I first tried

[android-developers] Is there any logical way to make a notification bigger / Make more then one.

2012-07-22 Thread Cythes
I'm trying to work on an app that runs out of a notification. Right now I am trying to make the notification bigger so it has more prevalence on the screen. And if that is not possible how do I make more then one notification so it runs one next to the other effectively making the app

Re: [android-developers] Is there any logical way to make a notification bigger / Make more then one.

2012-07-22 Thread Dianne Hackborn
JB added support for larger notifications. You can not force them to display larger, however, they will change in size for various reasons as appropriate. It sounds to me like what you are trying to do may not be what notifications are intended for. On Sun, Jul 22, 2012 at 1:41 PM, Cythes

Re: [android-developers] Documentation for adb shell getevent / sendevent

2012-07-22 Thread Dianne Hackborn
No, this is fairly device-dependent. getevent prints a summary of all the devices so you know what those are. The data generated for a device are generally the Linux kernel's event protocol, so you can look there for further help, but there is no guarantee that a particular device will be

[android-developers] Activity always starting in 2 instances on ZTE Skate

2012-07-22 Thread Tamás Kovács
I have two activities: a Preload activity and the main activity. My preload activity basically just spawns the main activity and then exits. My problem appears only on ZTE Skate (all other devices work fine). When I start my application by tapping its icon, the logcat output of my application

[android-developers] onLayout is getting called multiple times during orientation

2012-07-22 Thread Agus
Hi all, I am getting onLayout called twice during orientation with different dimension values, is this an expected behavior ? -Agus. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] HtcLinkifyDispatcher.apk messing default app association

2012-07-22 Thread Kristopher Micinski
You can't modify it: and if you could HTC would be upset and change the firmware again to not let you... The patent thing sucks, no doubt, but there's nothing you can do but live with it or tell your users to blame Apple ... On Jul 22, 2012 10:48 AM, b0b pujos.mich...@gmail.com wrote: Thanks to

Re: [android-developers] onLayout is getting called multiple times during orientation

2012-07-22 Thread Dianne Hackborn
It can be, for example a layout manager may do this on its children. On Sun, Jul 22, 2012 at 5:47 PM, Agus agus.sant...@gmail.com wrote: Hi all, I am getting onLayout called twice during orientation with different dimension values, is this an expected behavior ? -Agus. -- You received

[android-developers] (WTA)android 3.0 emulator built in gallery won't work.

2012-07-22 Thread Alfa
i want to ask about built in gallery android 3.0. i make an intent to access it. this is my code : Intent intent = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); intent.setType(image/*); intent.setAction(Intent.ACTION_GET_CONTENT);

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Andy dev
Kostya, is there any chance of sending me your small test? I'm hoping I can try compare that with my code and make some progress, or at least help me get together a small example for Dianne. If you do, could you send it to andrew at rageconsulting dot com Andrew On Sunday, July 22, 2012

[android-developers] Re: Serial BluetoothSTREAM without packaging

2012-07-22 Thread superpsycho
Hey, thank you for your reply, cause i have to send only a few bytes beach packed... for simplification like a ping or a deathmans switch. But for this data ists absolutly nessesary to put them in an special given frame. Am Freitag, 20. Juli 2012 19:52:06 UTC+2 schrieb bob: Why not append

[android-developers] Failed to find an AVD compatible with target 'Android 2.2'

2012-07-22 Thread Vijay Krishnan
Hi all, When i run my application using eclipse in Sony Experia(android version 4.0.3),it shows 'Failed to find an AVD compatible with target android 2.2' in the log.This application is running in Galaxy S3. Thanks, vijay.k -- You received this message because you are subscribed to the

[android-developers] Re: HTTP Post works only on port 80 when on mobile network (Galaxy Nexus)

2012-07-22 Thread Zoran Smilevski
Can someone please confirm me, that is a problem posting data on a server on non-80 port, using mobile data, on Galaxy Nexus or probably some other ICS device? If it works for you, how do you do it? Thanks. On Sunday, July 15, 2012 12:10:02 PM UTC+2, Zoran Smilevski wrote: Hello! I have a

[android-developers] search +button in expandible list

2012-07-22 Thread Jagadeesh
CompaniesActivity extends ExpandableListActivity { /** Called when the activity is first created. */ EditText edit; Button search; String[] text = { GSK, sanfoi, Elilly, Abbott, Novartios }; int textlength = 0; @Override public void onCreate(Bundle savedInstanceState) {