In the previous blog post on related topics, we learned how to use action to start activities outside of the current app to handle our business logic, and in this note I briefly describe using componentname to interact with apps outside the current app.Before introducing component, let's first understand the ComponentName class ComponentName and intent are located under the Android.content package and we can see from the
This article focuses on how to use Tcpdump and Wireshark to capture and analyze Android apps, and it's important to note that your Android device must be rooted before you grab the package, and your PC must have an Android SDK environment.Download and install TcpdumpTcpdump Link: http://www.ijiami.cn/Select a version t
of the main classes:
Boxinsetlayout-a framelayout that can perceive the shape of a screen and make its child elements appear in the display;
Cardfragment-an extensible, vertical scrolling card-like interface component;
Circledimageview-round picture view;
Confirmationactivity-When the user operation is complete, confirm the information animation activity interface.
Dismissoverlayview-a long press of the Vanishing (Long-press-to-dismiss) view;
Gridviewpager-A data pa
Fiddler is a very popular and useful HTTP capture tool, it is the principle of the computer to open an HTTP proxy server, and then it will forward all the HTTP requests and responses, so it is more than the general Firebug or Chrome comes with the capture tool to use more. Not only that, it can also support some advanced features such as request replay. It is obvious that it can support HTTP capture for mobile apps. This article is to introduce how to
unknown package name:
/** Gets the package name of the app in the phone and returns a list collection **/Public listlistPackagemanager Packagemanager = This.getpackagemanager (); /** get all apps in your phone * /listfor (int i = 0; i PackageInfo Pak = (packageinfo) paklist.get (i); /** Determine if a non-system preinstalled application (greater than 0 is pre-installed for the system, less than or equal to 0 for non-system applications) */if ((Pak
List the apps you've installedADB Shell PM List PackageC:\USERS\CJTDEV003>ADB Shell PM List packagepackage:com.samsung.android.provider.filterproviderpackage: Com.sec.android.app.DataCreatepackage:com.android.cts.priv.ctsshimpackage:com.gd.mobicore.papackage: Com.sec.android.widgetapp.samsungappspackage:com.qualcomm.qti.auth.sampleextauthservicepackage: Com.samsung.android.app.galaxyfinderpackage:com.sec.location.nsflp2package: Com.samsung.android.the
as:The last is to modify the hosts on the server, refer to the above DNS configuration hosts operation is the sameIt's almost all set up.The last thing to note is to clear the cache on the phone, be sure to close the browser and app, clean up the memory and then open, or the phone's DNS and network settings may not be switched over.The above configuration I have been tested on Android devices, IOS is not applied to test, but it should be said to be t
Chooser = Intent.createchooser (Intent, title); Verify the intent would resolve to at least one activity if (Intent.resolveactivity (Getpackagemanager ()) = null) { StartActivity (chooser);}The example above will pop up a dialog with many applications that are capable of responding to this intent application.This article is original, reproduced please indicate the source, offenders must investigate!Focus on the public platform: the Programmer Interaction Alliance (coder_online), you can get
is relative to the path of the plug-in font file in the Assets folder under Android engineering.static Typeface createfromfile (file path)//static method, a font is constructed from the filesystem, where the parameter can be a font file in SDcardstatic Typeface CreateFromFile (String path)//static method, constructs the font from the specified pathstatic Typeface defaultfromstyle (int style)//static method, returns the default font styleConstants of
Android app development will involve the preservation of different data, such as data cache, customer login information preservation, customer status preservation and so on.So where do we keep the different data?1, the application uninstall also will not delete dataCreate a folder directly in the SDcard root directory to save the data.Advantages: Long save time, application uninstall will not be deleted. Cons: Anyone can access this directory.2, follo
Guided Android is a free and open source Linux-based operating system that is used primarily for mobile devices such as smartphones and tablets, led and developed by Google and the Open Cell Alliance. There is no unified Chinese name, more people in mainland China use "Android" or "Ann". The Android operating system was originally developed by Andy Rubin, which m
The above has been said through the three-party open Source Library Slidemenu to achieve this effect, please refer to the Android implementation of NetEase news client side-slip menu (a)Today, this feature is implemented by customizing view.The code is as follows:Slidemenu.javaMainactivity.javaAndroid realizes NetEase news client side-slip menu (ii)
It took hours to finish the test, and Mono for Android launches other hidden apps with one app.Look directly at the code:Hide App (launched) to configure the manifest file as follows, remove the original two tags and modify it to only one dataandroid:exported=" true ">iocpdroid. Iocpactivity"android:scheme="com.iocp"/>It is normal for the app to be launched without launch, because you are not adding it in t
", " Org.anddev.android.testproject "); In this way, we can do the same. int indentify = Getresources (). Getidentifier (Org.loveandroid.androidtest:drawable/icon ", null,null); 3. Carry out the package public static int Getresourceid (Context context,string name,string type,string packagename) {Resources THEMERESOURCEs=null;Packagemanager Pm=context.getpackagemanager ();try {themeresources=pm.getresourcesforapplication (packagename);Return Themeresources.getidentifier (name, type, packagenam
the code above, using JavaScript to build an Android activity, is not cool!Of course it's also possible to write iOS native apps, which is not the coolest and even cooler, it also provides a set of "public" APIs, and a set of UI control libraries that can be described in XML, so you can define the interface and generate corresponding local controls on different platforms.Pagexmlns= "Http://www.nativescript
JADX Android Apps with open source projects
With GitHub Open source project JADX can directly decompile files directly to. Dex,. apk,. jar,. Class type
Before comparing Apktool (unpack apk) + Dex2jar (convert. Dex to. jar) + Jd-gui (view. jar file) decompile three-piece set, the advantages of JADX are:
1. The. java file can be restored directly by a single line of command decompile
Command:jadx -
From: http://www.eoeandroid.com/thread-79024-1-1.html
I think it's interesting. I just turned around to avoid turning around in the future!
The collected applications are prepared for developers. I believe they will be of great help to you.
The following lists 10 Android apps that are helpful to developers:
1. Remote Desktop client this application helps you connect to your Windows computer.
. Filepathbuilder.append ("Getexternalfilesdir = ="). Append (Getexternalfilesdir ("\")). Append ("\ n");/** * Like the above method, just Returns a file of a certain type under its folder, which can be: * Environment#directory_music music * environment#directory_podcasts Audio * Environment#direc Tory_ringtones Ringtones * environment#directory_alarms alarm * environment#directory_notifications notification ringtone * Environment# Directory_pictures picture * environment#directory_movies Video
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.