Lance is absolutely right. I ran into this problem a few months ago.
Possible solution:
Hold a static handle to your currently active instance of your
activity (works only if you have at most one active instance of your
activity at any given time in your process).
public class MyActivity extends
t still doesn't seem to work..
>
> > The Toast popup appears twice, then the ProgressDialog just continues
> > to run regardless
>
> > On Nov 7, 5:14 pm, Streets Of Boston wrote:
>
> > > Lance is absolutely right. I ran into this problem a few months ago.
&g
essing that's why dismissDialog()
> doesn't work (on in fact the code in onPostExecute() doesn't get
> executed because the phone has change orientation and it's trying to
> dismiss a dialog which doesn't exist.
>
> On 8 Nov, 03:52, Streets Of Boston wrote:
&g
{
> this.activity = activity;
> if ( completed ) {
> notifyActivityTaskCompleted();
> }
> }
>
> }
>
> }
>
> On Nov 10, 5:41 pm, Lee Jarvis
Chill out! :=)
To me it looks like a more tight-knit version of their earlier
agreement.
About the 48hour:
That was already happening, kind-of. I had some refunds that were
about 36 hours after the sale. Am i happy with this long period, no...
but it's nothing new, i think.
The main changes seem
I think the Gallery just uses BitmapFactory to read the images.
But, the biggest images i've had on my phone are 2048x1539pixels
(6MByte uncompressed, when using RGB_565). I've not tried to load a
truly huge image.
On Nov 11, 12:54 pm, "gaetan.eleo...@gmail.com"
wrote:
> Hi, i'm wondering too ho
That's just in the emulator. The emulated camera only 'takes' 213x350
pixel pictures.
And you need to deal with it anyway in your code, just in case you set
some picture width/height that is not supported by some real Android
phone.
On Oct 29, 10:03 am, chrispix wrote:
> I am having an issue w/ 2
What would happen if someone gets a new android phone? The app's
authentication will fail.
You should hash/key on the user's google-account, the same key that is
used by Android Market (you can download paid apps as often as you
want - once you paid for them - based on your google-account)
On Nov
When using openInputStream on the content-resolver, the returned input-
stream is not as 'flexible' as a FileInputStream. For example,
FileInputStreams can be retried if something goes wrong. The one
returned by openInputStream can not.
To get the fully qualified path-name to the image-file (jpg/p
Like some others suggested pre-process the large file, break it up in
smaller chunks, each chunk being a proper JPEG
Then put all the chunks in a RandomAccessFile or a database. Be sure
to be able to find the chunks by a row and column index.
Then put this RandomAccessFile or database on your phon
http://groups.google.com/group/android-developers/browse_frm/thread/9d2bf53e3a798cb6/07cfa3ee11507fc1?lnk=gst&q=gluUnproject#07cfa3ee11507fc1
On Nov 22, 3:35 am, Anfernee wrote:
> i want to get the 3D coordinate from the android screen x,y
> coordinate
> i choose to use the gluUnProject
> but th
If you do a ContentResolver.insert, instead of a
MediaStore.Images.Media.insertImage, you have to provide the fully
qualified path to the image-file in the ContentValues as well:
// fullyQualifiedPathName is the absolute/canonical path-name to
the JPEG file.
values.put(MediaStore.Images.Medi
i've seen this too.
I got around it by overriding the problematic View's
onRestoreInstanceState method:
public void onRestoreInstanceState(Bundle savedState) {
...
...
super.onRestoreInstanceState(BaseSavedState.EMPTY_STATE);
}
I took a look at the android.view.View's implementation of this
on
In your 'public void onPictureTaken(byte[] data, Camera camera)'
method
You have to create a BMP out of the 'data'. The 'data' is not JPEG. It
is RGB data (if i'm not mistaken).
Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length);
Then you compress the bitmap into jpeg.
bmp.com
advise you to not hack around the default
> implementation of onRestoreInstanceState() but make sure that your UI
> is setup correctly.
>
> On Tue, Nov 24, 2009 at 7:28 AM, Streets Of Boston
>
>
>
>
>
> wrote:
> > i've seen this too.
&
s
here when using 'parcelable'.
}
}
On Nov 24, 5:57 pm, Romain Guy wrote:
> That would be worrisome because we do not save/restore the state of
> views without ids.
>
> On Tue, Nov 24, 2009 at 2:39 PM, Streets Of Boston
>
>
>
>
>
> wrote:
> >
anceState().)...
>
> read more »
>
> On Tue, Nov 24, 2009 at 4:41 PM, Streets Of Boston
> wrote:
>
>
>
> > Thanks Romain,
>
> > Did not work... still the exception...
>
> > It occurs on a View with an ID set to 'container'.
> > And i went
returning? (You could print the state bundle in
> onSaveInstanceState().)...
>
> read more »
>
> On Tue, Nov 24, 2009 at 4:41 PM, Streets Of Boston
> wrote:
>
>
>
> > Thanks Romain,
>
> > Did not work... still the exception...
>
> > It occurs on a View with an I
happen, despite me coding
the ViewBundle incorrectly?
On Nov 24, 9:43 pm, Streets Of Boston wrote:
> Thank you, Dianne.
> This is in my log:
>
> From onSaveInstanceState, this one is being saved:
> 11-24 21:38:52.786: VERBOSE/smugdroid(12475):
> Saved
As in the comment in your bug-report by Romain, you're using too much
memory.
Note that you only have 16MByte total available RAM for your process,
including your bitmaps.
- Only load the bitmaps that are absolutely necessary (especially when
they become quite large).
- Load the bitmaps scaled to
I use a RandomAccessFile for a thumbnail database. Works pretty fast
(i haven't done any exact benchmarking).
On Nov 24, 3:09 am, Marc Reichelt wrote:
> Hi!
>
> I am writing a program where I have to access some static data, and
> now I am looking for the best method of how to include them into
Thanks! I never thought about going through the file-descriptor.
But why is using the DATA column discouraged? It works fine and it's a
public column (not part of a private API or such).
On Nov 17, 12:42 pm, Dianne Hackborn wrote:
> On Tue, Nov 17, 2009 at 7:06 AM, Streets Of Boston
ey can do such thing. We just got curious about its implement.
>
> @Robert, ko5tik, Streets Of Boston
> Pre-processor is a good suggestion. But the side effect of it is too
> many chunk files on SD Card or in flash. Maybe sharp has a smarter way
> to achieve it and we just do not kno
at is
> world-readable, which is basically only the media provider. It really
> shouldn't be specified as a generic column, but something very specific to
> the media provider. I would strongly recommend not using it.
>
> On Wed, Nov 25, 2009 at 11:29 AM, Streets Of Boston
Could be anything...
Do you hold any static references?
If so, are these static references to your Activity(s) or to objects
that may contain themselves references to your activity?
On Dec 1, 5:32 am, Jyothi Prasad wrote:
> Hi,
>
> I have an activity in my app.
> When I clicked back key the acti
Take a look the the Intent framework.
Start an activity given an intent (PICK_IMAGE) and this should start
any app that responds to it (Gallery or some other 3rd party program).
For examples, just take a look at the Contacts application in
Android's framework's source-code.
On Dec 1, 4:28 am, Tom
You can attach listeners to your animation:
Attach an animation-listener to your rotate-animation. In the 'on-
animation-ended' callback of the listener, do the startActivity(...).
When the animation ends, this callback is automatically called and
will then start the activity.
On Dec 2, 3:19 a
If you need to inform user of progress of your ContentProvider's
actions, you shouldn't do it directly in your ContentProvicer, as the
other posters in this thread have said as well.
Instead, you could have your ContentProvider-process implement a
Service as well that will call back into any Activ
It would still be nice to see some kind of callback/warning that such
a thing is about to happen.
I'm writing an app that uses a cursor to iterate over images from the
system's media-content-provider.
Sometimes this content-provider is being shut-down (low memory) and it
takes my application down
You don't know how many milliseconds there are in a day, or even how
many hours there are.
Most days have 24 hours, one may have 23 and an other may have 25
hours ( DST ). And this depends whether your timezone has DST or not.
The Calendar class should be able to figure all this out.
However, if
How fast is 'decodeYUV' method? You call this method while your canvas
is locked.
If 'decodeYUV' is slow, it not only makes your background thread
sluggish, but your main GUI-thread as well, because the canvas is
locked for too long.
Also, you don't synchronize on '_data'... Your implementation of
If you have Vista 32 bit installed, it should work and i can't help
you to fix your problem.
However, if you have a 64bit system, check this thread:
http://forum.xda-developers.com/showthread.php?t=446274&highlight=64bit+usb
It may fix your issues :)
On Mar 11, 4:12 pm, JLMG wrote:
> This one
Could you provide a code-snippet showing how you coded the menu-
handling and the starting of your thread?
On Mar 12, 10:00 am, Ikon wrote:
> Hi,
>
> I am developing a game based on the SurfaceView/LunarLander example in
> the sample code.
> I have one activity, with one menu option that is "ne
First you should figure out what you really try to accomplish. I don't
know the details of your app, but i guess that your goal is not to
push a button. The goal is the action that occurs when the button is
pushed.
I would just call the action (method/java-code/etc) directly that
would have been
wn issue? Any suggestions?
>
> On Mar 10, 6:50 pm, Streets Of Boston wrote:
>
>
>
> > Maybe this piece of code won't work, but i'm writing an app that
> > successfully uses thecamera.
> > No crashes :) ... ... so far ... :=)
>
> > On Feb 17,
Take a look at the GestureDetector class.
- Create an instance of GestureDetector.
- Handle the onTouch event of your activity.
In your onTouch event handler, forward the MotionEvent to this
GestureDetector instance.
- Assign a listener to this GestureDetector (one that implements
onFling, amon
Where did you read it became obsolete.
I just checked the reference docs and it's not been obsoleted/
deprecated.
On Mar 12, 7:34 pm, Meryl Silverburgh
wrote:
> Hi,
>
> AbsoluteLayout has become obsolete, I need to convert it to FrameLayout.
>
> My problem is in AbsoluteLayout.LayoutParams, I ca
Hi,
I found out that RemoteCallbackList.getBroadcastItem(int) sometimes
returns null. I have this code in my Service and it raises a null-
pointer exception:
...
// instance variable of my Service
final RemoteCallbackList mCallbacks
= new RemoteCallbackList();
...
...
publ
shape[0].visible = true;
> score = 0;
>
> mLastTime = System.currentTimeMillis() + 100;
> setState(STATE_RUNNING);
> }
> }
>
> Thanks,
> Ayan
>
> On Mar 12, 10:28 am, Streets Of Boston
> wrote:
>
&g
ss
> Green Key, i want my application to exit and transfer this EVENT to original
> dialer. Do you have any idea to solve my problem?
>
> On Fri, Mar 13, 2009 at 2:12 AM, Streets Of Boston
> wrote:
>
>
>
>
>
> > First you should figure out what you really try to accomplis
null (actually that field is final), so I don't really see how that can
> > happen. Are you sure you aren't potentially doing this loop from different
> > threads without doing your own synchronization?
>
> > On Thu, Mar 12, 2009 at 6:07 PM, Streets Of Boston <
>
Ah, thanks.
Either way, it means that the number of items in the list accessed by
getBroadcastItem is always equal to N.
The problem remains: How can getBroadcastItem(int) return null?
On Mar 13, 4:53 am, Dianne Hackborn wrote:
> On Thu, Mar 12, 2009 at 8:08 PM, Streets Of Boston
>
I'm using the AbsoluteLayout in one of my apps and it can be useful.
However, i think it'll be deprecated because the AbsoluteLayout is
device(/screen) dependent. E.g., if a new phone comes out with a
square screen instead of 320x480, your app starts to look funny. You
can mitigate this somewhat b
Hi Bob,
Your code snippet is not enough to give you some more info.
E.g. how does backgroundRefresh2 looks like (it public void run()
implementation).
Based on its name 'backgroundRefresh2': does it access View-s and
modify these view (e.g. update text-view, images, etc.)?
If so, that may explai
ekend!
On Mar 13, 12:58 pm, Dianne Hackborn wrote:
> On Fri, Mar 13, 2009 at 7:27 AM, Streets Of Boston
> wrote:
>
> > Either way, it means that the number of items in the list accessed by
> > getBroadcastItem is always equal to N.
> > The problem remains: How can getBr
ed by the handler.
>
> On Fri, Mar 13, 2009 at 10:55 AM, Streets Of Boston
>
>
>
>
> > wrote:
>
> > Ah, now i get it! :-)
>
> > Indeed, sendProgressCallback can be called from multiple threads. And
> > with your earlier explanation that the beginBroadca
I'm developing on my Vista 64 with Eclipse and all works very well.
(I have the unsigned 64 bit USB driver, with Vista 64 running in
'test' mode)
On Mar 16, 4:02 am, Al Sutton wrote:
> I'd go for XP64 personally.
>
> No matter what I do I can't get the G1 recognised by adb on 32 bit
> Vista, but
I'm not absolutely sure, but i'm pretty sure this is possible. It'll a
different application with its own set of comments and ratings.
In one way it makes sense. When people pay for an application, their
ratings may be different than for a free version of it. When people
pay, they may have a diff
I had a typo in my previous message:
Change this
"... but i'm pretty sure this is possible ... "
to this
"... but i'm pretty sure this is NOT possible ... "
On Mar 16, 11:33 am, Streets Of Boston
wrote:
> I'm not absolutely sure, but i
I wrote one that goes out to the internet and fetches data.
In my code, I use the 'String[] projections' to create my own Cursor
implementation. I make a subclass of 'Cursor', an instance of which
will be returned by my ContentProvider's query method. The constructor
of this Cursor-subclass takes
I had similar issues. I managed to fix the performance of the list-
view, but i ran into memory issues.
My app downloads images from Smugmug, images that are 'front-page'
images of galleries/albums.
First, my app needed to get the information about the album, to get
the image-id of the album's fr
Take a look at the Bitmap and BitmapFactory classes in the Android SDK
On Mar 18, 1:52 pm, cindy wrote:
> Hi,
>
> Is there anyway to reduce the resolution of picture taken using
> camera? It takes long time to upload the image to server. Does anyone
> use any compression software for image ?
>
>
Make sure you return the correct boolean-values in the other methods
of your OnGestureDetector (onDown, onScroll, etc).
On Mar 18, 2:51 pm, Meryl Silverburgh
wrote:
> Hi,
>
> Can you please tell me how can I detect Fling action in my own widget?
> I have implemented my widget as OnGestureListene
I did something similar, however, i did not use a BroadcastReceiver to
get callbacks back from the service.
Instead i used the RemoteCallbackList class:
http://developer.android.com/reference/android/os/RemoteCallbackList.html
No fiddling with intents and such. Just define a callback interface
When i press the phone's camera button, both my application and the
system's camera application are launched:
- I press camera button
- After a few seconds, my camera app appears and all looks good.
- However, when i go back (back-button), i'm not brought back to where
i was before.
Instead, i'm
Use a different Thread that draws on the SurfaceView directly. You can
draw as fast and as immediate as your Thread allows.
http://developer.android.com/reference/android/view/SurfaceView.html
- Get the SurfaceHolder of the SurfaceView.
- Every time you want to draw, begin by calling the Surface
Thanks!
I'll give that a try.
On Mar 19, 7:12 pm, Marco Nelissen wrote:
> Try calling abortBroadcast() in your receiver.
>
> On Thu, Mar 19, 2009 at 7:18 AM, Streets Of Boston
>
>
>
> wrote:
>
> > When i press the phone's camera button, both my
If i understand various messages i've read on this board correctly,
you can not bundle Android resources in a shared library.
You can only bundle share classes (and regular java-resources, i hope)
in JARs.
I was trying to do the same, sharing layouts, bitmaps, etc among a
suite of applications. I
Your use of HttpGet is good.
However, you cast an InputStream to a char-sequence when calling
tv.setText((CharSequence)input);.
This will give you a class-cast exception. Read char-data from the
InputStream instead.
Also, try to find out if 'entity' has some methods to get a String
back that has
http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=tree;f=src/com/android/camera;h=b59e44fcf7eda59ed76597efe26ac8a25696c798;hb=8250896ab37545f4499da79f54c19af2e5018b80
On Mar 22, 8:24 pm, Yves Liu wrote:
> Thanks.
>
>
>
> On Sun, Mar 22, 2009 at 4:38 PM, Andrew Stadler wrote:
We won't know what's going on unless you show us a strack-trace of the
error. :=)
Look at LogCat and copy/paste the strack-trace in this thread.
All i can do now is guess:
How big is your image?
You create two arrays (int[] and byte[]) which are never used. This is
memory waste.
The inputstream '
Is the byte-array you saved in the database *exactly* the same as the
byte-array returnes by src.getBytes() in your getBitmapFromString
(String) method?
I'd be worried that c.getString() may change the underlying byte-array
to adher to the default UTF-8 encoding.
On Mar 23, 12:10 am, Komal wrot
yManager(51): Process
> com.organiser.college (pid 767) has died.
> 03-23 16:20:39.030: INFO/WindowManager(51): WIN DEATH: Window{4342f180
> com.organiser.college/com.organiser.college.CollegeOrganiser}
>
> I have pretty much no idea what any of that stuff means.
>
> On Mar
And that's a BIIIGG 'if'. :-)
Trust Dianne on this. Do not use any API that is private. If you do,
at some point in time you will (and that's a 100% sure) break your
application and you will get a lot of angry customers.
On Mar 23, 3:16 pm, Rajendrakumar Chinnaiyan
wrote:
> If they won't c
I've done the same in my apps for ListView (whether they be in
ListActivity or in a plain Activity) with good success.
I use the java.util.concurrent's ExecutorService to obtain images:
1. Your getView(..) (or bindView/newView/etc) needs to assign an image/
thumbnail (bitmap) to an ImageView. Bu
sed and to be assigned
to a different image.
return convertView;
}
[/code]
On Mar 24, 10:13 am, Streets Of Boston
wrote:
> I've done the same in my apps for ListView (whether they be in
> ListActivity or in a plain Activity) with good success.
>
> I use the java.util.concurrent
Hi everyone,
I'm writing an app that needs one or more applications/services that
are distributed with their own seperate apk file.
I'm writing a user-app that allows the user to upload pics using a
service. The service can be used by multiple user-apps, not just mine.
I'd like to have the servi
Google this
opengl es
I found the links to the khronos web-pages most helpful.
Other links found by google can be helpful as well :-)
Another source is the OpenGL examples on the APIDemos bundled with the
Android SDK.
For books; i cannot help you there.
On Mar 25, 7:43 am, EvgenyV wrote:
>
Before you do all the work, take a look these classes bundled in the
OpenGL session of the APIDemos of the samples in the Anroid SDK:
MatrixTrackingGL.java. In your SDK or online:
http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/OpenGLES/SpriteText/src/com/google/android/open
This Uri is the logical (not physical) path used by the image content
provider.
If you want to get the physical path to the actual file on the SD-
card, query this Uri:
Cursor cursor = query(photoUri, new String[]
{MediaStore.Images.ImageColumns.DATA}, null, null, null);
String absoluteFilePa
I had the same problem and it was driving me nuts. I think it's a bug.
Below is how i worked-around it.
Do what you do now by calling insertImage(...).
This will insert the image into the data-base; however, thumbnails are
not correctly generated and the SIZE attribute is 0 (your problem that
you
Add my vote for this option/feature: A permission for an app to become
the only app running (except maybe the phone-app and incoming SMS,
etc).
On Mar 26, 7:26 am, Stoyan Damov wrote:
> I've also proposed a solution to this - adding a permission for apps
> to request that they run alone, uninter
You still may need to do this, though.
With my application; if i don't do the MediaScanner thing, the
'Pictures' application will crash!
You may find the same problem. Try to insert an image (with the SIZE
being 0), then close your app and start the stock 'Pictures'
application. Check if it crash
I should have added that this would apply to the phone's *foreground*
application only.
Or at least something that allows the foreground app to get a very
high priority and resource allowance from the operating system to
minimize the influence of non-essential (background) applications.
On Mar 2
eers:
We heard from you what's *not* possible.
But what could be possible? I'd be interested in hearing about this
from you all, even if the ideas seam outlandish. :-)
On Mar 26, 6:05 pm, Sundog wrote:
> On Mar 26, 3:52 pm, Streets Of Boston wrote:
>
> > I should have added tha
Read my post from yesterday at 10am again :-)
Execute a query using your content-uri, and use the returned cursor to
obtain the physical file-path (use the ImageColumns.DATA).
On Mar 27, 9:27 am, matthias wrote:
> okay, one solution is to do something like this:
>
> String path = Enviro
"But discarding background apps is not the
appropriate solution, it's just one easy solution"
Easy solutions are usually pretty good! :-) But maybe not in this
case.
Romain, what would you deem to be appropriate solutions?
Thanks Dianna,
"We are looking at more strongly enforcing that background
You can not create a Collection. It is an interface, as other already
pointed out.
Judging from your other posts, i'd suggest your using an
ArrayList.
An ArrayList is basically some behavior around an array of objects (in
your case Car[]). Internally, it's using an array and it handles all
the in
Bump :-)
Has anyone dealt with a similar problem before?
Thanks!
On Mar 24, 3:32 pm, Streets Of Boston wrote:
> Hi everyone,
>
> I'm writing an app that needs one or more applications/services that
> are distributed with their own seperate apk file.
>
> I'm writin
r app-
permissions are confirmed by the user).
On Mar 28, 8:46 pm, Mark Murphy wrote:
> Streets Of Boston wrote:
> > Bump :-)
> > Has anyone dealt with a similar problem before?
>
> I will be dealing with a similar problem over the next month or so. Take
> these thoughts with
I'm not a hundred percent sure, but very close to 100% :-)
Google's Android Market does not provide upgrade functionaliy, except
free upgrades forever.
Sorry... :(
I'm sorry to say this, but you could have known this before you put
all this work in, if you had read the terms and agreements of th
Good to know. At least it's good to know that i was not going crazy :-
D
I used the for-loop solution to get around this issue.
On Mar 30, 7:04 am, Daniel Johansson wrote:
> I'm experiencing the same behavior, and I'm pretty sure it's a bug.
>
> I have been testing this thoroughly and it simply
This works as designed.
The getDataString() is the string of the content Uri that refers to
the image.
If you want the physical filename, do a 'Cursor cursor =
getContentResolver().query(intent.getData(), null, null, null, null)'
and query the column ImageColumns.DATA on the returned cursor.
The
I wonder how well this one works on Android:
http://code.google.com/p/simpull/
-- Anton Spaans
On Mar 30, 4:58 pm, Anton wrote:
> I have a simple 2D physics engine written and running. It uses
> the now famous Jacobson physics tricks (Verlet integration and hard
> constraints). I can m
rough the code and found
> that it does a lot of memory allocation in it's inner loops (Verlet
> update step in particular), and that it uses floating point math,
> though it looks like there is a branch that uses fixed point that
> might be worth trying out.
>
> -Anton
&
I doing
> something wrong here, or am I that bad at coding Android?
>
> On Mar 30, 4:37 pm, Streets Of Boston wrote:
>
>
>
> > This works as designed.
>
> > The getDataString() is the string of the content Uri that refers to
> > theimage.
> > If you wan
Override you dispatchTouchEvent(...), as you do right now, and forward
its MotionEvent to a GestureDetector you created.
public class MyView {
GestureDetector mGD = new GestureDetector(this);
public MyView(...) {
...
...
mGD.setIsLongPressEnabled(true);
...
This is just copying the file.
The question remains if you can play it or not... :=)
I have not looked into this at all, but DRM could prevent the mp3 from
playing.
On Mar 31, 9:55 am, iDeveloper wrote:
> Thanks a ton. Didn't know android allowed saving to mp3 directly
> unlike an iphone.
>
>
This means that the RenderThread has been paused or not yet been
started properly. Make sure you resume it when your activity's
onResume is called.
If you're using the code from example GLSurfaceView, removing the 'wait
()' will make your future customers quite angry: Their battery will be
drained
and
> > > it just wants me to change it to "getLong" but if I do that, it just
> > > tells me to change it back to "getString" again... Am I doing
> > > something wrong here, or am I that bad at coding Android?
>
> > > On Mar 30, 4:37 pm, Street
Displayed activity
> com.android.camera/.ImageGallery2: 2455 ms
> 03-31 11:34:39.525: VERBOSE/ImageGallery2(11143): /
> ImageBlockManager.onPause
> 03-31 11:34:49.519: WARN/ActivityManager(55): Launch timeout has
> expired, giving up wake lock!
>
> On Mar 31, 10:24 am, Streets Of
I haven't read through all your code, but you should not call
thread.start() in your surfaceCreated method.
Instead, create and start your thread asap and have it paused when
necessary.
When 'onPause()' or when surfaceDestroyed is called, pause your thread
(CupThread).
When 'onResume()' or surfac
If your list-view uses a (list-)adapter (or a subclass of this), did
you try to call notifyDataSetInvalidated() on the adapter?
This will cause your adapter's getView(int position, View convertView,
ViewGroup parent) to be called again and you can handle your changed
list-item in there.
On Apr 1,
uteFilePath = cursor.getString(0);
>
> On Mar 26, 8:57 am, beachy wrote:
>
>
>
> > cheers, did not know that about Drawables will use Bitmaps then.
>
> > Thanks,
> > Greg.
>
> > On Mar 25, 3:23 pm, Streets Of Boston wrote:
>
> > > This Uri i
run continuously in loops, so I don't know how optimised
> > > > > these physics engines are for this purpose.
>
> > > > > Would be interesting to find out though.
>
> > > > > On Mar 31, 12:52 pm, mscwd01 wrote:
>
> > > > > > Oh I f
Do *not* use volatile variables. They are not guaranteed to be atomic.
It's just a compiler hint.
Instead, use synchronized blocks:
class MyThread extends Thread {
boolean mPaused;
boolean mStopped;
public void run() {
...
...
mStopped = false;
mPaused = true or false, dep
What about using a ScrollView as your container view?:
LinearLayout
|-->ScrollView
|--> SkyView
On Apr 1, 11:49 am, acrosser wrote:
> Surely this hasn't stumped the group of brilliant Android
> developers! :-) Is there any tutorial or reference page someone can
> point me to?
>
> On Mar
Short answer:
Don't use static variables :-)
Somewhat longer answer:
If sub-activities need to access some data held by my main activity, i
usually do create one static variable:
public MyActivity extends Activity {
>> public static final MyActivity ACTIVE_INSTANCE; <<
protected void onCrea
@Override is a so-called annotation.
It does not generate any byte-code/runnable-code.
It just tells the compiler that the method below it is an override of
its super-class' method.
If your super-class changes its signature of onDraw, your compiler
will warn you about the fact that your method (in
result=-1, data=Intent { data=content://media/
> external/images/media/7 }} to activity {com.app.name/
> com.app.name.activity}:
> android.database.CursorIndexOutOfBoundsException: Index -1 requested,
> with a size of 1
>
> What does that mean?
>
> On Apr 1, 9:44 am, Streets O
1 - 100 of 1492 matches
Mail list logo