
private/public returntype methodname(){ ......... ........ .... } call method methodname(); oncreate মেথড এর পর থেকে ইউজার ডিফাইন মেথড লিখতে হয়
Read moreValues >> String এ গিয়ে এপ নেম চেইঞ্জ করতে হয়। অথবা manifest থেকে app level এ গিয়ে চেইঞ্জ করা যায়। আইকন বা অ্যাপ ইমেজ চেইঞ্জ করার জন্য app এ রাইট কিল্ক…
Read moreimplementation ( "com.airbnb.android:lottie:3.4.0" ) raw নামে নতুন directory খুলে সেখানে lottie json ফাইল আপলোড করতে হবে, ওয়েবসাইট থেকে lottie XML …
Read moreAnimation animation ; animation = AnimationUtils. loadAnimation (MainActivity. this, R.anim. right_to_left ) ; img .startAnimation( animation ) ;
Read moreপ্রথমে ইন্টারনেট পারমিশন নিতে হবে, এরপর app build gradle >> dependencies এর ভিতরে লিখতে হবে implementation 'com.squareup.picasso:picasso: (insert …
Read morecounttext .setVisibility(View. VISIBLE ) ; Toast. makeText (MainActivity. this, "Successful" , Toast. LENGTH_SHORT ).show()
Read moreপ্রথমে Manifest থেকে ইন্টারনেট পারমিশন নিয়ে নিতে হবে। scview .getSettings().setJavaScriptEnabled( true ) ; scview .loadUrl( "https://www.google.com/"…
Read more// from offline if ( mp3mp != null ) mp3mp .release() ; MediaPlayer mp3mp ; mp3mp = MediaPlayer. create (MainActivity. this, R.raw. music ) ; mp3mp .start() …
Read moreTextToSpeech textToSpeech; textToSpeech = new TextToSpeech(MainActivity. this, new TextToSpeech.OnInitListener() { @Override public void onInit ( int s…
Read moreপ্রথমে জাভা তে গিয়ে রাইট ক্লিক করে "Generate" তারপর override method >> onbackpressed এরপর নিচের কোড @Override public void onBackPressed () { …
Read morebtn .setOnClickListener( new View.OnClickListener() { @Override public void onClick (View v) { ConnectivityManager connectivityManager = (Con…
Read moreLinearLayout mainLayout ; LayoutInflater layoutInflater ; mainLayout = findViewById…