Questions tagged as 'android'

1
answer

How do I change the wallpaper on the lock screen?

Basically I'm making a wallpapers application, when changing the wallpaper or background only changes the one on the home screen, but the blocking screen does not, I've searched in different forums but I can not find a correct solution. Code...
asked by 07.11.2017 / 20:50
1
answer

Do you doubt the inflate concept?

public boolean onCreateOptionsMenu(Menu miMenu){ MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.mi_menu, miMenu); return true; } Data this code What does inflate () really mean? I understand that the first para...
asked by 28.09.2017 / 11:42
1
answer

Load different texts in the same TextView (SharedPreferences)

I have two EditText and what I write I keep it in SharedPreferences and I charge it in TextView but I can only load the text of a EditText and not both texts. What I want is to load the two texts in the same TextVi...
asked by 19.05.2017 / 22:58
2
answers

I can not save or find file in the local storage (local storage) of my Android application

I have followed the Android instructions to save a file in the storage space of my App . String filename = "myfile"; String string = "Hello world!"; FileOutputStream outputStream; try { outputStream = openFileOutput(filename, Context....
asked by 07.02.2018 / 00:04
2
answers

How to connect via FTP on Android?

I am trying to connect locally to the FTP server to recover some files and read them. The program peta when making the connection to the server "localhost".    02-02 11: 34: 38.472 3867-3867 / com.mimapa E / AndroidRuntime: FATAL   EXCEPTI...
asked by 02.02.2018 / 10:19
1
answer

Send SMS Android

Hello, I would like you to please help me. I would like to know how to send an SMS when I press an option in a menu. this is the code thank you very much. package com.servitecnology.servigps; import android.content.Intent; import android.grap...
asked by 01.02.2018 / 17:02
2
answers

Enable or disable an edittext with the selection of a spinner

The problem is that it disables text editing but in case 1 of Switch when you have to activate it again it does not This is the code I'm using. public class ejemolo extends AppCompatActivity { String[] Items = { "Dc...
asked by 11.05.2017 / 20:15
2
answers

Difference between Clean Project, Rebuild Project and Reformat Code in Android Studio

I have this little doubt that there is a difference between these IDE options. What is the difference between them?     
asked by 16.05.2017 / 13:12
1
answer

Change color StatusBar

How can I change the color of the StatusBar from the java class? For example, to change the color of the navigation bar (lower back, home and menu) would be like this:    getWindow (). setNavigationBarColor (getResources (). getColor (R.color...
asked by 31.01.2017 / 00:04
2
answers

Print elements of a For loop in AndroidStudio [closed]

I have created a program that receives the elements of an arithmetic progression (First term, ratio and number of terms) and returns all the terms of the progression and the sum of those terms. The sum shows it well, but when I want to see all t...
asked by 26.04.2017 / 04:00