Giter VIP home page Giter VIP logo

baker-android's People

Contributors

fcontreras avatar nin9creative avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

baker-android's Issues

Integration with Baker CE?

Hi Francisco, Andrew
Great to see Baker for android. I have been playing around, and as I'm not a programmer and I have no idea about android, it has taken me a little to compile it, but I've done it. I have it running in my device.
Now... Two questions:
a)Why does it appear two icons of the app in my device?
b) Is it possible to link it with my Baker CE or I have to use it with json files etc... and in either case .. What about a doc about the implementation with Baker CE or for the in app purchases if not with baker CE?
Thank you
Fernando

gradlew install ---- BUILD FAILED (compileReleaseJava)?

C:\ABakerProject\ABaker\src\main\java\com\baker\abaker\GindActivity.java:203: error: constant expression required
C:\ABakerProject\ABaker\src\main\java\com\baker\abaker\GindActivity.java:208: error: constant expression required

Windows 8:
windows

Mac-mini:
mac

not valid book.json found

press the "read" button of downloaded the book.
the following message will appear.

not valid book.json found!

Cannot Resolve Symbol

Hi, i have a successful running project.
But when i close the Android Studio and open it again, when i want to run my project, there is an error :
Cannot find symbol 'com.baker.abaker.InfoActivity'. But the info activity is on my baker library. and the com.baker.abaker is not error.
Could somebody help me?

Gradlew Install on Mac

When I go to install gradlew in terminal it tells me this:

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'install' not found in root project 'joseph_durham'.
  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.532 secs

Open modal views with frame and overlay background.

Modal views opened by the links in the issues should have a frame and a close button to help the users distinguish between the content and the modal, also a transparent black backgound could be applied.

ic_launcher.png images

It's possible to know the various dimensions of the differents images ic_launcher.png?
In the iOS version I have the Launcher and Library images that always fit the width of the page.
With the Android version is not possible, because the image remain small in the middle of the page
Where is the solution?

Could not find com.google.android.gms:play-services:4.1.32

Hi everyone

I try to create a new project, but I get this error from ./gradlew install :

Could not resolve all dependencies for configuration ':ABaker:_debugCompile'.
Could not find com.google.android.gms:play-services:4.1.32.
Required by:
com.baker:ABaker:1.0

I updated all packages from SDK manager, but still get the same error.

Anyone can helpe me please?

Grettings

Problem after cloning the master

Hello

I cannot install the sources downloaded from the git. Before I change anything, i get this message:

Failed to refresh Gradle project 'ABakerProject' Could not find com.google.android.gms:play-services:4.1.32. Required by: com.baker:ABaker:1.1

Thanks in advance for your help. The documentation does not help.
Regards,

XMLHttpRequest cannot load

Hi,

I just newbie in android developer and I try build stand alone app with Baker Android ( HTML5, JS and XML ) but I got error were the app load XML
07-22 11:38:36.587 6299-6299/? E/Web Console﹕ XMLHttpRequest cannot load file:///android_asset/books/Individual%20Villas/images-villas/360/pano.xml. Cross origin requests are only supported for HTTP.:1

I don't have any idea how to fix it, I had tried many way to fix it but no luck :(

Bellow code I used for, but no luck

 webView.getSettings().setAllowFileAccess(true);
 webView.getSettings().setAllowContentAccess(true);
 webView.getSettings().setAllowFileAccessFromFileURLs(true);
 webView.getSettings().setAllowUniversalAccessFromFileURLs(true);

Anyone can help me...???

Thanks a lot

Adding Login Form

Hi,
is it possible if i add another json parser for login form?
like the tutorial :
http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/

I add the files on com.baker.abaker
but there is an error :

07-17 23:10:14.606 1592-1592/com.cisomagz.ciso E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.cisomagz.ciso, PID: 1592
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145)
at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
at com.baker.abaker.library.JSONParser.getJSONFromUrl(JSONParser.java:51)
at com.baker.abaker.library.UserFunctions.loginUser(UserFunctions.java:48)
at com.baker.abaker.LoginActivity$1.onClick(LoginActivity.java:66)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)

PDF's in Android Baker

Hello again.
Just trying to see if it is possible to "recycle" the same ios magazine, so... in my tests....I Cant open in the webview a pdf file...
Does it something to do with android?
I'm using it like:

Thanks

How to "Replace the package name on the manifest definition"

Hi,
I've got some problems with replace step 11 - Replace the package name on the manifest definition with the package name of your project. How to do that? I've tried to put my name in the line

manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="MY NAME"

But have red lines like:
android:value="@integer/google_play_services_version" />
android:name="com.baker.abaker.GindActivity"
android:name="com.baker.abaker.MagazineActivity"
android:parentActivityName="com.baker.abaker.GindActivity"
android:name="com.baker.abaker.ModalActivity"
android:parentActivityName="com.baker.abaker.MagazineActivity"
android:name="com.baker.abaker.GcmBroadcastReceiver"

Actually i got an error trying to synk - Gradle 'MY NAME' project refresh failed

Things to fix

I have some things that I have found that needs fixing
a) Important: When double taping to open index and select a page from index, Baker opend the correcponding page in both index zone and as a page. This means, that index file is replaced by the selected page, so index is lost.
b) I would recomend to insert the line about allowing CORS.
c) It may be usefull to correct the problem about UTF8 naming within hpubs
d) when swapping the page to go to next one, if it is not swiped enough, makes the pages stuck at middle way.
e) When downloading an issue, sometimes the % of downloading is not shown. Always, if the download or unzip hangs or breaks, then the appdoes not "reset" itself, neither cleaning the cache or knowing it have failed. It would be wise to make as in ios, that the app knows thre have been a problem and can restart by user the download.
f) If the device does not have an external storage, the app crashes. IT may be usefull to let user know about it or select the storage localtion (internal/external). Not just crashing and quitting.
g) If referrer has maito,ABaker just says it is not implemented
h)It would be wise, to open modal views with a frame and ocluding or hiding the current page. And if this modal view have a "close" button/icon.. great!!! It currently floats over current page, and sometimes it is difficult to distinguish between the modal content and the underlying page.

I hope this may be useful
Best regards
Fernando

Implement Parse + Baker Android

I want to implement parse service with my android baker app.
I have practice step by step like the tutorial on parse.
But there is still an error.
Did somebody have implement parse to android baker?
Did anyone help me to solve it?

Manifest merging failed - error

Hi Francisco

I created all over again with latest Android Studio version
I faithfully followed the instructions, but I keep getting an error:
How so?

Executing tasks: [:app:assembleDebug]

Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
:app:compileDebugNdk UP-TO-DATE
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV71910Library UP-TO-DATE
:app:prepareComBakerABaker11Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices4452Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest
[/Users/marzio_imac/App_Android/SpendiBene/app/src/main/AndroidManifest.xml:3, /var/folders/pn/r_9cf8cn2y34pxpzjryfydp40000gn/T/manifestMerge8337662321393773325.xml:3] Main manifest has but library uses targetSdkVersion='19'
:app:processDebugManifest FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

    Manifest merging failed. See console for more info.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.75 secs

MagazineThumb error

Hi, im new in baker android.
I have follow the process on https://github.com/bakerframework/baker-android/wiki/Creating-your-own-Baker-Android-Project.
But i still have a problem. What i should do on my java folder? I mean, did i have to copied all of the files on Java folder from ABakerProject?
Because, i've try to copied all of the java files on ABakerProject but i still have an error like this : Cannot find symbol constructor BookJsonParserTask(com.myproject.ok.views.MagazineThumb)
Could somebody help me please?

Failure to install (./gradlew install) via term osx 10.9

Spits out the error:

  • Where:
    Build file '/usr/local/baker-android-master/ABakerProject/ABaker/build.gradle' line: 10

And w/ --stacktrace:
Caused by: java.lang.RuntimeException: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

Everything else is installed correctly to the best of my knowledge...
What have I got wrong here?
Thanks,
Jacob

Pages index bug

First of all, thanks for great work on migrating Baker to Android!

We have a problem with pages index. After opening index for the first time everything is fine but after we close it and reopen it again it expands to fullscreen. It works perfectly on the iOS.

First open (correct):
https://dl.dropboxusercontent.com/u/3183488/Screenshot_2014-06-21-18-52-18.png

Reopen after closing (incorrect):
https://dl.dropboxusercontent.com/u/3183488/Screenshot_2014-06-21-18-57-22.png

Do you have any idea what might cause this issue?

I changed the "layout_height" of "webViewIndex" in html_pager.xml from "wrap_content" to "350dp" and it seems to do the trick but the inner content of the webview is still scrollable. I can maybe also disable the vertical scrolling but it seems like a hack and I'm not sure if this is a good idea to do?

Error Storage SDCard

I have an issue like this :

06-03 04:00:43.011 1064-1096/com.mymagazine.app W/System.err﹕ java.io.FileNotFoundException: /storage/sdcard/Android/data/com.mymagazine.app/files/magazines/app-magazine-oktober-2013/images/idsirtii/grafik/Icon
: open failed: EINVAL (Invalid argument)
06-03 04:00:43.021 1064-1096/com.mymagazine.app W/System.err﹕ at libcore.io.IoBridge.open(IoBridge.java:409)
06-03 04:00:43.021 1064-1096/com.mymagazine.app W/System.err﹕ at java.io.FileOutputStream.(FileOutputStream.java:88)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at java.io.FileOutputStream.(FileOutputStream.java:128)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at java.io.FileOutputStream.(FileOutputStream.java:117)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at com.baker.abaker.workers.UnzipperTask.doInBackground(UnzipperTask.java:77)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at com.baker.abaker.workers.UnzipperTask.doInBackground(UnzipperTask.java:19)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at android.os.AsyncTask$2.call(AsyncTask.java:288)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:237)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ at java.lang.Thread.run(Thread.java:841)
06-03 04:00:43.031 1064-1096/com.mymagazine.app W/System.err﹕ Caused by: libcore.io.ErrnoException: open failed: EINVAL (Invalid argument)
06-03 04:00:43.051 1064-1096/com.mymagazine.app W/System.err﹕ at libcore.io.Posix.open(Native Method)
06-03 04:00:43.051 1064-1096/com.mymagazine.app W/System.err﹕ at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
06-03 04:00:43.061 1064-1096/com.mymagazine.app W/System.err﹕ at libcore.io.IoBridge.open(IoBridge.java:393)
06-03 04:00:43.061 1064-1096/com.mymagazine.app W/System.err﹕ ... 10 more

I have download 2 issue of my magazine and it downloaded successfully. But when i try to download the other, there is an error like that.
What happen on my app?
I use emulator with 2Gb SDcard.
Could somebody help me to solve it?

Info / Setting button

Hi baker team,

I think one great feature in the baker for iOS (besides others) is the Info button, since we can write something about who is creating the magazine, put a link to a website, credits, copyright, privacy policy, and so one.

Would you mind put this feature in the roadmap?

Glad to hear your thoughts on this.

Failure to run after copying assets and res folders

Everything's running smoothly until I copy & paste the assets & res folders to my projects mgzn/src/main folder to customize the app. Here's the output from android studio:

Error:Execution failed for task ':mgzn:compileDebugJava'.

Compilation failed; see the compiler error output for details.
*** mgzn/src/main/java/com/undrrpblc/mgzn/MainActivity.java
Error:(14, 32) error: cannot find symbol variable activity_main
Error:(21, 41) error: cannot find symbol variable main

Do you know what's causing the issue and how to fix it?
Thanks,
Jacob

Error: couldn't load JavaScriptCore

Hi,

Every time I run Baker - on multiple devices - the very first thing it does is fail to load JavaScriptCore (see below). The app then loads up alright, but I'm wondering if this is negatively affecting anything, and how to fix it.

It's being loaded up in GindActivity in the normal way:
static {
try {
System.loadLibrary("JavaScriptCore");
System.loadLibrary("ejecta");
} catch (UnsatisfiedLinkError ex) {
Log.e(GindActivity.class.getName(), "Could not load libraries: " + ex.getMessage());
}
}

Error:

07-23 13:44:43.030 1740-1740/com.baker.schwartzbaker E/com.baker.schwartzbaker.GindActivity﹕ Could not load libraries: Couldn't load JavaScriptCore from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.baker.schwartzbaker-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.baker.schwartzbaker-1, /vendor/lib, /system/lib]]]: findLibrary returned null

Push notification wirh parse.com

Hi Francisco

I have successfully implemented in my magazine (baker iOS) the Push notification with instructions parse.com and work correct
Now I am trying to do the same for Android Baker Magazine
The instructions are simple https://www.parse.com/apps/quickstart#parse_push/android/existing
I added the libraries as required in libs folder on my project, but now I must to add the code import statements to my Activity
Where is in my project the activity?
Thank You

Vertical Pagination

Hey Guys,

is the vertical pagination not yet implemented – or are we doing something wrong there?

Error Sync gradle

When I try to sync grandle after the step 11 I get the following error:

Gradle 'DArtes-MGZ' project refresh failed:
Could not find com.baker:ABaker:1.1.
Required by:
DArtes-MGZ:app:unspecified

Any idea of what it is? Maybe I forgot to add something?

Video Tutorial

I have done bakerframe work on IOS. but not not on Andriod.
Can someone do a video walk through?
I am will to pay if some one can do a screencast from start to finsh.

Android baker loading old shelf when no internet connection available.

The application is loading an old backup of the shelf when no internet available.

Steps to reproduce:

  1. Start the application as it comes out of the box. (it will load baker-shelf)
  2. Change the shelf to some other valid Baker shelf. (it will load a new-shelf)
  3. Allow the application to load the new shelf and show the new list of issues.
  4. Close the application
  5. Disable internet connection
  6. Start the application again
    You will see that it loads the baker-shelf again.
    Tested with: Sony XPERIA Tablet.

Acceptance criteria:
The application should load the latest valid shelf downloaded (new-shelf).

unable to find class

Hi,

Great work so far. My issue currently is pasted below.

Is it related to the naming convention I've used? It appears unable to find the class '.ABakerApp' which I assume is being constructed from the library...somehow..

Also - could you explain how the project knows which "library" it is using? It's not clear.

06-17 02:01:47.789 1572-1572/com.schwartzmedia.thesaturdaypaper.android.baker W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xa4d12b20)
06-17 02:01:47.793 1572-1572/com.schwartzmedia.thesaturdaypaper.android.baker E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.schwartzmedia.thesaturdaypaper.android.baker, PID: 1572
java.lang.RuntimeException: Unable to instantiate application com.schwartzmedia.thesaturdaypaper.android.baker.ABakerApp: java.lang.ClassNotFoundException: Didn't find class "com.schwartzmedia.thesaturdaypaper.android.baker.ABakerApp" on path: DexPathList[[zip file "/data/app/com.schwartzmedia.thesaturdaypaper.android.baker-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.schwartzmedia.thesaturdaypaper.android.baker-2, /system/lib]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:516)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4317)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.schwartzmedia.thesaturdaypaper.android.baker.ABakerApp" on path: DexPathList[[zip file "/data/app/com.schwartzmedia.thesaturdaypaper.android.baker-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.schwartzmedia.thesaturdaypaper.android.baker-2, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newApplication(Instrumentation.java:975)
at android.app.LoadedApk.makeApplication(LoadedApk.java:511)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4317)
            at android.app.ActivityThread.access$1500(ActivityThread.java:135)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5017)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
            at dalvik.system.NativeStart.main(Native Method)

Gradle project sync failed. Error:Artifact 'com.viewpagerindicator:library:2.4.1:library.aar' not found.

I'm trying to create my own Baker Android Project according to https://github.com/bakerframework/baker-android/wiki/Creating-your-own-Baker-Android-Project, but after I changed my project's build.gradle file I got gradle project sync failed with error:
Gradle 'BakerTest' project refresh failed
Error:Artifact 'com.viewpagerindicator:library:2.4.1:library.aar' not found.

All SDK Manager staff updated to the latest version.
build.gradle:

apply plugin: 'android'

repositories {
maven {
url 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
}
}

