I've tested the scenario where a service crosses paths with an app,
i.e. both request location provider updates following different levels
of location provider availability, as requested by zero and non-zero
values of minTime.
The mapping of location provider requests appears such that the
proce
There is a way to wait for another thread to finish:
http://developer.android.com/intl/fr/reference/java/lang/Thread.html#join%28%29
If that thread took a while, however, the system might decide your app
isn't responding.
Passing the recreated activity a reference to the thread using this
method
>And what about dev tools, code upgrade from gen1, etc.?
It sure would be nice if we could create Android 2.0 AVDs to test
against in the emulator at least.
I just took a quick look at the Motorola dev site. It had some
impressive options for testing on their other phones: a loaner
program, a wa
Hi,
Do you want to keep the screen on for the complete duration of USSD
session? Or do you want the screen to be on for normal user setting
timeout value, and not timeout while typing user response as is done
today?
Thanks,
Satirtha Nandy
On Oct 23, 8:53 am, neil wrote:
> - Im a developer crea
When I flip the keyboard, the layout changes from portrait to
landscape, activity is recreated but any background thread keeps
running.
How can I prevent orientation change/activity from being recreated
until my background thread finishes.
--~--~-~--~~~---~--~~
You
Hi,
I have a camera app which creates large 2048x, medium 1024x and small
512x images by setting the camera parameters and it is still working
OK in 1.6 on G1.
My guess is that 640 is not a binary integer multiple of 2048 ???, so
maybe try 1024 and then rescale to 640.
Does 5mp pictures ( eg HT
On Sat, Oct 24, 2009 at 5:24 PM, sherifffruitfly
wrote:
>
> Uh... I didn't *assume* anything. I asked.
>
> There's a new android phone coming out with a new android os. I
> thought it therefore made sense to wonder if there was a dev version
> of it to be made available, exactly as they did with
Thomas wrote:
> I compiled my apk and uploaded it to android market I think? There
> was not any indication of success or failure. How can anyone check if
> the app has uploaded or not?
Your app should show up in the Android Market on your phone minutes
after uploading. When I published an app
I compiled my apk and uploaded it to android market I think? There
was not any indication of success or failure. How can anyone check if
the app has uploaded or not? Searching via an Android browser is
bizarre. I really want to email my users there is an app they should
try. How else can an a
Here is some more research on this:
quick summary once again: I have two activities
1. main
2. search activity
Nature of search activity
1. invoke a browser
2. finish after that
3. As a result browser will be showing when this search activity is invoked
When does i
On Oct 9, 7:04 am, jotobjects wrote:
> Understood - addinig android.jar would hugely increase the size of
> your app (by about 3MB)!
I think you can elimit jar from your apk by ant.
I have done it before.
> I was just suggesting that you could place android.jar in your
> classpath for building
Uh... I didn't *assume* anything. I asked.
There's a new android phone coming out with a new android os. I
thought it therefore made sense to wonder if there was a dev version
of it to be made available, exactly as they did with the g1/dream.
Not sure what's out of order about that wonder. (shru
>non-deterministic behavior when the different values of minTime are set as
>result to (asynchronous) events
The requestLocationUpdates methods use a synchronized block to avoid
that potential problem:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/andro
What do you mean by "dev phone"? Every Android phone is a development phone
-- it has all of the facilities to develop applications against it. The
ADP1 is a special thing for people working on the platform, and I certainly
wouldn't assume there is going to be a special product based on -any-
par
For that kind of thing there should be no need to use bindService at all --
just call startService() for each of the things to download, and have the
service use stopSelf(id) so that it is stopped once the last one is done.
And there is no reason to delay stopping the service -- starting a service
On Oct 24, 7:52 pm, Dianne Hackborn wrote:
> From what I have heard so far, my suspicion is that whatever the original
> code is, it is really not using these things correctly at all.
If you mean that I shouldn't rely on side effects, you're totally
right. I'm now looking for a more proper sol
On Oct 24, 6:47 pm, Mark Murphy wrote:
> Why aren't you scheduling this in the Activity, and just calling to the
> Service when the time has elapsed? If the answer is "I want it to fire
> even if the Activity is gone", AlarmManager may be a better choice.
Actually, the activity hands some data
Would appreciate some help here, my app (Apple2 Emulator) runs great
on the emulator, but when I put it up on my G1 it becomes extremely
flakey. Force quit / hang like crazy. I uploaded to the market and
everyone is force quitting the app. Not good! The code is based on
the old lunar lander ex
Greg Donald wrote:
> On Sat, Oct 24, 2009 at 1:34 PM, Mark Murphy wrote:
>>> The button that uses the go.xml no longer works either.
>> When you say "no longer works", what do you mean?
>
> None of the code in the button's onclick handler runs. The button
> clicks and nothing happens.
Now that
And what about dev tools, code upgrade from gen1, etc.?
--~--~-~--~~~---~--~~
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 unsubscr
On Sat, Oct 24, 2009 at 1:34 PM, Mark Murphy wrote:
>> The button that uses the go.xml no longer works either.
>
> When you say "no longer works", what do you mean?
None of the code in the button's onclick handler runs. The button
clicks and nothing happens.
--
Greg Donald
http://destiney.co
You might want to do this during onCreate
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
or landscape whichever it is that you want
On Sat, Oct 24, 2009 at 2:22 AM, Philip wrote:
>
> When i chick a button on my app , the method below will be happened.
> ***
Greg Donald wrote:
> On Sat, Oct 24, 2009 at 12:15 PM, Mark Murphy wrote:
>> Try doing Project > Clean or otherwise nuke your bin/ and gen/
>> directories. Then, fully uninstall the app off the Hero (e.g., use
>> Manage Applications). Then, try installing it again and see if the
>> problem recurs
On Oct 24, 12:58 am, Mark Murphy wrote:
> Disretrospect wrote:
> > Mark Murphy wrote:
> >> You cannot get TIME_TICK via a manifest-registered receiver. It has to
> >> be a receiver registered via Java code.
>
> > Still possible though, register your receiver from your config
> > activity or thro
On Sat, Oct 24, 2009 at 9:47 AM, Mark Murphy wrote:
> > new Handler().postDelayed(someTask, someTime);
> I have not used Handler inside a Service, and so I have no idea whether
> or not that's a good idea.
>
Handler and the related message loop APIs are much much lower-level than
Service, Activit
On Sat, Oct 24, 2009 at 12:15 PM, Mark Murphy wrote:
> Try doing Project > Clean or otherwise nuke your bin/ and gen/
> directories. Then, fully uninstall the app off the Hero (e.g., use
> Manage Applications). Then, try installing it again and see if the
> problem recurs.
Same problem. Cleanin
Hi,
I want to draw 20 pins on a MapActivity. Each pin has a small pin
image, but I have to dynamically overlay a small bit of text over each
pin at runtime. Looks like I have two options:
#1) Itemized Overlay
This is the suggested method. I put all my pins in one ItemizedOverlay
object, and that
I finally got it to record videos. The preview surfcae works fine and
the audio stream of the audio resulting file is also okay. But the
video stream is a complete messup because you cannot figure out what
it is. The main part of the screen is filled with green colours.
Any idea what could be the
> 10-24 12:42:49.860: DEBUG/Blockx.GameController(900): Surface created
> 10-24 12:42:49.890: ERROR/SurfaceFlinger(577): not enough memory for
> layer bitmap size=1642496 (w=480, h=854, stride=480, format=1)
> 10-24 12:42:49.890: DEBUG/MemoryDealer(577): LayerBitmap (0x2e9350,
> size=8388608)
>
Greg Donald wrote:
> On Wed, Oct 21, 2009 at 11:22 AM, Greg Donald wrote:
>> In my project, in the res/drawable directory I have:
>>
>> icon.png
>> go_bg.png
>> go_bg2.png
>> go.xml
>>
>> The contents of the go.xml:
>>
>>
>> http://schemas.android.com/apk/res/android";>
>>
>>
>>
>>
>> When
On Wed, Oct 21, 2009 at 11:22 AM, Greg Donald wrote:
> In my project, in the res/drawable directory I have:
>
> icon.png
> go_bg.png
> go_bg2.png
> go.xml
>
> The contents of the go.xml:
>
>
> http://schemas.android.com/apk/res/android";>
>
>
>
>
> When I put the app on my HTC Hero, it work
Intentionally, sure. But this is a *side effect*.
On Oct 24, 9:41 am, Christine wrote:
> You can choke the foreground app anyway, if you want to. But you don't
> - I guess.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
TwoMinuteHate wrote:
> How easy is it to make an application that's just a wrapper around the
> browser?
That depends on what you want to do. Embedding a WebView widget in an
application is very simple, but forms, navigation, and such make things
much more complicated.
> Can the Android OS boot
How easy is it to make an application that's just a wrapper around the
browser?
Can the Android OS boot directly into that application so that only a
certain
application launches after boot.
I'm building a client some custom software and I'd prefer to use one
of those Archos 5 MIDs than a Linux
Hello All,
I know this is not the right place to ask this question, but I don't
know where to go neither.
The site developer.android.com could not be accessed inside main land
China. No doubt it's blocked by the great fire wall, but I can not
figure out why they(The Chinese gov) did this. Isn't
Hi All,
I am trying to load a file using resource. my file size is more than
1mb.
res/raw : contains a file named abc_fb2 .
but i am getting UNCOMPRESS_DATA_MAX error in catlog.
as per my google, i found that there might be asset.h file , which we
need to change. with some more value like 3*102
Yes - very annoying!
On Oct 23, 10:24 am, Lox wrote:
> So no one has an indication, it is really anoying for some people in
> some countries.
>
> On 28 sep, 19:14, Simon wrote:
>
>
>
> > I have a similar problem. I am in Pakistan where thetimezoneis
> > normally GMT + 5. However at the moment
Hi,
My application uses an EditText box to input information that is not
English words.
When I do this i get the candidates view (which I normally love :)
with suggestions for known words.
I do not want to pollute my word list by saving what I typed so I want
to turn off candidates view for this
Christine wrote:
>> What is "a task scheduled via a handler"?
>
> new Handler().postDelayed(someTask, someTime);
I have not used Handler inside a Service, and so I have no idea whether
or not that's a good idea.
Why aren't you scheduling this in the Activity, and just calling to the
Service whe
On Oct 24, 6:11 pm, JP wrote:
By mapping multiple objects (listeners) with
> different attribute values to a single one (location provider), you
> never know what you will get.
The documentation says that you can't be sure what you'll get. You
will probably get location updates at least as ofte
On Oct 24, 6:13 pm, Mark Murphy wrote:
> What is "a task scheduled via a handler"?
new Handler().postDelayed(someTask, someTime);
>
> > An activity binds to
> > the service and makes it work, but after unbind it can't bind again.
> Why unbind before the activity is going away?
Well, I supp
Hi-- I'm trying to draw some large circles on the canvas which are
partly offscreen, then use animation to rotate them in be fully
visible. My circles successfully rotate in, but when they come into
view they're clipped at the place that was the screen edge when they
were originally drawn. Is ther
that's correct. The server rejects the session cookie and I have to
login, but the same session cookie works fine when used with other
messages to the server. The odd thing is that this doesn't happen all
the time. The cookie will occassionally work in the given code
snippet so I thought it mig
Christine wrote:
> I have a service that is waiting for input from an Activity. I noticed
> that if the service has a task scheduled via a handler, an Activity
> can bind and unbind repeatedly to make the service do stuff.
What is "a task scheduled via a handler"?
> An activity binds to
> the s
Hmm, ok thanks - "which value should be used" was intended as a
rhetoric question, pointing out that in it's current form, this
feature is not usable. It has the potential to cause non-deterministic
behavior when the different values of minTime are set as result to
(asynchronous) events. By mappi
I have a service that is waiting for input from an Activity. I noticed
that if the service has a task scheduled via a handler, an Activity
can bind and unbind repeatedly to make the service do stuff. However,
if the service doesn't have a task scheduled and really doesn't do
anything while waiting
The element in your AndroidManifest.xml supports the
android:screenOrientation property see:
http://developer.android.com/guide/topics/manifest/activity-element.html
--
RichardC
On Oct 24, 10:22 am, Philip wrote:
> When i chick a button on my app , the method below will be happened.
> *
Here is a new log file:
10-24 17:21:58.300: INFO/Resources(14467): Loaded time zone names for
en_US in 2167ms.
10-24 17:21:58.310: INFO/System.out(14467): MNM Redactie:Een nieuwe #1
in de MNM50! RT @jaspererkens: op 1 in de MNM50! // Om preciezer te
zijn: 3. Ke$ha 2. David Guetta
10-24 17:22:00.2
Wouter wrote:
> I had used this first, but had this issue and I tried another API. But
> with the same result. Don't you have this problem with 1.5?
I have had no complaints related to this, if that's what you mean. I
have run into the time zone load issue before, but if it's affecting
JTwitter,
I have tried to install the application on my HTC magic with
"mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBA_);". I
works perfectly. When I comment out the line the graphics looks very
strange on my HTC magic, but that is where it looks fine in the
emulator. If the emulator cannot be tr
On Oct 24, 4:59 pm, Mark Murphy wrote:
> Wouter wrote:
> > What is the problem for 1.5 and why does this works for 1.6?
>
> See the issue I linked to in the previous message.
So it is only fixed in 1.6 and users with 1.5 have to wait longer? :(
>
> > Are do you have another API for twitter I
I'm testing my application on WVGA854 emulator. I use two activities
with GL surface one is a menu and second is game itself. While
launching game in logcat there is a message about out of memory error
and application is killed:
10-24 12:42:49.860: DEBUG/Blockx.GameController(900): Surface create
Wouter wrote:
> What is the problem for 1.5 and why does this works for 1.6?
See the issue I linked to in the previous message.
> Are do you have another API for twitter I can use or some examples? I
> have used your thumbnailadapter (as example for Twitter).
Well, I use JTwitter in my books.
Before 1.6:
Camera.Parameters parameters = mCamera.getParameters();
parameters.setPictureSize(640, 480);
Would deliver me a 640 by 480 image from the Camera.
As of the 1.6 OS upgrade on my G1 (it doesn't matter whether the
SDK is 1.5 or 1.6) is sends me 2048x1536 pixel images.
I am only using the twitter4j api and I never use SimpleDateFormat
myself.
And I have this problem also when I use another api for twitter
(jtwitter).
This is my code (a part of):
client=new Twitter(user, password);
Query query = new Query("surrogates");
Wouter wrote:
> I am using the twitter4j api to get tweets but it takes to long to get
> the result.
> When I see at the log files i see this:
>
> 10-24 16:29:19.300: INFO/Resources(12924): Loaded time zone names for
> en_US in 2265ms.
>
> And that per tweet. So it takes a long time before it lo
Hey,
I am using the twitter4j api to get tweets but it takes to long to get
the result.
When I see at the log files i see this:
10-24 16:29:19.300: INFO/Resources(12924): Loaded time zone names for
en_US in 2265ms.
And that per tweet. So it takes a long time before it loads this.
I have tested
Sorry everybody.
It turn out the file I push into sdcard is an empty file. I don't know
why. But I use another lrc file so it is allright now.
So administrator please remove this topic to save other people's time
if possible.
--~--~-~--~~~---~--~~
You received thi
I have a package with two activities
1. A main activity
2. A search activity
The search activity is invoked by a search suggestion provider in two
possible ways
1. By clicking directly on a suggestion invoking the search activity
through a VIEW action
2. By clicking on the explicit search icon
100town wrote:
> I did it. The same problem.
I just tried modifying one of my book samples to read and write .lrc
files, and I ran into no trouble, using the same algorithm that I linked
to in my previous reply. I tested this on an Android 1.6 emulator and a
T-Mobile G1 running Android 1.6.
The
Hi guys,
Does anybody have any sample code to access/get the postal addressed
of a contact using Contact API?
I searched the sdk doc but did not find enough info to do this.
Thanks for any help you can provide.
Sam
--~--~-~--~~~---~--~~
You received this message
I did it. The same problem.
> The lrc->txt file extension change makes no sense to me.
>
> That being said, try a better file-reading algorithm and see if it helps:
>
> http://exampledepot.com/egs/java.io/ReadLinesFromFile.html
--~--~-~--~~~---~--~~
You received t
100town wrote:
> Hi,
>
> I am in the problem about reading data from some new file extensions,
> the problem is fis.read() gets -1 from the first run without and
> exceptions being thrown. Check the code below:
> String path = “/sdcard/wanshuiqianshan.lrc”;
> java.io.FileInputStream fis = null;
>
Hi,
I am in the problem about reading data from some new file extensions,
the problem is fis.read() gets -1 from the first run without and
exceptions being thrown. Check the code below:
String path = “/sdcard/wanshuiqianshan.lrc”;
java.io.FileInputStream fis = null;
try{
When i chick a button on my app , the method below will be happened.
if(android.provider.Settings.System.getInt(getContentResolver
(),Settings.System.ACCELEROMETER_ROTATION, 0) == 1) {
android.provider.Settings.System.putInt(getContentResolver
(
You can close a dialog using its dismiss() method :
http://developer.android.com/intl/fr/reference/android/app/Dialog.html#dismiss%28%29
You might want to consider having the activity manage restoring your
dialog for you as well:
http://developer.android.com/intl/fr/reference/android/app/Activity
>multiple listeners for a location provider with different minTime intervals -
>which value should be used
Looks like the current implementation uses the shortest value for that
situation:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/Loc
Oh well. Maybe I should raise it as a bug, as this is a problem to me,
and it seems there should be a standard method to the effect of
alert.close();
On Oct 23, 1:02 pm, Neilz wrote:
> Hi. I have an activity which pops up a Dialog box, to get some text
> input from the user. The problem arises w
Thanks Scott. Yes, you are right. the Android API is calculating the
orientation by using the mag and gravity(acceleration), and this is
why the orientation is affected (strongly affected) by the
acceleration. So just wondering if you have any idea to get the pure
acceleration data without gravity
> if you want your context menu to popup on single item selection then
how would you scroll very long list?
Having thought about it, I Don't agree with this... It's perfectly
usual for android to behave in this way. Think about when you are
scrolling through the apps how easy it is to open one o
Hi
Well I use my own GLSurfaceView:
public class GLSurfaceView extends SurfaceView implements
SurfaceHolder.Callback
I did not know that a GLSurfaceView was added to the SDK. I will
consider starting to use that, but I am pretty sure that it is not the
problem right now. Or do you think it is? R
71 matches
Mail list logo