[android-developers] Determine the reason why a specific device is marked as disabled

2015-11-27 Thread Luca Carlon
Hello, I'm frequently asked from customers "why is my device not supported by your app"? I know possible reasons are API level not supported, uses-feature not supported etc... but can Google Play provide the exact conditions that are not met? For instance, can I determine somehow that unknown de

[android-developers] Testing classes of a project from another

2011-01-05 Thread Luca Carlon
Hi! I'm trying to use junit to test some classes I'm writing in a project. The problem is that I can't see any failure event if the test testNull is a assertEquals(new Integer(1), null). This is the output: 01-01 07:35:21.754: INFO/TestRunner(16093): started: testNull(package.ui.test.MyTest) 01-01

[android-developers] Re: Creating complex queries for SQLite

2011-01-03 Thread Luca Carlon
This is very important for me! I didn't even see it! Thank you very very much! On Jan 3, 10:45 am, Sarwar Erfan wrote: > On Monday, January 3, 2011 3:32:50 PM UTC+6, Luca Carlon wrote: > > > Assuming I am the ContentProvider developer, can I somehow execute > > these

[android-developers] Re: Creating complex queries for SQLite

2011-01-03 Thread Luca Carlon
method seems to suffer the same limitations, I cannot write a free SQL query command. Thanks for your help! On Jan 3, 9:37 am, Sarwar Erfan wrote: > On Monday, January 3, 2011 2:32:29 PM UTC+6, Luca Carlon wrote: > > > Ok, that was just to confirm that it is impossible to use it that way.

[android-developers] Re: Creating complex queries for SQLite

