how to limit seekbar

In SeekBar you can set only max value. <SeekBar android:id=”@+id/SeekBar01″ android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:max=”50″/> And, You cannot directly set the minimum value to the seekbar. SeekBar mSeekbar = (SeekBar) findViewById(R.id.SeekBar01); mSeekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { length_edit.setText(Integer.toString(progress + 20)); } public void onStartTrackingTouch(SeekBar seekBar) {} public void onStopTrackingTouch(SeekBar seekBar) {} … Read more

Post multipart request with Android SDK

Update April 29th 2014: My answer is kind of old by now and I guess you rather want to use some kind of high level library such as Retrofit. Based on this blog I came up with the following solution: http://blog.tacticalnuclearstrike.com/2010/01/using-multipartentity-in-android-applications/ You will have to download additional libraries to get MultipartEntity running! 1) Download httpcomponents-client-4.1.zip … Read more

Show soft keyboard for dialog

Awesome question, I was trying to do that too and found a solution. Using the dialog builder class AlertDialog.Builder you will have to invoke the dialog like this: AlertDialog.Builder builder = new AlertDialog.Builder(); AlertDialog dialog; builder.set… dialog = builder.create(); dialog.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE); dialog.show(); This worked fine for me. Note: you must import android.view.WindowManager.LayoutParams; for the constant value … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)