[Q] many to many user - Java for Android App Development

hii all,
i am fresher in android app developer,i face a problem in connection many user to many user also role of admin.in this process. like example one user can send some text to other user but after confirmation of admin it will push the text to desire user.how can it possible globally without investing any cost in trial host.any code if possible . plz suggest me how its possible

You need to have a central server for what you want to do. You could setup the server on a small PC or Raspberry Pi. Its quite simple actually. The server needs to be connected to the internet.
Sent from my Nexus 4 using XDA Premium 4 mobile app

Related

[Q] android + MySQL

Hello all
Probably the question has been ask´d but here it goes...
is there allready a way do acess an on-line MySql DB from the android ?
I need to design an app to fetch and post data from a bd...
any ideas ?
ty all
You may find the following link to be helpful: http://shariqmobin.wordpress.com/2010/03/06/hello-world/
That requires some fiddling with firewalls and allowing external connections to your MySQL DB. If you're not comfortable with that (or not allowed by the DB server admin), you could consider creating a simple webservice or script to supply specific data from your DB.
thnkx m8
i will take a look @ it.
i do have acess to the db as we own the server where the db is
i´ll keep you guys posted
´´tnkx
RemoteDB (market). For extra security, connect to the host via ssh with ConnectBot and tunnel port 3306. It works, and I use it all the time.
It's a ***** to get it working the first time if you're new to ssh and/or tunneling, but it means you don't have to directly expose your database to the Internet. I *highly* recommend getting Toad to work with PUTTY before attempting it via Android, though.
Sent from my SPH-D700 using XDA App

[Q] Connecting to external Server

I am building an application where users will be able to register and their details will be stored in an external server which can also be accessed over the web. The users will also be able to login..
I have been researching for days on what method to use but i haven't found anything useful, can anyone help me please?
I've written a guide on Android client server communication http://forum.xda-developers.com/showthread.php?t=2325799
Would this be useful?
Sent from my SGH-I337M using xda app-developers app

[Q] server client

I am developing an application which sends information to PC from an android device (Smartphone), what i want to do is to control this communication from the PC, it means that I have an application GUI with Java in which the botton "RECEIVE" when is clicked the communication starts and the device send the information (the PC and the device are already connected)
I dont know how to proceed (JAVA RMI ,,,...????) if you have any suggestions dont hesitate
Thanks
At this link you can find a client-server framework. Right now its somewhat limited but it would give you a start. It can currently send messages from client to server. You can specify a port and IP address. Hope it gives you what your looking for. http://www.site.uottawa.ca/school/research/lloseng/supportMaterial/ocsf/ocsf231.zip
This page might give you more info
http://www.site.uottawa.ca/school/r...rom my Nexus 4 using XDA Premium 4 mobile app

[Q] Just a question about servers communicating with android

