[Q] help for new chat project - Java for Android App Development

hello xda
i am a new developer [Student] i need to submit my app for my project at school
so what i want to ask is
i want to develop a app that allows a person to chat like is i give one coustmer a no. [say 678567] and he shares it with other person so they can chat share files
its same as how i think whats app works
can someone please guide me to the right direction i am keen to develope this app and get good grades ^_^
thank you

thedeadlycoder said:
hello xda
i am a new developer [Student] i need to submit my app for my project at school
so what i want to ask is
i want to develop a app that allows a person to chat like is i give one coustmer a no. [say 678567] and he shares it with other person so they can chat share files
its same as how i think whats app works
can someone please guide me to the right direction i am keen to develope this app and get good grades ^_^
thank you
Click to expand...
Click to collapse
If i get you, you want something like whatsapp...
As far as i know, you will need different things:
A backend Server to manage and store users and manage files sended.
A client side with is the chat. If you doing it in Android, Java the process could be like this:
client get a list of friends, then stores in local files. To send a message, firstly can use push messages like GCM to send a message, if receiver is online with the conversation openned, it tries to stablish a socket connection to send messages each other. If no, then it uses the push GCM.
More or less like that....of course there are much more things to do and take care of.
hope i helped you a little with this info!

forgin said:
If i get you, you want something like whatsapp...
As far as i know, you will need different things:
A backend Server to manage and store users and manage files sended.
A client side with is the chat. If you doing it in Android, Java the process could be like this:
client get a list of friends, then stores in local files. To send a message, firstly can use push messages like GCM to send a message, if receiver is online with the conversation openned, it tries to stablish a socket connection to send messages each other. If no, then it uses the push GCM.
More or less like that....of course there are much more things to do and take care of.
hope i helped you a little with this info!
Click to expand...
Click to collapse
ya!! thats what i want , seems tougher for a amature android programmer
so here what i have
i have a server at school which we are allowed to use
i have created a basic layout of the app(on a white board )
since i do not have that much expirence with apps ( till now i have made calculator and simple sudoku ) the problem is i don't know how can i make the app to contact with the servver complete noob in this thing
and
thanks for making me understand the working now i can tell my teacher how the app works

thedeadlycoder said:
ya!! thats what i want , seems tougher for a amature android programmer
so here what i have
i have a server at school which we are allowed to use
i have created a basic layout of the app(on a white board )
since i do not have that much expirence with apps ( till now i have made calculator and simple sudoku ) the problem is i don't know how can i make the app to contact with the servver complete noob in this thing
and
thanks for making me understand the working now i can tell my teacher how the app works
Click to expand...
Click to collapse
You can use backends like Google Cloud Messaging or Parse, they're well documented and easy to use, just go through their documentation,

swapnilraj said:
You can use backends like Google Cloud Messaging or Parse, they're well documented and easy to use, just go through their documentation,
Click to expand...
Click to collapse
thanks for the reply actually i researched a little and found the GCM is not a good choice for IM as sometimes messages are not delivered so as for parse i have no experience with that and i found something that i need to have some connection between my android app to server (running php and mysql database)
the point where i am stuck is that
How to connect the app to server ??
and how to give a user his personal pin or username so he can share with others to chat ??
thanks

thedeadlycoder said:
thanks for the reply actually i researched a little and found the GCM is not a good choice for IM as sometimes messages are not delivered so as for parse i have no experience with that and i found something that i need to have some connection between my android app to server (running php and mysql database)
the point where i am stuck is that
How to connect the app to server ??
and how to give a user his personal pin or username so he can share with others to chat ??
thanks
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2325799
it was just 3 post under yours
And just make that every user have an unique nickname and use it has a primary key.

Related

Blackberry on Crossbow....

....anyone got this combination working? Having issues on mine....
If so, which versions are you using and can you provide a link?
Thanks
Does no one have any info on this? Surely the Universal is used by some professionals wanting to use Blackberry Connect?
......or only nerds like me?
Maybe professionals tired of Blackberry stuff, moving to MS Pushed Email
sebbes said:
Maybe professionals tired of Blackberry stuff, moving to MS Pushed Email
Click to expand...
Click to collapse
push email is only good for those with servers right?
not every geek owns a server
No, you don't need your own server, http://live.mail2web.com and http://www.port88.org/ are two free push mail servers I know of, there are probably more.
I use mail2web and it's been great!
Not true - you can use a hosted exchange service such as www.4smartphone.net
damn, beaten to it!
yeah so true, but the main question should be "Is a geek with a single computer really a geek ?"
The answer to that depends on whether its 'really' a server or an old desktop that has had linux thrown onto it, and is now claimed to be a server - I don't think the latter qualifies for true geekdom (unless of course, it is supplemented with a fondness for button up cardigans and a beard capacious enough to provide a home for a badger).