android {
compileSdkVersion 19
buildToolsVersion "19.0.1"

defaultConfig {
    minSdkVersion 11
    targetSdkVersion 19
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
compile 'com.android.support:appcompat-v7:+'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.baker:ABaker:1.1'
}

Failure to install (gradlew.bat install) via Windows

I am having issue with installing Baker-Android on Windows .Below are the errors :

FAILURE: Build failed with an exception.

Where:'C:\Users\HP 5800\Downloads\baker-android-master\baker-android-master
\ABakerProject\ABaker\build.gradle' line: 10

Caused by:A problem occurred evaluating project ':ABaker'.SDK location not found.
Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

Can anyone tell me where i missed any step.Any kind of help will be appreciate.

Thanks.

Problem Gradle sync

I'm working and studying Baker Project to publish on iOS and GooglePlay Android
For iOS I arrived at a good point and I've almost solved all the major problems.

For Android instead I started over again from the beginning, following the tutorial, but I was always stopped by the synchronization Gradle and I can not finish the setting of the project.

My system is:
Mac OSX 10.9.2 Maverick
Android 0.5.2 Study

JAVA JDK 1.7.0 or 1.8.0

This a Maven Version
xxxxxxxxxxxxxxxx$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre
Default locale: it_IT, platform encoding: UTF-8

OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"

This is result ./gradlew install
BUILD SUCCESSFUL

Total time: 38.998 secs

This is the error of Gradle

Gradle 'XXXXX' project refresh failed: Cannot invoke method repositories() on null object Gradle settings

BUILD .GRADLE file
apply plugin: 'android'

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"

defaultConfig {
    minSdkVersion 11
    targetSdkVersion 17
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}

}

dependencies {
compile 'com.android.support:appcompat-v7:+'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.baker:ABaker:1.1'
}

apply plugin: 'android' repositories {
maven {
url 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
}

}

In the MAIN.ACTIVITY file some red errors
the first error is
import android.support.v7.app.ActionBarActivity;

with ActionActibity in red

In the ANDROIDManifest.xml after copy from Baker and replacement name package
some red errors
the first erro is:
android:value="@integer/google_play_services_version" />

with @integer/google_play_services_version in red

I've seen that others have the same problem, so I think it is necessary to explain how to intervene to resolve

thank you very much

In-app Purchases

Hi Baker team,

One great feature in the baker for iOS (besides others) is the In-App purchase for the issues.

Would you mind put this feature / enhancement in the roadmap?

How to implement tracking page on google analytic?

Hi everyone,
I finally get the page analytic working, however I have a problem with magazine.getTitle() it's not getting the title on my analytic report and causes an error.

Here is what I got on my MagazineActivity.java :

pager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
// @OverRide
public void onPageSelected(int position) {
super.onPageSelected(position);
Log.d(this.getClass().getName(), "Loading page : " + position);

            easyTracker.send(MapBuilder.createEvent("Magazine for Android", "Open Page", "Page : " + position, null).build());
        }

It is working with this situation. But when I change the "Open Page" event with magazine.getTitle() to get the title of my magazine from the book.json it causes error.

I included com.baker.abaker.model.Magazine;

and in the public class I add:

private Magazine magazine;

and it says that Private field 'magazine' is never assigned. So what should I do to get the magazine.getTitle() running?

Thanks.

Classes could not be found

Hi

I followed the tutorial for create an app with baker android (https://github.com/bakerframework/baker-android/wiki/Creating-your-own-Baker-Android-Project), but when I try to launch I get this error:

    java.lang.RuntimeException: Unable to instantiate activity      ComponentInfo{com.verdant.testing.app/com.verdant.testing.app.MainActivity}:     java.lang.ClassNotFoundException: com.verdant.testing.app.MainActivity
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2034)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
        at android.app.ActivityThread.access$700(ActivityThread.java:140)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:4921)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
        at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: com.verdant.testing.app.MainActivity
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
        at android.app.ActivityThread.access$700(ActivityThread.java:140)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137) 
        at android.app.ActivityThread.main(ActivityThread.java:4921)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
        at dalvik.system.NativeStart.main(Native Method)

Then I found rendering problems:

   The following classes could not be found:
   - com.baker.abaker.views.CustomWebView (Fix Build Path, Edit XML, Create Class)
   - com.baker.abaker.views.CustomWebViewPager (Fix Build Path, Edit XML, Create Class)

Can anyone help me with this??

Grettings

CORS...

Hello Francisco
Just testing, but I have just seen that any html file inside the book that tries to load a local file or resource (via javascript, jquery etc...) cant be loaded because the CORS restriction.
¿is there a way of disabling this in the code for Baker Android?
if not.. it's going to be difficult to implement things....
(I know this is something to do with chrome etc.. Safari does not have it)

Strange problem with file Hpub

I happily created the Baker Android app, following the instructions
Everything works regularly with the test hpub files
Unfortunately, now that I must to publish on GooglePlay I receive an error downloading the file Hpub of my magazine
The problem is that the file Hpub is the same one used for the iOS Baker version and is located in the same location and the same server
Any idea to solve?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.