Im planning on building an android app. Its like a 'mini' social networking site that users can upload their pics, messages etc but im having trouble knowing how to 'start off'..
Servers, SQL, PHP and those types are not my thing, i have never came close to them as I have never done anything relating to servers but now I need to get close to them.
This is where im having the confusion:
Should I build a website that is the social networking site and store everything in the server that the website it connected to and then from the app i build, the app can fetch data from the website (or the server if thats possible) OR can I just directly build the app and make it communicate with the server so that gets rid of the issue of building a website.
Ive done a little research and have gotten some information but not a clear answer. I think my server will be using SQL so will the app be able to communicate with the database in the server directly or do I have to create a middleman such as a PHP/XML/JSON server for the android app to understand the SQL server since this is probably the common answer ive gotten when researching about android communicating with databases? (http://fahmirahman.wordpress.com/2011/04/21/connection-between-php-server-and-android-client-using-http-and-json/
Which approach is the easiest since im completely new to server languages (if thats what you call them).
Thanks for the help.
Hi man!
BTW the easiest way is to setup a PHP page on a server which sends JSON objects when data is requested by the client. Of course if you're good enough you could create a REST API for your server. After you get data from the server simply load the objects via a http/https request via your client.
I strongly recommend you make the API for the same. I'm doing an Android project which involves the same.
Sent from my Nexus 4 using XDA Premium 4 mobile app
boggartfly said:
Hi man!
BTW the easiest way is to setup a PHP page on a server which sends JSON objects when data is requested by the client. Of course if you're good enough you could create a REST API for your server. After you get data from the server simply load the objects via a http/https request via your client.
I strongly recommend you make the API for the same. I'm doing an Android project which involves the same.
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Oh ok. Thanks for the reply. Right now, im learning SQL since thats what most servers use. Then I'll probably get a server and experiment with it, although I have no idea on how create an instant messaging app Im pretty sure theres guides on the interwebs though
Don't forget to make APIs so that you don't have trouble figuring out client side programming. It will save you a lot of trouble.
Please give a thanks if you think this post helped you!
Sent from my Nexus 4 using XDA Premium 4 Mobile App .
boggartfly said:
Don't forget to make APIs so that you don't have trouble figuring out client side programming. It will save you a lot of trouble.
Please give a thanks if you think this post helped you!
Sent from my Nexus 4 using XDA Premium 4 Mobile App .
Click to expand...
Click to collapse
Sorry but im a bit new to android programming. What does API mean? Is it like Android version 2.2, 2.3, 4.1, 4.3 etc? And how can I make an API?
TwilightLoz said:
Sorry but im a bit new to android programming. What does API mean? Is it like Android version 2.2, 2.3, 4.1, 4.3 etc? And how can I make an API?
Click to expand...
Click to collapse
Straight from*Wikipedia:
In computer science, an application programming interface (API) is an interface that defines the ways by which an application program may request services from libraries
Java contains many libraries in those packages (Swing, etc.), and*the API*is the interface by which we request services (perform actions, etc.).
Since we're using Java for Android we are actually using the Java API by using any of Java's classes. All of Android's custom classes like Activity etc are part of the SDK library.The API is just a hook so you can latch on to libraries.
So in fact what you can do to create an API is a whole different topic altogether.
I suggest you Google it.
I'm thinking maybe I'll write a tutorial on this on xda for all members amateurs or pros alike.
Yeah I think you should write a tutorial. It'll help the community.

[Q] what are constants of the phone

There is an app that i use makes something only one time per device. I wanted to know what cause this to happen so i formatted my entire phone and flashed stock ROM by Odin then tried the app and found it didn't change.Thought it is about the ip so tried on another network and nothing changes.Tried on another device and it made that thing for one time only as usual and doesn't make it again so i thought it is about something in the mobile itself that is saved in the app server as used. something that doesn't change by changing ROM or data or kernel or anything like this. all what i know is the mac address and the imei of the mobile. i changed the mac address nothing changes. i then searched about changing imei i found it is illegal and have a big risk.
i wnated to know what are the other constants that doesnt change by changing the entire system and kernel?
and is there a way that a beginner like me can find out what the application read and save?
thanks in advance
maged rifaat said:
There is an app that i use makes something only one time per device. I wanted to know what cause this to happen so i formatted my entire phone and flashed stock ROM by Odin then tried the app and found it didn't change.Thought it is about the ip so tried on another network and nothing changes.Tried on another device and it made that thing for one time only as usual and doesn't make it again so i thought it is about something in the mobile itself that is saved in the app server as used. something that doesn't change by changing ROM or data or kernel or anything like this. all what i know is the mac address and the imei of the mobile. i changed the mac address nothing changes. i then searched about changing imei i found it is illegal and have a big risk.
i wnated to know what are the other constants that doesnt change by changing the entire system and kernel?
and is there a way that a beginner like me can find out what the application read and save?
thanks in advance
Click to expand...
Click to collapse
You haven't said what the app is or what you a trying to achieve - you have only said it will only allow you to do something once
More information is needed
Mac addresses cannot be changed - they are burnt onto the network card & are unique - you can spoof a mac address with Linux but I'm not going to say how or go into any details as that's not what xda is about
Your ip address can be fixed or varied - normally your phone will always get the same internal ip address & you will normally get the same external ip address from your default gateway under dhcp unless you turn off or reset your router
Without knowing what the app is & what you are trying to achieve I can't support you
And even if I did chances are you are trying to do something which is against XDA rules
marcussmith2626 said:
You haven't said what the app is or what you a trying to achieve - you have only said it will only allow you to do something once
More information is needed
Mac addresses cannot be changed - they are burnt onto the network card & are unique - you can spoof a mac address with Linux but I'm not going to say how or go into any details as that's not what xda is about
Your ip address can be fixed or varied - normally your phone will always get the same internal ip address & you will normally get the same external ip address from your default gateway under dhcp unless you turn off or reset your router
Without knowing what the app is & what you are trying to achieve I can't support you
And even if I did chances are you are trying to do something which is against XDA rules
Click to expand...
Click to collapse
About the app i didnt say its name because i thought of it being against the rules and because i wanted general information about how can any app track or guess that this is the same device after the changes i made.
The app name is whaff and the thing i am trying to do is inputting an invitation code in two different accounts on the same device which as i know is not against their terms&policies.
About the mac address i followed a procedure that changes the mac address in a file called .nvmac.info and after reboot the mac really changed in the advanced settings of wifi.
About the ip i think i am aware of what you say. I connected to another router of another wifi lan to get different internal and external ip.
thanks for fast reply and I hope i am not against xda rules
Sent from my GT-S5360 using XDA Free mobile app
maged rifaat said:
About the app i didnt say its name because i thought of it being against the rules and because i wanted general information about how can any app track or guess that this is the same device after the changes i made.
The app name is whaff and the thing i am trying to do is inputting an invitation code in two different accounts on the same device which as i know is not against their terms&policies.
About the mac address i followed a procedure that changes the mac address in a file called .nvmac.info and after reboot the mac really changed in the advanced settings of wifi.
About the ip i think i am aware of what you say. I connected to another router of another wifi lan to get different internal and external ip.
thanks for fast reply and I hope i am not against xda rules
Sent from my GT-S5360 using XDA Free mobile app
Click to expand...
Click to collapse
I haven't heard of that app
If the app is not designed to allow multiple accounts you will not be able to do this
You could wipe data of the app & this will reset the app & you might be able to sign in with a different account but if you sign in via mobile number than this is pointless
These types of apps probably are setup using your phone number & it sends a confirmation code to your phone - no matter what you do unless you change your phone number you will not be able to create a 2nd account
marcussmith2626 said:
I haven't heard of that app
If the app is not designed to allow multiple accounts you will not be able to do this
You could wipe data of the app & this will reset the app & you might be able to sign in with a different account but if you sign in via mobile number than this is pointless
These types of apps probably are setup using your phone number & it sends a confirmation code to your phone - no matter what you do unless you change your phone number you will not be able to create a 2nd account
Click to expand...
Click to collapse
in this app i sign in using my facebook account and doesnt send any verification code to my mobile i made many tests and i deduced that the only thing that the app recognizes my mobile with is a thing that doesnt change by wiping everything in the phone and is saved to their server not my mobile so as i said all i know that could be it are the mac adress and the imei . they are constant by changing roms or wiping so i think when i open the app it compares one of the constant things in the phone with the saved things on their server. the app allows multiple account and i can use it with two accounts on the same device but cant input two invitation codes on the same device.
Edit: it is also not about the facebook account because i tried the same account on another device and it worked.(note:the app also accepts one invitation code per account)
i want to know how the heck can that app recognize my device although i wiped every thing and flashed new rom and signed in with different google and facebook account
Sent from my GT-S5360 using XDA Free mobile app
maged rifaat said:
in this app i sign in using my facebook account and doesnt send any verification code to my mobile i made many tests and i deduced that the only thing that the app recognizes my mobile with is a thing that doesnt change by wiping everything in the phone and is saved to their server not my mobile so as i said all i know that could be it are the mac adress and the imei . they are constant by changing roms or wiping so i think when i open the app it compares one of the constant things in the phone with the saved things on their server. the app allows multiple account and i can use it with two accounts on the same device but cant input two invitation codes on the same device.
Sent from my GT-S5360 using XDA Free mobile app
Click to expand...
Click to collapse
The only person who would be able to give you an answer would be the app developer - contact them for support
marcussmith2626 said:
The only person who would be able to give you an answer would be the app developer - contact them for support
Click to expand...
Click to collapse
ok thanks
Sent from my GT-S5360 using XDA Free mobile app

Categories

Resources