Android calls the system to share the shared content to other applications, and does not use the pop-up window of the system's ActionBar, which is completely customized. androidactionbar
When Android shares content to other apps, the pop-up window of the calling system's Dialog or ActionBar is not very free and the limit is too large. Here I provide a fully custo
Preparatory work:1. Need to install JDK, I am using JDK 1.7.0;2. Install NDK, I am using the version of Android Studio automatically downloaded;Now to implement this invocation process:1. Create a new project: MyjnitestActivity_main.xml (for displaying test results);2. Create a new Java class under Com.example.myapplication JnitextWhat's Inside:3. Compile the project myjnitest, myjnitest corresponding Build\intermediates\classes\debug in the project w
Calling Stopself () in the service's Onstartcommand () does not immediately destroy the service, but waits until the Onstartcommand () is done destroy.public class Testservice extends Service {private String TAG = "Testservice"; @Overridepublic void OnCreate () {//TODO Auto -generated method Stublog.i (TAG, "onCreate"); Super.oncreate ();} @Overridepublic int Onstartcommand (Intent Intent, int flags, int startid) {//TODO auto-generated method stublog.i (TAG, "O Nstartcommand "); Stopself (); LOG
Turn on call setup Video call "Wait";Step 1: The test machine and the matching machine A in the video call process;Step 2: Match machine B to test machine outbound video call;Step 3: Test machine to answer the video call with the machine B;Phenomenon: Video calls after a few seconds of their own initiative to break offLocate the file Alps/packages/apps/phone/src/com/mediatek/phone/vt/vtincallscreen.java,Find function Internalanswervtcallpre (),For exa
When your phone needs to change the new number, or when you travel abroad do not need to carry domestic mobile phone, your phone can be placed at home, when someone calls automatically hang up, if the other side is a mobile phone number (11 long first 1) will reply to a message.Talk less, go directly to the code!1, must have the following permissions:2. In the project's Package Explorer, right-click on the new, package, input: Com.android.internal.tel
Calling Stopself () in the service's Onstartcommand () does not immediately destroy the service, but waits until Onstartcommand () runs out of destroy.public class Testservice extends Service {private String TAG = "Testservice"; @Overridepublic void OnCreate () {//TODO Auto -generated method Stublog.i (TAG, "onCreate"); Super.oncreate ();} @Overridepublic int Onstartcommand (Intent Intent, int flags, int startid) {//TODO auto-generated method stublog.i (TAG, "O Nstartcommand "); Stopself (); LOG
Android share content to other applications, call System dialog or Actionbar pop-up windows are not too free, limited too much, here I provide a fully customizable interface, you can pop windows, or directly in the activity or fragment inside the custom interface. Here to show a key class of code, do the encapsulation processing, I write two demo, free source in: http://download.csdn.net/detail/yanzhenjie1003/8565449/** * @author YOLANDA * @Time April
Modules A and B are mainly implemented in C and need to be compiled into two. so, B. so, but. so calls B. so function, B. so also called. so functions, and for some reason, A and B must be compiled separately. The problem is that no matter which module is compiled first, the compilation fails because they are mutually dependent.
This dependency must be canceled during compilation. In the following program, use dlopen to open so and dlsym to obtain the
Recognizerintent.action_web_ Search, about recognizerintent You can view the previous articles in this blog, and then call an action with a return resultThen: The result of carrying string recognizerintent.extra_results is taken out in the return result, the Android speech recognition service unifies the result in the form of arraylist@Override protected void onactivityresult (int requestcode, int resultcode, Intent data) { Super.onactivity
(Context.input_method_service);Boolean isopen=imm.isactive ();IsOpen returns true to indicate that the input method is open1.//Hide Soft keyboard((Inputmethodmanager) Getsystemservice (Input_method_service)). Hidesoftinputfromwindow ( WidgetSearchActivity.this.getCurrentFocus (). Getwindowtoken (), inputmethodmanager.hide_not_always);2,//display soft keyboard, control ID can be Edittext,textview((Inputmethodmanager) Getsystemservice (Input_method_service)). Showsoftinput (Control ID, 0);3, does
Previous write about calling system camera and cropping, this piece of writing about calling system albums cropping photosBtn_album.setonclicklistener (New Onclicklistener () {@Overridepublic void OnClick (View v) {Intent Intent;Logotemppath = Logo_base_path + system.currenttimemillis () + ". png";Intent = new Intent (Intent.action_pick, NULL);Intent.settype ("image/*");Startactivityforresult (Intent, photo_album);}});The above is to click on a button to call the system camera, temporary file na
Recent company projects add something, the caller is "mobile banking", the callee is "Bankeys", take a time to record, in fact, very simple1. Caller:This we can use the normal activity of the startup mode, the code is as follows:New Intent (); Intent.setaction ("com.bankeys.mobile_sign"); Intent.putextra ("Data" ) 1);2. Callee:Add the following code to the manifest file of the activity that needs to be called by the caller app:activity android:name= "Com.bankeys.shield.activity.BankBi
The implementation of the idea of a few lines of code can be done, put a button on the interface or with the play icon ImageView, click on the event to call the local player to play.Uri uri = uri.parse ("http://218.200.69.66:8302/upload/Media/20150327/43bfda1b-7280-469c-a83b-82fa311c79d7.m4v"); /Call the system's own player to play streaming video Intent intent = new Intent (Intent.action_view); LOG.V ("uri:::::::", uri.tostring ()); Intent.setdataandtype (URI, "Video/mp4"); StartActivity (inten
exntends:http://blog.csdn.net/wangfayinn/article/details/10351655In the project to have a software scoring function, a very common, very simple function, but it cost me a lot of effort. The effects you need to achieve are as follows:Would have thought that the general software will have "to score", "pro, to a favorable comment" such a function, but search on the internet did not search, asked three groups plus 5 children's shoes, analysis log, anti-compilation look at the source, finally found t
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.