It fails in DatabaseUtils method:
public static void readExceptionWithFileNotFoundExceptionFromParcel(
Parcel reply) throws FileNotFoundException {
int code = reply.readInt();
if (code == 0) return;
String msg = reply.readString();
if (code == 1) {
*** this is where the
gnugu wrote:
It fails in DatabaseUtils method:
public static void readExceptionWithFileNotFoundExceptionFromParcel(
Parcel reply) throws FileNotFoundException {
int code = reply.readInt();
if (code == 0) return;
String msg = reply.readString();
if (code == 1) {
Hi Mark,
thanks for your response.
Indeed that line was wrong. Here is what the method looks like now. I
don't get the exception from within my code. Log shows the same as I
posted above and picture is not shown. The picture positively exists
and is on sdcard. Could it be that it has to be in
gnugu wrote:
Indeed that line was wrong. Here is what the method looks like now. I
don't get the exception from within my code. Log shows the same as I
posted above and picture is not shown. The picture positively exists
and is on sdcard. Could it be that it has to be in Camera directory?
No
Yeah why don't you two launch your own free gift program, only to call
it off some time later? There wouldn't be nothing wrong with that
according to your reasoning, right? :)
Kind regards
Mirko
On Apr 12, 3:16 pm, Thomas Riley tomrile...@googlemail.com wrote:
I agree with Al, in some ways, If
I've been using overridePendingTransition to animate Dialog Themed
activities' on creation... I would like to use animations when those
dialogs exit (as in back pressed or work finished).
According to the documentation overridePendingTransition can work when
finish() is called, but I've tried
Hi guys,
i don't want to be a smart-ass or anything :) It may seem to people
looking at this thread that some are complaining which i don't think
is true.. Thanks Google for doing this btw! Must be a logistical
nightmare to deliver so many phones at once, especially in Europe too,
which,
Dear Mark Deloura,
I see that you started your first day at Google today.
Congratulations on the new gig!
I thought as part of your first day as the new Android games guru, I
would make a concise list of things that make game development tough
for us full-time Android game developers.
1) Touch
On Mon, Apr 12, 2010 at 4:33 AM, Nubh nubh.bharg...@gmail.com wrote:
Was going through some apps, I found out there was one application with
validation, lets say we validate the data on web, similarly can anyone
suggest and show a piece of code so that can get it how to do it.
Besides the
Robert Green wrote:
3) Background processes destroy intense game framerates, even on
2.1.
http://www.androidguys.com/2010/03/16/code-pollution-background-foreground/
Where did I go wrong in this analysis? And, if there are no significant
flaws in the analysis, how does that analysis jive with
I want to say Me Too here. I'm not a full time android game
developer but invest a lot of my spare time in producing games as well
as engines/frameworks for Android. I can only agree to all the points
Robert already mentioned.
For me the biggest issue is the broken multi-touch which also affects
I have a relatively simple application with only one activity (in use,
anyway). When I launch it, my activity gets the following sequence of
calls: onCreate, onResume, onPause. This happens with no user input
whatsoever. What's going on with that onPause? The only clue that I
have is a line in the
Yep startForeround() does what it says -- tells the system it should treat
your service as if it is in foreground, something the user is aware of. A
typical example is background music playback, which needs to get as much
CPU as it needs in order to avoid a bad user experience.
Generally, if you
One other bit of information: the activity is not actually paused. If
I disable my onPause method, the activity stays frontmost and appears
interactive (though I don't have much going on at the moment, so it's
a bit hard to tell).
Aaron
On Apr 12, 3:24 pm, asher as...@vanteon.com wrote:
I have
Mark, email yourself from your desktop while playing a game with
reasonable cpu/gpu usage. Watch as the game stutters because the
gmail process eats CPU while updating, then tell me I'm wrong. I care
less about why it happens and more about the fact that it does happen
and we game devs have no
And just what useful visual result do you want to happen as a result?
OR makes sense for black and white, not for color.
Or are you using the graphics processor for something other than
actual graphics?
On Apr 12, 3:30 am, Kaj Bjurman kaj.bjur...@gmail.com wrote:
Hi,
Is it in some way
HTTPS will not, under any circumstance, let you get access to header
or content information from other applications. This would be a
security violation of the highest order! Like steal all your money
security violation. Like steal your identity security violation.
You can use various protocol
Despite everything I have read about the difficulty of making low
latency audio apps in Android, I am giving it a shot. To start, I
loaded each note in an octave into a SoundPool, and then looped
through each note that was to be played on that beat and called
play(). This didn't even come close
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
Actually, Android omits a LOT of the standard J2SE JDK -- though
nothing that would impact a JSON parser.
But the usual JSON parser is built into Android. Just do new
org.json.JSONObject(json string)
On Apr 12, 2:33 am, vworld4u vworl...@gmail.com wrote:
You can use JSON Parser readily
Ah, I see, it might have been due to my misuse of wait() and notify().
In any case, I remember that even sleeping the thread caused
decreased fps rate, (which I took as increased cpu usage.)
I mentioned the pool thread, not because I implemented one, but
because I avoided implementing one and
Agree with the rest..use JSONObject/array. JAXB I believe can convert JSON
to objects as well.. but I may be wrong on that. I know that java/jersey
project with JAXB does handle the json or xml into object for me.. just not
sure if that is jaxb directly or if jersey is doing some of the work.
On
i hate bumping but...
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
Mixing audio in itself is not too hard.. you basically add each byte of each
sound (that plays at the same exact point in time). You do face the issue of
dynamic range.. if you are mixing 16-bit sounds, you don't want to use a
16-bit value to store the mixed sounds.. you'll overflow it. or clip
setScrollIndicators(up, down) is this what you are looking for its in View.
On Mon, Apr 12, 2010 at 3:03 PM, skink psk...@gmail.com wrote:
i hate bumping but...
pskink
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
You can also use XmlSerializer to serialize a DOM, together with about
a page of code to walk the DOM.
That's a whole lot more painful than it ought to be, but it's better
than writing XML tags yourself, which if you find yourself doing,
you're doing something wrong.
On Apr 12, 5:57 am, Mark
I did some audio work on Android and have to agree with Kevin's
analysis. Writting to the audio device via AudioTrack works and you
can also alter the buffer sizes to get to the lowest possible latency
but from what i remember the buffer was still pretty big. Also,
AudioTrack does not allow
On Mon, Apr 12, 2010 at 10:02 AM, dillipk codersnet2...@gmail.com wrote:
Any sample code please???
Use the documentation and SDK samples to get started. I'm sure you can find
more online with a simple Google search. Then post back if you get stuck and
have any specific questions.
My point is that the documentation says nothing at all about raising the
execution prio, but you say now that it does, right?
What the documentation says is that startForground() helps that the process
doesn't get killed and that's what I was after, because it is a costly
process wasting bandwidth
Hi,
Really general, very new to bluetooth. Can we have one android device
broadcasting a simple 'hello' bluetooth network (maybe a radius of
just a few feet) - then when other android devices come into that
area, reply with a 'hello' back? The client devices moving through the
'hello' radius
Skink,
awesome. That sounds fantastic. I will try that.
Cheers,
Mariano
On Mon, Apr 12, 2010 at 7:45 PM, skink psk...@gmail.com wrote:
On Apr 9, 2:36 pm, Mariano Kamp mariano.k...@gmail.com wrote:
*bump*
On Fri, Apr 2, 2010 at 12:53 PM, Mariano Kamp mariano.k...@gmail.com
wrote:
Quoting myself:
And you have done so wonderfully.
What is it your trying to say though?
That it is ok to raise the priority when I don't want my process to be
killed.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
I used DA 2 years ago when I was working as a j2me developer, it went
well, a bit slow but I was able to play the game and test what I
wanted to test. Not a very pleasant experience but it got the job
done.
2OP: ebay is your friend, I believe you can get a used G1 for
$100-150, that's enough to
To add to what's been said above, if you need a static text or a
simple numeric display, and don't want to bother writing a text
renderer, you can use the code from samples/apis/graphics/spritetext
On Apr 12, 5:39 pm, Renjith renjithkum...@gmail.com wrote:
Hi,
Can anyone help me to understand
Mariano Kamp wrote:
Quoting myself:
And you have done so wonderfully.
What is it your trying to say though?
That it is ok to raise the priority when I don't want my process to be
killed.
I'm saying what Ms. Hackborn confirmed in her reply to my post --
startForeground() elevates
1) CPU is not a problem per se. My process can happily be starved of CPU,
but as it needs to do xml parsing it does task the CPU albeit at it's lowest
prio.
2) As I said I rely on an external API that doesn't understand incremental
updates.
Anyway, I think there is no good solution and the
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 unless you restart your phone (or close and reopen
the emulator).
Still prefer JSON, but if talking to legacy systems then you have no
choice to go the XML route.
Luckily I have total control over back end server process so I have
gone the former route.
However, been informed my next program might have to talk to XML back
end (SOAP) and was looking into kSoap,
Hi,
I need to know how many pixels wide and tall the screen is. I know
that there are a bunch of different localization folders that I could
make for different views but I just need to know, programmatically,
how many pixels are on the screen so I can do some drawing. How can I
detect this?
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
I'm running into the same issue. I've even tried the
mp.prepareAsync() method but it fails when I call mp.start(). This is
because it is trying to load the whole file into memory I'm guessing.
Since a URL stream is usually 24/7 it will never prepare. The closest
thing I've come to is this:
RAMGarden wrote:
I'm running into the same issue. I've even tried the
mp.prepareAsync() method but it fails when I call mp.start().
prepareAsync() definitely works with streaming video. I haven't
experimented with streaming audio, lacking a good data source.
This is
because it is trying to
Why do you want to use startForeground()? What is it giving you? If you
want your code to run in the background, it is probably not what you want.
On Mon, Apr 12, 2010 at 2:04 PM, Mariano Kamp mariano.k...@gmail.comwrote:
1) CPU is not a problem per se. My process can happily be starved of
On Apr 12, 2:34 pm, Gabriel Simões gsim...@gmail.com wrote:
I´d like to ask you one thing: have you been able to record a sound
and listen to it without problems using the emulator (older versions).
I can create an instance and indeed record but when I try to play it
the sound is completly
Well then I think I will need to hold 400 bucks to buy a real
device here in Brazil ... and it´s gonna be a crap samsung
On 12 abr, 20:22, HeHe cnm...@gmail.com wrote:
On Apr 12, 2:34 pm, Gabriel Simões gsim...@gmail.com wrote:
I´d like to ask you one thing: have you been able to
I have a service that runs continuously. I opted to run the service in
a separate process, communicating through IPC with the client
activities, thinking this will help conserve memory. If the user is
done interacting, Android could shut down the entire client side
process.
However, the protocol
Michael Elsdörfer wrote:
I have a service that runs continuously.
Please try to avoid that. This is why users attack us with task killers.
http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/
http://www.androidguys.com/2010/03/29/code-pollution-background-control/
Is
No, database writing is extremely slow especially with many indecies.
In my app, I am getting maybe 10 insers a seconds into a table with 20
columns and 15 indecies. As my app is probably 99.9% reads, I didn't
try optimizing the writes too much, not sure if it's even possible.
On Apr 13, 12:33
To customize the way that the spinner drop down looks I think you need
to use your own custom layout instead of using the standard android
layout android.R.layout.simple_spinner_dropdown_item
You can find the xml layout definition for
android.R.layout.simple_spinner_dropdown_item at the following
DisplayMetrics dis = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dis);
Log.i(width = ,+ (width = dis.widthPixels));
Log.i(height = ,+ (height = dis.heightPixels));
On Tue, Apr 13, 2010 at 3:35 AM, Bob bshumsk...@yahoo.com wrote:
Hi,
I need to
I tried it, it just reduces the width of the text in the drop down but not
the width of drop down.
On Tue, Apr 13, 2010 at 6:20 AM, skyhigh skyhigh1...@gmail.com wrote:
To customize the way that the spinner drop down looks I think you need
to use your own custom layout instead of using the
Thank you for the response. I'll give them a try when I am ready test my
app.
On Mon, Apr 12, 2010 at 2:41 PM, Vladimir vladimir.funti...@gmail.comwrote:
I used DA 2 years ago when I was working as a j2me developer, it went
well, a bit slow but I was able to play the game and test what I
Is there anyone who had tried this.. the problem with my implementation is
that the list view is not getting refreshed..even after writing
notifyDataSetChanged.. only the first row gets displayed properly the rest
of the rows display the progress bar even when the images hv loaded.
On Sun, Apr
Dear All,
1. Does Ideal Screen(Screen Lock) application and Launcher
Application( after unlock the screen)
is the same ?
2. How can we set/change position and co-ordinate of Ideal Screen/
Launcher Application ?
Thanks in advance.
Regards
Bappa
--
You received this message because you
Note: this email is related to Android Development since many apps use
XML extensively.
Version 2.8 of VTD-XML, the next generation XML parsing/indexing/xpath
engine, has been released. Please visit
https://sourceforge.net/projects/vtd-xml/files/
to download the latest version.
* Expansion of
My main reason is that I want to have public static final mapped
values available to a number of classes. This way, I can instantiate
other static final fields using some of the mappings in this HashMap.
I can't do that if I have to decode an XML file at run time.
If I could dereference
i believe you should buy one for development, especially after you
country has discovered a huge oil field :-)
On Apr 12, 4:33 pm, Gabriel Simões gsim...@gmail.com wrote:
Well then I think I will need to hold 400 bucks to buy a real
device here in Brazil ... and it´s gonna be a crap
ya u can do that..
using methods like public void setHorizontalScrollBarEnabled (boolean
horizontalScrollBarEnabled)
and public void setVerticalScrollBarEnabled (boolean
verticalScrollBarEnabled)
On Apr 12, 5:48 pm, mmkr manutd...@gmail.com wrote:
Hi all,
Is it possible to disable the
Sounds fun!!! But I need a good phone and a fast one too, and the only thing
on my mind is not to shell out $570, i cant afford that much. Please help
Thanks
NUBH
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
On Apr 11, 11:23 am, Streets Of Boston flyingdutc...@gmail.com
wrote:
If all it OK, you should only have on activity (the new one) and the
old one should be a candidate for garbage collection. But sBackground
is (indirectly) still referencing the old activity and it will not be
garbage
How to validate the data in EditText, i.e. on the time of input. I hope now
you get it what I mean to say for e.g.
we are entering the value of some email id, the validation is required in
the login id of the person that he/she doesnt use a special char or there
is @ mark and there is '.'
On Tue, Apr 13, 2010 at 4:47 AM, Vladimir vladimir.funti...@gmail.com wrote:
To add to what's been said above, if you need a static text or a
simple numeric display, and don't want to bother writing a text
renderer, you can use the code from samples/apis/graphics/spritetext
Oh, the sample is
Note that this returns the raw size of the screen, not taking into account
decorations around it like the status bar or IME that impact the available
space to the app.
Apps should almost always be using the view hierarchy's layout system to
take care of their size. That is, View.onSizeChanged()
You do it the normal way. Take the text of the edit text and validate
it, just the way you do for web apps with UI validations.
Thanks and Regards,
Kumar Bibek
On Apr 13, 9:44 am, nubh.bhargava nubh.bharg...@gmail.com wrote:
How to validate the data in EditText, i.e. on the time of input. I
On Mon, Apr 12, 2010 at 6:30 PM, Kaj Bjurman kaj.bjur...@gmail.com wrote:
Hi,
Is it in some way possible to draw something with bitwise OR? I.e. I
want the pixel values to be OR:ed with the pixel values that already
had been drawn.
I could invoke get pixel, and use OR, and then set the
Hi,every body.
My question is:
I can add to jpg file to Gallery by MediaScannerConnection,but this
way do not create a thumbnail.
I also can do it by MediaStore.Images.Media.insertImage, it create two
thumbnail but the quality is down.
Is there a way to add file to Gallery and creat a thumbnail
Hey everybody!
picture = w.capturePicture(); // w is the webview int hpp = 1200; int
page = 1 + height /hpp; Bitmap b; if(page == 1) {
b = Bitmap.createBitmap( width, height, Bitmap.Config.RGB_565);
Canvas c = new Canvas( b );
picture.draw( c );
String path = folder +
On Mon, Apr 12, 2010 at 11:37 PM, murali raju manutd...@gmail.com wrote:
ya it will be. my requirement is i want to display a large html file in
number of pages such that each page would fit exactly into a single screen.
I will place a button so that when clicked it would show the next page.
On Apr 12, 6:11 pm, social hub shubem...@gmail.com wrote:
setScrollIndicators(up, down) is this what you are looking for its in View.
thanks, but setScrollIndicators is AbsListView's method.
what does it have to do View's scrollbar's thumb Drawables?
pskink
--
You received this message
Hi,
The Picture stuff (which is representing WebView ) is kind of
mysterious for me. If here you got a bitmap and split it into several
files. The problem should not exist. But it is a Picture. I don't know
what's inside and how it's drawn on canvas.
Any idea?
--
Best Regards,
TANG Jiyu
Blog:
Very interesting.. but from what you've said, you're running into the same
latency issues as everyone else on android. The chance of making a
multi-touch MPC program, or a synth that can play multiple sounds at once
seems a bit far off yet for Android at this point. :(
On Mon, Apr 12, 2010 at
101 - 171 of 171 matches
Mail list logo