I have been asked to blend our company specific events into the existing Android calendar. Our events have four fields I don't find with the standard CalendarContract.Events class. A boolean "approved" field, an integer "linked" to a resource, and two dateTime fields indicating.
The first step seems to be to extract the existing ICS calendar into a compileable stand alone application. I have downloaded the android.calendar package from github, but it won't compile in Eclipse. It appears to be missing certain imports: com.android.common, com.android.commoncalendar, and com.android.ex.
I have searched stackOverflow for help extracting a stand-alone version of android standard apps, but have mostly seen people respond that it is not possible. I know it is possible because it has been done. You can find it here:
https://play.google.com/store/apps/details?id=com.concentriclivers.calendar
I have emailed the developer to see if he would share his source code or at least describe the steps he took to get the package to compile as a stand alone application, but he has not responded.
Can anyone help me with how to fix the missing imports, or better yet point me to a resource that describes step-by-step how I do this?
Thanks!
I wouldn't be in any kind of hurry to rebuild one of the standard apps. That sounds like a recipe for pain. Instead, I suggest you make use of the Calendar content provider that is already present, and create another set of tables that indexes by the Calendar CP but adds the rows you are missing. You could then make a custom cursor that blends these two sources together, or maybe make another content provider to wrap them and keep the cursor simple.
Related
I am trying to get a tango project working with android studio and have reached a point of which I can't seem to get past, ad it is in great part to my lack of understanding of things dealing with android in general. Right now I am getting errors, the system cannot seem to find R.id.pose. R.id exists, and has many static members, but pose is not among them. I am getting the code from the samples on github, which I would assume was built to work, so I can only guess that this may be an issue with android studio? I would appreciate knowing more about any of this.
This sample indicates that R.id.pose is a TextView. I don't want to seem insulting in saying this (I don't know your experience), but in order for the system to find an id (R.id.something), it needs to be defined in a layout or resource file (the XML files in the res folder).
I've tried a number of searches but can't find anything applicable, it may be because I'm just not asking the right question! So please feel free to redirect me if this has been covered elsewhere.
I'm new to Android and to development, but have an idea to use an Application to check other simple apps on the device for potential security holes (this is to design a prototype as part of a course of study).
Before I go any further, is it feasible to use an application to check through/parse/inspect the source code of another app, searching for instances of text/commands/permissions etc (similar to a grep in Linux for example)? Any starting points would be greatly appreciated, things like inter-app communication, converting code into text, searching through that text and reporting and the like.
I think the key might be using an app to inspect a Manifest file of another for permissions settings etc. I've learnt that Dalvik compiled code has big differences to the original Android 'Java'. Is it even possible to use an app to read the Manifest file of another app?
If u use Android Studio try 'code inspect' , 'code analyze'.
I'm trying to install Kik Messenger twice. I have two accounts and don't like to log out because I lose all of my conversation history. I'm currently using Titanium backup's profile feature, which is a very nice fix, but it's still a pain having to switch back and forth between profiles. I might be looking for "perfect" when perfect doesn't exist. I am completely new to modding apks and Android in general, all of my work on this so far has been "trial and error". Anyways, here's what I have:
I have the Google Play version of Kik installed on my phone. I have extracted that app and modified the package name successfully using apktool. However, when I try to install, I get an error saying something about duplicate provider authority. So I did some research and learned that I'm supposed to edit this part of the AndroidManifest. So I have played around with that a little bit and after I change the authorities, I am able to install the modded app. However, it crashes immediately.
Does anyone know how to fix this problem with the provider/authorities?
The issue you're hitting is that the app has registered certain classes to handle particular events. These need to be unique across all installed apps and point to existing classes in the app that will perform some activity with the supplied information.
You bypassed the safety check when installing by changing the defined handlers in the Manifest but that didn't really fix it as they still need to actually point to a valid, working class that can handle the requests/events.
You would need to decompile, rename the classes involved and all references made to them and recompile the whole app to really fix the problem. However, I'd assume that it would likely be against the license. If the code is open source then it wouldn't be too big a task to rename some classes & packages then build the app. If it's closed source then it is a harder task.
What you can do is either set up your device to use multiple accounts (the OS not the app) as each user has a separate data storage and preference location that should allow you to have two configurations. Or you can request that the developers include some sort of multiple account handling or easy account swap feature.
I have been searching around this site and google for a couple of hours now, and I can't find anything about this. Maybe because I use the wrong search terms, I don't know.
I am making an Application List for an App of mine, and for the most part this is easy enough. My problem is that when I come across an updated system application, I need to get information about the original package file (The one in /system/app rather than the updated one in /data/app), information like version and file name.
Now, I could extract this as root from /data/system/packages.xml, but I thought that there might be a better native solution using PackageManager like with the rest of the application list?
I have a very special problem. Base on my previous question, you can tell that I was working on a live wallpaper. It's now available on the market (under the name Weird Voronoi).
But now, I want to create a "pro" version of this, with more feature and so on. But I'm not sure of the right approach for this. If I try to start a second project and use the current one as a "library" to reuse some part of it, I might have to do a lot of changes in the original project. Plus I will have to redo (at least I think) all the settings and ending up with twice the material to maintain after that. Need to do a second manifest and adjust it to fit my new needs.
What should I do ? Copy completely the project into another one and start from that point ? I really don't know what would be the best approach. I would like to reuse the maximum of code that I can and not duplicate the files. But if the fastest way is to duplicate, I will do it.
Thanks
W
See this tutorial on having full and lite versions of an Android project off the same code base: http://blog.donnfelker.com/2010/08/05/howto-android-full-and-lite-versions/