Questions tagged as 'android'

1
answer

How do I know if SMS failed to send?

I have this method of sending SMS via application: public boolean enviaSMS(String fone, String mensagem) throws Exception { try { smsManager.sendMultipartTextMessage(fone, null, smsManager.divideMessage(mensagem), n...
asked by 10.02.2016 / 14:53
1
answer

Change repository linked with android project in Git

Good morning, I created a project in Android Studio, I created a repository in Git, I made the Share of my project in my repository. Now, I would like to change the repository, take this project from my already linked project and link it to a...
asked by 24.09.2015 / 16:42
1
answer

Logic: How does a friend locator app work?

I'm studying mobile development and painted a question: How does an app that locates real-time friends on the map? Example: An app that shows on the map where your friends are that tb has the app, how far they are and location on the map....
asked by 25.09.2015 / 15:50
1
answer

The Radio Button does not change the text

I created a simple project, and realized that RadioButton does not change the text when rotating the screen. I created 2 functions one called setText() and the other setText2() with different contents, setText() is ca...
asked by 20.12.2015 / 23:03
3
answers

Use methods of an Activity in a Fragment

I'm trying to use some methods of an Activity in a Fragment, but I can not, can someone tell me if it's possible? public class updateMarker extends Activity { TextView uid; //URL to get JSON Array private static String url = "http...
asked by 17.12.2015 / 12:47
1
answer

Using WebService + SQLite

My question is the following, I'm developing an application that has an access to a WebService, but I think it's important to save some internal data in the application, for example, if the user logs in but has no internet, , so I need to make s...
asked by 26.05.2015 / 18:46
2
answers

I can not start a service

I am trying to replace a code that I did using thead by services, but when I create the service it does not start (it does not start any service method) and searching the net I saw some solutions that said it could be in "manifest.xml "but the c...
asked by 17.06.2015 / 05:11
1
answer

How can I make my GridView images have different sizes

I would like the gridview to look like this     
asked by 16.10.2015 / 18:31
1
answer

ListView Background Color in Zebra

I have a layout with two EditText and an ImageView that will be added to the ListView via BaseAdapter. I wanted to toggle the background color of the ListView in zebra. The problem is that if the ListView has more than 9 lists the zebra effect s...
asked by 02.05.2015 / 22:13
3
answers

How to send parameters to a server?

I started learning Android programming very fast. I was programming in Java desktop but never made any application to communicate with a server. Now I need to communicate with a server via the post method in an Android application. I...
asked by 07.10.2015 / 22:45