Hi,
How comes Resources.getColor() returns an int? This can't hold the maximum value
of 0x because Java int is signed.
--
Olivier
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
On 07/31/2011 03:33 PM, Mark Murphy wrote:
On Sun, Jul 31, 2011 at 9:13 AM, Olivier Guilyardi l...@samalyse.com wrote:
How comes Resources.getColor() returns an int? This can't hold the maximum
value
of 0x because Java int is signed.
An int can hold 0x, because an int is 32
On 07/31/2011 03:57 PM, Mark Murphy wrote:
On Sun, Jul 31, 2011 at 9:45 AM, Olivier Guilyardi l...@samalyse.com wrote:
I know it's 32bit, but using a signed int to hold a value higher that
0x7FFF
seems like perverting the sign bit IMO. It can lead to subtle bugs.
That ship sailed about
On 07/31/2011 03:40 PM, Marcin Orlowski wrote:
On 31 July 2011 15:13, Olivier Guilyardi l...@samalyse.com
mailto:l...@samalyse.com wrote:
How comes Resources.getColor() returns an int? This can't hold the
maximum value
of 0x because Java int is signed.
Java does
I have 5 devices from different manufacturers. I plug them into a Mac and never
had to worry about drivers. It just works. But I actually do all my development
work on Linux, and I route adb communications to my Macbook via ssh port
forwarding. This setup works flawlessly. I got upset by the USB
Hello Peter,
It's a nice idea and project. I haven't tried AQuery yet, but I have a little
remark.
In your examples there is:
aq.id(R.id.icon).image(R.drawable.icon).visible().clicked(this, someMethod);
I'm not a big fan of this clicked() function. The problem is that the java
compiler cannot
Hello Bob,
My personal favorite is SVN.
A few months ago I worked with a graphic designer. Amongst over things, he
designed some bitmaps, xml drawables and animations. I asked him to commit his
work to SVN whenever he was done with a task. For this purpose, he used an OSX
SVN gui named Versions:
Hi,
I have recently upgraded to SDK tools r10 and SDK platform tools r3. At first
everything worked fine, for a couple days. Then I changed very few things in a
layout and in my attrs.xml and the build is now failing in Eclipse. Reverting
the changes didn't help.
R.java is here but the AIDL
Oh, and by the way, this affects two absolutely distinct projects which both
have AIDL files, and which used to build just fine. I have cleaned many times,
and even reimported a project, but it didn't help.
I am using Eclipse 3.4.2 Ganymede.
Olivier
On 03/07/2011 02:48 PM, Olivier Guilyardi
Ok, for the records, I did a fresh install of Eclipse Helios, re-imported my
projects, and the problem's gone.
Olivier
On 03/07/2011 02:55 PM, Olivier Guilyardi wrote:
Oh, and by the way, this affects two absolutely distinct projects which both
have AIDL files, and which used to build just
Hi everyone!
I am glad to announce the creation of the andraudio mailing list, dedicated to
audio development on Android, at: andrau...@music.columbia.edu
More info and subscribing: http://music.columbia.edu/mailman/listinfo/andraudio
This list is meant to be a place to discuss about audio
Anyone?
TIA
On 01/06/2011 04:11 PM, Olivier Guilyardi wrote:
Hi,
my app only runs in landscape but I would like to allow the reverse landscape
orientation (270°), which is supported by Froyo and up AFAICS.
The sensorLandscape screenOrienation is precisely what I need IIUC
Hi,
my app only runs in landscape but I would like to allow the reverse landscape
orientation (270°), which is supported by Froyo and up AFAICS.
The sensorLandscape screenOrienation is precisely what I need IIUC, but this is
only available as of Gingerbread.
Is there a way to achieve the same
On 01/06/2011 09:04 PM, Phil Endecott wrote:
Some devices have HDMI or composite video out, which you could record
in numerous ways.
That's correct and the only way to get something smooth, especially if you use
OpenGL. More info at:
data in getFilesDir() get deleted when the application is uninstalled, not
closed. It is kept along the time, as long as the app is installed.
That said, please consider that internal storage space is limited, and /should/
not exceed 1Mb per app IIRC.
Therefore, for downloading images, etc..,
On 12/07/2010 08:47 PM, Jin Chiu wrote:
The only way I've seen for closing AIDl connections is client-
initiated: Context.unbindService()
Is it possible the Service itself to initiate disconnects for existing
AIDL connections?
You could use a callback from the service to the clients, to
What about Archos tablets? Here in France they're less than half the price of
the Galaxy Tab.
On 12/03/2010 11:13 PM, OldSkoolMark wrote:
I'm digging my Samsung Galaxy Tab. Stuff I'm working on is not tab
specific, but its nice to be able to see the UI easily without having
to pick up the
Hi,
in my app, certain dialogs need some instance data when onPrepareDialog() is
called. I am saving this data in onSaveInstanceState() and restoring it in
onCreate(). This works fine according to my tests: I received the saved data in
the bundle passed to onCreate(), and then the dialogs get
The onRestoreInstanceState() doc does not say that:
http://developer.android.com/intl/fr/reference/android/app/Activity.html#onRestoreInstanceState%28android.os.Bundle%29
From what I read, onCreate() is all what is needed. Implementing
onRestoreInstanceState() doesn't seem necessary in my case.
Hi,
I just got a Xperia X10 Mini running Android 1.6, and the launcher icon of my
app is awfully scaled. I'm providing an ldpi icon, which strictly respects the
icon guidelines, and after testing I can confirm that this ldpi icon is used in
the launcher.
But this 36x ldpi icon appears to be
On 11/23/2010 10:01 PM, Biosopher wrote:
We are providing an Android Service to multiple customers for
packaging into their .apks and need to ensure that only a single
instance of our Service is running at a time. The ideal situation
would be this:
When one of our customers's apps is
On 11/21/2010 09:17 PM, Ahmed Shoeib wrote:
hi ,
i got this message when trying to play mp4 video on android from url
( video is not valid for streaming on this device )
the code i use to play mp4
Intent intent = new Intent(Intent.ACTION_VIEW);
On 11/19/2010 10:34 PM, Nathan wrote:
One of the alternative app stores is asking for unaltered, unedited
capture from the app as a video.
Plus I'm also interested in cleaner video than I get by focusing a
camcorder on an Android on a table.
Who knows how to do that? I think I found some
On 11/20/2010 02:10 PM, Mark Murphy wrote:
If you have access to an HTC Droid Incredible or some editions of the
Samsung Galaxy S, you can get a cable that outputs the main Android
screen to composite video, which you could record.
Wow thanks. I have a Galaxy S, and found the TV Out option
On 11/19/2010 03:30 PM, ses wrote:
Seems like a straightforward question:
Does the Android Market treat your app as though you have set uses-
feature explicitly to false for each feature if you do not declare any
uses-feature in your android manifest?
Most of my apps so far don't use many
On 11/19/2010 04:00 PM, ses wrote:
You can test all that with aapt:
http://developer.android.com/intl/fr/guide/topics/manifest/uses-featu...
You can use the aapt tool, included in the Android SDK, to determine how
Android Market will filter your application, based on its declared features
Hi,
I have noticed that there's a new high-res icon field in the market console.
Does anyone know what that's for?
I have tested this new field, and I can tell for sure that it was ignored when
rendering the android market icon. Maybe that it will get used after a market
upgrade...
Furthermore,
for
application details view, and there is not enough room for such large
icons in the application list view.
Perhaps it's for Google TV or for desktop-oriented Market?
Hopefully there is an explanation coming soon enough.
-- Kostya
17.11.2010 19:03, Olivier Guilyardi пишет:
Hi,
I
Hi,
IIUC, there should only be one instance of a given service, it is a singleton.
However, my (audio engine) service gets instantiated multiple times, although I
do nothing for it.
When the service crashes (for example when I uninstall the app through adb), it
gets scheduled for restart
the service running as long as either it is started or
there are one or more connections to it
Olivier
On 09/27/2010 10:51 PM, Agus wrote:
Calling bindService will start the service if it has not been started,
so you dont have to call both methods.
On Mon, Sep 27, 2010 at 6:15 AM, Olivier Guilyardi l
I think that you want to make a Content Provider:
http://developer.android.com/guide/topics/providers/content-providers.html
With this you can allow other apps to retrieve data from your app. Internally,
you can store this data the way you want, in shared preferences, in a sqlite
database, etc..
Hi,
every single app on the market has a unique package name.
So if your trial version is com.foo.bar, your full version must be something
like com.foo.pro.bar.
In addition to modifying the manifest, this involves reorganizing the java
source tree when building the alternative version, which
Yes, that's right, and I don't understand why you consider this to be a
nightmare. Other issues may qualify as such, but not this one IMO.
The market doesn't allow you to turn a free into a paid app, and I think that's
because it would turn into a grand mess for people who upgrade but originally
server or now using LVL.
Why I should build two APK with different package name if it will be
the same software?
On Jul 28, 6:32 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
I haven't understood if I can't delete my actual trial app from the
market.
On Jul 28, 3:33 pm, Olivier
Hi,
in the developer console, I have a couple of errors, which although fixed in the
code and marked old in the console, still show up on the front page. And I
highly suspect that this is affecting the rank of my apps.
This is obviously a bug in the developer console:
1. at the developer
Hi,
in the developer console, I have a couple of errors, which although marked old,
still show up on the front page. And I highly suspect that this is affecting the
rank of my apps.
Could this please be fixed?
--
Olivier
--
You received this message because you are subscribed to the Google
Hi,
has anyone managed to connect to a device with adb over a wifi connection? I'd
like to stop plugging the device in and out if possible. Hackish solutions are
welcome too.
--
Olivier
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To
I personally do that kind of thing:
class MyThread extends Thread {
private boolean done;
public void run() {
while (true) {
synchronized (this) {
if (done) break;
}
/* do a small part of the heavy work */
}
/* cleanup, close files, etc.. */
}
/*
On 06/13/2010 03:46 PM, tarek.attia wrote:
I have a question what to Use ,Service Or Thread,as both run in the
background
There is confusion here, because you are referring to two different meanings of
the word background.
A thread, in Java but also in many other languages, allows for
On 06/13/2010 06:23 PM, Olivier Guilyardi wrote:
On 06/13/2010 03:46 PM, tarek.attia wrote:
I have a question what to Use ,Service Or Thread,as both run in the
background
There is confusion here, because you are referring to two different meanings
of
the word background.
A thread
On 06/13/2010 06:49 PM, tarek attia wrote:
Thanks you so much for this clarification ,,exactly I want to make an
application that keeps running while the user may went of the main
application ,,and I guess Service will be the best candidate for doing
that ,,,
But what if the
On 06/14/2010 12:00 AM, Olivier Guilyardi wrote:
On 06/13/2010 06:49 PM, tarek attia wrote:
Thanks you so much for this clarification ,,exactly I want to make an
application that keeps running while the user may went of the main
application ,,and I guess Service will be the best candidate
On 06/06/2010 11:25 PM, blahblah...@gmail.com wrote:
It seems that Android is very buggy compared not only to the iPhone,
but to pretty much any other software. It's not just minor bugs either
- pretty much every developer will come across many serious bugs. Some
examples:
[...]
Since this
On 06/09/2010 01:29 PM, Anton Persson wrote:
OK, the only example you bring up about ANDROID itself is the
IOException-part... That is not even a _bug_, that is a usage error.
Have you ever used BSD sockets in most other OS:es? It's up to you to
handle connection timeouts. TCP/IP over the
Dianne,
On 06/07/2010 11:51 PM, Dianne Hackborn wrote:
Our developer tools team is admittedly fairly small, and has done an
amazing job with the people they have. Also most of the stuff related
to these issues are in the open-source tree, so if they are trivial
issues someone could probably
On 06/08/2010 12:36 AM, Xavier Ducrohet wrote:
On Mon, Jun 7, 2010 at 3:21 PM, Olivier Guilyardi l...@samalyse.com wrote:
For instance, how could someone feel like working on patch if the Git head is
hidden?
Since most of the bugs mentioned in the original email are developer
tools, I'll
On 06/08/2010 12:46 AM, Olivier Guilyardi wrote:
On 06/08/2010 12:36 AM, Xavier Ducrohet wrote:
On Mon, Jun 7, 2010 at 3:21 PM, Olivier Guilyardi l...@samalyse.com wrote:
For instance, how could someone feel like working on patch if the Git head
is
hidden?
Since most of the bugs mentioned
On 06/08/2010 01:04 AM, Dianne Hackborn wrote:
On Mon, Jun 7, 2010 at 3:21 PM, Olivier Guilyardi l...@samalyse.com
mailto:l...@samalyse.com wrote:
This openness is your strength, and I think that it will lead to
success if you
manage to build an active community of contributors
On 06/08/2010 01:48 AM, Xavier Ducrohet wrote:
On Mon, Jun 7, 2010 at 4:33 PM, Olivier Guilyardi l...@samalyse.com wrote:
I think that your problem is that the whole of Android is too monolithic. You
are mentioning branches where you could think in terms of standalone modules.
monolithic
Hi,
is there a way to change the mic audio input level? This is not about increasing
it, as I can do this by applying a software gain. I need to reduce the level, to
avoid clipping in loud sound conditions.
--
Olivier
--
You received this message because you are subscribed to the Google
On 05/22/2010 03:28 PM, Steve Hueners wrote:
Is the root cause of android phones' inability to record phone
conversations documented anywhere?
I don't know about documentation, but there are discussions:
http://code.google.com/p/android/issues/detail?id=2117
Hi,
if I understand correctly, getting audio input from a Bluetooth mic/headset,
using say AudioRecord, is not supported. Is this right?
--
Olivier
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi,
I can successfully create an AudioRecord instance on the emulator, on Android
1.5, 1.6, and 2.0 with the following statement :
new AudioRecord(
MediaRecorder.AudioSource.MIC,
8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
16384);
But it
Hi Gabriel,
On 04/12/2010 11:34 PM, Gabriel Simões wrote:
Well, yes, there´s a clue. At least I´ve had the same error before and
it was this:
Everytime you get an error instantiating AudioRecord it doesn´t
release it´s resources the way it should so you won´t be able to
request it again
glColor4x() works fine. Use bit shifting, no need for floats or divisions, eg
for value=0xAARRGGBB:
int alpha = (value 16) 0xFF00;
int red= (value 8) 0xFF00;
int green = value 0xFF00;
int blue = (value 8) 0xFF00;
gl.glColor4x(red, green, blue, alpha);
That should be faster.
On 01/08/2010 07:15 PM, Mariano Kamp wrote:
this seems to be a very basic need, but googling it I got the impression
that is not easily or elegantly solvable.
The requirement is totally simple: I want to have a lite and pro version
of an app. There is a little bit of difference between those
On 12/28/2009 07:09 PM, Olivier Guilyardi wrote:
on Android 1.5, using the Allocation Tracker I see that every time I call
TextView.setText() with a StringBuilder as first argument, a String gets
allocated from the following call stack (first line is last call
On 12/29/2009 01:01 PM, Ravinder wrote:
I am trying to play raw audio samples ( 16 bit , stereo , @ 32000KHz)
using AudioTrack, in MODE_STREAM mode.
I could play the first video buffer successfully but, After having
received onMarkerReached for that raw audio buffer, I wonder how to
push
On 12/25/2009 02:00 PM, Business Talk wrote:
I keep posting this message hoping that maybe somebody from google
(media group in particular) monitors the group. I need to stop the
AudioTrack, regardless what's in the buffer, immediately when
executing the stop/release. The AudioTrack plays in
Hi,
on Android 1.5, using the Allocation Tracker I see that every time I call
TextView.setText() with a StringBuilder as first argument, a String gets
allocated from the following call stack (first line is last call):
java.lang.AbstractStringBuilder toString
java.lang.StringBuilder
On 12/24/2009 06:07 PM, flohier wrote:
I'm trying to use the MediaRecorder to have my application
continuously record audio in memory (to a circular buffer of a known
size). Indeed, I'd like to be able to play back the past 10 seconds of
recorded based on a certain event in my program.
You
On 12/16/2009 05:00 PM, Neilz wrote:
Hi all.
I want to store location data in sqlite. A latitude coordinate is a
double, with 15 point precision. As far as I can tell this corresponds
with the 'REAL' datatype which is 8 bytes. The alternative I suppose
would be to store it as a String, and
On 12/14/2009 03:29 PM, Banderas wrote:
I'm developing a C++ application for the android that needs to talk
with a server whenever there is an internet connection available. If
the internet connection is cut-off the application needs to sleep in
order to reduce the battery consumption. If the
On 12/14/2009 04:34 PM, Banderas wrote:
Thanks for the answer but I'm not using the NDK .
Instead, I'm developing using the entire source code ( AOSP) , so it
should be possible. Any indications in how I can implement this
feature? I would be very appreciated.
I also understand very
Hi,
I have 2 activities and need the second one to be translucent when
started by and over the first one.
When I set my activity theme to @android:style/Theme.Translucent, it
works.
I however want to customize alpha. So, following the example in
ApiDemos - app - TranslucentActivity, I write:
On 16 sep, 19:18, Yusuf Saib (T-Mobile USA) yusuf.s...@t-
Mobile.com wrote:
- is there any Android component for this around ?
No[t to my knowledge].
- may I encounter performances problems doing image computation in
pure Java when scrolling, etc..?
It might be slow and/or occasionally
Hi,
I need to display an interactive (scroll, zoom) panorama out of a qtvr
(QuickTime VR) file. I've found some Java code for this, namely
PTViewer (http://wiki.panotools.org/PTViewer), which seems to have
been ported on J2ME.
Before I try and port this code :
- is there any Android component
67 matches
Mail list logo