GithubHelp home page GithubHelp logo

androidim's Introduction

Question (01/2022)

Should this project be maintained and developed again?

Let me know your opinion with a mail to [email protected]. I would also be happy if you write me how you got in touch with the project "Pirngruber/AndroidIM".

OUTDATED

This Project will not be maintained or get Updates anymore!

Support

There is no support given anymore for this project.

AndroidIM

##Android Instant Messaging Application

###Features

User registration
User authentication
Adding a new friend by username
Approving a friend
Messaging with a friend in list
Shows online and offline users
Runs a background service in order to get messages even when the application is closed.
Uses notification area when a new message is received.
Quiting the application(kills the background service) 

###How to:

WebAPI:
    There is a folder whose name is "android-im_WEBAPI", copy all files under "android-im" folder to a folder in            
    your web server directory, 
    for instance android-im that can be accessed by http://192.168.7.5/android-im/ (192.168.7.5 is the IP address of 
    computer which runs apache and mysql, 
    use local network IP address instead of using localhost or 127.0.0.1).
    Open the index.php and enter database connectivity parameters such as host, username, password etc. write 
    error_reporting(0) in top of index.php
    Create the tables in mysql database with the included android_im.sql
    
Android APP:
    set AUTHENTICATION_SERVER_ADDRESS in socketOperator, it must be the address where server folder are located,
    for our example it is http://192.168.7.5/android-im/ (don't use localhost)
    
Then run your application in Eclipse with ADT plugin.
it can be learned how to install Android SDK and ADT plugin.

###Support:

Support now is given by Pirngruber Dominik ([email protected])

WTFPL

androidim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidim's Issues

code not updated

(Notification, setLatestEventInfo, showDialog) is deprecated now
need to be updated

message receive issue

one message send is successfully receive in other device, but multiple message send at a time the last message print multiple time. Plz solve this issue and reply.......

Messages to Offline Useres

Messages which are sent to a offline user end up to appear twice in the SQLite when comming online!

(Problem is SQLite Insert is called on 2 different parts --> has to be on message receiver handler)

server ip address

I changed the socketoperator class to my wireless network connection ip:

  1. private static final String AUTHENTICATION_SERVER_ADDRESS = "http://192.168.x.x/android-im/";
    but app still crashes in sign up page

are there any more changes i have to include in order to make it run:
changing my ip to static? port forwarding? or changing some settings on the emulator itself??

why slow messaging with real server

I made a apk from your Git.

but when I msg from a device to another device.

it is very very slow. takes abt 10 seconds. do you know what is problem?

I worked with my Cloud server. not with desktop pc.(when I worked with my local IP, it is so fast)

private static final String AUTHENTICATION_SERVER_ADDRESS = "http://14.63.220.110/android-im/index.php";

your youtube is so fast but it is in local AVD.

messaging cant perform

I send message throw users after made them friends but nothing happens .I try to debug and it enters the loop everytime
if (result.length() == 0) {
result = HTTP_REQUEST_FAILED;
} // this line of code is from SocketOperator class
even if the result.length isnt 0 for example is 1 so any help plz

For those who can't register new user.

The reason is pretty simple:
Android-IM Web API doesn't have any code that creates new tables in database, so you have to create them yourself based on queries, that "index.php" makes through "mysql.class.php".
Queries for table creating are in "android-im.sql" but it is not called from any part of code.

For fixing, just add this to "index.php" right before "switch($action)":

$createUsers = "CREATE TABLE IF NOT EXISTS users (
Id int(10) unsigned NOT NULL AUTO_INCREMENT,
username varchar(45) NOT NULL DEFAULT '',
password varchar(32) NOT NULL DEFAULT '',
email varchar(45) NOT NULL DEFAULT '',
date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
status tinyint(3) unsigned NOT NULL DEFAULT '0',
authenticationTime datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
userKey varchar(32) NOT NULL DEFAULT '',
IP varchar(45) NOT NULL DEFAULT '',
port int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (Id),
UNIQUE KEY Index_2 (username),
KEY Index_3 (authenticationTime)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7";

$createFriends = "CREATE TABLE IF NOT EXISTS friends (
Id int(10) unsigned NOT NULL AUTO_INCREMENT,
providerId int(10) unsigned NOT NULL DEFAULT '0',
requestId int(10) unsigned NOT NULL DEFAULT '0',
status binary(1) NOT NULL DEFAULT '0',
PRIMARY KEY (Id),
UNIQUE KEY Index_3 (providerId,requestId),
KEY Index_2 (providerId,requestId,status)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='providerId is the Id of the users who wish to be friend with' AUTO_INCREMENT=7";

