ok, i'll bite. at least i have no clue what you are asking and hence cannot
help. you say "it couldn't be executed". what do you actually mean?
as an example the below code start's the activity only when there is an
exception. is that what you wanted? or is that how you cut & paste?
On Fri, Jun 1
I'm not sure there is any XML way of doing this. You can extend TextView (or
whatever is the view that you are looking to have this border on) and
implement this in the onDraw. There should also be a way to write a Drawable
and do this which can then be extended to any View but I don't know enough
And when you return from the run method the thread will stop/die by itself.
Ideally your main Activity which started this thread off will be the one
notifying the user and if needed calling finish...
On Tue, Jun 14, 2011 at 7:10 AM, Mark Murphy wrote:
> Use runOnUiThread() around your code in the
Is this a Service as opposed to an activity? Or is there a
BroadcastReceiver? A plain Activity needs an Intent to start so if you are
positive you have an Activity then you should print out the Intent in the
onCreate and see if you find something.
On Tue, Jun 14, 2011 at 8:00 AM, gunanar...@gmail.
There are some phones, eg the first HTC phone at VZW, which have 3 mount
points for music. Basically the internal memory is partitioned into the
"internal" filesystem & a modifiable partition that can be mounted as a USB
drive. Users can move music there & this is scanned by the media player but
is
Really? I'd love to see the code open sourced as well but I am not sure I
can justify needing sources to compile my application. May be you need to
elaborate. BTW this group is for using the publicly available SDK, so if you
are not doing that you might be in the incorrect mailing group...
On Mon,
I just tried this on a 2.3.3 tablet and it was interesting to see Firefox
score 235 with 9 bonus points (for comparison the default browser was 182
with 1 bonus point).
On Tue, May 31, 2011 at 7:33 AM, Mark Murphy wrote:
> On Tue, May 31, 2011 at 7:24 AM, Scythe wrote:
> > 218 + 3 bonus on Galax
you are trying to read the contacts but have not sought the permission that
it is so nicely printing out right there...
On Wed, May 25, 2011 at 2:49 PM, Hitendrasinh Gohil <
hitendra.virtuei...@gmail.com> wrote:
> E/DatabaseUtils( 113): java.lang.SecurityException: Permission Denial:
> reading c
My 2c, if possible this should be removed when there is a proximity sensor.
Really irritating not to be able to see that email or go back to nav using
the notification when in speaker-phone/bluetooth mode. I know, not the
forum, but... Thanks!!
On Fri, Mar 4, 2011 at 1:06 PM, Dianne Hackborn wrot
t; +91 9966973790
>
>
>
> On Thu, Mar 3, 2011 at 2:08 AM, Prakash Iyer wrote:
>
>> There is no Calendar API in the SDK. So you cannot thru any public API
>> access the calendar on the device if that is what you are looking at.
>>
>> On Tue, Mar 1, 2011 at 9:58 A
There is no Calendar API in the SDK. So you cannot thru any public API
access the calendar on the device if that is what you are looking at.
On Tue, Mar 1, 2011 at 9:58 AM, Santhosh Kumar wrote:
> Hi,
>
> I am working with Calendar functionality in android 2.2 api, and the
> api at that level
Is this something new? For the HTC phone on Verizon (Desire?) I was pretty
sure this returned the paltry external SD card while most users ended up
using the built in storage. This causes most apps indexing content on these
devices to fail, including the Gesture Search from Google Labs... Would lov
Ok, urgency taken care of and replied. Now can you shed some light on what
is the problem? If there is an exception in an AsyncTask and it stops you
from processing, I'd think the right thing to do would be to inform the user
(thru the UI thread) of the problem and take care of it from there.
On M
Cool, I think what you have done is commendable already. BTW if you want to
run some tests and I can help on my DroidX, I'd be happy to.
On Mon, Feb 7, 2011 at 10:35 AM, mot12 wrote:
> @Mark
> Thanks for the hint about the MOTODEV forum. That seems worthwhile
> even though my poor test user has
Wow! I don't know if the following is helpful at all. I've seen my DroidX
reboot a bunch of times and in almost all cases the offending app is
probably Google Maps. I say probably because that's the forefront app.
Usually the whole screen freezes - nothing has an impact and then I see that
red circ
On the phone there's is a what's been using the battery. This says display,
contacts etc. I assume this is reasonably accurate on a process level...
On Jan 19, 2011 9:33 PM, "Mark Murphy" wrote:
--
You received this message because you are subscribed to the Google
Groups "Android Developers" gro
13, 2010 9:37 PM, "JoeSchmoe"
wrote:
> That's what I thought it was. How do I post to the main thread
> though? I can't find any documentation on how to do that?
>
> On Dec 13, 5:49 pm, Prakash Iyer wrote:
>> Look at logcat. I'm reasonably sure the
Look at logcat. I'm reasonably sure the trouble is that you are trying
to update the UI from a different thread than the main app thread. In
the button case you are in the main thread. You should post message to
your main thread from the socket thread and then you should be fine.
Sent from my iPho
All what Mark said + be very careful on how the UI gets updated. If you,
like most others, are using an inner class for AsyncTask then the outer
instance is no longer the visible instance when your app goes away or even
an orientation changes. My 2c., AsyncTask has a noble intention but a very
unfo
e
>> Listview class or the adapterView class so im not really sure where im
>> suppose to be able to call getView.
>>
>> On Dec 1, 7:54 pm, Prakash Iyer wrote:
>>
>>
>>
>>
>>
>>
>>
>> > My 2c - you are over-complicating th
My 2c - you are over-complicating this.The getView is ONLY to give back the
view for the item that is requested. If you want this item to be colored X
then do it here. If you want another item to be colored Y then do it when
getView is called for that item. The state maintenance, i.e. what is X or
what do you mean by default view? that method is supposed to return a View
which is used to render the list item. the default implementation, whose
source i recommend you read, returns back a TextView the id (you can pass a
more complex view which has a TextView element etc. all of which is
documen
Isn't getView called from the system and you override it to give back a view
typically to display a list item? You say that you are calling getView - any
specific reason?
On Wed, Dec 1, 2010 at 1:22 PM, kiros88 wrote:
> so basically im trying to figure out what "View convertView" means
> exactly
Hello,
Wrote a simple activity that uses registerReceiver to register an internal
subclass of BroadcastReceiver with an IntentFilter than has
ACTION_MEDIA_EJECT as it's action. I have not set any thing else
(data/category) or requested permissions in my manifest. I used the APIDemos
from the sampl
you can export your contacts on your retail phone onto the sdcard, pull them
onto your computer, push them onto your development phone, import them onto
that dev phone.
don't know about call logs...
On Wed, Nov 24, 2010 at 5:55 PM, Jon Shemitz wrote:
> I have a need to examine the contacts and
Look at the NotePad example in the SDK. The main class is SQLiteDatabase.
There are functions to insert, update, replace and select. The helper is
good for creating and updating.
On Nov 11, 2010 8:28 AM, "zizzfusion" wrote:
> So I have a rather simple XML output from a database I made in mySQL.
>
You might be using the contact id as id of raw contact. Isn't clear that's
the problem as I didn't bother to go thru your logic for contactData but
that would result in a problem like what you are describing...
On Oct 26, 2010 7:40 AM, "A N K ! T" wrote:
> while am trying to pick a contact from ph
Don't you need to start the thread?
On Oct 22, 2010 9:02 AM, "MarcoCanali" wrote:
> I use thic Code in a Class Of type Service :
>
> class A extends Service {
>
>
>
>
>
>
>
> @Override
> public IBinder onBind(Intent intent) {
> // TODO Auto-generated method stub
> Log.v("AppointmentFinderService",
The reference article on Painless Threading pointed me to the Shelves
example as a place to understand AsyncTask. So I was reading that example.
One question popped into my head while I was going thru ShelvesActivity. The
onPause code calls stopBooksUpdater. That code snippet is as follows,
privat
write
> letters?
>
> I sorry , the second question is do not quite understand, how to as
> checking
> My english is not good. p(~_~?)
> --
> Prakash Iyer:
> then where should reomever the bitmap? (・_・?)
> -
Your catching a NullPointerException in your
inputConnection.getTextBeforeCursor call is unnecessary. You are already
checking to see if inputConnection is null. It From the documentation of
InputConnection, and I quote
This method may fail either if the input connection has become invalid (such
a
I think what Kumar means is that does this ever work for this user in
question? One interpretation of your email is that it works for most users
but fails for some.
On Oct 15, 2010 10:07 AM, "Albert" wrote:
> Well it "should" be very obvious but the table exits, im sure of that.
> It just from tim
y
too. I think I'm making sense...
Best,
Prakash
On Oct 14, 2010 11:16 AM, "Mark Murphy" wrote:
> On Thu, Oct 14, 2010 at 11:05 AM, Prakash Iyer wrote:
>> In the getView there is a convertView parameter. I didn't see much
>> documentation around it but given it
Hello,
I'd like to show my users a list of items and when any one is selected, sort
of expand the view. Very similar to the the List example no 6 (List Adapter
Collapsed) in the SDK where if you click on the person you see the speech.
Now in my app, I allow only one expanded view, easy enough to d
Lisa,
Below is a complete guess, so it's worth what you paid for it:) I suspect
the Canvas is referencing the bitmap while trying to save state in onPause.
This is because when the activity resumes it needs to paint it back. Do you
want to move it to onStop?
Best,
Prakash
On Oct 14, 2010 8:36 AM
When are you calling the code to recycle? If I had to guess it looks like
you are doing it before the image is used by the canvas.
The onDestroy is called when the app is cleaned up, so that isn't very
useful in this case. From the snippet you have provided it isn't very
obvious why you would run
It is not required that an onPause is always followed by onStop - in fact if
you press the home key that's what I have seen as the default behavior. This
way if the user goes back to your app, thru the home key press or from
launchpad, the onResume will be called and it will all be much faster than
Also the paid PrinterShare version does say it will use wifi printers, so
you might want to check that. I have only used the free version so don't
know for sure.
On Oct 6, 2010 7:30 PM, "Gober" wrote:
--
You received this message because you are subscribed to the Google
Groups "Android Developer
would you be able to use the NotificationManager and let the user start the
activity? if possible that might be less intrusive...
On Wed, Oct 6, 2010 at 2:23 AM, Doug wrote:
> startActivity works the same in a service as it does in an activity
> (Context vs. Activity argument not withstanding),
Have you set the required permissions in your manifest? Of course, in that
case you should be seeing that error in logcat. You are seeing something in
logcat right, i.e. you are sure you are seeing the right logcat?
On Wed, Oct 6, 2010 at 2:58 AM, Ali Chousein wrote:
> No, unfortunately I don't
o the Activity or UI components are not stale.
would help, IMHO.
I think we are beating a dead horse here and way off topic for the OP, so I
will stop...
On Sun, Oct 3, 2010 at 1:13 AM, Dianne Hackborn wrote:
> On Sat, Oct 2, 2010 at 3:39 PM, Prakash Iyer wrote:
>
>> Each his own. Try wr
ration can be managed by the system.
>
> Tom.
>
> On 2 October 2010 22:20, Prakash Iyer wrote:
>
>> I'm not sure I agree with your comment that it is the wrong question. In
>> fact your explanation of how a majority of the cases a Service runs in the
>> same pr
On Sat, Oct 2, 2010 at 6:14 PM, Yahel wrote:
> Hi all,
>
> I'm having a hard time resolving a crash report.
> It's an OutOfMemory exception that occurs during the setContentView in
> the onCreate of my main activity.
>
> I just want to be sure I understood Android LifeCycle well :
>
> 1) The onCr
all users? I do not want them to do
> a un-install as that would cause them to lose their data. Right?
>
>
> --
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Prakash Iyer
> *Sent:* F
cycle... As some one pointed out
the IntentService is probably a better choice in many cases. Which again
brings to question the orthogonality of AsyncTask & Service...
On Sat, Oct 2, 2010 at 5:09 AM, Dianne Hackborn wrote:
> On Fri, Oct 1, 2010 at 2:07 PM, Prakash Iyer wrote:
>
>&
Could be. If this is a LG on verizon, there's a thread here on how OTA to
2.1 update caused a similarly described problem.
On Oct 1, 2010 6:03 PM, "lloyd1949" wrote:
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, se
You should look at the appropriately named NotificationManager...
On Thu, Sep 30, 2010 at 1:00 PM, Gold wrote:
> Hi,
>
>I want to show notification in service..!
>
>While I click button in my home screen I just call
> service.!
>
>That
Not sure I am experienced but I did use both AsncTask and Service, so here
is my opinion.
AyncTask works great - until the user does something to visually alter your
app, e.g. changes orientation or goes to the home screen. Reason is that the
AsyncTask will most likely be referring to UI elements
Can you call the findViewById before the setContentView? If not the text
view member is null and that's your problem...
On Fri, Oct 1, 2010 at 2:54 PM, TreKing wrote:
> On Wed, Sep 29, 2010 at 9:37 PM, EightBitSpade wrote:
>
>> Unfortunately, I don't exactly what this means, but I gather that th
I have definitely seen the first issue, at least on 2.1. Seems like the
notification pops up only when I run the Market - don't have to check for
anything but the very act of running the Market seems to trigger a check on
the number of updates available. This seems to be the case on 2.2 as well at
no idea on a solution but if it helps, i can test it out on my droid x and
let you (and others) know what, if any thing, shows up on logcat.
On Sat, Sep 25, 2010 at 2:25 PM, samspade79 wrote:
> Good Evening Android Developers,
>
> My app (amongst other things) enables users to set the wallpaper
My bad. I interpreted the Runnable in your post to assume a new thread. That
Handler syntax always confuses me! Thanks.
On Sep 26, 2010 8:45 AM, "Mark Carter" wrote:
> I think all these methods are called on the main thread, so this shouldn't
> be an issue.
>
> On 26 Se
would he also need to synchronize the threads? else in the thread that he is
displaying the options he might have checked the boolean and then just
before he calls his function to display the onStop could have got called in
the other thread? possible?
On Sat, Sep 25, 2010 at 6:38 PM, Dianne Hackbo
Would be nice to have this at the instant the user is experiencing the issue
as opposed to a separate FAQ.
On Sun, Sep 26, 2010 at 4:23 AM, Doug wrote:
> Best advise your users, through your dev page or a FAQ, why you can't
> allow "app2sd" when it has a home screen widget or some other
> constr
Yes. That's what I interpreted the OP saying when he says File is an option
but he's looking for alternatives.
On Sep 19, 2010 10:10 AM, "DanH" wrote:
Can an application not place images or music in directories on the
device, and have those files persist beyond the persistence of the
app?
On Se
Sure. You can find it here,
http://www.catb.org/esr/faqs/smart-questions.html
Will you take fries and a drink with that?
On Sep 19, 2010 9:36 AM, "David Harris" wrote:
Dear Members,
Please Please help me!!!
I need the java code for sending file from android and then a php code
to accept that
different
than if the user deleted the file I guess.
On Sep 19, 2010 9:28 AM, "Mark Murphy" wrote:
On Sun, Sep 19, 2010 at 9:23 AM, Prakash Iyer wrote:
> You could write a content...
Except it won't support the "data survives uninstall" requirement:
-- User install
You could write a content provider app that installs independent of either
of your apps. Then each of your apps could check for and ask to install the
content provider as appropriate. May not be the simplest but it's a choice.
On Sep 19, 2010 8:23 AM, "Mark Murphy" wrote:
On Sun, Sep 19, 2010 at
I have thought along similar lines. I think it should just be option a.
Don't confuse the user with options. In fact don't even allow user to reply
back directly.
On Sep 18, 2010 1:19 PM, "Brad Gies" wrote:
This is a bit long winded (sorry, but I need to explain what I'm doing
before I can ask
try getting logcat output or use adb to install your package on the emulator
and see what's happening. my guess would be the minSDK version is higher
than what is supported on the emulator...
On Sat, Sep 18, 2010 at 12:11 PM, AgitoM wrote:
> Hope anyone can still offer a solution. Or can point m
Not sure what you want to do here. Without the accelerometer the system
wouldn't recognize that the screen has rotated. You (the user) can disable
orientation change in the settings but then no app would ever know the
orientation has changed.
Now, the app can trap the orientation change and decide
I agree - Google hasn't figured out scale yet. After all they deal with what
a few 10's of searches and emails a day...
Some times I wish there would be some one who actually did what Chris is
referring to. Coming back in a few hours to email and finding out the top
posts are
- where are all my po
that is one nice tool. reps inbound for that!
On Sat, Sep 18, 2010 at 4:12 AM, Indicator Veritatis wrote:
> And he should use pastebin at http://pastebin.com/ too, right?
>
> On Sep 17, 8:26 am, TreKing wrote:
> > On Thu, Sep 16, 2010 at 5:27 AM, nimi wrote:
> > > Plz take a look at it and help
JME app written for one phone has a good chance of failing
> on another JME phone, which is why people say that Sun's promise of
> "write once, anywhere" has become (at least for JME) "write once,
> debug everywhere";)
>
> On Sep 17, 5:21 am, Prakash Iyer wrot
Just my 2c - the freemium model when executed well could be one answer.
Basically the free app version should do enough to not invite removal due to
either "not compelling" or "too irritating". But it should also entice
enough so that the user just bites - again patience is key as not every one
wil
Super clever!
On Fri, Sep 17, 2010 at 1:08 PM, Kostya Vasilyev wrote:
> If this is just for testing, you could put a transparent view on top of
> the ListView, handle events there, and call scrolling methods in the
> ListView.
>
> -- Kostya
>
> 17.09.2010 21:06, Moto пишет:
>
> If it makes eve
Hmm... if I have turned the phone upside down. Or maybe a language that goes
from down to top;-)
Seriously though I don't see what the high horses here are. People have
pointed out, rather patiently, that the "normal" behavior is what is
implemented. Anything that goes against that can still be do
Hmm, may be the OutOfResources exception has something to do with it? Just
sayin'...
On Fri, Sep 17, 2010 at 2:08 AM, KANTESH BABANNAVAR wrote:
> Please somebody help me to solve this..
>
> On Aug 31, 2:57 pm, KANTESH BABANNAVAR wrote:
> > Hi Androidians,
> >
> > This is a magic happeni
Please read the SDK documentation. There is in fact code to do exactly this.
On Fri, Sep 17, 2010 at 8:22 AM, mishra wrote:
> hello all
>
> I am trying to access the phone number but not success , I can
> access name and id from the original phone book to my application but
> not phone numbe
OP,
If you do a search you will find a way to run Android apps on
Block/BlackBerry. Involves taking the battery out using cables etc. I
haven't done it yet but I am sure, lots of people here would love to hear
results;-)
On Fri, Sep 17, 2010 at 2:51 AM, Kostya Vasilyev wrote:
> Yeah, that's th
I would dispute your last statement - Android is not a JME platform. Any
Java based app has really no chance of running as is on a JME platform. In
fact as any one who has done serious JME programming will tell you, an
interesting JME program has a decent probability of not working as intended
acro
I have been with the Droid and Droid X on Verizon and never seen this
behavior. They send you a notification that an upgrade is ready or if you
are anxious (like me), you can go check for upgrades. Looks very unusual - I
have seen them sneakily update BlackBerry so I suddenly have newer icons
like
2.2 makes it easier to update all. otherwise if you have a lot of apps and
many have regular updates, it is actually quite tedious.
personally every update, pre 2.2. was a time for introspection. do i
love/use this app enough to spend the minute or two it will take of my
effort to click thru the u
very good thought but isn't this why you should be saving your state and
starting off as if you were resuming? from a user's perspective it is the
right expectation and from the os perspective this is the right
implementation.
On Wed, Sep 15, 2010 at 10:17 AM, viktor wrote:
> > If you haven't us
would you mind expanding on how you solved the problem. certainly you have
provided a pointer but might help others avoid spending the same cycles...
thanks.
On Wed, Sep 15, 2010 at 9:54 AM, Alok Kulkarni wrote:
> Solved the problem. Referred to the Manifest file of Androd Browser.
> Thanks,
> A
75 matches
Mail list logo