i found this interesting code that Integrated live chat for mobile apps.
https://www.hipmob.com/
This is code to integration Chat:
In attachment library android-hipmob-2.9.8.jar
So i created new project in manifest i add this:
and in my code i add this:
#AdditionalJar: android-hipmob-2.9.8 'Copy this jat in library folder
And i have this error: ancroid.content.ActivityNotFoundException: No Activity found to handle intent ..... dat=com.hipmob.android.HipmodCore.class flg=0x200000 ( has extras)
Where i wrong ?
thank you
Marco
https://www.hipmob.com/
This is code to integration Chat:
Copy the Hipmob library JAR file into your project's library folder (libs, if you're using the default project folder structure in Eclipse).
Add the Hipmob library JAR file into your project's build path.
Add the INTERNET, WRITE_EXTERNAL_STORAGE and RECORD_AUDIO permissions to the AndroidManifest.xml file. This will allow sending/receiving of text, picture and audio messages.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Add the HipmobCore activity definition to the AndroidManifest.xml file.
<activity android:name="com.hipmob.android.HipmobCore" android:theme="@android:style/Theme.Light" />
Use an Intent to call the HipmobCore activity. You'll need the application ID from step 1: pass that as HIPMOB_KEY.
// create an intent
Intent i = new Intent(this, com.hipmob.android.HipmobCore.class);
// REQUIRED: set the appid to the key you're provided
i.putExtra(HipmobCore.KEY_APPID, "2f6524fbfe9d4ae482a3deadf5a0563a");
// REQUIRED: pass the host user identifier.
i.putExtra(HipmobCore.KEY_USERID, "<userid>");
// set the title
i.putExtra(HipmobCore.KEY_TITLE, "First app (devilapp): Chat");
// launch the chat window
startActivity(i);
</userid>
In attachment library android-hipmob-2.9.8.jar
So i created new project in manifest i add this:
B4X:
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<intent-filter>
<action android:name="com.hipmob.android.HipmobCore"/>
</intent-filter>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Light")
'End of default text.
AddPermission("android.permission.INTERNET")
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
AddPermission("android.permission.RECORD_AUDIO")
and in my code i add this:
#AdditionalJar: android-hipmob-2.9.8 'Copy this jat in library folder
B4X:
Dim i As Intent
i.Initialize("com.hipmob.android.HipmobCore.class", "")
i.PutExtra("HipmobCore.KEY_APPID", "2f6524fbfe9d4ae482a3deadf5a0563a")
i.PutExtra("HipmobCore.KEY_USERID", "<userid>")
i.PutExtra("HipmobCore.KEY_TITLE", "First app (devilapp): Chat")
StartActivity(i)
And i have this error: ancroid.content.ActivityNotFoundException: No Activity found to handle intent ..... dat=com.hipmob.android.HipmodCore.class flg=0x200000 ( has extras)
Where i wrong ?
thank you
Marco
Attachments
Last edited: