jserle
(Jonathan Serle)
January 26, 2021, 1:33pm
#1
So I have an app which imports audio from Whatsapp. And it starts a new instance on every import. I tried to find solution in the internet and it looks like there is one but it requires to edit manifest file which is impossible in Kodular. Do we have another options to do that? thank you in advance!
Which auido you wanted to import?
It is better to give information that, What you are wanted to do?
And it is better to know
Asking questions
To improve the chance of getting help on the forum please follow these recommendations when posting a question:
Do your homework first
Search for similar questions/answers on the forum. Try forum search and also Google your problem.
Try to solve the problem yourself, and describe what you have tried. It is much more rewarding to help someone who has tried himself first.
Post in the right categorie, post only once and do not steal topics
Make sure that you post your question …
jserle
(Jonathan Serle)
January 26, 2021, 2:04pm
#3
I want to import voice note from Whatsapp.
I wanted to import audio from Whatsapp and another apps. But when I import audio it opens another instance of app. That’s undesired behavior. I want to run app in one instance.
pkalyan
(Pavan kalyan)
January 27, 2021, 1:33pm
#4
I think you are talking about this
Me too need solution for this
Boban
(Boban Stojmenovic)
January 27, 2021, 1:40pm
#5
Have you tried this extension to see if it doable!
This will allow you to to add manifest elements to your app manifest
This will not be possible inside extension with blocks directly so i have written a script to generate extension according to given element.
Thanks to @chaimk For Sponsoring This Project!
How to Use
Go to the generator : https://atomdeveloper.com/manifestgenerator.html
Add elements you want to add to the manifest in the text box :
For example : <meta-data android:name="android.webkit.WebView.EnableSafeBrowsing" …
jserle
(Jonathan Serle)
January 27, 2021, 1:58pm
#6
First of all thank you for your help!
As I see, it allows to add some strings to manifest file. I would like to edit some lines (activity settings). I don’t think that it’s possible with that extension.
Kenin
(Kenin)
January 28, 2021, 2:00am
#7
This can help you:
package com.sunny.CustomWebView;
import android.app.Activity;
import android.net.Uri;
import com.google.appinventor.components.annotations.androidmanifest.*;
import com.google.appinventor.components.runtime.*;
import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.common.PropertyTypeConstants;
@DesignerComponent(version = 1,
versionName = "1.0",
description ="Helper class of CustomWebView extension <br> Developed by Sunny Gupta",
category = ComponentCategory.EXTENSION,
nonVisible = true,
iconName = "https://res.cloudinary.com/andromedaviewflyvipul/image/upload/c_scale,h_20,w_20/v1571472765/ktvu4bapylsvnykoyhdm.png",
helpUrl="https://github.com/vknow360/CustomWebView",
androidMinSdk = 21)
@UsesActivities(activities = {@ActivityElement(intentFilters = {@IntentFilterElement(actionElements = {@ActionElement(name = "android.intent.action.VIEW")}, categoryElements = {@CategoryElement(name = "android.intent.category.DEFAULT"), @CategoryElement(name = "android.intent.category.BROWSABLE")}, dataElements = {@DataElement(scheme = "http"), @DataElement(scheme = "https")}), @IntentFilterElement(actionElements = {@ActionElement(name = "android.intent.action.VIEW")}, categoryElements = {@CategoryElement(name = "android.intent.category.DEFAULT"), @CategoryElement(name = "android.intent.category.BROWSABLE")}, dataElements = {@DataElement(scheme = "http"), @DataElement(scheme = "https"), @DataElement(mimeType = "text/html"), @DataElement(mimeType = "text/plain"), @DataElement(mimeType = "application/xhtml+xml")})},name="appinventor.ai_vknow360.CustomWebView.Screen1",launchMode = "singleTask")})
@SimpleObject(external=true)
public class CustomWebViewHelper extends AndroidNonvisibleComponent implements OnResumeListener{
public Activity activity;
This file has been truncated. show original
It shows how to make a screen single task.