I want to show the latest post in the top row. How can I do this on android. I am using mysql- php as webservis.
I'm trying to make twitter clonu. last post, needs to be seen in the top row.
Github Project
public void kisiekle(){
String url = "https://goldgym.pro/akis.php";
final String akiss = akis.getText().toString().trim();
StringRequest istek = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.e("Cevap",response);
try{
JSONObject jsonObject = new JSONObject(response);
JSONArray movies = jsonObject.getJSONArray("employees");
StringBuilder sb = new StringBuilder();
for (int i=0; i < movies.length();i++){
JSONObject b = movies.getJSONObject(i);
String akis_ad = b.getString("akis");
akisone.append(akis_ad + "," + "\n\n");
}
web Service / mysql - php
twit
https://github.com/prensmiskin/vollley-one/blob/master/akis.php
login
https://github.com/prensmiskin/vollley-one/blob/master/login.php
register
https://github.com/prensmiskin/vollley-one/blob/master/myphp.php
screenshot https://user-images.githubusercontent.com/40228440/66035919-bb89fd00-e514-11e9-8151-ebba56fc7670.png