Questions tagged as 'android-studio'

1
answer

Code generation shortcut

I would like to know if there is any functionality in Android Studio where I type a word and the IDE inserts an add-in (NOTE: In that I reported this, not the IDE itself). Example: buttonobj -> Button btnexemplo = (Button) findViewById(R.id...
asked by 28.10.2018 / 15:46
1
answer

How to change the GPS location icon in Android Studio?

I wanted to know how to change that red icon that marks the location of the GPS to put a photo located on the drawable. I just wanted to know what code I should add to get the suggested result. The code is as follows: @Override public void...
asked by 25.10.2018 / 19:16
0
answers

Any examples of how to implement a map in a fragment?

I can not add a map in a fragment, does anyone please have some example of how to implement it in an app with android 5.0 or higher? Map tab: has a map with some markers. Projects tab has a projects listview Button + add a project...
asked by 25.10.2018 / 17:25
0
answers

Automatically identify and retrieve users when logged into the application

I have a sign-up and login screen !. and wanted to know if you have how to sign up for the application if I will be able to get people's data in onClick without having to put id by id manually I need to put the id of the person manually! and...
asked by 01.11.2018 / 06:16
0
answers

Does not reach notification

I want every day at 10 pm to get a notification to the user. When 22 hours arrive, nothing happens. follow the code below public void Alarme(){ this.context = this; Intent myIntent = new Intent(this.context, AlarmReceiver.clas...
asked by 01.11.2018 / 01:47
0
answers

Problem with API authentication in android studio

I'm having trouble authenticating a UBER clone run in Android Studio. The API runs in class main: package com.uber.sdk.rides.samples.cmdline; import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.extensio...
asked by 24.10.2018 / 16:39
0
answers

How to insert images in different sizes - but with the same name - in the drawable folder?

I need to insert some images into the drawable folder - always with the same name - into Android Studio so that they are loaded in the appropriate size (hdpi, mdpi, xhdpi ...) according to the device the user is using. How do I do this? I alread...
asked by 06.11.2018 / 01:28
1
answer

Error writing data to Bank

import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.util.ArrayList; public class DBHel...
asked by 05.11.2018 / 20:44
0
answers

SetBackgroundResource

I need help on SetBackgroundResource, how do I apply this to a button that is in MainActivity (main_bt_padra) but I want the result in a TextView (ct_tv_gl_topo) that is in another Activity. main_bt_padrao.setOnClickListener( new View.OnClickL...
asked by 29.10.2018 / 13:55
1
answer

(Android studio) How to get a user's id through his email in Realtime Database (Firebase)

I would like to know how I can get an id from my database in firebase via email. For example I have email [email protected] and I would like to get his id just by email. Is it possible?     
asked by 26.10.2018 / 08:26