pkobielak / Smile

Simple android chat application template with Parse.com integration
0 stars 0 forks source link

chatapp doesnot work anymore #1

Open stickylabdev opened 9 years ago

stickylabdev commented 9 years ago

Please fix .why i cant chat with myfrient?

pkobielak commented 9 years ago

Did you insert your Parse API key and credentials into the code? If you do, then there shouldn't be any problems. Please elaborate your question.

stickylabdev commented 9 years ago

Surely i change api key and client id with my credential in parse.com

stickylabdev commented 9 years ago

Surei cannot see any chat come in ...i see just my chat

pkobielak commented 9 years ago

Ofcourse it is like that. Because you have to change every string "Girlfriend" for "Boyfriend" on the second client to make it work. Or use my desktop application which i was using as default second client. I will upload its project in a moment.

EDIT: It is published now. Check my repository Smile-Desktop. Turn them on simulatenously and it will work for sure. Waiting for your feedback.

stickylabdev commented 9 years ago

Desktop PC? But i have not computer yet ..better if you make login credential like this project made by me goo.gl/dbnTwL

stickylabdev commented 9 years ago

Oh .i will install in one android phone .and make 2 app ..one as girl and other as boy

stickylabdev commented 9 years ago

Sorry for bad English .

stickylabdev commented 9 years ago

So ijust change value in the ChatMessage.java

 @Override
 public void parse(ParsingComponent cloud)
 {
      ParseObject msg = new ParseObject("Messages");
      msg.put("text", message);
      msg.put("sender", "BoyFriend");
      msg.put("readstate", false);
      msg.pinInBackground();
      msg.saveInBackground();
 }
stickylabdev commented 9 years ago

Sadly ..i your app only work on local android phone ...when i try with onther phone ..it doesnot work

stickylabdev commented 9 years ago

WOW THIS IS REALLY REALY WORK .YEAH.

stickylabdev commented 9 years ago

But i need you to add sign up and login system ..i am little confuse if i do it myself

pkobielak commented 9 years ago

You can do it bro if you want. I'll merge your solution if it would work. I have no time for it currently.

stickylabdev commented 9 years ago

Yes bro .but ifound bug on your code brow . If it no problem when i open the app for first time .but .when i close then open again ,it force closed :'(

pkobielak commented 9 years ago

If you dont have internet connection during opening the application or you lose it during its activity, then the app will crash. Again, I am working on different project now. :)

stickylabdev commented 9 years ago

Bro .i realy sure i have internet access ..i think the problem is Thread .

stickylabdev commented 9 years ago

The cronologis .is like this. 1.i open the app for fist time .realy work .i can chat and anything! Then exit . 2.i open again .then force close .force me to close .then 3.i open again.them perfectly works ! 4.:( . How to fix ;(

pkobielak commented 9 years ago

Exit detection should be implemented, you can do it If you want. As i said the project is not developed by me now. The issue will be closed.

stickylabdev commented 9 years ago

Exit detection should be implemented,

So ijust add onbackpressed finish

pkobielak commented 9 years ago

That should do the job.

stickylabdev commented 9 years ago

But some tima .the messages repeat several time :"( though i enter one time ..it always appear several messages in other app