Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Companies
    • Conferences
    • Courses
    1. Home
    2. Tags
    3. android intent
    Log in to post

    • Z

      Deep linking android open live activism if it's in memory.
      Software Programming • android activity android intent • • zymir  

      2
      0
      Votes
      2
      Posts
      0
      Views

      T

      You can add a parameter in the manifest. android:launchMode♪ There are four options, but you need to. singleInstance♪ Maybe. singleTask♪ Works like this: if there's no instas of activism, a new one is being created, and if there is, this activism is just pushing up.There's a nuance with data from the intent. This is the method. onNewIntent in which a new intent will, which has triggered a current copy of the activate. Details can be read https://developer.android.com/guide/topics/manifest/activity-element.html#lmode
    • A

      Alarm Manager's strange behavior in an attempt to close it.
      Software Programming • android android intent android alarm manager • • Anderson  

      2
      0
      Votes
      2
      Posts
      0
      Views

      M

      The addition of the lifting should also be helpful. PendingIntentpendingIntent.cancel(); It's not too much to replace. FLAG_UPDATE_CURRENT ♪ FLAG_CANCEL_CURRENT
    • J

      Intent java.lang.NullPointerException:
      Software Programming • java android android intent • • juvenalb  

      2
      0
      Votes
      2
      Posts
      0
      Views

      K

      Give context ActivityNot View Designer AlertDialog.Builder()AlertDialog.Builder builder = new AlertDialog.Builder(this);
    • Alberto

      Intent, we need to get a picture address and send it to Picasso.
      Software Programming • java android android intent imageview picasso • • Alberto  

      2
      0
      Votes
      2
      Posts
      0
      Views

      C

      Try it.Picasso.with(context).load(new File(recipe.getUrl())).into(imageView); OrPicasso.with(context).load(new File("сontent://media/external/images/media/8967")).into(imageView);
    • inna

      One of the intent values does not come
      Software Programming • android android intent • • inna  

      2
      0
      Votes
      2
      Posts
      0
      Views

      D

      "Importance" verse "importance." You have different records. Use the constants:public static final String IMPORTANCE = "importance"; ... intent.putExtra(IMPORTANCE, Importance.noMatter); ... @Importance int importance = data.getExtras().getInt(ActivityB.IMPORTANCE); Constants may be placed in a separate class if used elsewhere.
    • Alberto

      NPE, Intent zero
      Software Programming • android android intent • • Alberto  

      2
      0
      Votes
      2
      Posts
      0
      Views

      R

      The thing was, I didn't delete it. super.onActivityResult(requestCode, resultCode, data);
    • J

      @IntDef type from one activate to another
      Software Programming • android android intent android parcelable android annotations • • jules  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Y

      Send these parameters to the methods by marking their type of annotation. Put them in. Bundle can be used as usual:public static Intent newIntent(@Importance int importance) { Intent intent = new Intent(context, MainActivity.class); intent.putExtra("Importance", importance); return intent; } The serialized variable must be marked with an annotation and annotations + add a comment to avoid the lint://noinspection ResourceType @Importance int importance = getIntent().getIntExtra("Importance", Importance.noMatter);
    • B

      Multiple notifications in a single flow
      Software Programming • java android android intent service • • Burma  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Y

      Pendingent has the same code. That's the right thing to do. PendingIntent pIntent = PendingIntent.getActivity(thisContext, NOTIF_ID , intent, 0);
    • C

      How do you get ArrayList?<string> through intent?</string>
      Software Programming • android arraylist android intent • • charlenef  

      2
      0
      Votes
      2
      Posts
      0
      Views

      S

      Put the sheet on. intent Total FirstActivity@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = new Intent(getApplicationContext(),SecondActvity.class); ArrayList&lt;String&gt; array = new ArrayList&lt;&gt;(); array.add("some text"); intent.putExtra("list", array); startActivity(intent); } Let's get the sheets. intent Total SecondActivity.java @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ArrayList<String> arrayFromIntent = (ArrayList<String>) getIntent().getSerializableExtra("list"); }
    • B

      Transfer extra to system Intent for identification
      Software Programming • android android intent • • baileigh  

      2
      0
      Votes
      2
      Posts
      0
      Views

      T

      That's what I think. requestCode♪It can be any meaning and more than zero, then the result will return the same meaning to the cause.Here you go. id Your marker, it's unique, isn't it?Or something else you can extract from. id♪
    • N

      Method of opening a new activity for a large number of Button
      Software Programming • android classes activity android intent • • nishika  

      2
      0
      Votes
      2
      Posts
      0
      Views

      irl

      To move from one to another seven, I'd advise you to do something like that. In your main activation (MainActivity describe the following:View.OnClickListener onClickListener = new View.OnClickListener() { @Override public void onClick(View view) { switch (view.getId()) { case R.id.buttonFirst: start(FirstActivity.class); break; case R.id.buttonSecond: start(SecondActivity.class); break; ... ... case R.id.buttonSeven: start(SevenActivity.class); break; } } }; buttonFirst = (Button) findViewById(R.id.buttonFirst); buttonFirst.setOnClickListener(onClickListener); buttonSecond = (Button) findViewById(R.id.buttonSecond); buttonSecond.setOnClickListener(onClickListener); ... ... buttonSeven = (Button) findViewById(R.id.buttonSeven); buttonSeven.setOnClickListener(onClickListener); And below in the same class, finish the following method:private void start(Class activity) { startActivity(new Intent(MainActivity.this, activity)); }
    • T

      I can't retrieve the data from putExtra
      Software Programming • android listview activity android intent • • Trenton  

      2
      0
      Votes
      2
      Posts
      0
      Views

      T

      Try this:Intent intent = getIntent(); Bundle extras = intent.getExtras(); String text = extras.getString("key1"); or so:switch(i) { case 0: TextView.setText(extras.getString("key1")) break; case1: textview.setText(extras.getString("key2")) break; case2: texView.setTex(extras.getString("key3")) break; }
    • J

      Data extraction through intent putextra
      Software Programming • android intent • • juvenalb  

      2
      0
      Votes
      2
      Posts
      0
      Views

      O

      Try it. https://github.com/Omega-R/OmegaIntentBuilder with coding:@OmegaActivity public class ExampleActivity extends Activity { @OmegaExtra("key") String text @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... AppOmegaIntentBuilder.inject(this); TextView textView = (TextView) findViewById(R.id.textview); textView.setText(text); } } Start the intent:AppOmegaIntentBuilder.from(this) .appActivity() .exampleActivity() .key("Your text here") .createIntentHandler() .startActivity();
    • N

      I can't get the data from putExtra.
      Software Programming • android android intent • • Nykeriab  

      2
      0
      Votes
      2
      Posts
      0
      Views

      T

      listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(MainActivity.this, about.class); switch (position) { case 0: intent.putExtra("key1", getResource().getString(R.string.tekst1)); break; case 1: intent.putExtra("key1", getResource().getString(R.string.tekst2)); break ; case 2: intent.putExtra("key1", getResource ().getString(R.string.tekst3)); break ; } startActivity (intent) ; } });
    • S

      Android, how to wake Activity?
      Software Programming • android activity android intent • • Saumya  

      2
      0
      Votes
      2
      Posts
      0
      Views

      A

      In the manifest, activate launch_mode="singleTop" The flag may also be used for Intent: intent.addFlags(Intent. FLAG_ACTIVITY_SINGLE_TOP) is similar to the singleTop launchMode.
    • K

      launch Activity from BroadcastReceiver
      Software Programming • android android sdk android intent broadcast receiver • • Kadyn  

      2
      0
      Votes
      2
      Posts
      0
      Views

      B

      Use it. getAppliactionContext() to access the context of the annex
    • G

      Transfer Object'a from one Activity to another
      Software Programming • activity android intent androids nickets • • gionna  

      2
      0
      Votes
      2
      Posts
      0
      Views

      B

      To use cell phones, use services. That would be a better decision. Then any Activity can simply turn to him and everything.
    • C

      I need help with a few Budillars on Android.
      Software Programming • android sqlite android intent android alarm manager • • chanisef  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Demir

      Acquisition PendingIntentGive him a unique number.unique_idthat needs to be remembered. PendingIntent pi = PendingIntent.getBroadcast(context, unique_id, i, 0); Later before the disposal, make it again. PendingIntent with the same number and cancel it. alarmManager.cancel(pi);
    • morde

      How do you know who the Activity was?
      Software Programming • java android activity android intent • • morde  

      2
      0
      Votes
      2
      Posts
      0
      Views

      A

      The simplest: B - Intent bIntent = new Intent(ActivityB.this, ActivityA.class); bIntent.putExtra("activity_type", "activityB"); startActivity(bIntent); C-- Intent сIntent = new Intent(ActivityС.this, ActivityA.class); сIntent.putExtra("activity_type", "activityС"); startActivity(сIntent); A-- @override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState) // other String type = getIntent().getStringExtra("activity_type") // other }
    • S

      Android Intent Cannot resolve constructor
      Software Programming • java android android intent • • simrah  

      2
      0
      Votes
      2
      Posts
      0
      Views

      briley

      This mistake means you're trying to create a copy of the class through a designer that doesn't exist. Specifically, you're trying to create Intentby transmitting to the designer the wrong types of arguments. I guess you want to call the type designer. Intent(Context ctx, Class clazz)and either not don't give the first argument or the wrong class - the intent can only accept the class following Activity/AppCompatActivitybut not a fragment.Apparently, you're trying to misuse the outdated. TabHost, coium works, like, with activism. You're probably going to have to redo this underneath. TabLayout
    • 1
    • 2
    • 3
    • 4
    • 5
    • 19
    • 20
    • 1 / 20