Instant Messaging Query (AIM/MSN)

I apologise if this is a stupid question, but I can't seem to make sense of it.
Looking at the features between different builds (as demonstrated nicely in this table http://www.simonwalkerphotos.com/android/android_build_information.asp I notice that the official T-Mobile and other builds seems to support AIM, MSN and Yahoo!
I'm using JFV1.51 CRB43 EU (1541), which seems to support MSN/AIM.
I can add MSN/AIM/Yahoo details to my contacts, but how do I then chat over it?
I get the feeling its got to come down to third party app support, but if it does, then why would some releases support it when others dont.
Could someone enlighten me, please
The ROMS that support IM built in use the T-Mobile IM app. To enable a chat from your contacts, (within cupcake) simply click on "chat using AIM/MSN etc." From there it should take you to the IM app and have you sign in or take you to a message window.
Hope that helps
Thanks for the swift reply.
OK, so:
I create a new contact, give them a name and enter a phone number.
I hit enter Chat Address and I get dropdown options for AIM, Windows Live, Yahoo, Skype, QQ, GoogleTalk, ICQ and Jabber.
I enter known GoogleTalk, AIM, MSN and ICQ Addresses. Hit done.
I now go and find my contact (mr aaaTest) and I have 6 options.
Call/Text
Chat using: Google Talk / AIM / Windows Live / ICQ
Chat using google talk promps me to invite the address set for the contact.
Slightly annoying as I already have that contact in gTalk, just under a different name, but it seems to be working.
Clicking on Chat Using AIM/Windows Live / ICQ does nothing.
Well, it responds to the button press, but nothing happens on the device.
If I have a look using logcat then on teh button press I'm told:
I/ActivityManager( 63): Starting activity: Intent { action=android.intent.action.SENDTO data=imto://msn/[email protected] }
E/ViewContact( 130): No activity found for intent: Intent { action=android.intent.action.SENDTO data=imto://msn/[email protected] }
So, as I am running JFV1.51 CRB43 EU, should I expect this to work?
The only thing I can think is that its a US only feature. -Can anyone advise please.
It may only be a US feature. I know it is featured to work with the IM application that comes on the T-Mobile US builds.
I'm not sure about the EU versions, as I have never used them. You could try pushing the IM app and other files needed from the JF US version and see if that works, assuming the IM app will work on the EU build.
I believe this is a feature made available in the US by the use of a SMS->IM gateway, which most other operators in the UK/EU don't do. Mainly because it's a horrid way to do things
jonc said:
I believe this is a feature made available in the US by the use of a SMS->IM gateway, which most other operators in the UK/EU don't do. Mainly because it's a horrid way to do things
Click to expand...
Click to collapse
what he said - but if you do want it working, this may work:
http://forum.xda-developers.com/showthread.php?t=519980
Thanks for all the replies.
Using a SMS gateway is abhorent and well worth avoiding.
Thank you Joinc for the warning and afflaq for telling me how to do it. I probably won't bother setting it up, but it could be amusing to try.
I suppose if I want to be using these protocalls then I'm going to have to download third party apps for each. I wonder if a) they work nicely and b) tie in nicely to contacts.
gTalk in the browser chaims that I can contact people with AIM accounts -I might have a play with this and see if it will work on the phone.
Thanks to all for your help -as a long term lurker, I'm really impressed by the friendly and helpful replies to my first post

emaail app vulnerability

i have usual email in my box, which kill microsoft mail application, when i try to open it.
so, we can abuse this app in some way, for example, run own code, if it overflows stack. What privilegies this application have?
sorry for my english
can you upload email data anywhere?
ultrashot said:
can you upload email data anywhere?
Click to expand...
Click to collapse
it contains my real name.
i may forward it to you for test, pm me. i want to be sure this letter will not be spread over all internet
mailwl said:
it contains my real name.
i may forward it to you for test, pm me. i want to be sure this letter will not be spread over all internet
Click to expand...
Click to collapse
What email service are you using?
Yandex.ru but i am unsure it mean
Ah I see... wonder if its to do with the service or your actual account... Did you send the email data to @ultrashot . We might be able to exploit this..
doesn't hang email app when it is forwarded, unfortunately
build 10328
I will try to send original data
ultrashot said:
doesn't hang email app when it is forwarded, unfortunately
build 10328
I will try to send original data
Click to expand...
Click to collapse
I have an idea: @mailwl
Don't forward it
Setup Outlook
Save message as .eml
(optional) Send it to yourself and test if openning this file breaks e-mail client.
Send this file to ultrashot
Email runs in the COMMSAPPLICATIONS chamber, which is sandboxed but still has pretty good privileges. Getting arbitrary code execution will not be easy even if it's a straightforward exploitable buffer overflow, since WP8 has a lot of exploit mitigations in place, but it should be possible especially since we *can* get ACE in our own chamber easily, which means we can examine certain elements of system state.
edit: remove links
url of picture https://mail.yandex.ru/message_part...&name=avatar-mk-square-830191244-square80.png
the browser eat this link
Hmm... Do you still have a cached version on your device?
wp8 device is not my preffered one (i use sony xperia z in real life). i doesnt understand how email app works. in mail web ui i set this email status for not readed, and it do not appear in email app. i cant even make the video of killing email app while opening the certain email
Hmm....was the crash caused by that image? Does any other email crash the app?
TheInterframe said:
Hmm....was the crash caused by that image? Does any other email crash the app?
Click to expand...
Click to collapse
i think the image is cause. i've got tons similar emails, every opens without any problems.
can anyone create the mail with this broken link inside?

RESTful to Android connectivity

Hi,
I'm going to write a system for processing taxi orders. It consits of client application, driver application and restfull web service. For now I have only a few POST resources in my server that consumes JSON file and produces plain text. I'm wondering how to resolve the situation when the client need confirmation about the order he made or when the new order is made and has to be delivered to taxi driver app. I am a beginner android developer and I do not know which tools should I consider to achieve it. Is it good idea to use a service that checks let say every 30sec for new order/confirmation or shuld I use another solution for example let REST to connect directly to the particular android device?
Thank you in andvance for your response.
You can use push notifications by using Google Cloud Messaging.
EmptinessFiller said:
You can use push notifications by using Google Cloud Messaging.
Click to expand...
Click to collapse
Thanks for the idea. I didn't know about it before. I have just one question - since I use RESTful service the easiest way to implement GCM is to choose http protocol (single POST request) but there is no upstream feature in it. Is it good approach to use GCM in "server -> android" connection and regular POST request (that I used till now) vice versa?

[Q] what is the best way to implements push notifications in android.

I want to implement push notifications in my android apps.what is the best way to implement push notifications.
Notes :
1) Apps User need not have compulsory google Account.
Implement android push notifications without GCM
I want to implement push notifications in my android apps.is it possible without using GCM(Google cloud messaging)
Your app would need to "handshake" with the server when it was first run, so that the server could get the IP address and any other info it needed. That could be done with a simple HTTP post. (Googling "java http post" came up with a ton of results, but the first one was a Stack Overflow question with a ticked answer that's been upvoted over 100 times. I'd take that as a strong indicator that it's good - http://stackoverflow.com/questions/4205980/java-sending-http-parameters-via-post-method-easily).
After that, you'd need to create a TCP listener in your app and something to send messages to it on the server. Again, a quick Google search came up with a ton of stuff, but this looks concise and useful...
http://systembash.com/content/a-simple-java-tcp-server-and-tcp-client/
I've not done anything like this with Java, so I can't be any more help than give you the principle of it. I've done it in other languages though, and it's all the same thing really.
I hope this helps, and good luck
Edit: I just had a thought - that's all good for people using data, but you'll run into issues when on wifi as you'll only have an external IP address. There's reasons that things like Google Cloud Messaging exist!
nileshandroid18 said:
I want to implement push notifications in my android apps.is it possible without using GCM(Google cloud messaging)
Click to expand...
Click to collapse
GCM is free i think, while the alternatives are not.
For example Parse is not so difficult to program but after exceeding their Free plan you have to pay each month some money . Other similar platforms also exist, like urbanairship

Categories

Resources