2011-01-03 Thread Luca Carlon
Ok, that was just to confirm that it is impossible to use it that way. And what about making complex queries? The ContentProvider class provides the query method which, however, seems to be quite a limitation. What can I do, for instance, if I need to create queries with subqueries (or some other t

[android-developers] Creating complex queries for SQLite

2011-01-02 Thread Luca Carlon
Hi! I'm using the Android's media library intensively, and I was asking myself whether it is possible or not to query the database more freely than using the ContentProvider class. Would it be possible to query directly the database that is stored in the filesystem (/data/ data/com.android.provider

[android-developers] Re: Illegal continuation byte in NewStringUTF

2010-12-20 Thread Luca Carlon
into UTF8 (aka "multibyte") first, then > call NewStringUTF(). > > On Dec 16, 9:46 am, Luca Carlon wrote: > > > Hi! I'm trying to create a jstring using NewStringUTF but I > > experienced a strange issue when the C string passed to the function > > contains chara

[android-developers] Illegal continuation byte in NewStringUTF

2010-12-16 Thread Luca Carlon
Hi! I'm trying to create a jstring using NewStringUTF but I experienced a strange issue when the C string passed to the function contains characters not ASCII (i.e. accented characters). This is what I get: 01-01 02:56:41.719: WARN/(1738): Creating the jstring for Dracula Der Pfähler.mp3. 01-01 02

[android-developers] Re: Getting the ID of an image in the MediaStore

2010-09-27 Thread Luca Carlon
ya Vasilyev --http://kmansoft.wordpress.com > > 27.09.2010 16:06 пользователь "Luca Carlon" написал: > > Hi! I'm trying to query the Android's MediaStore.Images.Media to get > the images contained in the device. I get my cursor on the DB like > this:

[android-developers] Getting the ID of an image in the MediaStore

2010-09-27 Thread Luca Carlon
Hi! I'm trying to query the Android's MediaStore.Images.Media to get the images contained in the device. I get my cursor on the DB like this: Cursor cursor = context.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projections, selection, nul

[android-developers] Memory reserved for surfaces

2010-09-13 Thread Luca Carlon
Hi everyone! As far as I can understand, and according to what I've been told here, on some Android devices, there exists a pool of memory reserved for Surfaces which is shared by the applications. Is this correct? The exception OutOfResourcesException is related to this pool of memory coming up sh

[android-developers] Restoring a GLSurfaceView after closing the foreground activity

2010-08-26 Thread Luca Carlon
Hi! I have an application which uses a GLSurfaceView. From that activity I start the Android's video player. The problem I'm experiencing is that, after I close it, the GLSurfaceView I have behind it is not shown at all, I have a black screen. When I close that activity as well, the GLSurfaceView s

[android-developers] Re: Calling the stop() function of MediaPlayer

2010-08-22 Thread Luca Carlon
You can try out these .. > > Lokesh > > > > On Sun, Aug 22, 2010 at 12:02 PM, Luca Carlon wrote: > > Thanks for the link! > > I see in that code they do: > > > mediaPlayer.stop(); > > mediaPlayer.prepare(); > > mediaPlayer.seekTo(0); > > > This w

[android-developers] Re: Calling the stop() function of MediaPlayer

2010-08-22 Thread Luca Carlon
e only one thread manages the media player. Any idea why? Anyone who also noticed this behavior? Thanks! On 22 Ago, 13:17, Mark Murphy wrote: > On Sun, Aug 22, 2010 at 7:09 AM, Luca Carlon wrote: > > Hi! I don't know if I'm doing something wrong, but I see calling the > >

[android-developers] Calling the stop() function of MediaPlayer

2010-08-22 Thread Luca Carlon
Hi! I don't know if I'm doing something wrong, but I see calling the stop function of MediaPlayer simply does nothing. The playback goes on. I looked in the documentation and I found: "Stops playback after playback has been stopped or paused." So, I tried to pause() it before stopping, but the Me

[android-developers] Re: OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-19 Thread Luca Carlon
spaces each 16MB or 24MB? Thanks you very much for the information you provided! On 19 Ago, 18:26, Romain Guy wrote: > If you don't have enough memory in your app you must modify it to work > with this limit. > > > > On Thu, Aug 19, 2010 at 2:03 AM, Luca Carlon wrote: >

[android-developers] Re: OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-19 Thread Luca Carlon
use 16 or 24 MB of RAM, depending on the device. A > VideoView or a GLSurfaceView takes up a lot of RAM by the way (a > fullscreen surface view requires width*height*2*2 bytes of memory for > instance - if it's 16 bits.) > > > > On Wed, Aug 18, 2010 at 10:41 PM, Luca Car

[android-developers] OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-18 Thread Luca Carlon
Hi! I have an activity which uses a GLSurfaceView to render some graphics. Now, I created another activity, which is started from the first when pressing a button, which plays a video using a VideoView. The problem is that, for some reason, very often I get a OutOfResources exception from the Surfa

[android-developers] Re: Forwarding ranges of ports to the Android emulator

2010-08-06 Thread Luca Carlon
it fails and i get an unexpted disconnect from the server.  very > annoying! > > Have you managed to work this one out yet? > > Can anyone out there help!? > > Cheers > > Chris > > On Jul 17, 7:21 pm, Luca Carlon wrote: > > > Hi! I'm working on a C++ li

[android-developers] Re: Calling methods of an activity from another

2010-07-25 Thread Luca Carlon
> > I need > > this as when an event of my C++ library arises, a method of Activity1 > > is called, and I need then to call a method of Activity2. > > It sounds like your JNI ought to be in a service, rather than either > activity. You do not even know if Activity1 will be in memory while > Activit

[android-developers] Changing the content of an activity runtime

2010-07-24 Thread Luca Carlon
Hi! I created an activity by using a layout written in a XML file. I would like, in response to some events, to change the content of this activity. I would like to show a VideoView over the content. In response to some other event, I may want to go back to the first content. Would it be possible t

[android-developers] Calling methods of an activity from another

2010-07-23 Thread Luca Carlon
Hi! I have one activity (Activity1) which loads a C++ library through JNI. This C++ class calls some methods I implemented in my Activity1, in response to some events. In certain cases I start another activity (Activity2), but would it be possible, from Activity1, to call some methods of Activity2

[android-developers] Forwarding ranges of ports to the Android emulator

2010-07-17 Thread Luca Carlon
Hi! I'm working on a C++ library which uses TCP to estabilish communications with the LAN. I've been able to use it without problems on a real device with Android, but I'm not able to use it on the emulator. I suppose it is because the emulator doesn't have access to my LAN. I read the documentati