Trial License Key invalid on Shinobi Datagrid Android


#1

Hi,

I try Shinobi Datagrid on Android (Android Studio) but I get a little problem with the trial license. Here the log :

E/AndroidRuntime: FATAL EXCEPTION: main
  Process: com.example.supranusasindata.myapplication, PID: 15630
  com.shinobicontrols.grids.core.InvalidTrialLicenseException: Problem with RSA license key code - check your license key.
  at com.shinobicontrols.grids.core.ShinobiGridView.n(SourceFile:322)
  at com.shinobicontrols.grids.core.ShinobiGridView.onLayout(SourceFile:333)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:437)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
  at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
  at com.android.internal.policy.DecorView.onLayout(DecorView.java:730)
  at android.view.View.layout(View.java:17689)
  at android.view.ViewGroup.layout(ViewGroup.java:5575)
  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2346)
  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2068)
  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6343)
  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
  at android.view.Choreographer.doCallbacks(Choreographer.java:686)
  at android.view.Choreographer.doFrame(Choreographer.java:621)
  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
  at android.os.Handler.handleCallback(Handler.java:751)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:241)
  at android.app.ActivityThread.main(ActivityThread.java:6274)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Here my code (Kotlin) :

class MainActivity : AppCompatActivity() {

var licenseKey: String = "xXXx-XXxX-xxxx-xXXx-xxXx-xXxx"

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)

    var shinobiGridView = findViewById(R.id.gridView) as ShinobiGridView
    shinobiGridView.setTrialLicenseKey(licenseKey)

    }
}

I get the license key from my email but its say like I get wrong key. Any advice for this error? Thanks in advance


#2

Hi MrX,

Unfortunately it looks like we had mistakenly included an old version of shinobigrids in the Android trial bundle. As we recently made changes to our trial key, your new trial key does not work with the older version of shinobigrids.

We’ve now fixed the issue, so if you follow the “Download the trial again” link in the email containing your trial key, you should get the correct version of shinobigrids (1.1.1-0) in the zip.

Please accept our apologies for the mistake.

Kind regards,

Alison


#3

Hi aclarke,

No problem and thanks for your response. I’ll try to re-download from my email. Thank you.


#4

Hi aclarke,

I have a simpe question, there is grid.reload() in iOS , but I cant find similar like that in Android. How to reload the grid when I have data.

Thanks in advance.


#5

Hi Mr X.
To reload the data in the android shinobi grid, it is a two step process.
1 - Obtain a reference to the GridRecyclerView which contains your data (remember, the header row is also a GridRecyclerView):
shinobiGridView.getDataRecyclerView()

2 - Obtain a reference to the DataAdapter of this GridRecyclerView and notify it that the data has changed:
gridRecyclerView.getAdapter().notifyDataSetChanged();

I hope this is useful to you.
Yours,
Kai.