$createMessages = "CREATE TABLE IF NOT EXISTS messages (
id int(255) NOT NULL AUTO_INCREMENT,
fromuid int(255) NOT NULL,
touid int(255) NOT NULL,
sentdt datetime NOT NULL,
read tinyint(1) NOT NULL DEFAULT '0',
readdt datetime DEFAULT NULL,
messagetext longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
PRIMARY KEY (id),
KEY id (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=22";

$db->query($createUsers);
$db->query($createFriends);
$db->query($createMessages);

Messaging aren showing...

Hi i run the app and also i uploaded on an online host , i run it on my phone and on android emulator and i create users also made them friend , also the icon that they are online its ok , when i start typing the messages dont show , only when i open the first user then write to the second user when he is offline and then open the second user from the same emulator or my phone so how can i perform messages.Someone help me

Php version used ?

Hello AndroidIM, its a great project i'm wondering what PHP version is being used, thank you!

Crash after Pressing "Sign Up" Button

After Compile the App with the own IP(who run the Apache and MySQL Server), I start the App go to "Sign Up" and fill the field, then by Pressing "Sign Up" the App will Crash(I have Tested on three Devices)

screeen

Zip file cant open

When I run this code.log cat show error message

Init cant open zip file.plz tell me solution

online hosting

which free online hosting website is best for androidim

android_im.sql

In the tutorial video, there is an android_im.sql file in android-im_WEBAPI that you import to phpMyAdmin, but there is no file to be found in the zip file.

message not sending from one emulator to another

when i press send message button it cannot be send to other emulator ...i am using ubuntu 12.04 ..what is the issue ...m freaked out to solving this problem ...is there any socket problem or anything else ....please help me to get out of this..

Is this really working!!

Hi to all here , is this app really working cause when i have both users online i cant send messages from 2 different emulators , i have a month i stuck here any help i dont know what to do i have tried a lot of thing but still not working . It only shows messages when i run in the same emulator , i log in with the first send message then log out and in the same device i log in again with the second user and then messages are appearing... Is this working or not ??

login problem

i setup database in xampp server.than open apk file and sign up succesfully,but when i login its said username and password not match.plz help me sir

Big Enhancement

I have introduced big enhancement in this project ......xml is replaced with JSON , vedio capture and sharing picture sharing has been introduces .

server connectivity error

i am not able to connect it to the server. i am using xampp server and followed the steps as shown in tutorial, but it says that unable to find 192.168.x.x/android-im/ .
plz help

message are'nt showing

how to show message from another device ? because it only retrieve messages from 1 device , need help please

Background service issue

The app was working fine, but when i closed the app, it doesn't receive any notification such as message and friend request. I guess , all background process was stop when the app was closed. Any idea guys to fix this?

Send messages to offline users

Will give you the option to send messages to users which are currently offline, they will get the messages on next login.

Should include license information

Hi, it seems there are no license terms included with the code.

From the google code page it looks like the license was GPLv3.

You can download the GPLv3 license text from https://www.gnu.org/licenses/gpl.txt and put it next to README.md.
For more instructions see: https://www.gnu.org/licenses/gpl-howto.html
, or: https://www.gnu.org/licenses/gpl.html (scroll down to How to Apply These Terms to Your New Programs)

Without license information, further development becomes difficult.

AndroidIM APK does not work

When I use AndroidIM.apk from GitHub to android phone. Both Login and Signup do not work. But When downloading it directly from Play Store. It works fine. Do I missed anything?

Andrew
Thanks

Importing

Please how can i import the project , i have been trying to import it using eclipse . Thanks

Sign up and logging problem

When I pressed (sign up) it says sign up failed for unknown reason,but I can see user created table in mysql,also some error log in the www folder.
And no matter which char I type in the username and password it always can log in.
Do you know how to solve it?
Thanks

Add friend is not working.....

I tried to signup..while pressing signup button it's showing as signup failed because of unknown reason...But it's getting login without any problem..after login it's showing add friend screen..But add friend request notification is not coming in another device....In IMService class showNotification() method is commented...If I uncomment that means it's showing error

Problem with adding friend and showing friend list

Hi all, I am having some problem in adding friends using AndroidIM, I have setup mysql server using XAMPP and I can add user from the mysql database and login successfully, but after I logged in, and clicked menu button to add friends using username, the other users still cannot receive my add friend request. I tried to directly add friends from mysql database, but still no luck. Any idea on what can I do to solve this? I can't even send or see messages now, Thanks and good days

Duplicate messages received

Duplicate message received by friend if I send many messages same time without stoping/delay between 2 messages.

Other user will receive only first message number many times.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.