Skip to content

Is it possible to form (R.array.arrayname) with text fields #4

@deadlycodify

Description

@deadlycodify

instead of using the below code

channels = getResources().getStringArray(R.array.channellist);

i want to make this arrayname flexible like the below code

Bundle values = getArguments();
channel= this.getArguments().getString("Category");
String name = "R.array."+channel+"list";

channels = getResources().getStringArray(name);

is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions