B4A Library Tooleap Library - Floating notifications and miniApps




Tooleap Tutorials
Part 1 - Introduction to Tooleap
Part 2 - Introduction to Tooleap Development
Part 3 - Installation of Tooleap library and Application Setup
Part 4 - Creating a Tooleap Activity in B4A
Part 5 - Launching a miniApp
Part 6 - Other considerations
...more later

Tooleap Libraries
- All tooleap libraries are attached to the post including the sdk jar

Requirements
B4A 3.80
Android 2.2+

Samples and Demos
- Attached to this post
- NJDude's Sample: http://www.b4x.com/android/forum/th...cations-and-miniapps.41136/page-2#post-247534
 

Attachments

  • TooleapLibraries-0.9.4.zip
    316.6 KB · Views: 1,352
  • TooleapSample_0.9.4.zip
    9 KB · Views: 961
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Hi @DonManfred,
We have sent you a reply several hours ago, we'll resend it. Tell me if you got it.

Hallo Danny (@Tooleap ).. I got the mail in the betweentime. But sadly a negative one :-/
I have to wait for a release for everyone then ;)
 

tuhatinhvn

Active Member
Licensed User
Longtime User
I run example but have this error: (with 3.8 version B4A)
LogCat connected to: emulator-5554
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main


maininitializeProcessGlobals (java line: 350)
java.lang.NoClassDefFoundError: com.maximussoft.tooleap.test
at com.maximussoft.tooleap.main.initializeProcessGlobals(main.java:350)
at com.maximussoft.tooleap.main.afterFirstLayout(main.java:94)
at com.maximussoft.tooleap.main.access$100(main.java:16)
at com.maximussoft.tooleap.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
maininitializeProcessGlobals (java line: 350)


java.lang.NoClassDefFoundError: com.maximussoft.tooleap.test
at com.maximussoft.tooleap.main.initializeProcessGlobals(main.java:350)
at com.maximussoft.tooleap.main.afterFirstLayout(main.java:94)
at com.maximussoft.tooleap.main.access$100(main.java:16)
at com.maximussoft.tooleap.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
 

thedesolatesoul

Expert
Licensed User
Longtime User
It is best to leave the distribution of the SDK with the owners of it.

I run example but have this error: (with 3.8 version B4A)
LogCat connected to: emulator-5554
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main


maininitializeProcessGlobals (java line: 350)
java.lang.NoClassDefFoundError: com.maximussoft.tooleap.test
at com.maximussoft.tooleap.main.initializeProcessGlobals(main.java:350)
at com.maximussoft.tooleap.main.afterFirstLayout(main.java:94)
at com.maximussoft.tooleap.main.access$100(main.java:16)
at com.maximussoft.tooleap.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
maininitializeProcessGlobals (java line: 350)


java.lang.NoClassDefFoundError: com.maximussoft.tooleap.test
at com.maximussoft.tooleap.main.initializeProcessGlobals(main.java:350)
at com.maximussoft.tooleap.main.afterFirstLayout(main.java:94)
at com.maximussoft.tooleap.main.access$100(main.java:16)
at com.maximussoft.tooleap.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
Seems like you are doing something very weird.
How many modules does your project have? You should see a main and test activity in the IDE.
What OS are you testing it on?
Does it happen when you click on the floating notification?
Can you post your Main.java?
 

tuhatinhvn

Active Member
Licensed User
Longtime User
I only open exam project and run in Version 3.8 B4A, WIndows 7 64bit, Phone: Galaxy Note 2 4.1.2

And it dont show any thing beaside above error
 

fanfalveto

Active Member
Licensed User
Longtime User
Hi,is a great idea and job,thank you.
I do step by step the instructions.
I have this error,any idea ?
B4X:
Parsing code.                          0.00
Compiling code.                        0.05
Compiling layouts code.                0.00
Generating R file.                      0.41
Compiling generated Java code.          Error
javac 1.6.0_26
src\com\maximussoft\tooleap\test.java:16: package com.tooleap.sdk.TooleapActivities does not exist
public class test extends com.tooleap.sdk.TooleapActivities.Activity implements B4AActivity{
                                                          ^
1 error
Thanks
 

thedesolatesoul

Expert
Licensed User
Longtime User
I only open exam project and run in Version 3.8 B4A, WIndows 7 64bit, Phone: Galaxy Note 2 4.1.2

And it dont show any thing beaside above error
I don't know. I'm surprised it compiles and then later doesn't find the test activity. I suggest you upload your generated java file.

Hi,is a great idea and job,thank you.
I do step by step the instructions.
I have this error,any idea ?
B4X:
Parsing code.                          0.00
Compiling code.                        0.05
Compiling layouts code.                0.00
Generating R file.                      0.41
Compiling generated Java code.          Error
javac 1.6.0_26
src\com\maximussoft\tooleap\test.java:16: package com.tooleap.sdk.TooleapActivities does not exist
public class test extends com.tooleap.sdk.TooleapActivities.Activity implements B4AActivity{
                                                          ^
1 error
Thanks
You don't have the tooleap SDK jar file I'm your additional libs folder.
 

RAJAN MBA

Member
Licensed User
Longtime User
I only open exam project and run in Version 3.8 B4A, WIndows 7 64bit, Phone: Galaxy Note 2 4.1.2

And it dont show any thing beaside above error
I have pretty much the same setup except for the phone. I didn't have any problem compiling the example. Your logcat is for emulator. I had no problem running on emulator either.
 

MarcoRome

Expert
Licensed User
Longtime User
Do you have tooleap-sdk-0.9.3.jar or tooleap-sdk-0.9.2.jar.
Because with new version ( tooleap-sdk-0.9.3.jar ) dont work.
 

fanfalveto

Active Member
Licensed User
Longtime User
for now I want to make a program for a family member for throat cancer missed speech and wanted to have a quick access to the program.
So tooleap is perfect.
Here is the code (is simple).
But the ideal is to expand and improve with tooleap.
 

Attachments

  • voice.zip
    12.3 KB · Views: 246

Tooleap

Member
Licensed User
Longtime User
Do you have tooleap-sdk-0.9.3.jar or tooleap-sdk-0.9.2.jar.
Because with new version ( tooleap-sdk-0.9.3.jar ) dont work.
Hi @MarcoRome,
We have added an api key to our new SDK version, thats why its not working for you.
Soon we'll send a mail for everyone explaining all the details.
In the meantime, you can check out our this link that will explain to you how to generate the api key for your app:
http://developer.tooleap.com/preparing-for-release/

Danny
 

johndb

Active Member
Licensed User
Longtime User
The selection of Beta developers appears to be closed. I requested access, was sent a request to tell Tooleap who I was as they are hand picking developers, and I have not heard from them. You folks must be special as I guess I'll have to wait to get the SDK when it goes public. I was looking forward to experimenting with this interesting platform. :(
 

Tooleap

Member
Licensed User
Longtime User
The selection of Beta developers appears to be closed. I requested access, was sent a request to tell Tooleap who I was as they are hand picking developers, and I have not heard from them. You folks must be special as I guess I'll have to wait to get the SDK when it goes public. I was looking forward to experimenting with this interesting platform. :(
Hi @johndb,
It's not closed. We are just a little backlogged with previous requests. We will get back to you soon! Dont despair :)

Danny
 

tuhatinhvn

Active Member
Licensed User
Longtime User
can any one give an exam with working app?

I think until now it is only advertising , i think we will must buy it to use
 
Top