How to call an added APK to androidthings imageHow to save an Android Activity state using save instance state?Lazy load of images in ListViewWhy is the Android emulator so slow? How can we speed up the Android emulator?How do you install an APK file in the Android emulator?Is there a way to get the source code from an APK file?How to build an APK file in Eclipse?Android error: Failed to install *.apk on device *: timeoutHow do I fix android.os.NetworkOnMainThreadException?How to manually include external aar package using new Gradle Android Build SystemAndroid Things custom image doesn't contain bundled APKs
Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?
Can you get infinite turns with this 2 card combo?
Is there any set of 2-6 notes that doesn't have a chord name?
Should I report a leak of confidential HR information?
Confusion about multiple information Sets
Avoid bfseries from bolding pm in siunitx
Sir Alex Ferguson advice OR Sir Alex Ferguson's advice
Should I include salary information on my CV?
Was touching your nose a greeting in second millenium Mesopotamia?
MASS MicroSystems MO/128 Magneto-Optic Drive mystery
Should I hide continue button until tasks are completed?
Intuitively, why does putting capacitors in series decrease the equivalent capacitance?
Why cruise at 7000' in an A319?
Professor Roman gives unusual math quiz ahead of
Are there any vegetarian astronauts?
The use of "I" and "we" used in the same sentence and other questions
What shortcut does ⌦ symbol in Camunda macOS app indicate and how to invoke it?
Anagram Within an Anagram!
How should I behave to assure my friends that I am not after their money?
“Faire” being used to mean “avoir l’air”?
Did Chinese school textbook maps (c. 1951) "depict China as stretching even into the central Asian republics"?
The difference between Rad1 and Rfd1
Wilcoxon signed rank test – critical value for n>50
Why does the numerical solution of an ODE move away from an unstable equilibrium?
How to call an added APK to androidthings image
How to save an Android Activity state using save instance state?Lazy load of images in ListViewWhy is the Android emulator so slow? How can we speed up the Android emulator?How do you install an APK file in the Android emulator?Is there a way to get the source code from an APK file?How to build an APK file in Eclipse?Android error: Failed to install *.apk on device *: timeoutHow do I fix android.os.NetworkOnMainThreadException?How to manually include external aar package using new Gradle Android Build SystemAndroid Things custom image doesn't contain bundled APKs
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am working with this project https://github.com/hypeapps/black-mirror . As I am a complete newbie to droid I am wondering what the process would be to call a apk that has been added to the androidthings image from androidthings console. Say I have an APK com.lafitness.lafitness.apk that has been added to the android things image. How would I open that APK from an android speech recognized phrase. Would I do this using Package manager from an intent?
android embedded apk android-things android-things-console
add a comment |
I am working with this project https://github.com/hypeapps/black-mirror . As I am a complete newbie to droid I am wondering what the process would be to call a apk that has been added to the androidthings image from androidthings console. Say I have an APK com.lafitness.lafitness.apk that has been added to the android things image. How would I open that APK from an android speech recognized phrase. Would I do this using Package manager from an intent?
android embedded apk android-things android-things-console
add a comment |
I am working with this project https://github.com/hypeapps/black-mirror . As I am a complete newbie to droid I am wondering what the process would be to call a apk that has been added to the androidthings image from androidthings console. Say I have an APK com.lafitness.lafitness.apk that has been added to the android things image. How would I open that APK from an android speech recognized phrase. Would I do this using Package manager from an intent?
android embedded apk android-things android-things-console
I am working with this project https://github.com/hypeapps/black-mirror . As I am a complete newbie to droid I am wondering what the process would be to call a apk that has been added to the androidthings image from androidthings console. Say I have an APK com.lafitness.lafitness.apk that has been added to the android things image. How would I open that APK from an android speech recognized phrase. Would I do this using Package manager from an intent?
android embedded apk android-things android-things-console
android embedded apk android-things android-things-console
asked Mar 25 at 11:38
plesliepleslie
195 bronze badges
195 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you have added the APK to your system image, you can then call the app from an intent using the app's package name.
PackageManager manager = getPackageManager();
Intent intent = manager.getLaunchIntentForPackage("com.lafitness.lafitness.apk");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);
Using the Android speech API is a different question, but should be the same as on an Android phone (but I'm not certain of that).
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336960%2fhow-to-call-an-added-apk-to-androidthings-image%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you have added the APK to your system image, you can then call the app from an intent using the app's package name.
PackageManager manager = getPackageManager();
Intent intent = manager.getLaunchIntentForPackage("com.lafitness.lafitness.apk");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);
Using the Android speech API is a different question, but should be the same as on an Android phone (but I'm not certain of that).
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
add a comment |
If you have added the APK to your system image, you can then call the app from an intent using the app's package name.
PackageManager manager = getPackageManager();
Intent intent = manager.getLaunchIntentForPackage("com.lafitness.lafitness.apk");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);
Using the Android speech API is a different question, but should be the same as on an Android phone (but I'm not certain of that).
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
add a comment |
If you have added the APK to your system image, you can then call the app from an intent using the app's package name.
PackageManager manager = getPackageManager();
Intent intent = manager.getLaunchIntentForPackage("com.lafitness.lafitness.apk");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);
Using the Android speech API is a different question, but should be the same as on an Android phone (but I'm not certain of that).
If you have added the APK to your system image, you can then call the app from an intent using the app's package name.
PackageManager manager = getPackageManager();
Intent intent = manager.getLaunchIntentForPackage("com.lafitness.lafitness.apk");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);
Using the Android speech API is a different question, but should be the same as on an Android phone (but I'm not certain of that).
answered Mar 25 at 13:44
Nick FelkerNick Felker
7,1641 gold badge10 silver badges22 bronze badges
7,1641 gold badge10 silver badges22 bronze badges
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
add a comment |
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
Thank you for the response I will test it later. In the meantime would I close this by calling intent.finish()?
– pleslie
Mar 25 at 18:18
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
I don't think you can close it that way, but you may be able to call an activity on top.
– Nick Felker
Mar 25 at 19:41
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336960%2fhow-to-call-an-added-apk-to-androidthings-image%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown