Android Open Source - Flippy-Radio Flippy Info Activity

From Project

Back to project page Flippy-Radio.


The source code is released under:

Apache License

If you think the Android project Flippy-Radio listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.bitflippersanonymous.flippy.activity;
/*  www  . j  a  v  a2 s .  c  o m*/
import com.bitflippersanonymous.flippy.R;
import com.bitflippersanonymous.flippy.domain.PlsEntry;
import com.bitflippersanonymous.flippy.domain.PlsEntry.Tags;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class FlippyInfoActivity extends FlippyBaseActivity {

  public void onCreate(Bundle savedInstanceState) {

  // Gets called when service binder is connected
  protected void update() {
      final PlsEntry entry = getService().getCurrentEntry();
      if ( entry == null )
      //TODO: needs info about the title, current location etc.
      <string name="welcome_messages">Hello, %1$s! You have %2$d new messages.</string>
      In this example, the format string has two arguments: %1$s is a string and %2$d is a decimal number. You can format the string with arguments from your application like this:
      Resources res = getResources();
      String text = String.format(res.getString(R.string.welcome_messages), username, mailCount);
      String desc = TextUtils.htmlEncode(entry.get(Tags.description));
      final String description = "<html><body bgcolor='#CCCCCC'>" + desc + "</body></html>";
    WebView webview = (WebView) findViewById(;
    webview.loadData(description, "text/html", "utf-8");
         TextView viewInfo = (TextView) findViewById(;
  // Invoked via reflection in MainActivity
  public static void popMenuView(View view) {
    ImageView icon = (ImageView) view.findViewById(;
    TextView title = (TextView) view.findViewById(;


Java Source Code List