javascript - @JavaScriptInterface to work with both ICS and JB projects -


i running issue @javascriptinterface annotation requirement support api 15 (ics) , 17 (jb). have android library project shared 2 application projects. library project contains webview-related classes javascript interfaces. application projects, 1 of them targets api 15 while other targets api 17. our requirement/contraint since use customized android sdk.

the problem how make library project works both application projects. if library project targets api 15, cannot have @javascriptinterface annotation means javascript callback not work api 17 application project.

on other hand, if library project targets api 17, not work api 15 application project because application project cannot link library project higher api level.

any suggestion on how have javascript interface classes in library project work both api 15 , api 17 application projects?

any suggestion on how have javascript interface classes in library project work both api 15 , api 17 application projects?

set android:targetsdkversion less 17, @javascriptinterface not applied until set android:targetsdkversion 17 or higher. then, skip @javascriptinterface.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -