• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Convert app made in app inventor to written in eclipse adt plugin

MadWayne

Lurker
Okay,

I created an app in app inventor and it works, but to understand what I have created I want to do code instead....

I have there pages.

1. Page one front cover enter app
2. A control page
3. a settings page.

The settings page is what I am working on now, and I have links to all of the three pages.

The settings page

in here is a list of values, some we add to and can select on another page, others we select from a fixed list based on the items in a list.


eg.

I have and English list and a Russian list and Danish list
each list contains 5 pre determined hardcoded values Value1,2 3 4 and 5, these values are populated from the selected list and saved and then can be used elsewhere.

In app inventor, I use a listpicker to select from the list of 3 languages, the index is used to report the 5 corresponding values


English, Danish and Russian are items in language_array
The values arent anywhere as yet as dont know where to put them.

In app inventor I have the languages Tag for each language and on for each value.

When I select the langiage with the list picker, it gets the values from the stored tags and displays them in a text field for each value.

English -------> Value 1 English
Value 2 English
Value 3 English
Value 4 English
Value 5 English

Russian -------> Value 1 Russian
Value 2 Russian
Value 3 Russian
Value 4 Russian
Value 5 Russian


Danish -------> Value 1 Danish
Value 2 Danish
Value 3 Danish
Value 4 Danish
Value 5 Danish



these values are stored in tinyDB with a tag.

I then recall stored tag Value 1 into a command.

for now I would be happy if I can create the list in eclipse and recall these value, storing them on and recalling them will come later.

I have tried spinner, alert dialog but keep getting various errors so wondered if anyone could explain how I would go about do it.

Can someone please give be a basic hint on the code needed to get it so the lists can be recalled by selecting the language, into the 5 value fields please.

If you need more info or can recommend tutorials to try then i would be greatful, just things are not workiung out, the tutorials I did in app inventor seemed to work okay, but some I have tried for the code have filed greatly.


Thanks
Wayne
 
This is oh so confusing.

I just needed to select spinner and program the string_array didn't need the coded examples I found. Found this out by deleting the code and spinner still in place.


only i 1 issue with this at present the text for one of the languages is a bit long so doesn't actually display the full selection which parameter do we need.

also how do I get the value 1 to 5 up from selecting the languages.

Thanks
Wayne
 
done this using strings and index == but looks messy was hoping for a smarter solution so if anyone has any ideas please drop us a line
 
Back
Top Bottom