im actually working on an Android application which provides user a connexion to a DataSnap server but I got a problem with my NetworkManager class.
I wish I have access to its content (user, host, port ...) but I can't and I didn't found the solution online (or may be I didn't read all posts)
There is my code for the network manager:
package com.smdroid;
import com.embarcadero.javaandroid.DSProxy.TServerMethods1;
import com.embarcadero.javaandroid.DSRESTConnection;
public class NetworkManager{
DSRESTConnection conn = new DSRESTConnection();
TServerMethods1 proxy;
int servId = 0;
}
and where I want to call my class and access the content :
public class ServerMenu extends Fragment {
TJSONArray servList;
NetworkManager nm = NetworkManager;
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View servView = inflater.inflate(R.layout.server_menu, container, false);
try {
System.out.println(nm.proxy.ReverseString("reverse test"));
} catch (DBXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return servView;
};
}
If someone could help me, it would be nice. Thanks you =) Regards, Pierre