Complete working code for Bump Chat

512 views
Skip to first unread message

a3...@live.co.uk

unread,
Dec 3, 2011, 9:58:30 AM12/3/11
to bump-api-android
Hello all,

I am a new comer, tried to import the chat sample, but the screen just
went black. I just wonder is there anyone can upload the complete
working code in zip somewhere. This will help alot of beginners just
like me.

Thx
a380

Indy

unread,
Dec 3, 2011, 1:43:32 PM12/3/11
to bump-api-android
When running the chat example the screen goes black? Are there any
errors in logcat?

The chat example is very concise and the best way to understand how
the api works. If there are problems we'll try to fix it.

Thanks,
Indy

a3...@live.co.uk

unread,
Dec 3, 2011, 10:18:12 PM12/3/11
to bump-api-android
Hi Indy,

Thankyou for your quick response.

I uploaded my source code to here : http://www.4shared.com/file/HMO5WPyn/BumpChat.html?

I removed my API key (because anyone can download the file), so please
replace with your one for testing.

The following are the things that I have created the project (I am
using Mac with Eclipse):


1. Create new project with existing source code (bumpChat)
2. Merge all the files from BumpAndroidAPIv0.4
3. Add bump-api.jar to the project
4. Removed android:theme="@style/DialogNoTitle" in both
"com.bumptech.bumpapi.BumpAPI" and
"com.bumptech.bumpapi.EditTextActivity" in the AndroidManifest.xml.
The reason I did that is because it make the compile error: (Error: No
resource found that matches the given name (at 'theme' with value
'@style/DialogNoTitle'). AndroidManifest.xml /BumpChat line 7 Android
AAPT Problem)

If possible, please upload a complete working code to somewhere and
allow us to download.
Thx again Indy. :)

A380

Indrajit Khare

unread,
Dec 4, 2011, 9:30:42 PM12/4/11
to bump-api...@googlegroups.com
a380,

Looking at your code and the code in the app there are two things you're missing that the documentation mentions:

1. The theme for both activities should be: @style/BumpDialog
2. You need to put in the BumpResources.java file in your project in the package: com.bumptech.bumpapi. And make sure to import the R class for your project.

After these two you should be ready to go.
Indy

a3...@live.co.uk

unread,
Dec 5, 2011, 8:36:07 AM12/5/11
to bump-api-android
Hi Indy,

Thankyou for the guidance. You are ROCK!... It works now.. :)

Thx,
A380

nepodmitljivi

unread,
Dec 23, 2011, 7:36:10 AM12/23/11
to bump-api-android
I downloaded BumpAndroidAPIv0.4.zip but it doesn't contain R class,
only BumpResources.java.
I can't get BumpChat code to build. :(

Steps I took:
1. Unzipped BumChat and BumpAPI.
2. In eclipse, created new project from existing source BumpChat
3. Didn't work
4. Merged folders from BumpAPI to BumpChat (no R class)
5. Project properties -> Java Build Path -> Libraries, added bump-
api.jar

Still get errors, R cannot be resolved to a variable i
BumpResources.java and errors in import section in BumpChat.java

Any help?

nepodmitljivi

unread,
Dec 23, 2011, 8:36:40 AM12/23/11
to bump-api-android
Silly me, it's the R class from BumpChat project. :)
It's working now.

Neal

unread,
Oct 26, 2012, 8:47:38 AM10/26/12
to bump-api...@googlegroups.com


hii can you please send me the bumpchat zip file because i have same problem.i make the demo from github but cant connect the bump between two cell phones.so please send me the demo of bump chat

Reply all
Reply to author
Forward
0 new messages