Questions tagged as 'android'

2
answers

Best / Safe way to transfer sensitive data to an android application via JSON

I am trying to develop an application for android that will work with a database in this case MySQL and I was thinking of doing communication between the database and the application via JSON the data would have to be transferred over SSL but ev...
asked by 10.07.2014 / 18:08
1
answer

How to update ListViem after deleting an item?

When I click on an item in my ListView , I open a dialog with 3 buttons (Edit, Finish, and Delete). When I click delete, I would like to have the ListView updated. My Adapter is in a separate class and I need to update the list after del...
asked by 21.03.2016 / 13:29
1
answer

Enable GPS within the application

Currently to check if GPS is enabled use the following code: public boolean checkSetting(){ LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); return manager.isProviderEnabled(LocationManager.GPS_PR...
asked by 21.04.2017 / 15:47
1
answer

Effective internet connection test

I have an application in which I test a connection before consulting a webservice , to display a message to a user who does not have an internet connection. I use a method like this: public static boolean isConnected(Context context) { Co...
asked by 09.04.2017 / 01:36
1
answer

How to detect if the system supports hardware acceleration?

I currently do this so that one of my activity which requires acceleration to work: <application android:hardwareAccelerated="true"> <activity ... /> <activity android:hardwareAccelerated="false" /> </applic...
asked by 08.11.2016 / 16:29
1
answer

Notification icon in Android 5.0

I'm creating a push notification system with firebase in my project. The code that generates the push looks like this: notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_notification) .setColor(getResourc...
asked by 30.08.2016 / 20:36
1
answer

How do I initialize Maps in a specific place?

How do I make the app, when I open Google Maps, zoom in to a specific location (for example, in a specific coordinate)? The demo codes it shows ALL the continents when I boot and need to zoom in until my markup: public class MapsActivit...
asked by 15.03.2015 / 05:15
1
answer

Android vs. Web Sync

I'm developing an application that will work offline on android and synchronize with a web version. I have API that will intermediate this synchronization. Currently the android version has a timestamp to co...
asked by 29.01.2016 / 00:34
1
answer

Create button via code

Is it possible to create a Button through code rather than design mode (xml)? For example: I'll create a screen with a EditText , type a number, and click a Button . After this, x (number entered) EditText is cr...
asked by 16.07.2015 / 18:12
1
answer

Retrieve the last saved photo and insert into an imageView every time the activity is started

I'm doing a job and I created a page that simulates a profile, so when a user is logged in, he can enter that page and take a picture to be saved there. So as soon as the photo is taken the imageView receives it, after the user leaves the profil...
asked by 21.06.2015 / 20:42