How do I add app-ads.txt to my Android Studio project - java

The message comes permanently and I think it belongs to the sites, but what about the Google applications? Where is the file placed in the project?

Related

Android Studio - package java.awt.image does not exist

I have a problem running my project on Android Studio. I am working on an Android project that has a native Java library inside it. It was running fine all the time. But suddenly when I open Android Studio, I find this error:
There is also an error in the .gradle of the project:
It says that URI is not registered.
When Android Studio is started, I find this message:
It seems that there is something wrong in Java configuration, but I can't find out what is the problem?
It was running fine all the time
Not on Android, it wasn't.
It seems that there is something wrong in Java configuration
No. You are using classes that are not part of the Android SDK.
The java Swing and AWT API are not part of the Android SDK and thus aren't including with it. You must find an Android equivalent image library to use in your app. There are few good ones around just depends on what functionality you need to have available to you in you app. Try searching Picasso and or Volley. Picasso is very popular and well known. it has a lot of feature including networking functionality for loading images from the web. The Volley library isn't an image library but an networking library that contains some predefined classes for loading images over the internet.
So this just happened to me. I'm not 100% on the details of how I got it working again, but its roughly this (on my Mac):
Quit Android Studio
I went to ~/Library/Application%20Support/ and deleted the AndroidStudio3.2 directory
I relaunched Android Studio and I got some warning dialog about plugins not existing.
Chose the button that is something about reinstalling or fixing (or whatever isn't deleting or ignoring)
Another dialog comes up. There are a bunch of plugins that are in red. Deselect all the red ones. Then reselect all those ones that were previously red.
Android Studio asks you something and if you want to restart Android Studio. Pick the thing that includes restarting.
And once Android Studio restarts, chose to rebuild your project, and then it worked.
Good Luck and I hope this works for you too.

How to Integrate Facebook sdk for android development on Eclipse

I am relatively new to Eclipse IDE and want to build facebook login option in my android app. I looked up developers.facebook documentation but can't find one for Eclipse IDE (they have it for Android Studio). So i want to know if it is possible? (if yes then how could it be done?)

Developing software for Android to Android Communication using Android ANT Radio Service

I am interested in using the ANT Radio Service in my application to be able to communicate to another Android Device. I've seen the ANT Website and read through the documents, I also downloaded the Android API in their software section which contains the jar, javadocs, and some sample applications written using Eclipse.
Also included were apk files of the sample applications. I installed them (Acquire Channels and Background Scan Samples), but those samples seem to just scan for available devices. The Acquire Channels Sample does not seem to work as the Background Scan Sample does not seem to find my device using the Acquire Channels App.
I am also having a difficult time importing the Eclipse Projects properly to Android Studio for some reason.
Does anyone here know how to build Android Applications with the use of the ANT Library for Android to Android communication? There seems to be a lack of examples and tutorials online for such a good technology given its age.

Making IPTVCore to work

I am new to android and java development although I am an expert with IPTV and I have made the biggest Greek and Cyprus IPTV but since there is a lack of Greek IPTV android apps I decided to make one application.I found IPTVCore on playstore which is made by the developer of the IPTV app.In the description it has a link on an app that uses iptv core github
I downloaded the zip changed the icons and renamed the files. In MainActivity.java I removed the first comments and added my playlist url and changed package name.
I have android studio and eclipse with android addons.
How to make it an apk?
If you mean to simply be able to load it onto a devices to test then both Eclipse and Studio will allow you do this when you elect 'Run' and have a device attached via the USB (with USB debugging enabled). This will actually install the apk on your device so you can test it.
If you mean actually making the apk available for others (via the play store for example) then you should look and the Android publishing documentation:
http://developer.android.com/tools/publishing/publishing_overview.html
In very broad terms, you develop the app, build it, test it etc and then when it is ready for release you build it for release (remove all debug code, test data etc), sign the app, and release it via a marketplace like Play Store, or avi email or your own web site.
One important thing to remember is to version the app properly - the is important for all the obvious reasons (users or support wanting to know the version) but also because the marketplace update mechanisms may use it to check what versions can be updated etc.
Update - answering the question in the comment below:
There are two approaches suggested in the Readme file with the project:
To build you custom IPTV app you can do one of the following:
Clone iptv.example project, change app name, launcher icon, and
package name.
Blockquote
Create new Android project with empty activity and use
the code from MainActivity.java
The second one might actually be simpler for you if you know how to create a simple Android project - just do that and then replace the MainActivity code in the newly created project with the code in the MainActivity file (the only java source file) in the githib project you have downloaded.

blackberry eclipse show device folders

I am an android programmer but quite newbie using blackberry. How to show device folder structure if using eclipse BB SDK? same as File explorer of android SDK... Thank you
Blackberry project does not have anything like "device folder structure". There is a file explorer application on the device, that can help you to navigate file/folder on device filesystem.
All applications on BlackBerry are installed to special memory block, it is not a filesystem. It is a closed memory block of internal memory dedicated to installed applications.
It has flat structure, and there are no folders. All files of installed applications have to have unique names. Otherwise new files will replace existing ones.
Also, as you are a newbie, this link will be helpful: https://bdsc.webapps.blackberry.com/java/documentation

Categories