Re: Open Source Ascended Android Application
Posted: Sat Jan 25, 2014 8:31 pm
I've got plenty of experience with java and might can help if needed. My main concern is one of security seeing as how that is my degree concentration.
These are the forums for the GateWa.rs family of text-based space-centred PBBGs
https://talk.gatewa.rs/
Code: Select all
//we essentially have two main functions, onCreateView as its name suggests, is called once the
//fragment is created (aka when someone clicks on the realm page, after this, onStart is called.
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
return inflater.inflate(R.layout.fragment_realm, container, false); //display page first for speed
}
@Override
public void onStart() {
super.onStart();
AscEngine engine = new AscEngine(getActivity()); //create an activity of the functions with reference to its running activity
String userToken=engine.prefs.getString("userToken", ""); //user token set upon login
String realmStats = engine.send(userToken,"REQUEST_REALM_STATS_NOW_PLEASE"); //usertoken required on request to server, second parameter is the request reference.
String[] detail = realmStats.split(";"); //response is semi-colon delimitered in this case
engine.setTextView(R.id.textView1, detail[0], getActivity()); //request function of engine to set text of the current view (with reference to the running activity of course)
}
The app itself was meant to accommodate the users wanting to play from a phone at ease. While it's not much of a lag on downloading pages with the speed of internet (for some devices - others have trouble), it's a bit of a hassle fighting a live battle or playing in the arena, especially having to continually resize the page.Slim87R wrote:I got a middle of the road phone and it downloads ascended pages just fine. Not really slow or anything. Granted it is slow enough to make farming a pain. An Android App does sound way more convenient though, and could potentially bring in way more people (Just random people browsing the market), provided the app itself is free. The only issue I see arising out of this is the fact that Ascended is not a stand alone. You may get a lot of people downloading the app only to find they cant play it until they log onto main and play that first. That could be a turn off to a lot of people.
Sol wrote: Wasn't meant to bring in people from the market. That's the job of whoever is in charge of main/NG.
Already discussed it some time agoSlim87R wrote:I do think a lot of people will randomly find the app even if the purpose is not to bring in new people. I was just saying that this is a good opportunity to expand the popularity of ascended server. Being able to start an ascended account without main is not a bad idea, it just means they wont get large APP, or have ascended blessings to main. You could have it so you can start in Ascended then have the option to create a main account and associate it to your ascended account later if you decide to play that too.