Questions tagged as 'android'

2
answers

need to return name when clicking list

I'm recreating one of my activities to work with Action Bar, with much help from Mr. @Wakin I was able to make it work: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ge...
asked by 06.11.2014 / 13:56
1
answer

Error: Using 1.7 requires compiling with Android 4.4 (kitkat); current using API 16

Using a switch case with a string . Eclipse has reported an error and has offered to switch to compiling 1.7 . I accepted, now it gives error and I can not return. How do I resolve this? I want to change the languag...
asked by 05.11.2014 / 13:07
1
answer

socket failed: EACCES (Permission denied)

I was creating an Android project that made him communicate with a Windows machine via Sockets, the machine being the server, and the mobile device (Samsung Galaxy S3 MINI) the client. I created a hosted wireless network on the computer, and...
asked by 10.05.2014 / 22:49
1
answer

Establish at least one number in EditText

My question is: Is there any way to prevent the click of a button if an EditText has no number? I was able to limit minimum and maximum values (0 to 255), but I could not find a solution to this problem. Because "" is not an integer value, by...
asked by 09.05.2014 / 19:56
2
answers

Error calling method on fragment

My code below was to do a simple task by clicking on the switch to another screen, but it is giving an error:    Can not make a static reference to the non-static method   callCast () from the type MainActivity I already changed the ch...
asked by 21.03.2014 / 21:04
1
answer

Error - no such column

03-21 07:25:47.740: E/SQLiteLog(796): (1) no such column: name1 03-21 07:25:47.750: E/data(796): Error while searching contacts: android.database.sqlite.SQLiteException: no such column: name1 (code 1): while compiling: SELECT _id, name1, name...
asked by 21.03.2014 / 17:42
1
answer

How to get Paramentro in a Web service in C # sent from Android

I'm consuming a Web service developed in C #, from an Android application. When sending simple types per parameter such as string, int, or long, I can get the information usually just by putting the same type in the Web service method declaratio...
asked by 28.03.2014 / 15:55
1
answer

How to delete MySQL database news?

In this link teaches you to list comments (in my case news) using external database (project download). How can I delete a news item when selecting, and still have a Dialog appear asking if I want to delete the news from the external databa...
asked by 11.03.2014 / 19:40
1
answer

How to use actionBar to show icon + text of items?

I declared in the Manifest android: uiOptions="splitActionBarWhenNarrow" for the actionBar and set the items as showAsAction="ifRoom | withText" appears at the bottom of the screen, follow the figure below: EventhoughtheactionBardoesnotshowic...
asked by 27.09.2014 / 21:50
2
answers

Address translation in Google Maps

I'm making an app to search for addresses in Google Maps. Is there any way to convert a String to Location , so I can get the longitude and latitude? Or is there a better way?     
asked by 18.04.2014 / 18:04