[android-developers] Re: Build Contact Stand Alone apk - from Android Contact Source Code?
Shibbs wrote: I am trying to create a separate Contacts stand alone App using the existing android contacts source code, once that done I intend to add some more features ( code ) to contacts source make a contacts.apk out of it. Is it possible? Not without a lot of work. The problem I faced was, when I pulled the contacts app source code, there were many internal api calls Private api references. I tried to resolve them by including those internal api source code class files(available from the android source code) in my project, but there are still many errors internal api calls, which I am not sure how to resolve them like: import android.os.ServiceManager android.provider.Gmail android.provider.Im android.provider.Telephony acquireProvider(Uri) deleteRow() lookupProviderNameFromId(int) ISyncAdapter IContentProvider etc Is there a way to solve these internal API issue? Do not try to build that code as a separate project. The built-in applications, in general, are designed to be built as part of the firmware, not simply to the SDK. Can somebody lead me to a correct direction? You have not indicated what the direction is. If you are trying to assist with the Android open source project, and make patches to Contacts, do not pull it into a separate application. Rather, follow the instructions at http://source.android.com to build firmware and make your changes that way. If you are trying to make a separate installable application, remove all functionality from the code that relies upon classes not in the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 0.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build Contact Stand Alone apk - from Android Contact Source Code?
Hi Mark, Thanks for the response. Mark wrote: If you are trying to make a separate installable application, remove all functionality from the code that relies upon classes not in the SDK. Yes that's exactly what I am trying to do. As suggested, If i remove all the internal api calls (mentioned in my previous mail), I may have to compromise / even break some of the functionality of Contacts app. I am trying to add more features to the existing contacts app, without loosing any of existing contacts functionality. Is it possible? Well this is what my intended direction, where I am heading, without knowing if that is possible. Thanks, Shibbs On Jul 15, 8:14 pm, Mark Murphy mmur...@commonsware.com wrote: Shibbs wrote: I am trying to create a separate Contacts stand alone App using the existing android contacts source code, once that done I intend to add some more features ( code ) to contacts source make a contacts.apk out of it. Is it possible? Not without a lot of work. The problem I faced was, when I pulled the contacts app source code, there were many internal api calls Private api references. I tried to resolve them by including those internal api source code class files(available from the android source code) in my project, but there are still many errors internal api calls, which I am not sure how to resolve them like: import android.os.ServiceManager android.provider.Gmail android.provider.Im android.provider.Telephony acquireProvider(Uri) deleteRow() lookupProviderNameFromId(int) ISyncAdapter IContentProvider etc Is there a way to solve these internal API issue? Do not try to build that code as a separate project. The built-in applications, in general, are designed to be built as part of the firmware, not simply to the SDK. Can somebody lead me to a correct direction? You have not indicated what the direction is. If you are trying to assist with the Android open source project, and make patches to Contacts, do not pull it into a separate application. Rather, follow the instructions athttp://source.android.comto build firmware and make your changes that way. If you are trying to make a separate installable application, remove all functionality from the code that relies upon classes not in the SDK. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 0.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build Contact Stand Alone apk - from Android Contact Source Code?
Ah sad ending to our over enthu project: For the past few days, I have been searching like mad, like many other developers from past who were trying to achieve something similar. But, it was not very clear that we won't be able to do, with all respect to your below comment I am stopping further development in this regard. Thanks once again! - Shibbs On Jul 15, 8:37 pm, Mark Murphy mmur...@commonsware.com wrote: Shibbs wrote: As suggested, If i remove all the internal api calls (mentioned in my previous mail), I may have to compromise / even break some of the functionality of Contacts app. Correct. I am trying to add more features to the existing contacts app, without loosing any of existing contacts functionality. Is it possible? Not without changes to the firmware to make the missing classes become part of the SDK. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 0.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build Contact Stand Alone apk - from Android Contact Source Code?
Shibbs wrote: Ah sad ending to our over enthu project: For the past few days, I have been searching like mad, like many other developers from past who were trying to achieve something similar. But, it was not very clear that we won't be able to do, with all respect to your below comment I am stopping further development in this regard. Your work will probably still be valued in improving the built-in Android Contacts application, if you wish to pursue that course. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build Contact Stand Alone apk - from Android Contact Source Code?
Mark wrote: Your work will probably still be valued in improving the built-in Android Contacts application, if you wish to pursue that course. Cool, that sounds encouraging. One final query, if I pursue the above mentioned course improve the build-in contacts app, then would I be able to build (make) the improved contacts source code get a Contacts.apk. If yes, then can I distribute it as normal android app, which would run on any android device? Or would it be tightly coupled with the below android firmware could be distributed only along with the system.img Ideally, this is what I am trying to do - Extend the existing contacts app add additional feature make an improved Contacts.apk release it in the android market. what say, possible? Thanks for all your time. - Shibbs On Jul 15, 9:15 pm, Mark Murphy mmur...@commonsware.com wrote: Shibbs wrote: Ah sad ending to our over enthu project: For the past few days, I have been searching like mad, like many other developers from past who were trying to achieve something similar. But, it was not very clear that we won't be able to do, with all respect to your below comment I am stopping further development in this regard. Your work will probably still be valued in improving the built-in Android Contacts application, if you wish to pursue that course. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build Contact Stand Alone apk - from Android Contact Source Code?
Shibbs wrote: One final query, if I pursue the above mentioned course improve the build-in contacts app, then would I be able to build (make) the improved contacts source code get a Contacts.apk. If yes, then can I distribute it as normal android app, which would run on any android device? Or would it be tightly coupled with the below android firmware could be distributed only along with the system.img That would be a much better question to ask over on one of the open source project's lists: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---