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 FlipView Scrolling Back and Front Page with Button
Android bluetooth crashing when normal, but not in debug
Hide navigation bar, android 4.2+
Complext “button” (LinearLayout with child views) with background drawable - on children click doesn't reflect the “state_pressed”
How i can add an event to the calender via android app
Android WebView activity is slow on initial start
how to show list view record into second listview on setOnItemClickListener
Android tcp connection from client
How to start an Android application when phone boots up if a notification has ocurred while switched off?
Android debug after killing the process(activity) manually
Set value of hidden field with corresponding data of item selected from AutoCompleteTextView
Please help me with android debug error
How to call parameter details from a secondary app to de displayed on the primary app?
How to Remove element when Unselected CheckBox in Android?
Android FragmentTabHost popBackStack() caused IllegalStateException Fragment already added
row of listView remains underLined

Categories

HOME
shell
url-redirection
notepad++
fuelux
wakanda
jax-rs
flex
static
devise
seo
google-cloud-functions
spring-data-mongodb
big-o
regular-language
jquery-ui
iis-6
angularfire2
nfs
joomla3.0
pega
plist
nancy
radgridview
zerobrane
azure-powershell
dynamic-sql
null-pointer
html5-appcache
foreign-keys
sencha-touch
jquery-ias
qliksense
roundup
expressionengine3
tiki-wiki
maze
pic32
motion-detection
android-maps
angular-translate
tpm
finagle
alm
kudu
angularjs-material
fstream
android-sugarorm
login-script
pdw-file-browser
servicestack-text
sharepoint-workflow
python-pptx
tex
z-notation
filesystemwatcher
gdata
signals-slots
setup.py
chronicle-map
android-checkbox
phpdbg
ntvs
posixct
trojan
amq
mach-o
shinobi
simplepie
custom-lists
seek
asyncdisplaykit
character-replacement
custom-errors
toran-proxy
xenomai
lazybones
sapscript
omnifaces
node-serialport
osc
mass-assignment
delayed-execution
webmatrix-3
metatrader5
jama
template-deduction
menubar
sbcl
visual-studio-express
scrypt
away3d
ebay-lms
oocss
kogrid
gpars
wp7test
sqlclr
resource-management
device-width
vfs
saleslogix
fitbounds
mysql-error-1205
quotation-marks
dataform
http-daemon
squishit
delimited-text
interprocess
hbm2java
openfaces
burndowncharts
glui
xslcompiledtransform
pbcopy

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