[android-developers] Android library project with non-default bin directory

2013-02-23 Thread Latimerius
Hello, I posted this on SO the day before yesterday (*) but since there have been no replies posting here, too: I have an Android project which uses an Android library project as a dependency. Building it with ant works fine, I'd just like to have the library project use a different bin

Re: [android-developers] Android library project with non-default bin directory

2013-02-23 Thread Kostya Vasilyev
I've done this -- keeping ant builds completely separate from Eclipse's -- by hacking on the project's and the SDK's build.xml files. Not an ant expert either (last I used was some ten years ago), but it wasn't too difficult either. The modification that deals with library references (in the

[android-developers] WakeLock on Sony XPERIA works only when charging

2013-02-23 Thread katarina
Hello all, we are developing application where we need to wake up the phone in as certain moment. We use the WakeLock system and it works for most of the phone models, but on Sony XPERIA the phone does not wake up unless the power cable is connected to a power source - when it's charging.

[android-developers] OnTouchListener problems

2013-02-23 Thread Edvinas Kilbauskas
Ok, so I'm having a little problem with OnTouchListener on android 2.3+ devices. I'm making a game, when you touch your screen, the player jumps, and if you hold your screen touched the player falls slower. Everything seem good on my android 2.2 device. Because I get MotionEvent.ACTION_MOVE

Re: [android-developers] Android library project with non-default bin directory

2013-02-23 Thread Latimerius
Thanks a lot for your suggestion, it seems to work. I've put it in custom_rules.xml. I had to wrap it in project element as per this post http://stackoverflow.com/questions/8528373/android-custom-build-using-ant which results in a Duplicated project name in import warning. It nevertheless

[android-developers] Re: OnTouchListener problems

2013-02-23 Thread Nobu Games
Why don't you just recognize the ACTION_DOWN event and keep a flag stored that tells your game: fingerDown or isJumping. As long as that value is true your character will be jumping and when the jump has finished the character will fall down with slow speed. Let the ACTION_UP event unset that

Re: [android-developers] Box2d on Android

2013-02-23 Thread Michael Banzon
Most examples of Box2D on Android I've seen use AndEngine: http://www.andengine.org/ fredag den 22. februar 2013 skrev bob : I guess that is a red herring. I think people must be using JBox2d. Here's a quick test I wrote in case it helps anyone: @Override protected void onCreate(Bundle

[android-developers] Re: [Android 2.3.5] SoundPool native code crash during playback

2013-02-23 Thread Nobu Games
I hate to admit but my IBM architect style game engine did something really stupid and accumulated lots of redundant sound samples over the life time of the application process. Basically every time when the game activity restarted and resources are loaded, the previously loaded sound samples

[android-developers] Re: OnTouchListener problems

2013-02-23 Thread Edvinas Kilbauskas
Never mind, I fixed it. Thanks for help anyways. :) 2013 m. vasaris 23 d., šeštadienis 16:00:09 UTC+2, Edvinas Kilbauskas rašė: Ok, so I'm having a little problem with OnTouchListener on android 2.3+ devices. I'm making a game, when you touch your screen, the player jumps, and if you hold

[android-developers] Automate Other Android Apps: YouTube, Chrome, Facebook, +

2013-02-23 Thread crosis99
I'm starting Android development and wanted to understand how to achieve the following. I use my PC and Samsung Galaxy Note 2 smartphone often. * I'm within my Firefox / Chrome browser on both units and find it very annoying to have to navigate to the same URL and scrollbar position when

[android-developers] Re: Automate Other Android Apps: YouTube, Chrome, Facebook, +

2013-02-23 Thread Nobu Games
Please note that your PC's browser window will have different dimensions than your browser app on the phone. It also will use a different web page rendering engine and on top of that there are many websites that deliver different HTML content depending on the device. In my humble opinion

Re: [android-developers] Re: Draw 2d circle ontouch android

2013-02-23 Thread Numair Qadir
Wow.. Thank you .. Very detailed and helpful answer.. Helped me a lot.. The problem was the calculation of radius from the points.. Thanks again :) On Fri, Feb 22, 2013 at 8:42 PM, Nobu Games dev.nobu.ga...@gmail.comwrote: Alright, let's try to help you again. First of all your problem is as

[android-developers] Action Bar TAB Context Menu

2013-02-23 Thread Jim Duda
I have the Action Bar working properly with a Tab Listener and multiple tabs as described in the API Demos package. This piece is working well. I would like to add a Context Menu (long click listener) to the Action BAR Tab button itself. I know how to add the longClickListener to the

[android-developers] Re: [in app billing] Can't add different currency

2013-02-23 Thread kewang
And if I try to import csv method, I got message The first price is a default price and needs to be defined for Taiwan (TW). You cannot set a local price for Taiwan (TW), because this country is not billable in a local currency. The following is my csv file. How can I do? premium, published,

[android-developers] Re: [in app billing] Can't add different currency

2013-02-23 Thread kewang
If I shift localization position in file, the import process never stop. https://lh4.googleusercontent.com/-9cFTAKrUN4Q/USmjaUlpuaI/CbI/VOpZTMRGqH4/s1600/%E6%93%B7%E5%8F%96%E9%81%B8%E5%8F%96%E5%8D%80%E5%9F%9F_005.png The file content is following: premium, published,

[android-developers] How to check if screen is held touched?

2013-02-23 Thread Edvinas Kilbauskas
Ok, so I'm having a little problem with OnTouchListener on android 2.3+ devices. I'm making a game, when you touch your screen, the player jumps, and if you hold your screen touched the player falls slower. Everything seem good on my android 2.2 device. Because I get MotionEvent.ACTION_MOVE