Re: Lot of Permissions
uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/ On Wed, Jun 6, 2012 at 11:11 PM, Prabhath Suminda pathiranap...@gmail.com wrote: Actually it was my fault. I included all the permission without bothering which are the ones needed. I think below list is the necessary ones. Regards, Prabhath uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / On Wed, Jun 6, 2012 at 10:50 PM, Avdhesh Yadav a...@avdheshyadav.com wrote: Hi All, I can see lot of required permissions in the AndroidManifest.xml . uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.VIBRATE / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.RECEIVE_SMS / uses-permission android:name=android.permission.RECORD_AUDIO / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS / uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / Do we need all these permission for PhotArk mobile application ? I think there are lot of unnecessary permissions added here. We should add minimum and only required permissions in the AndroidManifest.xml file. Guys please tell me what are the required permission for your projects so that I remove others. -- Avdhesh Yadav http://www.avdheshyadav.com http://twitter.com/yadavavdhesh
Re: IDE Specific Files in the source Code
Yes, Idea does not involve with this project. The only IDE involves is eclipse. I do not know how these files were generated. May be it is result of maven build. On Wed, Jun 6, 2012 at 11:00 PM, Avdhesh Yadav a...@avdheshyadav.com wrote: Hi All, There are lot of IDE(Idea) specific files in the photark-mobile source code.I think we should not add any IDE specific files in the source code. Thoughts are welcome. -- Avdhesh Yadav http://www.avdheshyadav.com http://twitter.com/yadavavdhesh
Re: IDE Specific Files in the source Code
On Wed, Jun 6, 2012 at 10:47 AM, Prabhath Suminda pathiranap...@gmail.com wrote: Yes, Idea does not involve with this project. The only IDE involves is eclipse. I do not know how these files were generated. May be it is result of maven build. How did you create the initial mobile app ? Are these generated from PhoneGap ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Lot of Permissions
On Wed, Jun 6, 2012 at 10:41 AM, Prabhath Suminda pathiranap...@gmail.com wrote: Actually it was my fault. I included all the permission without bothering which are the ones needed. I think below list is the necessary ones. Regards, Prabhath uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / Why would we need READ/WRITE contacts ? and WRITE to external storage ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Lot of Permissions
In my application people can be tagged to photos. So when the tagging happens app shows a list of people by reading contacts. User can select people in the photo from it. It need only read contacts permission no write permission needed. External storage will be useful if the app deals with photos in external memory like SD card (I am not sure about this). Regards, Prabhath On Wed, Jun 6, 2012 at 11:29 PM, Luciano Resende luckbr1...@gmail.com wrote: On Wed, Jun 6, 2012 at 10:41 AM, Prabhath Suminda pathiranap...@gmail.com wrote: Actually it was my fault. I included all the permission without bothering which are the ones needed. I think below list is the necessary ones. Regards, Prabhath uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / Why would we need READ/WRITE contacts ? and WRITE to external storage ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Mobile Project Structure
Hi, I agree with you. Since this is built on top of phone gap www (i.e the folder with html/javascript application) folder is the heart of the app. If we have www folder we can easily port it in to any platform. So the version control must be done mainly for that folder. When talking about android if we have www folder and we want to create an android app out of it developer can create hello world android phongap app as in the phonegap site and once it is working he can replace the current www folder with photark www folder to see the functionality of photark app. Since the trunk is available as a android app it has become more complex. It is frequently causes build errors due to android SDK version problems, android maven integration problems, etc. Previously I fixed some build errors and provided a patch but today new revision is not building again. It also causes problems for developers. Say I am developing using Android SDK 4.x. Someone is developing 2.x. Both face problems when developing together. So the solution I suggest is to keep our main attention to /photoark -- this is where the application and resources, etc as Luciano suggest. Then each developer/mentor can keep Android/iOS app in their local enlivenment and sync it's resource folder with the trunk. Then everyone will be aware of the project status. We can mark some milestones and it will be enough to update /client-android -- this is the android client generated by phonegap /client-ios -- this is the ios client generated by phonegap for each milestone. Thoughts are welcome. Regards, Prabahth On Wed, Jun 6, 2012 at 11:52 PM, Luciano Resende luckbr1...@gmail.com wrote: Today, the mobile trunk seems to have the application to it's root folder. That assumes we only support one device (in this case Android). I want to produce an iOS version of the client, and would try to refactor some of the code over the weekend to something more flexible. I was thinking on something more like : /photoark -- this is where the application and resources, etc would live /client-android -- this is the android client generated by phonegap /client-ios -- this is the ios client generated by phonegap I haven't tried the Android Phonegap, but in iOS/Xcode project, draging/linking the html5 application www (in this case photoark) folder is enough to get the application happy. How does this work on the Android side ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: IDE Specific Files in the source Code
I created initial app as an android project using eclipse IDE . I think those were generated by maven. On Wed, Jun 6, 2012 at 11:28 PM, Luciano Resende luckbr1...@gmail.com wrote: On Wed, Jun 6, 2012 at 10:47 AM, Prabhath Suminda pathiranap...@gmail.com wrote: Yes, Idea does not involve with this project. The only IDE involves is eclipse. I do not know how these files were generated. May be it is result of maven build. How did you create the initial mobile app ? Are these generated from PhoneGap ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: fix the build error
Build is failing at my machine and this is because cordova 1.7.0.jar not present in the maven central repository. Developer need to manually install using following command mvn install:install-file -Dfile=cordova-1.7.0.jar -DgroupId=org.apache.cordova -DartifactId=phonegap -Dversion=1.7.0 -Dpackaging=jar On Sun, Jun 3, 2012 at 9:08 PM, Prabhath Suminda pathiranap...@gmail.comwrote: Thanks again, It was a error in my machine. Regards, Prabhath On Sun, Jun 3, 2012 at 8:58 PM, Benson Margulies bimargul...@gmail.com wrote: I ran the exact svn command from your email: svn checkout http://svn.apache.org/repos/asf/incubator/photark/mobile/trunk/ On Sun, Jun 3, 2012 at 11:23 AM, Prabhath Suminda pathiranap...@gmail.com wrote: Did you try the mobile trunk and the command I mentioned above.? On Sun, Jun 3, 2012 at 8:43 PM, Benson Margulies bimargul...@gmail.com wrote: Works fine for me. On Sun, Jun 3, 2012 at 11:11 AM, Prabhath Suminda pathiranap...@gmail.com wrote: svn checkout http://svn.apache.org/repos/asf/incubator/photark/mobile/trunk/ -- Avdhesh Yadav http://www.avdheshyadav.com http://twitter.com/yadavavdhesh
Maven Build
Hi All, Currently the maven build will not work until user manually install the cordova1.7.0.jar using following command. Build is failing because of developer need to manually install the cordavoamvn install:install-file -Dfile=cordova-1.7.0.jar -DgroupId=org.apache.cordova -DartifactId=phonegap -Dversion=1.7.0 -Dpackaging=jar One way is that we ask phonegap guys to deploy this jar file in the central repository or any other place.We have faced similar issues with the dojo files earlier Luciano can we host this jar our self ? Another way is completely avoid using maven for photark-moible. thoughts are welcome -- Avdhesh Yadav http://www.avdheshyadav.com http://twitter.com/yadavavdhesh
Re: IDE Specific Files in the source Code
On Wednesday, June 6, 2012, Prabhath Suminda wrote: 555 Bailey Ave, San Jose, CA 95141 I created initial app as an android project using eclipse IDE . I think those were generated by maven. No Phonegap at al ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Mobile Project Structure
Since this is built on top of phonegap it is developed as a html/JavaScript application. So It is common to every platform. Here the phonegap web application (i.e www folder in android app) is meant by by application and resources. Reference: http://phonegap.com/ As you said android platform is very fragmented. So we must put our concentration on the web app which runs on top of phonegap. Not as a android app itself. On Thu, Jun 7, 2012 at 12:27 AM, Avdhesh Yadav a...@avdheshyadav.com wrote: On Wed, Jun 6, 2012 at 11:52 PM, Luciano Resende luckbr1...@gmail.com wrote: Today, the mobile trunk seems to have the application to it's root folder. That assumes we only support one device (in this case Android). I want to produce an iOS version of the client, and would try to refactor some of the code over the weekend to something more flexible. I was thinking on something more like : /photoark -- this is where the application and resources, etc would live What do you mean by application and resources?.Do you mean common artificats both in ios and android ? /client-android -- this is the android client generated by phonegap /client-ios -- this is the ios client generated by phonegap I haven't tried the Android Phonegap, but in iOS/Xcode project, draging/linking the html5 application www (in this case photoark) folder is enough to get the application happy. How does this work on the Android side ? Not tried but i think it should work with android also?But we need to check One thought is that both the platforms are very different from look and feel to programming model.We should share minimum things and keep things separate as much as possible to avoid glitches.Specially Android platform is very fragmented(lot of versions and s many devices from different manufacturers) compared to IOS. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ -- Avdhesh Yadav http://www.avdheshyadav.com http://twitter.com/yadavavdhesh
Re: Mobile Project Structure
On Wed, Jun 6, 2012 at 11:57 AM, Avdhesh Yadav a...@avdheshyadav.com wrote: On Wed, Jun 6, 2012 at 11:52 PM, Luciano Resende luckbr1...@gmail.comwrote: Today, the mobile trunk seems to have the application to it's root folder. That assumes we only support one device (in this case Android). I want to produce an iOS version of the client, and would try to refactor some of the code over the weekend to something more flexible. I was thinking on something more like : /photoark -- this is where the application and resources, etc would live What do you mean by application and resources?.Do you mean common artificats both in ios and android ? The HTML 5 application which uses phonegap js library to access device specific resources such as the photos, addressbook, etc. /client-android -- this is the android client generated by phonegap /client-ios -- this is the ios client generated by phonegap I haven't tried the Android Phonegap, but in iOS/Xcode project, draging/linking the html5 application www (in this case photoark) folder is enough to get the application happy. How does this work on the Android side ? Not tried but i think it should work with android also?But we need to check One thought is that both the platforms are very different from look and feel to programming model.We should share minimum things and keep things separate as much as possible to avoid glitches.Specially Android platform is very fragmented(lot of versions and s many devices from different manufacturers) compared to IOS. They are different when building native application, but that is abstracted away by phonegap which then give us the flexibility to build generic application. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Mobile Project Structure
On Wed, Jun 6, 2012 at 11:22 AM, Luciano Resende luckbr1...@gmail.com wrote: Today, the mobile trunk seems to have the application to it's root folder. That assumes we only support one device (in this case Android). I want to produce an iOS version of the client, and would try to refactor some of the code over the weekend to something more flexible. I was thinking on something more like : /photoark -- this is where the application and resources, etc would live /client-android -- this is the android client generated by phonegap /client-ios -- this is the ios client generated by phonegap I haven't tried the Android Phonegap, but in iOS/Xcode project, draging/linking the html5 application www (in this case photoark) folder is enough to get the application happy. How does this work on the Android side ? So, I'll try to work on this over the weekend, and just to make sure we don't loose any trunk contents, I'll move that to client-android-native, which we can then port anything to the phonegap application folder and delete when we are done with it. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/