Monica Marcus

Ranch Hand
+ Follow
since Oct 17, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Monica Marcus

I started a tutorial on Cordova (see tutorial) and I just want to create my project. I wrote the command

./create /Users/monicamarcus/Documents/AndroidCourse com.example.tabletapp TabletApp

where the project does not exist yet. The answer was "Segmentation fault: 11". What does it mean? What should I do to get rid of it?

And another question: am I right that I am supposed to write the name of a non-existing project in the create command? Or should it be an existing project in Eclipse? Anyway, I tried it with the name of an existing project in Eclipse and I still get segmentation fault:11.
10 years ago
I want to write a method to change the phone number of a certain contact, identified by name. Here's the method:



As you see I tried several variants, but I always get zero rows updated and the phone number is not changed. Any idea how to get it done? Many thanks in advance for help.
10 years ago
I solved the problem in a very unexpected way. I fancy I should try to import the archive (the zip file containing the google-play-services directory.) And it worked!!! lol!
10 years ago
I re-installed google_play_services successfully and I have google_play_services-lib in my workspace. When I try to import it as a project in eclipse I use File-> Import->Existing Projects into Workspece -> Next -> Select root directory and then I find and select google_play_services-lib but finally it says "no project found to import". Why is that? How can I import this lib into eclipse?

I forgot to mention that I followed the steps at http://developer.android.com/google/play-services/setup.html
10 years ago
I am trying to use Google maps in a very simple app. I get as a warning that Google Play Service is out-of-date and that 3136100 is required. This is only a warning but my application does not show any map. I get again a button to click on it to update Google Play Service and when I click on it I get a Fatal exception:



So what can I do to see a map with my application? How do I update Google Play Service?
10 years ago
Sorry for my English ... "it leaves me working on ..."
10 years ago
I discovered which is the line that writes that output on the screen phone: it is the one starting with txt.setText(...
Ok, so this in fact answers my question and lefts me working on the program to get the list of contacts.... hopefully.
10 years ago
However, I decided to post the code for the method I use to list the contacts. Perhaps this way I'll get more chances to receive an explanation.

10 years ago
Now, after I added three contacts to my list of contacts, I wanted to show (list) them using a cursor and a ListAdapter. I don't get any error but instead of the list of contacts I see written on the screen only the following URI:

content://com.android.contacts/phone_lookup

What does it mean? I might show you the code too, but I'm not sure it is necessary.

Thanks for help!
10 years ago
You are a great programmer, Roland! Thanks a lot. I learned something from this.
10 years ago
Oh, I'm sorry. I must say that I get the NullPointerException when the last line is replaced by the commented-out line. That is, I get NullPointerException from the line
10 years ago
Thank you, Roland, for the advice. As I mentioned in my post, the NullPointerException occurs in the last line of the method. I tried to see which could be the null pointer, but I saw that none of the objects that appear in this line point to null. Maybe I miss something, but here's the stack trace. I cannot get any more information from the stack trace:



Perhaps you or someone else can help me to find out why I get the NullPointerException. Thank you in advance!
10 years ago
I am trying to insert contacts using the following method (in my activity class):



but I get the RunTimeException: aggregate contacts are created automatically. This happens in the last line of the method. If I use instead the commented one, I get NullPointerException. I don't really understand what's happening. How to get rid of the errors? I would very much appreciate your help.
10 years ago
Well, I found the opportunity to try the code on a real device and it works. The emulator is not that reliable... this is my conclusion.
10 years ago
I re-wrote the code so that it does only the downloading. Maybe this way one can give me an idea about what's wrong with it. I really need help. Can't get it to download the file



And strangely enough, sometimes the method connection.getContentLength() returns -1

11 years ago