Click here to Skip to main content
15,921,793 members
Home / Discussions / Android
   

Android

 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 0:02
mveRichard MacCutchan26-Aug-16 0:02 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 3:35
Andy_Bell26-Aug-16 3:35 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 3:45
mveRichard MacCutchan26-Aug-16 3:45 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 4:35
Andy_Bell26-Aug-16 4:35 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 4:40
mveRichard MacCutchan26-Aug-16 4:40 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 5:12
Andy_Bell26-Aug-16 5:12 
SuggestionRe: How download picture Pin
David Crow26-Aug-16 7:03
David Crow26-Aug-16 7:03 
Questionandroid: Using Global Multidimensional array variable in CustomView Pin
Member 984019022-Aug-16 18:32
Member 984019022-Aug-16 18:32 
how to get or set a Multidimensional array variable value when using a global class. tried different ways no success.


Java
public  class  Global extends Application {
    private String  [][][] myarray=new String[10][10][10];
    public String[][][] getMyarray() {
        return myarray;
    }
    public void setMyarray(String[][][] myarray) {
        this.myarray = myarray;
    }
}
my activity:

  public class MainActivity extends AppCompatActivity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(new MyView(this));
            }

      class MyView extends View
      {
          public MyView(Context context) {
              super(context);

 final Global globalVariable = (Global) getApplicationContext();
              //set the value for myarray[2][2][1]
              (globalVariable).setMyarray[2][2][1]("me");      //<---- how?

              // get the value of myarray [2][2][1]
  final String name  = globalVariable.getMyarray[2][2][1]; //<----       how?
          }
      }
  }

AnswerRe: android: Using Global Multidimensional array variable in CustomView Pin
Richard MacCutchan22-Aug-16 22:12
mveRichard MacCutchan22-Aug-16 22:12 
PraiseRe: android: Using Global Multidimensional array variable in CustomView Pin
Member 984019023-Aug-16 17:58
Member 984019023-Aug-16 17:58 
QuestionRe: android: Using Global Multidimensional array variable in CustomView Pin
David Crow24-Aug-16 3:38
David Crow24-Aug-16 3:38 
JokeRe: android: Using Global Multidimensional array variable in CustomView Pin
Richard MacCutchan24-Aug-16 4:51
mveRichard MacCutchan24-Aug-16 4:51 
QuestionAndroid app (SourceCode) Pin
Member 126710159-Aug-16 20:07
Member 126710159-Aug-16 20:07 
AnswerRe: Android app (SourceCode) Pin
Richard MacCutchan9-Aug-16 21:16
mveRichard MacCutchan9-Aug-16 21:16 
QuestionHow to deal with Sending Data Between 2 RecyclerViews Android Java Pin
Lutaaya Huzaifah Idris8-Aug-16 3:59
Lutaaya Huzaifah Idris8-Aug-16 3:59 
QuestionAndroid Pin
Member 126732577-Aug-16 21:32
Member 126732577-Aug-16 21:32 
AnswerRe: Android Pin
David Crow8-Aug-16 7:37
David Crow8-Aug-16 7:37 
QuestionAndroid Won't Charge Battery Consistently Pin
C-P-User-35-Aug-16 7:02
C-P-User-35-Aug-16 7:02 
QuestionWhatsapp like messaging app Pin
Munish Kapoor4-Aug-16 2:46
Munish Kapoor4-Aug-16 2:46 
AnswerRe: Whatsapp like messaging app Pin
Richard MacCutchan4-Aug-16 3:37
mveRichard MacCutchan4-Aug-16 3:37 
QuestionRe: What is best Mobile Company? Pin
David Crow4-Aug-16 3:41
David Crow4-Aug-16 3:41 
QuestionAndroid Pin
Member 126664442-Aug-16 9:27
Member 126664442-Aug-16 9:27 
AnswerRe: Android Pin
Richard MacCutchan2-Aug-16 20:33
mveRichard MacCutchan2-Aug-16 20:33 
QuestionI want to create an app connected to the cloud Pin
Member 118283652-Aug-16 2:03
Member 118283652-Aug-16 2:03 
AnswerRe: I want to create an app connected to the cloud Pin
Afzaal Ahmad Zeeshan2-Aug-16 2:07
professionalAfzaal Ahmad Zeeshan2-Aug-16 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.