android


GreenDroid ActionBar error


I am trying create a simple tab activity using GreenDroid, below is my code
public class TabBarActivity extends GDTabActivity {
private static final String TAB1 = "tab_one";
private static final String TAB2 = "tab_two";
private static final String TAB3 = "tab_three";
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle("Screen 2");
Intent intent = new Intent(this, JobActivity.class);
addTab(TAB1, "Tab One", intent);
intent = new Intent(this, ContactListActivity.class);
addTab(TAB2, "Tab Two", intent);
intent = new Intent(this, ParentActivity.class);
addTab(TAB3, "Tab Three", intent);
}
}
I am getting following error...
09-11 11:18:37.571: W/dalvikvm(20395): threadid=1: thread exiting with uncaught exception (group=0x40ee9438)
09-11 11:18:37.601: E/AndroidRuntime(20395): FATAL EXCEPTION: main
09-11 11:18:37.601: E/AndroidRuntime(20395): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cybergeniesolutions.bb/com.cybergeniesolutions.bb.TabBarActivity}: android.view.InflateException: Binary XML file line #27: Error inflating class greendroid.widget.ActionBar
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2114)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.ActivityThread.access$700(ActivityThread.java:143)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.os.Handler.dispatchMessage(Handler.java:99)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.os.Looper.loop(Looper.java:137)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.ActivityThread.main(ActivityThread.java:4963)
09-11 11:18:37.601: E/AndroidRuntime(20395): at java.lang.reflect.Method.invokeNative(Native Method)
09-11 11:18:37.601: E/AndroidRuntime(20395): at java.lang.reflect.Method.invoke(Method.java:511)
09-11 11:18:37.601: E/AndroidRuntime(20395): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
09-11 11:18:37.601: E/AndroidRuntime(20395): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
09-11 11:18:37.601: E/AndroidRuntime(20395): at dalvik.system.NativeStart.main(Native Method)
09-11 11:18:37.601: E/AndroidRuntime(20395): Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class greendroid.widget.ActionBar
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.createView(LayoutInflater.java:619)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:693)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.rInflate(LayoutInflater.java:752)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
09-11 11:18:37.601: E/AndroidRuntime(20395): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:318)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.Activity.setContentView(Activity.java:1924)
09-11 11:18:37.601: E/AndroidRuntime(20395): at greendroid.app.GDTabActivity.onCreate(GDTabActivity.java:52)
09-11 11:18:37.601: E/AndroidRuntime(20395): at com.cybergeniesolutions.bb.TabBarActivity.onCreate(TabBarActivity.java:18)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.Activity.performCreate(Activity.java:5184)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
09-11 11:18:37.601: E/AndroidRuntime(20395): ... 11 more
09-11 11:18:37.601: E/AndroidRuntime(20395): Caused by: java.lang.reflect.InvocationTargetException
09-11 11:18:37.601: E/AndroidRuntime(20395): at java.lang.reflect.Constructor.constructNative(Native Method)
09-11 11:18:37.601: E/AndroidRuntime(20395): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.LayoutInflater.createView(LayoutInflater.java:593)
09-11 11:18:37.601: E/AndroidRuntime(20395): ... 23 more
09-11 11:18:37.601: E/AndroidRuntime(20395): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f01002a a=-1}
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.content.res.Resources.loadDrawable(Resources.java:2239)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.View.(View.java:3419)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.view.ViewGroup.(ViewGroup.java:432)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.widget.LinearLayout.(LinearLayout.java:176)
09-11 11:18:37.601: E/AndroidRuntime(20395): at android.widget.LinearLayout.(LinearLayout.java:172)
09-11 11:18:37.601: E/AndroidRuntime(20395): at greendroid.widget.ActionBar.(ActionBar.java:134)
09-11 11:18:37.601: E/AndroidRuntime(20395): at greendroid.widget.ActionBar.(ActionBar.java:130)
09-11 11:18:37.601: E/AndroidRuntime(20395): ... 26 more

Related Links

Android Custom loader issue
connecting to wifi but don't see anything in phone
What to use instead of SimpleCursorAdapter() in Android Studio- API 23
How cordova/ionic works?
How much phone data used for App connecting to cloud
How to integrate Hacker News REST API in Android [closed]
retrieve arraylist from AsyncTask class object after the doInBackground method is finished
Android OutOfMemoryError when Fragment's onCreateView called
Opening any Location On Google Map with input as coordinates using App Inventor
FloatingActionButton backgroundHint with alpha
In Android, When “include layout” is visible over radio button click, remaining views alignment has changed
Android Toolbar action Icons not completely white
Realm Model update from other thread but should notify adapter
How do i upload files in android?
Qt on Android studio
Android findViewWithTag for views with multiple tags

Categories

HOME
cygwin
fabricjs
gridview
dns
fpga
gpu
formal-languages
edge
simulink
3d-reconstruction
vsm
tvos
data-visualization
trac
webix
nfs
augeas
jquery-ui-sortable
xcodebuild
spring-social
eip
dimensional-modeling
href
named-entity-recognition
event-store
epsilon
maze
motion-detection
ms-access-2003
entity-relationship-model
inversion-of-control
winpe
nsurl
scatter3d
postback
deltaspike
keras-layer
activexobject
numpy-broadcasting
reactivekit
projects-and-solutions
urlsession
laravel-elixir
plr
xmldocument
wc
berkeley-db-je
monkey-testing
builder
facebook-pixel
vugen
java-6
headless
template-toolkit
pybrain
vibrate
vcloud-director-rest-api
docpad
spring-cloud-feign
mediametadataretriever
spreadjs
cda
hadoop-partitioning
libav
grass
realsense
spring-retry
jdi
rate-limiting
opserver
cgi-bin
viola-jones
keyup
java-security
showdialog
angular-gettext
big-ip
mt4j
gd-graph
mysql-error-1044
code-duplication
poker
diem
superscrollorama
virtual-pc
argouml
joomla3.1
mkv
webdev.webserver
easyb
message-passing
filesystemobject
wordprocessingml
scrubyt

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App