Hello friends
what is intent
आज हम intent के बारे में जानेंगे , intent क्या होता है , और इसका कहा उपयोग होता है ------------------>
intent का उपयोग android studio में किया जाता है जब हम अपनी application में एक activity से दूसरी activity में जाते है तब इसका उपयोग करते है
इसका कोड होता है ----------------->
Intent (intent का नाम ) = new Intent(जिस activity में आप हो उसका नाम .this , जिसमे जाना है उसका नाम .class );
startActivity(i);
लास्ट में startActivity(intent का नाम ) लिखना मत भूलना बरना आपका इंटेंट काम नहीं करेगा
ex----> Intent i = new Intent (MainActivity.this , playsongActivity.class);
startActivity (i);
Thanks for read
0 Response to "intent , intent in android studio , what is intent , intent use in android studio , intent android studio "
Post a Comment