Posts

Showing posts with the label Android development

Android Coundown seek bar android studio.

Image
public class MainActivity extends AppCompatActivity { TextView timeShow; SeekBar seekBar; Button startButton; CountDownTimer countDownTimer; boolean countdownActive = false; public void pressToStart(View view){ if (countdownActive){ checkActive(); }else { countdownActive = true; seekBar.setEnabled(false); startButton.setText("Stop!"); countDownTimer = new CountDownTimer(seekBar.getProgress() * 1000 + 200, 1000) { @Override public void onTick(long millisUntilFinished) { countDownSetter((int) millisUntilFinished / 1000); } @Override public void onFinish() { MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.goodmorning); mediaPlayer.start(); checkActive(); } }.start(); } } private void checkActive() { countdownActive = false; seekBar.setEnabled(true); startButton.setText("Start"); countDownTimer.cancel(); timeShow.setText("0:30"); seekBar.setProgress(30); seekBar.setMax(600); } public void countDownSetter(int progress){ int m...

incompatible hax module version 3 requires minimum version 4 no accelerator found

The SDK Manager will download the installer to the "extras" directory, under the main SDK directory. Even though the SDK manager says "Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the "extras" directory to finish installation. So here is what you need to do: Download HAXM installer from  SDK Manager->Android SDK->SDK Tools->HAXM installer Open  <SDK_SRC>/extras/intel/Hardware_Accelerated_Execution_Manager/  and click the .dmg file to start install. After installed manually, it's better to restart your PC. Try to uninstall "Intel x86 Emulator Accelerator (HAXM installer)" from Android SDK manager, than install it again. That helped for me. Source

How do you change text to bold in Android?

Programmatically: You can do programmatically using setTypeface() : textView . setTypeface ( null , Typeface . NORMAL ); // for Normal Text textView . setTypeface ( null , Typeface . BOLD ); // for Bold only textView . setTypeface ( null , Typeface . ITALIC ); // for Italic textView . setTypeface ( null , Typeface . BOLD_ITALIC ); // for Bold and Italic XML: You can set Directly in XML file in <TextView /> like: android : textStyle = "normal" android : textStyle = "normal|bold" android : textStyle = "normal|italic" android : textStyle = "bold" android : textStyle = "bold|italic" Source: here Programmatically: You can do programmatically using setTypeface() method: Below is the code for default Typeface textView . setTypeface ( null , Typeface . NORMAL ); // for Normal Text textView . setTypeface ( null , Typeface . BOLD ); // for Bold only textVie...

how to create SplashScreen android studeio

splash Screen Android Studio

How to indent android studio xml and java code

Indent code in  Android Studio : Windows Ctrl + Alt + L Mac: Option  +  Command  +  L  Stack Overflow

how to use text box in android studio

Image
-------------------------------buttonbox--------------------- <? xml version= "1.0" encoding= "utf-8" ?> < shape xmlns: android = "http://schemas.android.com/apk/res/android" android :shape= "rectangle" > < gradient android :startColor= "@android:color/transparent" android :endColor= "@android:color/transparent" android :angle= "270" /> < corners android :radius= "30dp" /> < stroke android :width= "5px" android :color= "@android:color/white" /> </ shape > ===========================end button box===================== -----------------------------textboxes.xml-------------------- <? xml version= "1.0" encoding= "utf-8" ?> < shape xmlns: android = "http://schemas.android.com/apk/res/android" android :shape= "rectangle" android :padding= "10dp...

Android development series

আমি প্রতি নিয়ত ইন্টারনেট থেকে নতুন কিছু শিখছি। তার পর আমার মত প্রয়োগ করছি আমার বিভিন্ন প্রজেক্ট। আন্ড্রয়েড ব্যবহার করে না বা কোন পরিবারর android OS চালিত ফোন নাই এ কথা বলা মুশকিল। দিন দিন ব্যাবহারকারীর সংখ্যা বেড়ে যাচ্ছে। আমি আমার এই সামান্য জ্ঞান দিয়ে তা আবার এই ব্লগের মাধ্যমে লিখে রাখছি যাহাতে আপনার ও উপকার হয়। আমি ভাল করে গুছাইয়ে লিখতে পারি না। তবে চেষ্টা লরবো যত টা সম্ভব লেখা। আমার অনুরোধ থাকবে আমার কোন লেখায় বুঝতে প্রব্লেম হলে তা ধরিয়ে দেওয়া। আমি অতি আনন্দের সাথে গ্রহন করবো। তাহলে আর বেশি কথা না। আমি খুব দ্রুত নতুন কোন টপিকস নিয়ে আসছি। কোন পরামর্শ থাকলে জানাবেন। Email: amirul.csejust@gmail.com