android-applicationinfo

What is use of android:supportsRtl=“true” in AndroidManifest xml file

家住魔仙堡 提交于 2019-12-17 15:43:12
问题 Whenever I created new project in android studio, I got android:supportsRtl="true" in my app AndroidManifest File. <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> ... </application> What is use in app, or what is advantages & disadvantage when I add or not add in my app AndroidManifest . 回答1: Declares whether your application is willing to support right-to-left (RTL) layouts

Unfortunately the application stopped working

*爱你&永不变心* 提交于 2019-12-14 03:22:26
问题 I'm a beginner in android development.I have been looking for a week now. Followed all the tutorials word by word. Whenever I start my android emulator it first shows ProcessSystem isn't responding. Wait or Exit? Second the application loads but as soon as I click on the Register or Login button after filling out the form, after a few seconds of showing process dialog box, "Unfortunately the app has stopped working" is shown and it exits. My Login.java file is public class Login extends

cannot be cast to android.content.pm.PackageInfo on click in my listview

耗尽温柔 提交于 2019-12-13 03:37:20
问题 my listview contains all app installed.. when i click over one i want open a new activity but actually i get an error.. This is the code: @Override public void onItemClick(AdapterView<?> parent, View view, int position, long row) { PackageInfo packageInfo = (PackageInfo) parent.getItemAtPosition(position); AppDataActivity appData = (AppDataActivity) getApplicationContext(); appData.setPackageInfo(packageInfo); Toast.makeText(MainActivity.this, position, Toast.LENGTH_LONG).show(); Intent

Android categorize installed applications

喜你入骨 提交于 2019-12-11 11:43:05
问题 I want to categorize installed android applications (Like Social, Entertainment, Games, News, Tools and etc). Can anyone suggest how can i programmatically arrange all the installed apps? 回答1: Use the WhereDat API: Create a raw JSON POST request, with an array of the packages you want to categorize: { "packages": [ "com.pixmix.mobileapp", "com.nextstagesearch" ] } Send it to: http://api.wheredatapp.com/data And here's the response: { "apps": [ { "category": "Productivity", "rating": 4.5,

Getting name of original .APK file in Android

谁说胖子不能爱 提交于 2019-12-06 08:35:30
问题 I am trying to figure out how to get the name of the original .apk file from which an application was installed. I know that you can retrieve the package name and the source directory of the installed application by using the ApplicationInfo class (described here: Android: how to get the name of apk file programmatically?) but this is NOT what I want. As an example, suppose I have a simple application that is named TestApp (via the android:label tag in the AndroidManifest.xml file).

Getting name of original .APK file in Android

懵懂的女人 提交于 2019-12-04 14:16:56
I am trying to figure out how to get the name of the original .apk file from which an application was installed. I know that you can retrieve the package name and the source directory of the installed application by using the ApplicationInfo class (described here: Android: how to get the name of apk file programmatically? ) but this is NOT what I want. As an example, suppose I have a simple application that is named TestApp (via the android:label tag in the AndroidManifest.xml file). Furthermore, suppose I generate an .apk file for the application above, rename said .apk file to TestApp

How to pull List of installed App name, package name and icon drawable

老子叫甜甜 提交于 2019-12-03 16:35:53
I'm trying to figure out how i can implement this code into my existing source code. Currently i have some source that displays a list-view of all the installed apps and on-click will send intent to the application. I'm needing some support on how to pull the icon and add this into the list view. Any help, source code editing, links, etc would help me resolve this. Thank you ListInstalledActivitiesActivity public class ListInstalledActivitiesActivity extends ListActivity { // Buffer used to store package and class information, and also determine the number of installed activities private

How to find all the packages included in an apk

纵然是瞬间 提交于 2019-12-02 21:52:52
问题 I am involved in reverse engineering android apps (using apktool and androguard). I wish to find out all the packages included in an apk. The package may include the main application code, ad library (such as ad sense, inmobi, mobclix etc.), social SDK (such as facebook, Google etc.), Analytics (flurry, Google analytics etc.) or any other support lib. Please let me know if there is any tool / anyway to do this. If tools are not currently available, I intend to develop one, please help me by

How to find all the packages included in an apk

拥有回忆 提交于 2019-12-02 09:22:11
I am involved in reverse engineering android apps (using apktool and androguard). I wish to find out all the packages included in an apk. The package may include the main application code, ad library (such as ad sense, inmobi, mobclix etc.), social SDK (such as facebook, Google etc.), Analytics (flurry, Google analytics etc.) or any other support lib. Please let me know if there is any tool / anyway to do this. If tools are not currently available, I intend to develop one, please help me by advising on this . EDIT: I have used dex2jar, ded and dare decompilers. All of these will produce the

How to get the package name of an application and then launch that app using Intent?

穿精又带淫゛_ 提交于 2019-12-01 13:30:20
I am developing an Android app. In that app, there is a button to go to another activity which contains a list of installed apps on the phone. When the user selects an app, its package name is saved and the user returns to the previous activity. But, how can I get the package name? public class LoaderCustomSupport extends SherlockFragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FragmentManager fm = getSupportFragmentManager(); // Create the list fragment and add it as our sole content. if (fm.findFragmentById(android.R.id