Irina Goble

Ranch Hand
+ Follow
since May 09, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
4
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Irina Goble

You could use SQLite with a SimpleCursorAdapter or write your own Adapter that will filter by chosen category or, maybe, ask the server for events of that particular category only. Is the question about how to filter events?

You are already using an AsyncTask, there is no need for a Handler. AsyncTask.onPostExecute() can do whatever the Handler must do.
3 years ago
I've never used ShareActionProvider before. The documentation says:

Set to null if share history should not be persisted between sessions.

I tried a simple app to see how it works and turns out there is more to it.
This class, ShareActionProvider, gets quite involved with keeping history of called activities. And there is no simple way to disable the default activity button as it is set not just from a history file but from the history records in the underlying Adapter. Here is a code fragment from the source code that is responsible for this: android.widget.ActivityChooserView.updateAppearance()

3 years ago
Do you check if the media is available? Here is a code snippet from the link that Jeanne gave you.
Plus it will be helpful if you print the full file name.
3 years ago
Can you show the error message?
3 years ago
Have you tried to set the shared history file to null? Something like:

Your activity implements the OnShareTargetSelectedListener interface. Shouldn't you use it as a listener instead of creating an anonymous inner class.
3 years ago
What is mGetSong? How the list of songs is stored? You could use Collections.shuffle() if they are in a list.
3 years ago

Jared Snyder wrote:I've opted to try something per what I've posted below. However, I think there is something wrong with my loop, because nothing is appearing in my alert dialog.



If you look at your code, can you tell what it is doing? Just line by line. Did you get a stack trace? Your users might be not so lucky
3 years ago
I got caught up with another Coursera class which is in its final week now. So, hope to catch up with the Android class. Was watching the lectures and doing the labs but no more than that. By the way, watching on 1.5x speed makes the lectures way better Just could not stand those "so, here is my device" things Going to sign up for the next class in the series, waiting for "Java concurrency in practice" from the library.
3 years ago
Thanks, I see it now. It looks like it is built using Doclava.
4 years ago
Ulf, how and where do you get that little popup menu to grey out classes?
4 years ago
If it is done for the standard Java documentation, it should be possible to do. I'm going to look into this.
4 years ago
Peter, you could download the source code (check in "Sources for Android SDK" in the Adroid SDK Manager) and run javadoc on it.
4 years ago
I'm using this week to look closer at the tools. I did program for Android a little bit few years ago. Trying to refresh my memories and learn new things. Boy, it's good to get back to programming.
4 years ago
How is everybody so far?
4 years ago
Peter, in what context did you find that sentence? The key word here is activity. As Ulf said there are other app components. Plus, if an activity is killed because of low memory it still can have its state saved so it can be recreated when the app comes in the foreground. The best place to learn about this is the Activity page.
4 years ago