Nova Prime
Could someone help me with telling me how to change the App Icon label color in Nova Prime. i.e. The color of the app name "Gmail" from white to black
Thank You
Read more
forum.xda-developers.com
Could someone help me with telling me how to change the App Icon label color in Nova Prime. i.e. The color of the app name "Gmail" from white to black
Thank You
forum.xda-developers.com
I have a Samsung Note 2 running Android 4.1.2. I got a notification that there was only about 126 MB remaining in the device while I was capturing a video.
I am unable to export photos and videos in Note 2 under the following scenarios:
a) From device to laptop running Windows 7 -- After recognizing the device, Windows 7 shows that there are "no" pictures or videos to be imported from the device. However, the pictures and videos are under Gallery in the device.
b) Next I attempt to upload a couple of videos from the device directly onto Skydrive. However the upload seems to fail.
c) I then attempted to upload a couple of videos directly onto Google Drive. During this upload, the phone froze and I had to shutdown and reboot the device.
Currently I am stuck between a rock and a hard place. After restarting the device, I am still not able to navigate to the Camera folder and delete pictures / videos so that I can increase available free space in the device .
Thanks for any assistance.
forum.xda-developers.com
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I am new in android, i have created alert dialog box on that i kept check boxes for selecting multiple week days, after checking days on check box i need to set those selected days to text view. I searched a lot for that but i don't found satisfactory answer please anyone can help me resolve this issue. Thanks in advance | |||
try this
This way you can get Value of all of you checkbox. At last you can set that string value to your | |||
default
stackoverflow.comm
public class Play_Radio extends Activity {
private ImageView playButton;
private TextView textStreamed, tv_radio_name, tv_radio_cat;
private boolean isPlaying;
private static StreamingMediaPlayer audioStreamer;
private AudioManager audioManager = null;
ImageView iv_like;
Dialog rankDialog;
RatingBar ratingBar, pre_rating;
float cus_rating;
AdView adView;
Dialog dialog;
public static String name, rating, like, radio_url, id, listner, image;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setVolumeControlStream(AudioManager.STREAM_MUSIC);
setContentView(R.layout.play_radio);
/*
* LayoutInflater li = getLayoutInflater(); View layout =
* li.inflate(R.layout.customtoast, (ViewGroup)
* findViewById(R.id.custom_toast_layout)); Toast toast = new
* Toast(getApplicationContext()); toast.setDuration(Toast.LENGTH_LONG);
* toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
* toast.setView(layout); toast.show();
*/
// AdRequest adRequest = new AdRequest();
// adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
// adView = (AdView)findViewById(R.id.adView);
//
// For listner count
/*
*
* HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost =
* new HttpPost(
* "http://vaibhavtech.com/work/android/radio_listner.php"); try { //
* Add your data ListnameValuePairs = new
* ArrayList(1); nameValuePairs.add(new
* BasicNameValuePair("id", Tab_Listner.id)); httppost.setEntity(new
* UrlEncodedFormEntity(nameValuePairs)); ResponseHandler
* responseHandler = new BasicResponseHandler(); String response =
* httpclient.execute(httppost, responseHandler);
*
* // This is the response from a php application String reverseString =
* response; Log.i("response", reverseString);
*
* } catch (ClientProtocolException e) { Log.i("CPE response ",
* e.toString()); // TODO Auto-generated catch block } catch
* (IOException e) { Log.i("IOException response ", e.toString()); //
* TODO Auto-generated catch block }
*/
if (audioStreamer != null) {
try {
Log.i("Already ply", "Succss");
audioStreamer.stop();
} catch (Exception e) {
}
} else {
Log.i("First time", "Play");
}
initControls();
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
Log.i("On Pause is call", "Succcess");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// TODO Auto-generated method stub
int currentapiVersion = android.os.Build.VERSION.SDK_INT;
Log.i("Device Versoin is", "" + currentapiVersion);
if (currentapiVersion >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
ActionBar actionBar = getActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
getMenuInflater().inflate(R.menu.main, menu);
Log.i("Android Device above", "Home Enbled");
}
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
switch (item.getItemId()) {
case android.R.id.home:
onBackPressed();
return true;
case R.id.home:
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
Log.i("Home", "Press");
return true;
}
return super.onOptionsItemSelected(item);
}
// protected void onDestroy()
// {
// super.onDestroy();
//
//
// if ( audioStreamer != null)
// { audioStreamer.interrupt();
// }
//
// }
private void initControls() {
iv_like = (ImageView) findViewById(R.id.iv_activity_like);
iv_like.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Vibrator v1 = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
v1.vibrate(40);
Toast.makeText(getApplicationContext(),
"Thanks For like Our Station", Toast.LENGTH_LONG)
.show();
// Like increament
/*
* HttpClient httpclient = new DefaultHttpClient(); HttpPost
* httppost = new HttpPost(
* "http://www.vaibhavtech.com/work/android/radio_like.php");
*
* try { // Add your data ListnameValuePairs =
* new ArrayList( 1); nameValuePairs.add(new
* BasicNameValuePair("id", Tab_Listner.id));
*
*
*
* httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
*
* // Execute HTTP Post Request
*
* ResponseHandlerresponseHandler = new
* BasicResponseHandler(); String response =
* httpclient.execute(httppost, responseHandler);
*
* // This is the response from a php application String
* reverseString = response; Log.i("response", reverseString);
*
* } catch (ClientProtocolException e) { Log.i("CPE response ",
* e.toString()); // TODO Auto-generated catch block } catch
* (IOException e) { Log.i("IOException response ",
* e.toString()); // TODO Auto-generated catch block }
*/
}
});
audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
textStreamed = (TextView) findViewById(R.id.text_kb_streamed);
playButton = (ImageView) findViewById(R.id.imageView1);
playButton.setEnabled(false);
playButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Log.i("Click sadg ", "success");
Vibrator v1 = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
v1.vibrate(40);
if (audioStreamer.getMediaPlayer().isPlaying()) {
Log.i("play ", "success");
audioStreamer.getMediaPlayer().pause();
playButton.setImageResource(R.drawable.play_radio_play);
} else {
Log.i("pause", "success");
audioStreamer.getMediaPlayer().start();
audioStreamer.startPlayProgressUpdater();
playButton.setImageResource(R.drawable.play_radio_pause);
}
isPlaying = !isPlaying;
}
});
// rating radio sation
ImageView rankBtn = (ImageView) findViewById(R.id.iv_activity_rating);
rankBtn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
rankDialog = new Dialog(Play_Radio.this,
R.style.FullHeightDialog);
rankDialog.setContentView(R.layout.rating_bar);
rankDialog.setCancelable(true);
ratingBar = (RatingBar) rankDialog
.findViewById(R.id.dialog_ratingbar);
float userRankValue = 0;
// ratingBar.setRating(userRankValue);
ratingBar
.setOnRatingBarChangeListener(new OnRatingBarChangeListener() {
@Override
public void onRatingChanged(RatingBar ratingBar,
float rating, boolean fromUser) {
// TODO Auto-generated method stub
cus_rating = rating;
}
});
Button updateButton = (Button) rankDialog
.findViewById(R.id.rank_dialog_button);
updateButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(Play_Radio.this,
"Thanks For Rating Our Stations",
Toast.LENGTH_LONG).show();
rankDialog.dismiss();
}
});
// now that the dialog is set up, it's time to show it
rankDialog.show();
}
});
String urlstring2 = Tab_Listner.radio_url;
Toast.makeText(Play_Radio.this, "Please Wait...", Toast.LENGTH_LONG)
.show();
startStreamingAudio(urlstring2);
tv_radio_cat = (TextView) findViewById(R.id.tv_play_radio_cat);
tv_radio_name = (TextView) findViewById(R.id.tv_play_radio_name);
tv_radio_name.setText(Tab_Listner.name);
pre_rating = (RatingBar) findViewById(R.id.ratingBar1);
pre_rating.setRating(Float.parseFloat(Tab_Listner.rating));
}
private void startStreamingAudio(String urlstring) {
try {
dialog = new Dialog(Play_Radio.this,
android.R.style.Theme_Translucent_NoTitleBar);
dialog.setContentView(R.layout.progress_layout);
dialog.setTitle("loading...");
dialog.show();
ProgressBar progressBar = (ProgressBar) findViewById(R.id.progress_bar);
if (audioStreamer != null) {
audioStreamer.interrupt();
}
audioStreamer = new StreamingMediaPlayer(this, textStreamed,
playButton, progressBar, dialog);
audioStreamer.startStreaming(urlstring, 5208, 216);
// streamButton.setEnabled(false);
// playButton.setEnabled(true);
} catch (Exception e) {
Log.e(getClass().getName(), "Error starting to stream audio.", e);
}
}
public void onItemSelected(AdapterView parent, View v, int position, long id) {
mSwitcher.setImageResource(mImageIds[position]);
}
public void onNothingSelected(AdapterView parent) {
}
public View makeView() {
ImageView i = new ImageView(this);
i.setBackgroundColor(0xFF000000);
i.setScaleType(ImageView.ScaleType.FIT_CENTER);
i.setLayoutParams(new ImageSwitcher.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
return i;
}
private ImageSwitcher mSwitcher;
public class ImageAdapter extends BaseAdapter {
public ImageAdapter(Context c) {
mContext = c;
}
public int getCount() {
return mThumbIds.length;
}
public Object getItem(int position) {
return position;
}
public long getItemId(int position) {
return position;
}
public View getView(int position, View convertView, ViewGroup parent) {
ImageView i = new ImageView(mContext);
i.setImageResource(mThumbIds[position]);
i.setAdjustViewBounds(true);
i.setLayoutParams(new Gallery.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
i.setBackgroundResource(R.drawable.picture_frame);
return i;
}
private Context mContext;
}
private Integer[] mThumbIds = { R.drawable.calculator, R.drawable.calendar,
R.drawable.camera };
private Integer[] mImageIds = { R.drawable.calculator, R.drawable.calendar,
R.drawable.camera };
}
i am create xml and how to show selected song in the bottom of all other activity in my app plz help me and you want to more info about this so i give you i want like tune in app after the song play its show on all other activity in this app i want to similarly to them.
stackoverflow.comm
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I'm trying to build android application that send latitude and longitude of a place using GPS Tracker, this location send by email , it works fine on android version 2 , but when i run my app on android version 4 it crash ,I've tried alot to fix this problem but didn't work correctly .... can any one help me please. thanks, | |||
default
stackoverflow.comm
I am having a little problem with a panel in my jQuery Mobile application. Everything works fine except the functionality of Dismiss Panel on clicking outside.
See the screenshot below which explains my issue.
Notice the red line I have made. If I click on right side of that line when my panel is open, it works fine. But if I click on left of that line then panel is not being closed.
Here is the html part.
I tried setting data-display="push"
, too. That didn't work either.
This is the stylesheet part:
/* wrap on wide viewports once open */
@media (min-width:55em){
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-push.ui-panel-content-fixed-toolbar-position-left,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-reveal.ui-panel-content-fixed-toolbar-position-left,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-push.ui-panel-content-wrap-position-left,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-reveal.ui-panel-content-wrap-position-left {
margin-right: 17em;
}
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-push.ui-panel-content-fixed-toolbar-position-right,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-reveal.ui-panel-content-fixed-toolbar-position-right,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-push.ui-panel-content-wrap-position-right,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-reveal.ui-panel-content-wrap-position-right {
margin-left: 17em;
}
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-push,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-reveal {
width: auto;
}
.ui-responsive-panel .ui-panel-dismiss-display-push {
display: none;
}
}
I already tried this answer, but it didn't help me. I also checked this fiddle. But it doesn't give me any idea about what changes I need to make in stylesheet.
I also tried changing @media (min-width:55em)
to @media (min-width:35em)
, which didn't help either.
It would be great if someone could help with stylesheet part.
P.S: I have already checked in browser that the div of oanel is not taking more width than it actually looks. So it is not the problem.
stackoverflow.comm
I have almost the exact same problem as this question here: Android, How to restart/refresh a fragment from FragmentActivty?
I'm trying to call the a method of a ListFragment
from the parent FragmentActivity
.
However, I'm using the template Swipe + Fixed Tabs generated by eclipse. I tried calling getSupportFragmentManager().findFragmentById(R.id.myfragment)
but the return value is always null. I'm guessing this might be a problem because I did not define myfragment
anywhere in my app. But I am unsure where to define it as all fragments are created dynamically.
For those who are not familiar with the Swipe + Fixed Tabs template generated by the Android SDK in Eclipse, the fragments are created by overriding the FragmentPagerAdapter
getItem
function, returning a new instance of my fragment.
Any help would be appreciated.
stackoverflow.comm
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I have developed an app that require send and recieve data to django server with jsonrpc protocol on fast internet connection every thing is ok but on slow connection I recieve timeout connection error even I set timeout to 30000 but the problem already exist this is my code:
Thank you for your help | |||
default
stackoverflow.comm
Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...