Thank you very much for the reply! After reading what Fadden said
weeks ago, I happily converted my static inner handler classes to non-
static ones.
Just recently, I was browsing the source code of Handler and came
across this bit of internal Android debugging:
/*
* Set this flag to
Hi Taísa,
I am reversing the order of your questions.
Did you say the main thread has its own handler?! So, if mine no more
exists, the it will handle that message?
As Dianne said, your handler is not associated with the activity. The
behavior of your handler is not influenced by the state
Hi,
I need to programm this XML in JAVA. Some I figured out, some not. Can
you help me on the missing ones?
TextView android:layout_width=150px
android:layout_height=wrap_content
android:text=Bladidadi
android:layout_gravity=center_vertical
android:textColor=#ff /
TextView tv =
Your code looks fine to me. I have used similar code without problem.
Is it possible that some of your images are corrupt?
Check the logs. When BitmapFactory.decodeStream() returns null it logs
a single-line error message such as:
04-04 00:55:14.184: DEBUG/skia(31069): xxx jpeg error 53
That sounds fine to me. Just remember to respect the clip rectangle
(canvas.getClipBounds()) and ideally not spend time computing Paints
for areas outside the clip.
Also, don't create a new Paint object in onDraw(). Create the Paint
object once, store it in your view and re-use it on every draw
Anyone?
On 4月2日, 下午5时57分, davidandroid2...@yahoo.com
davidandroid2...@yahoo.com wrote:
Is there a way to set the timeout value in WebView? I want the WebView
to be timeouted within 10 seconds if the url is too slow to response.
Havn't able to find any api to support that.
Thanks,
David
Dianne,
Are there specific things I should check in adb shell dumpsys
activity for this problem?
Thanks,
David
On 4月3日, 上午11时26分, Dianne Hackborn hack...@android.com wrote:
You might want to post some code.
Also, adb shell dumpsys activity lets you see the system's current
activity stack
Anyone?
On 4月2日, 下午6时34分, davidandroid2...@yahoo.com
davidandroid2...@yahoo.com wrote:
I have multiple applications which use the sameContentProvidercode
for internal WebView to accesslocalfiles (application private).
Because theContentProviderhas the same code base (package name,
content
I'm trying to make an app that requires me to draw over a layout with
buttons, etc. I want to build a transparent canvas over the current
layout and draw onto that canvas. How is this done?
--~--~-~--~~~---~--~~
You received this message because you are
Thanks Clark!
That exactly what I thought! I have almost same when 46 % active installs
and 3.5 stars.
How can I install and run the app on SD card? What do you mean rooted G1?
Is this option will be a part of standard framework? Sorry for so many
questions :)
Thanks in advance,
Evgeny
On Sat,
Hi All,
I would like to know how to write to file. I have tried using
OutPutStream out = new FileOutPutStream(fileName);
out.write(byte [], 0, length);
This way always returns Parent directory or File is not writable.
I have also used openFileOutPut(fileName, MODE_PRIVATE) method but
this
javame_android wrote:
Hi All,
I would like to know how to write to file. I have tried using
OutPutStream out = new FileOutPutStream(fileName);
out.write(byte [], 0, length);
This way always returns Parent directory or File is not writable.
I have also used openFileOutPut(fileName,
Inderjeet Singh wrote:
What I like about Contacts widget is the
small position indicator (with the first letter of the words currently
getting scrolled) on the right scroll bar.
I don't know how they do that, but Romain Guy implemented the same thing
in his Shelves open source app, so you
LinearLayout android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
LinearLayout android:orientation=vertical android:id=@+id/
topPanel android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_marginLeft=14px
Thank you for reply
can you just send me the tutorial link, what u mentioned in first
paragraph Or any other related tut link.
Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To
On my phone, a dev phone, the bluetooth headset service is always
running even though bluetooth connectivity is disable in the Settings
app. Is this normal?
The ear speaker is not emitting any sound for maybe two weeks now,
even if the on-call sound level is at max (5), so I'm checking a few
Hi, All,
I use the following command to fetch all the source code of android
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
but I can not get platform/external/alsa-lib.git and platform/hardware/
alsa_sound.git
I don't know what's the rule for repo to fetch the code
This isn't quite the right group for this question, at the moment
android-porting would be appropriate.
The alsa code is specific to certain hardware and isn't part of the
core Android Open-Source Project, so it isn't included in the main
manifest for the project.
JBQ
On Sat, Apr 4, 2009 at
Hi All,
I've been working on localization. I think I have localization
working correctly throughout my application. In one case though,
something is amiss. Normally, after a web view creation, a toast
message appears providing a message to the user and works great with
the locale. Then if the
On my phone, a dev phone, the bluetooth headset service is always
running even though bluetooth connectivity is disable in the Settings
app. Is this normal?
The ear speaker is not emitting any sound for maybe two weeks now,
even if the on-call sound level is at max (5), so I'm checking a few
Hi All,
Not to bug you here, but when I was looking for translators for my
application, I came across two sites that allow translators to bid on
your work. Every language known, quality work, and very competitive
pricing.
In need of a translation of your application? Visit www.proz.com or
Fat thumbed a link, should be http://www.translatorscafe.com
Wes
On Apr 4, 9:30 am, wescorp wesc...@gmail.com wrote:
Hi All,
Not to bug you here, but when I was looking for translators for my
application, I came across two sites that allow translators to bid on
your work. Every language
Hello,
I've been playing around with GWT this week, and wrote a small app to
translate strings.xml files into other languages. It's pretty basic,
but I thought I'd make it known in case anyone here had any use for
such a thing.
http://fognl.com/droid-translate
Thanks,
Kelly Schrock
Fognl
What do you mean by windows flat form?
If you want to play a file in the emulator, you will have to create an
sd card image, copy the file to it, and then run the emulator with
that sd card image. You cannot play a file directly off your C: drive.
On Fri, Apr 3, 2009 at 10:49 PM, Nithin
Hi,
I'm trying to create an activity which would be on top of other
activities (a small dialog themed activity) and I want to get ALL key
events to be ignored by my activity and handled normally by the
activity beneath it.
When I say all I mean the send, end and back keys too.
Is this possible?
Hi,
I am trying to change the computer that I am developing on. I
installed the Android SDK and imported my existing project with Import-
Existing Projects Into Workspace. My project has no errors on the
old computer but on the new one I get a bunch errors for my overrides
of onClick, onFling,
Try this:
private boolean SaveDataToFile(SomeType data)
{
ObjectOutputStream objectOut = null;
try
{
File file = new File(sdcard/ + MY_PACKAGE_NAME);
if(!file.exists() file.mkdir())
{
file = new File(MY_FILE_NAME);
if(!file.exists())
I wrote that debugging code because of a couple of memory leaks I
found in the Android codebase. Like you said, a Message has a
reference to the Handler which, when it's inner and non-static, has a
reference to the outer this (an Activity for instance.) If the Message
lives in the queue for a
Does that really help? I mean, is GC that bad?
On Apr 4, 4:03 am, Greg Krimer gkri...@gmail.com wrote:
That sounds fine to me. Just remember to respect the clip rectangle
(canvas.getClipBounds()) and ideally not spend time computing Paints
for areas outside the clip.
Also, don't create a
I have encountered a problem with focused text fields in a WebView not
showing entered text values. As long as a WebView text field has
focus it will not show text or even the blinking cursor. You can
select and highlight the text or unfocus the field to see it, but when
it gains focus it will
You probably migrated from a Java 1.6 to a Java 1.5 environment. Java
1.6 allows to specify @override on interface methods, Java 1.5
restricts it to superclass methods.
JBQ
On Sat, Apr 4, 2009 at 10:07 AM, Bob bshumsk...@yahoo.com wrote:
Hi,
I am trying to change the computer that I am
A rooted G1 is one that the user has root access to. In linux, root
is the administrator user that has full access to the system. The
best thing to do is check out this forum
http://forum.xda-developers.com/showthread.php?t=442480
and read up on rooting your G1.
Please note that having root
Setting FLAG_NOT_FOCUSABLE on the window should probably work. Make sure
you are setting it before you add your content view, and using the API to
add flags instead of just directly poking the LayoutParams structure.
On Sat, Apr 4, 2009 at 9:43 AM, marmor gaz...@gmail.com wrote:
Hi,
I'm
Does the API restrict you from attaching to another database while you
have one open?
I tried the SQLite3 command attach database .../contacts.db as
aliasdb
This works in the adb shell and I'm able to perform joins with tables
in this database.
When I use the same command via the API using
I have been trying to catch outgoing sms and i can tell you it is
currently impossible. No one on here or the platform knows a way to do
it and from the people i have spoken to most have did not seem to even
think people may want to do so. Hopefully it is a feature added in
the future.
On Feb
I think I have the same question, but I'm going to try to explain it a
little better:
My app has 4 activities on the stack A-B-C-D (top)
If you press home and re-enter the application, another instance of A
is started, so the stack is A-B-C-D-A (top). I know this because
when I press BACK, A is
Hello,
First of all, Thank you to Google for Android! It isn't perfect, but
it has A LOT of promise!
I was looking to write an app that would utilize the keypad in
Google's dialer app. I've looked around and I haven't been able to
stumble on to the code for the keypad. I don't know if I'm using
I've been able to work around most of the current bugs in SoundPool
while developing a step-sequencer app, but my sticking point is
stopping a non-looping sound once it's started. I've seen this code
suggested here and in a few other threads as a workaround for the
pause/stop bug:
Hey folks,
I'm trying to setup the development environment on my Linux laptop and
Mac PC but I'm having issues with both environments. When I try
setting it up in Windows it goes down without a hitch. When I try to
do it in both Linux and Mac it all works up to opening any of the XML
editors.
How about use permission in your AndroidManifest.xml to impl. it?
uses-permission
android:name=android.permission.ACCESS_TEST_PROVIDER /
...
provider android:name=.TestProvider ...
android:permission=android.permission.ACCESS_TEST_PROVIDER/
Hello Matt,
Please be kind and share the solution with us, I am having the same
problem, I need android.permission.RECORD_AUDIO.
Thanks a lot.
On Feb 10, 7:17 am, Matt Flax flat...@gmail.com wrote:
Solution found ...
On Tue, Feb 10, 2009 at 12:13 PM, flatmax flat...@gmail.com wrote:
Please be kind and share the solution. Thank you.
On Feb 10, 7:17 am, Matt Flax flat...@gmail.com wrote:
Solution found ...
On Tue, Feb 10, 2009 at 12:13 PM, flatmax flat...@gmail.com wrote:
Hello,
I have a service which uses the RECORD_AUDIO permission.
I have set up my
I'm currently working on porting an iPhone app to Android. It
utilizes the flickr API, so it requires the user to authorize the app
before it can do any actions on behalf of the user. I'm looking to
use a WebView to accomplish this, as the user needs to navigate to a
particular URL linking
Hi ATrubka,
I had exactly the same problem, and I would know if you get any
solution about it??
thanks in advance
Laga
On Feb 28, 12:38 am, ATrubka atru...@gmail.com wrote:
I'm trying to connect to a service, but for some reason connection's
onServiceConnected() never gets invoked with no
Hi Mark,
Would you please give a little more detail about pushing files to that
app-local file sotre? I still got the permission denied when I was
trying to push a file there (My phone don't have that files
subdirectory).
Thanks a lot,
and Best regards,
Bo
On Apr 3, 11:10 pm, Mark Murphy
i am trying to make a control which looks like the ZoomControls.
it is supposed to show up when clicking in a certain area and
disappear a few seconds later.
also it should accept the onClick event.
but i don't know exactly how to realize such a control.
could anybody help me?
thanks in
Hi all,
I recently experienced the cyclic - and somewhat random:
Android.process.acore has stopped unexpectedly
problem and googling it mostly came up with nothing and in a few cases
fixed it by wiping the phone.
I found that unsatisfactory, so I decided to dig deeper. To me it was
pretty
On Feb 19, 8:44 pm, david liu wanqing.da...@gmail.com wrote:
I can create it, there is no permission for this one.
Could you please share how you create it?
Thanks,
~
~
On Thu, Feb 19, 2009 at 6:26 PM, Munish munish.sha...@lntinfotech.comwrote:
Hi
I tried to access the data from
Bo wrote:
Would you please give a little more detail about pushing files to that
app-local file sotre? I still got the permission denied when I was
trying to push a file there (My phone don't have that files
subdirectory).
Then you can't push it there. Your application will need to do
No. How do I check database read permission for contacts.db?
14 is SQLITE_CANTOPEN -- are you sure you have permissions to access
that database from your application?
--
Mark Murphy (a Commons
Guy)http://commonsware.com|http://twitter.com/commonsguy
_The Busy Coder's Guide to Android
bvdev wrote:
Does the API restrict you from attaching to another database while you
have one open?
I tried the SQLite3 command attach database .../contacts.db as
aliasdb
This works in the adb shell and I'm able to perform joins with tables
in this database.
When I use the same command
bvdev wrote:
No. How do I check database read permission for contacts.db?
It's more a question of where it resides. You have read/write access to
/data/data/your.package.here/databases, for example.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android
It's more a question of where it resides. You have read/write access to
/data/data/your.package.here/databases, for example.
You are right. There is no read permission for Other. Looks like
this is
the default permission for all app. databases.
Thanks,
bvdev
As I've said, what you are saying you want is the normal behavior.
To everyone, you must give -detailed- information about exactly what you are
doing for there to be any hope of someone being able to help you. In
particular, provide:
(1) Your complete AndroidManifest.xml
(2) The exact code you
I am getting a StackOverflow error inside ViewRoot, I would appreciate
some help in troubleshooting it?
I don't understand why it causes a StackOverflow, since from the stack
trace, it is not calling something recursive.
And i don't understand why it report line 2155 as the line for the
Permissions are not relevant for this. Just make sure each of the providers
is published under a unique authority (please please please use a name
properly scoped to your own namespace) and you should be fine.
But if you are making these things for only private access in your app, you
might to
Well i finally get the solution..u have to use the su command to
login as root and then have to change the permissions for the folder
(in my case its data). Once done that then you can easily move files
using the eclipse DDMS from the Android Dev Phone 1. But remember you
also need to change
When I look at all the views in HierarchyViewer, why there are
multiple views's 'hasFocus' is true?
I am under the assumption that only 1 view can have focus at a time.
If so, why there are multiple view's hasFocus be true?
Thank you.
--~--~-~--~~~---~--~~
You
hasFocus is different from isFocused. hasFocus == true means that the
View or one of his descendants is focused. If you look closely,
there's a chain of hasFocused Views till you reach the View that
isFocused.
The new HiearchyViewer that comes with Cupcake makes that more obvious
by coloring the
Thank you sir
NIthin N V
--~--~-~--~~~---~--~~
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
60 matches
Mail list logo