LinearLayout mainLayout ; LayoutInflater layoutInflater ; mainLayout = findViewById(R.id. mainLayout ); layoutInflater = (LayoutInflater) getSystemService(C…
Read moreEditText Buy_Price , Sell_Price ; Buy_Price = findViewById(R.id. Buy_Price ); Sell_Price = findViewById(R.id. Sell_Price ); int Buy = Integer. parseInt ( B…
Read moreIntent i = new Intent(MainActivity.this, SecondActivity.class); startActivity(i); Toast.makeText(this, "Hello Toast!", Toast.LENGTH_SHORT).show(); i…
Read more<WebView android:id="@+id/wview" android:layout_width="match_parent" android:layout_height="match_parent"/> //J…
Read moreQuestion 1: Inheritance is a core concept of Object-Oriented Programming (OOP) where one class (child) can use the properties and methods of another class (pa…
Read moreইডিটর এর মাধ্যমে আমরা নিবো, শেয়ারপ্রেফারেন্স এর মাধ্যমে আমরা শো করাবো, সেইভ করবো। SharedPreferences sharedPreferences ; SharedPreferences.Editor editor ; share…
Read moreprivate/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 more
LinearLayout mainLayout ; LayoutInflater layoutInflater ; mainLayout = findViewById…