Compilation problem "variable DocumentsContract" in MediaUtils.java

Hello ODK Developers.

I am working for a non profit organization and a complete newbie in Android Development.

I am working on my laptop having Fedora 14 and android-linux-sdk (NO Eclipse).
I use JDK 1.6.
The available targets (Google APIs) are 8, 14 & 16.
I downloaded source code of ODK Collect & playservices from code.google.com project page and updated project & library as well, for target Google-API-14.

When I tried Google-API-8 instead, it gave errors for Theme.Holo.Light in res/values-v11/theme.xml. (Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light')

As I am using API-14, will the app run in Android version 4.0 only or in any Android OS version 2.2 & above?

While things went well enough, I came across a problem as,

[javac] /home/user/workspace/collect.opendatakit-v1.4.3/src/org/odk/collect/android/utilities/MediaUtils.java:498: cannot find symbol
[javac] symbol : variable DocumentsContract
[javac] location: class org.odk.collect.android.utilities.MediaUtils
[javac] final String docId = DocumentsContract.getDocumentId(uri);

There are 5 such errors.
Also this follows as,

[javac] Note: Recompile with -Xlint:unchecked for details

What does this mean and how to solve this..

Please help me out.

I want to create my app based on odk collect with a different name, logo, different server URL etc
There should be no Admin settings, only a few General Settings.
I wanted no choose options. Like, just "Take Picture" option & no "Choose Image" option. I edited file widgets/ImageWidget.java and commented Choose related part. Is this sufficient?

Can anybody please suggest a step by step tutorial for developing existing project using android-linux-sdk & NO Eclipse?

Regards.

I have no suggestions on building without using an IDE, ...and I have no
idea why you would avoid free IDEs like Eclipse or IntelliJ...

Be sure you use the tagged versions of the code and not the code tip which
can be (and currently is) unstable.

··· On Sat, Dec 27, 2014 at 10:19 AM, wrote:

Hello ODK Developers.

I am working for a non profit organization and a complete newbie in
Android Development.

I am working on my laptop having Fedora 14 and android-linux-sdk (NO
Eclipse).
I use JDK 1.6.
The available targets (Google APIs) are 8, 14 & 16.
I downloaded source code of ODK Collect & playservices from
code.google.com project page and updated project & library as well, for
target Google-API-14.

When I tried Google-API-8 instead, it gave errors for Theme.Holo.Light in
res/values-v11/theme.xml. (Error retrieving parent for item: No resource
found that matches the given name 'android:Theme.Holo.Light')

As I am using API-14, will the app run in Android version 4.0 only or in
any Android OS version 2.2 & above?

While things went well enough, I came across a problem as,

[javac]
/home/user/workspace/collect.opendatakit-v1.4.3/src/org/odk/collect/android/utilities/MediaUtils.java:498:
cannot find symbol
[javac] symbol : variable DocumentsContract
[javac] location: class org.odk.collect.android.utilities.MediaUtils
[javac] final String docId = DocumentsContract.getDocumentId(uri);

There are 5 such errors.
Also this follows as,

[javac] Note: Recompile with -Xlint:unchecked for details

What does this mean and how to solve this..

Please help me out.

I want to create my app based on odk collect with a different name, logo,
different server URL etc
There should be no Admin settings, only a few General Settings.
I wanted no choose options. Like, just "Take Picture" option & no "Choose
Image" option. I edited file widgets/ImageWidget.java and commented Choose
related part. Is this sufficient?

Can anybody please suggest a step by step tutorial for developing existing
project using android-linux-sdk & NO Eclipse?

Regards.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks for your reply.
I will try in this regard.

··· On Saturday, December 27, 2014 at 11:49:23 PM UTC+5:30, intr...@gmail.com wrote: > Hello ODK Developers. > > I am working for a non profit organization and a complete newbie in Android Development. > > I am working on my laptop having Fedora 14 and android-linux-sdk (NO Eclipse). > I use JDK 1.6. > The available targets (Google APIs) are 8, 14 & 16. > I downloaded source code of ODK Collect & playservices from code.google.com project page and updated project & library as well, for target Google-API-14. > > When I tried Google-API-8 instead, it gave errors for Theme.Holo.Light in res/values-v11/theme.xml. (Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light') > > As I am using API-14, will the app run in Android version 4.0 only or in any Android OS version 2.2 & above? > > While things went well enough, I came across a problem as, > > [javac] /home/user/workspace/collect.opendatakit-v1.4.3/src/org/odk/collect/android/utilities/MediaUtils.java:498: cannot find symbol > [javac] symbol : variable DocumentsContract > [javac] location: class org.odk.collect.android.utilities.MediaUtils > [javac] final String docId = DocumentsContract.getDocumentId(uri); > > There are 5 such errors. > Also this follows as, > > [javac] Note: Recompile with -Xlint:unchecked for details > > What does this mean and how to solve this.. > > Please help me out. > > I want to create my app based on odk collect with a different name, logo, different server URL etc > There should be no Admin settings, only a few General Settings. > I wanted no choose options. Like, just "Take Picture" option & no "Choose Image" option. I edited file widgets/ImageWidget.java and commented Choose related part. Is this sufficient? > > Can anybody please suggest a step by step tutorial for developing existing project using android-linux-sdk & NO Eclipse? > > Regards.

Clarice just called my attention to the document API, which only exists in
API 19 and higher.

The code runs on older versions (or without Google API) with restricted
functionality (e.g., no maps, no encryption).

However, it does require the newer API level to build. The code has runtime
checks to detect the Android OS version you are running and selectively
execute (or not) certain functions.

You should be able to launch the Android SDK manager to download the newer
API libraries -- I.e., you are not restricted to just 8, 14 & 16 in your
build environment.

··· On Mon, Jan 5, 2015 at 11:15 AM, Mitch Sundt wrote:

I have no suggestions on building without using an IDE, ...and I have no
idea why you would avoid free IDEs like Eclipse or IntelliJ...

Be sure you use the tagged versions of the code and not the code tip which
can be (and currently is) unstable.

On Sat, Dec 27, 2014 at 10:19 AM, intratek@gmail.com wrote:

Hello ODK Developers.

I am working for a non profit organization and a complete newbie in
Android Development.

I am working on my laptop having Fedora 14 and android-linux-sdk (NO
Eclipse).
I use JDK 1.6.
The available targets (Google APIs) are 8, 14 & 16.
I downloaded source code of ODK Collect & playservices from
code.google.com project page and updated project & library as well, for
target Google-API-14.

When I tried Google-API-8 instead, it gave errors for Theme.Holo.Light in
res/values-v11/theme.xml. (Error retrieving parent for item: No resource
found that matches the given name 'android:Theme.Holo.Light')

As I am using API-14, will the app run in Android version 4.0 only or in
any Android OS version 2.2 & above?

While things went well enough, I came across a problem as,

[javac]
/home/user/workspace/collect.opendatakit-v1.4.3/src/org/odk/collect/android/utilities/MediaUtils.java:498:
cannot find symbol
[javac] symbol : variable DocumentsContract
[javac] location: class org.odk.collect.android.utilities.MediaUtils
[javac] final String docId = DocumentsContract.getDocumentId(uri);

There are 5 such errors.
Also this follows as,

[javac] Note: Recompile with -Xlint:unchecked for details

What does this mean and how to solve this..

Please help me out.

I want to create my app based on odk collect with a different name,
logo, different server URL etc
There should be no Admin settings, only a few General Settings.
I wanted no choose options. Like, just "Take Picture" option & no "Choose
Image" option. I edited file widgets/ImageWidget.java and commented Choose
related part. Is this sufficient?

Can anybody please suggest a step by step tutorial for developing
existing project using android-linux-sdk & NO Eclipse?

Regards.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com