Questions tagged as 'android'

1
answer

How to read .txt file?

How do I read a .txt file that is written in rows and check if a line in that file has a value if you make a check in checkbox . Example: Files txt: 123 234 2456 If you have the file 123 , check the checkbox 123...
asked by 05.09.2015 / 19:10
1
answer

What is the most appropriate AVD for an app most preferably developed for moto g?

I have a g-bike machine and I plan to use it via the usb interface to test a developing app. But for now, I'll use the emulator. Which emulator model should I use to be more like the bike?     
asked by 20.01.2015 / 20:49
1
answer

Multiple layouts in one activity - how to use it?

As in this section: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.addcontact); imageButton01 = (ImageButton) findViewById(R.id.imageButton1); imageButto...
asked by 14.03.2014 / 12:29
1
answer

Error with super (this) when invoking a constructor in Java

Is this allowed? public Produto(Context context) { super(context, this); } You're giving me an error:    Can not refer to 'this' nor 'super' while explicitly invoking a constructor I'm trying to make a simple MVC for when I ty...
asked by 01.04.2014 / 16:20
1
answer

How to send / encapsulate a file in an .apk to use in the app installation?

I have an .xls file that I would like to encapsulate next to the apk so that at the time of installing the app it uses that file to populate a database. How to do?     
asked by 24.04.2014 / 21:51
1
answer

What is Beacon?

What is Beacon? How can I deploy using Android? Can be implemented in .NET or just in Java? Do you have a simple example?     
asked by 07.08.2017 / 16:42
1
answer

Gson to Java - Map

I need to pass these values from a json file to a java class, the Json file is of this type: { "id":1, "name":"Gold", "description":"Shiny!", "spriteId":1, "consumable":true, "effectsId":[1]...
asked by 23.10.2015 / 03:00
3
answers

How to get a photo of Facebook profile?

I'm having trouble downloading the profile photo. When I add this line, initializing the id: userIds2 = profile.getId(); Class public class MainFragment extends android.support.v4.app.Fragment { private Database databaseHelper; private A...
asked by 02.10.2015 / 20:59
2
answers

Object type for data of type Time (Ex: 1 min and 56 seconds) in Android / Java?

I need to work with times, such as a timer (not my case), which at the end of its execution would have to save its value. So I thought of some possibilities like: java.utils.Date : only the data in the case is not a Data; In l...
asked by 13.11.2014 / 13:57
2
answers

Android Toolbar: center title

I'm trying to center the title of my Toolbar but I can not. I've already tried using Theme (it did not work) and I already tried it in Java code (however in Java code as I'm using API 13 , I can not use .setTextAligment )....
asked by 06.03.2015 / 00:21