MOBILEPROGLIB Telegram 6135
✏️ adb shell am start – запуск Activity с кастомными флагами и параметрами

Мощная команда для запуска конкретных экранов вашего приложения прямо из терминала, с возможностью передавать данные и управлять поведением Activity.

🔥 Базовый синтаксис:

adb shell am start -n com.package.name/.ActivityName  


🎯 Полезные сценарии:

1. Запуск с deep link:

adb shell am start -a android.intent.action.VIEW -d "myapp://detail/123"  


2. Запуск с передачей данных (extras):

adb shell am start -n com.package/.MainActivity --es "key" "value" --ei "number" 42 


--es – строка
--ei – integer
--ez – boolean

3. Запуск с флагами очистки стека (clear task):

adb shell am start -n com.package/.ActivityName --activity-clear-task 


4. Запуск в дебаг-режиме:

adb shell am start -D -n com.package/.ActivityName  


⚡️ Лайфхаки:

Узнать package name:

adb shell pm list packages | grep your_app  


Узнать доступные Activity:

adb shell cmd package resolve-activity -c android.intent.category.LAUNCHER your_package  


Какие параметры вы чаще всего передаете при запуске? Делитесь в комментах 💬

🐸 Библиотека мобильного разработчика

#буст
Please open Telegram to view this post
VIEW IN TELEGRAM
3



tgoop.com/mobileproglib/6135
Create:
Last Update:

✏️ adb shell am start – запуск Activity с кастомными флагами и параметрами

Мощная команда для запуска конкретных экранов вашего приложения прямо из терминала, с возможностью передавать данные и управлять поведением Activity.

🔥 Базовый синтаксис:

adb shell am start -n com.package.name/.ActivityName  


🎯 Полезные сценарии:

1. Запуск с deep link:

adb shell am start -a android.intent.action.VIEW -d "myapp://detail/123"  


2. Запуск с передачей данных (extras):

adb shell am start -n com.package/.MainActivity --es "key" "value" --ei "number" 42 


--es – строка
--ei – integer
--ez – boolean

3. Запуск с флагами очистки стека (clear task):

adb shell am start -n com.package/.ActivityName --activity-clear-task 


4. Запуск в дебаг-режиме:

adb shell am start -D -n com.package/.ActivityName  


⚡️ Лайфхаки:

Узнать package name:

adb shell pm list packages | grep your_app  


Узнать доступные Activity:

adb shell cmd package resolve-activity -c android.intent.category.LAUNCHER your_package  


Какие параметры вы чаще всего передаете при запуске? Делитесь в комментах 💬

🐸 Библиотека мобильного разработчика

#буст

BY Библиотека мобильного разработчика | Android, iOS, Swift, Retrofit, Moshi, Chuck


Share with your friend now:
tgoop.com/mobileproglib/6135

View MORE
Open in Telegram


Telegram News

Date: |

While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc. The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said. The public channel had more than 109,000 subscribers, Judge Hui said. Ng had the power to remove or amend the messages in the channel, but he “allowed them to exist.” Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. A Telegram channel is used for various purposes, from sharing helpful content to implementing a business strategy. In addition, you can use your channel to build and improve your company image, boost your sales, make profits, enhance customer loyalty, and more.
from us


Telegram Библиотека мобильного разработчика | Android, iOS, Swift, Retrofit, Moshi, Chuck
FROM American