Just see debugging application ouput in Android Studio - java

I'm developing a simple Android app using Android Studio for Linux, I'm debugging the app in my Android phone (Huawei Y300). The thing is, in the output I see information about dalvik, signal strength and some other stuff that I don't want to see.
Is there a way to just see the output of the debugging app?

If you are using LogCat, I'd recommend using a filter. You can do this by either right-clicking one of the log lines of your app and pressing Find similar messages... or by following these steps:
Press + in the Saved Filters section to the left of LogCat.
Add a filter name
Either your desired TAG or Application name
Press OK

Related

Add a "Share/Send To" capability to an Android app

I am developing an Android app that has the feature of converting a video to an audio file.
I want to add a feature that makes the user able to enter his studio, then when they click on the video-share option (to share the video), to find my application icon at the bottom. Without the need to open the application.
How can I do that?
the answer is this share/receive guide
thanks VC.One that is exactly what i need

Eclipse to Android studio

So I have a project done which I made in Eclipse, I have also exported it as a Android and somehow imported it in Android Studio, But when I run the program in Android studio, it will execute as Java. And what I want to do is to make it execute in a Android phone (Can also be in a simulator)
But I have not found any tutorials on how to do it and I really need to do it since the essay is ending soon. So I would appreciate all help!
If more info needed, Please, Just comment. I will be available here next 2 hours!
The process should be quite simple if you have already succeeded in importing the project into Android Studio.
If you are using a Mac the process is very simple. If you are using Windows then there is one additional step described below:
In the AndroidManifest.xml make sure you have android:debuggable="true.
If you are using an Android phone with API 4.0+ then go into the phone's Settings and click on About Phone seven times. This might seem like a strange thing to do but it unlocks the phone's developer options, which are hidden by default. On older phones just go to Settings -> Applications -> Development.
In the Developer options select to allow USB debugging.
Now, connect the phone to the computer using a USB cable. You will probably see a message on the phone asking you to authorise the computer for that phone.
Next, open Android Studio and run your application (using the green triangle in the top toolbar). If the arrow is greyed-out then then there was a problem importing or building the project.
Wait while the project builds. It isn't that obvious that the project is being built. The only indication might be that there is a small spinner. If the build process succeeds you will see a prompt to choose a device. Your phone should be listed there. If it isn't, try disconnecting the phone from the USB and reconnecting it.
Select your phone, click OK and away you go. The application should launch on the phone after a few seconds. If it doesn't, be patient sometimes it takes a while. If it still doesn't work, check back in Android Studio for any errors.
Windows Only: Windows requires the additional step of installing the phone's drivers. Details can be found here http://developer.android.com/tools/extras/oem-usb.html

I can not see my log in Android

I put the following excerpts log in my Android application:
Log.w (TAG_NAME, "Hello Log - Warning!");
System.out.println ("CardapioWeb: xml downloaded:" + xmlBaixadoComSucesso);
When running the application in Eclipse, I can smoothly view these logs in Eclipse LogCat Tab.
The problem occurs when I install the application on a real phone (Galaxy S4 for example). I export the system log using various apps, but does not appear in that log no one of my excerpts.
My log is not displayed in a real cell, only in Android Emulator . I need something to enable the log show?
Thanks'
Starting with Android 4.1, applications can only see their own log statements. You wrote that you used various apps to export the logs, so that may be the reason why you don't see it.

Android Mobile Push App example from Amazon Web Services

Have anyone tried to add AndroidMobilePushApp (is provided by AWS) into Eclipse IDE, follow by this tutorial (http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html) and able to get registrationID for the Amazon Mobile Push app?
I am able to add AndroidMobilePushApp into Eclipse along with 2 extraneous library .jar (android.jar, google-play-service) without any error, created Google API project on Google APIs Console website and copied that project_number into [res/values/strings.xml] according step 3 from the tutorial above. However, when I deploy the application into an Android device (Version 2.3.6 and API level 10), the app does show up,but it doesn't run when I click on...with error says " The application Amazon Mobile Push ( process com.amazonaws.androidtest) has stopped unexpectedly. Please try again! " so It won't able to give me back registration ID as step 4 from the tutorial above.
Any idea why?
Thanks,
Don
I had trouble w/ that sample code also. I finally got AndroidMobilePush to work but not SNSMobilePush in the same tutorial.
Hard to tell what you have done or left out, but I can give you some ideas of where to look:
Check if you have changed package names any place.
I had to declare the PLAY_SERVICES_RESOLUTION_REQUEST = 9000; constant needed in checkPlayServices()
Make sure you have not blocked execution of checkPlayServices and register()
I would set a Log filter to make sure you are at least getting that far. Then, of course, set another to capture the registrationID so you can save it to log.txt. Copy that and supply it to the SNS Console in AWS when you Add Endpoints.
Read carefully Step 3, point 4 and associated image.
If you remove android.jar from the export list, your app will run fine

android and 3rd party jars

I have a jar file I use it to use TOC protocol (AOL servers).That jar file works fine totaly fine with my java application but when I use it in my android app,it never runs.I don't know the problem at all and I ma newbie to android development.plz help and guide me on how to debug android app or get console prints from android app IF YOU PLEASE.
Best regards
Android prints to its "console" using the Log utility. You can read about how it works at http://developer.android.com/reference/android/util/Log.html.
Basically you use a line like Log.e("AppName", "Message to print"), then go the the Debug view in eclipse and look at the window called LogCat. If you are running on an actual device instead of an emulator you can view this log through ADB. I also sometimes use a free app from the market called aLogCat to quickly check the log on the device its self.

Categories

Resources