Questions tagged as 'android'

1
answer

How to make application running in the background all the time

I tried to use Service as they said but it is not working yet. I do not know if I understand correctly, will the onStartCommand() method run all the time? Because I've debugged and the application only goes into this method once, w...
asked by 25.06.2016 / 05:22
1
answer

What is the best way to create accessible methods for any activity?

Hello. When I need to create a method for an Activity I simply write it in my Activity code. For example: package com.pcriot.maxsoft.testapplication; import android.os.Bundle; import android.app.Activity; public class MainActivity extends Ac...
asked by 22.04.2014 / 07:01
1
answer

Libraries for communication between Arduino and Android

I am a beginner Arduino programmer trying to make a connection with my cell phone (Android) and / or my laptop using Java. I did some research and so far I've found three examples of how this might work: Using rxtx libraries (GNU IO) Us...
asked by 18.05.2014 / 15:18
2
answers

Which Android SDK versions should I install at a minimum?

When I downloaded Android Studio and opened the SDK Manager it shows some packages to be downloaded and installed. I saw that it has several versions of Android. My questions are: Which of these are "extremely" indispensable so that I ca...
asked by 03.09.2016 / 12:42
1
answer

How to use the include other Layout of Android?

Hello, I would like to know how to use the Include Other Layout and what it is for.     
asked by 05.04.2015 / 03:56
2
answers

Is there any difference between the visibility of a View.GONE view or false?

I would like to know which of these implementations is correct? tlb.setVisibility(View.GONE); or tlb.setVisibility(false); What's the difference between them?     
asked by 23.01.2017 / 14:09
2
answers

What are the differences between AlarmClock and AlarmManager?

What are the differences between AlarmClock and AlarmManager?     
asked by 16.01.2017 / 03:24
2
answers

Check if 'Allow dummy locations' is enabled

I have an application that requires the "Allow dummy locations" option of the standard Gallery enabled application to work. How can I check if it is enabled? How can I send the user to this item if my case is disabled? This option is in the Prog...
asked by 11.03.2015 / 19:39
2
answers

Backup in SQLite database

I need to back up an SQLite Android database. Ex: I'll change the device and I need to copy the application's DB to be loaded on the other Android phone. Is there a workable solution? I developed an application that uses SQLite to write...
asked by 28.10.2014 / 15:02
1
answer

Why is the image distorted (does not maintain proportions) in ImageView?

I have some images inside the folder drawable and I call them via code: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { image.setBackgroundResource(rid); linear.addView(image); } Wh...
asked by 22.03.2016 / 14:43