A while ago I took over a fully developed project and it's my job now to keep it updated etc. Long story short, the project is using some library projects and one of those is now causing a small problem that I need to diagnose.
The library project is called "PortraitQR" and it's simply just a QR scanner.
I need to find the source of this library project so that I can read and learn more about it. I can't find anything about "PortraitQR" on google.
Any help will be greatly appreciated!
the package of that project should get you a long way here. Also check for readme files on the project.
PortraitQR seems to be an app on the Google Play Store: https://play.google.com/store/apps/details?id=vn.mobilepro.labs.qrcode
Related
I've been trying to attach the Google Licensing Validation Check (https://developer.android.com/google/play/licensing/setting-up.html) to my application made with Appcelerator. I found a GIT repository (https://github.com/eric-sofisoftwarellc/TiLicensing) that was supposed to contain a module that would do the job, but there is no .ZIP file in there, so the instructions are either incomplete or unclear.
I have tried to add the source files into the "modules" folder of my application, but it displays this error:
ti:/module.js:280: Uncaught Error: Requested module not found: com.sofisoftwarellc.licensechecker.
I also found this question (How to add Google Play license into an android application created with Appcelerator?), that redirected me to the same repository in the end.
Does someone have the .zip file that is specified in the instructions of the GIT repository or has someone ever made it work? I've tried building the module with Appcelerator Studio, but it did not work.
Could someone please help me? Thanks in advance.
If you want to use it in a Titanum SDK 6+ project you have to recompile the module because it was created 2 years ago. But that won't work that easily because it is using some legacy classes (org.apache.http) so you have to change the module in order to get it to work, sorry.
First off I'm soooooo frustrated trying to get android.appcompat....gridlayout to work. I've followed lots of tutorials and just keep getting that horrible "android.support.v7.widget.GridLayout failed to instantiate" message. So I'm doing some serious detective work to try and understand everything about the compat libraries.
So like the title asks, what is the difference? I'm building the libs/android-...jar files, adding them to the path, following all the directions on https://developer.android.com/tools/support-library/setup.html
Any insight? Should I just uninstall eclipse and start from scratch to try and do this? I'm working with a test project and nothing is working. I keep getting 1 instantiation errors along with an error saying "a resource already exists on disk 'C:......\android-supp..-gridlayout.settings' and '....prefs'.
Please please any insight. Have spent a long time on this. Any advice is much appreciated.
they both refer to the same "v7 appcompat library" discussed at the android developer site.
You cannot just copy the jar file, as this library has resources that are referred to by your project so it needs to be added as a library project with resources as discussed here.
I have been working with Java for about a couple of months now and I have been stuck introducing Google API into my Maps app. I need some help with these imports.
Here is what I did: I was following the code of a Places API demo which I can link if needed. I ended up having to add some libraries. Before I did, I was getting errors from all of the imports that started with com.google.api.client...etc. Then once I added all of these libraries, I then got left with 2 errors out of my imports.
The errors are: the "com.google.api.client.googleapis.GoogleHeaders" and "com.google.api.client.http.json.JsonHttpParser". I am receiving them both as "cannot be resolved to a type". These errors are causing some more errors throughout the rest of my code. I was hoping someone can help me solve this. I know it should have something to do with my code, but I am not sure what is going on. I know I am missing something.
Also, I installed the Google Plugin to install the APIs and when I did, I added the "Google + API" and the "GoogleOAuth2" APIs and that is where I am stuck at. Please someone help.
Here is the screenshot: Full Screenshot
I haven't worked with Maps, but as I understand it Maps is now packaged with Google Play Services, which I have been working with recently.
Firstly, the installation of Google Play Services is well-documented and you should look at this (if you haven't done so already):
http://developer.android.com/google/play-services/setup.html
There are a few areas that cause difficulty, and one is the section "Set Up a Project with the Library". There are different possible approaches but I suggest you take the following steps.
Ensure that the Google Play Services lib (and any other libs) are defined as library projects (Properties ...Android.. Library ...IsLibrary) and that they have no errors (cleaning may not be sufficient - you may have to shut down Eclipse to remove the errors).
When the library projects are error free, add them to your project. The normal way of doing this is to REFERENCE them (check what the documentation says) but you do this by (Properties ...Android.. Library ...Add).
Then check out (Properties ... Java Build Path ...) - read the documentation but you need your libs in here.
Then clean your project but note that a restart of Eclipse may be necessary to remove the errors from your project.
There are other errors that can arise - another common one arises if you have different versions of the v4 support lib in your libs / project and you get a message "...this check is based on SHA1 at this time". This is well documented on Stack Overflow.
Good luck !
I'm'trying to use the pjsip lib for android, after reading some sites talking about the topic I still wondering how to use it.
Many examples suggest to start it building the apjsua folder in the downloaded package but I cannot find it in /pjproject-2.1.0/pjsip-apps/src/
I have all the other sources put not apjsua, does this folder have another name since the new version?
Thanks for your reply.
PJSIP has not yet released there Android version, it is only for testing purposes.
You can find the PJSIP projest for android in branches. Here is the link : http://svn.pjsip.org/repos/pjproject/branches/projects/android/
So I would suggest you to download the whole pjproject.
You can find the apjsua in pjproject/branches/projects/android/pjsip-apps/src/apjsua
In some versions its name is apjsua and in other versions its pjsua.
Checkout code from below link:
http://svn.pjsip.org/repos/pjproject/trunk
After checkout and building it with given commands on PJSIP getting started page, you will find it in following path:
PJSIP_DIR/pjsip_apps/src/pjsua/android/
For confirmation, you can check it by browsing code on following link:
http://trac.pjsip.org/repos/browser
I have an Android app that is using an Android library; both projects are open in my Eclipse workspace. I want to create a breakpoint in the library code and have the debugger hit it while i'm debugging the application.
Currently, when I am debugging the application, I can hit breakpoints in the app code but it will not stop at any breakpoints in the library code.
Some quick googling has resulted nothing related to this task.
Is this possible? Am I doing something wrong?
Thanks,
Chris
EDIT ---
OK, I see now how to attach the code to the library and hit breakpoints in the code. I can do this for one library, but for some reason I can't attach the code to the library I really need to debug, but that's an entirely different issue...
Thanks for replies!!
I realized the problem now... The way to hit breakpoints in a library is to attach the source code as suggested by Cristian. However, this was simply not working for my library and I couldn't figure it out for the longest time.
I found out later that in the build process of the particular library, there was an obfuscation step that rearranged the source files, changing their packages. That's why Eclipse couldn't figure out how to map the .class files in the .jar to the .java files in the workspace project... they were in differently named packages.
Thanks for the replies :)