android-activity

Attach File in Gmail via Intent

I'm having a problem... When I try to open Gmail via Intent to attach a file, it appears the part of writing a new email, but ... .valueOf(Hawk.get("registro_nome")).concat(" Business Card")); startActivity(Intent.createChooser(i, "Enviando e-mail..."));

Recover contact list name list in an android edit

TD well personal ? I am having a problem in the development of an app, because when I call the registration screen before I w ... e envia para a activity telefone.setText(number); telefone.setEnabled(false); }

What is the difference between AppCompatActivity and Activity?

What is the difference from AppCompatActivity to Activity? from which version was AppCompatActivity added to Android?

android studio activity does not open with click button

My problem is as follows. my app has a welcome screen where the user ckick the "Continue" button and goes to the next screen. ... android:layout_below="@+id/button4" android:layout_marginTop="11dp" android:text="tela 2"/>

How do I put an external font in my app?

I'm trying to put a custom font in my app, but I'm having a lot of errors. I have tried to use PixlUI, I have tried several ... e.createFromAsset(getActivity().getAssets(), "fonts/laouib.TTF"); txt.setTypeface(font); return rootView;

ImageButton does not display image background correctly

I have a school system with schedule of each course and I have an activity where the user must select their course to have ac ... parent" /> </android.support.constraint.ConstraintLayout> And the mode in what is appearing in the app is this:

Why inflate a layout in Fragments instead of setting up a ready-made one? Ex: setContentView (R. layout.activity example)

I am learning about Android and would like to better understand how this part of the system works. Instead of inflating a l ... ment_friday, container, false); } } Why is inflating necessary? What's his advantage? Thank you for any clarifications.

Android-transfer data and change Fragment by Click

Oi, galley. I need help transferring from Fragment when I click My button inside a ListView. Currently I have a MainActivity ... //Código para transferir o Fragment aqui? } }); How to solve this problem? I appreciate it now.

How to show a call Activity when the device is locked and the screen is off

I'm developing a video and Voice app. What I need is to show an activity the call request when one user tries to call the ot ... eground is not difficult, my difficulty is exactly in showing this when the device is locked and in rest mode (black screen).

"Unfortunately, * my app* has stopped" in passing data to Activity

I am making an app that formats bibliographic references according to ABNT, but there is an error to pass the data entered by ... ; /*Log.i("aula", ref);*/ tvFormatacaoLivro.setText(ref); } } Error Image: http://imgur.com/0oap5rJ

Open a new Activity from within a Fragment

How do I exit the fragment screen (extends Fragment) and go to a normal Activity (extends AppCompatActivity)? Be it anyway, e ... nit.java:698)  12-18 17:32:20.471 3532-3532/com.example.alexandre.nossa_historia I/Process: Sending signal. PID: 3532 SIG: 9

Activity with background drawing

Good Morning! Friends, I am in need of a light to carry out the development of an Activity with the following layout, as bel ... draw the area in Orange programmatically I don't even know where to start. If someone can help me, I will be very grateful.

How to restart an Activity?

I want to restart my activity without the help of buttons, I want it to restart automatically within a while. How do I do that?

Pass given from API volley to another screen

I have an application that gets given via api using volley My Code: @Override protected void onCreate(Bundle savedIns ... } } ); I want to pass the value of the "ask" that is received to another screen, how do I do that?

What is the basis for.OnCreate (bundle) and what is bundle?

I'm starting with Xamarin studio and wanted to know what this "base" class is for, this method onCreate() and what is bundle?

Unable to start activity ComponentInfo{}: java.lang.NullPointerException

I am having difficulty finding the solution to this problem, in the code I want to move from activity "MainActivity" to "Plan ... ta(NomePopular, Especie, Familia, TipoDeRaiz, CorDeFlor, image, id)); } adapter.notifyDataSetChanged(); } } What can it be?

Is it normal that nothing appears indicating whether I have implemented ads correctly in my app?

Obviously I don't expect any real announcements to appear, but some indication that I did the procedure correctly to know tha ... android:layout_centerHorizontal="true" ads:adSize="BANNER" ads:adUnitId="@string/banner_ad_unit"/>

Angulation capture

I'm doing a project that consists of capturing the angle of movement using the mobile phone. The angles have already been cal ... oString(angulo2); anguloZerado = (TextView) findViewById(R.id.angulozerado); anguloZerado.setText(str_zeraAngulo); }

How to detect if the system supports hardware acceleration?

I currently do this so that one of my activity that requires acceleration works: <application android:hardwareAccelerate ... f there is support for acceleration of hardware and activates it, this can be by manifest as much as by java. Is it possible?

Close app when finishing fragment

Hello, I have an application, it boils down to: a Activity and a fragment. The activity calls the fragment through the onCrea ... gmentTransaction.commit(); } I would like when I return from fragment the app to close and not return to activity.