ActionBarSherlock & ViewPagerIndicator - IDEs, Libraries, & Programming Tools

Hi.
I am trying to use ViewPagerIndicator & ActionBarSherlock in one package. But I get a famous error :
"R can't be resolved to a type."
To fix it I have done the following tricks :
1- I have copied the android-support-v4.jar from my project to ABS & VPI's libs folder.
2- I have deleted the jar from my project.
But yet it's not working & has the problems.
Can anybody help me ?
Thanks in advanced.

torpedo mohammadi said:
Hi.
I am trying to use ViewPagerIndicator & ActionBarSherlock in one package. But I get a famous error :
"R can't be resolved to a type."
To fix it I have done the following tricks :
1- I have copied the android-support-v4.jar from my project to ABS & VPI's libs folder.
2- I have deleted the jar from my project.
But yet it's not working & has the problems.
Can anybody help me ?
Thanks in advanced.
Click to expand...
Click to collapse
If you are developing with eclipse, go to project properties, -> android , notice the bottom section there something like add library, add the ABS bin folder there. Thus it creates a dependancy to another library project instead of copying jar. Was it setup that way in ur project? As it needs reference to the R file and Res folder in those library (ABS).

torpedo mohammadi said:
Hi.
I am trying to use ViewPagerIndicator & ActionBarSherlock in one package. But I get a famous error :
"R can't be resolved to a type."
To fix it I have done the following tricks :
1- I have copied the android-support-v4.jar from my project to ABS & VPI's libs folder.
2- I have deleted the jar from my project.
But yet it's not working & has the problems.
Can anybody help me ?
Thanks in advanced.
Click to expand...
Click to collapse
You got an "R can't be resolved to a type." error ... SO ... all you have to do is first check if any of your XML Files have any errors in them .. And then do a Make Clean ... The error should now disappear ... :fingers-crossed:

Eclipse or Android Studio? If Eclipse, do you have Build-Tools installed? If Android Studio, which version are you using?
Sent from my GT-S5830M using Tapatalk 2

I have done all these. (Using last adt bundle)
But again android.support.v4.ViewPager can't be solved.
Can anybody help me ?
Thanks.

Related

D9 - error in program ?

Hi
I have just downloaded the 3.17 modified rom from Jeff's kitchen and using the installer file had it successfully installed into my xda. Firstly- thanks to all xda developers and Jeff for an excellent piece of work.
Only one question though- the D9 (single handed dialer program) don't seem to work- when I tap on it at the launcher, phone folder and even the entry in the windows folder, it showed a message:
"Application error- Cannot find extension file pvbDecl.dll Please run setup to restore the file ".
I tried cold booting a few times and the same thing happens.
Is there something I should do to get it running or do I need to redownload the exe file from Jeff's kitchen?
Hope someone could kindly help.
Thanks
Vic
Looks like a problem with that installation, no point in redownloading. Probably if you create a ROM that has PocketCHAT also, all will be well.
Hi XDA Developer,
Thanks for quick reply. Interestingly, I have included the Pocket Chat software in the rom and now that you mentioned it, I tried clicking on it and the same message comes out; asking for the same file pvbDecl.dll and suggesting to run setup again.
Any clues how to work this out?
Cheers
Vic
its a VB app so it needs that dll file. xda-developers just add the file to the package
alex
Hi Alex,
Could you please elaborate a little bit more on what you described?
Where do I get the dll file?
Cheers
Vic
pvbDecl.dll is a part of VB runtime libraries. here is more info and fix http://www.creativelogichome.com/gen_faq.htm
alex
pvbDecl.dll is a part of VB runtime libraries. here is more info and fix http://www.creativelogichome.com/gen_faq.htm
Click to expand...
Click to collapse
But that page just tells you 're-install' the software causing the problem. It looks like the vb dll wasn't included in the ROM build. I've just used Jeff's ROM kitchen and am getting the same error.
Anyone actually found a copy of the dll and knows 'where to stick it' ??
Fuzzy

NoClassDefFoundError

hi,
i' trying to use an external library in my android sourcecode, but i fail at executing after successful compiling with a "NoClassDefFoundError"
i set the CLASSPATH to the external JAR File i want to use, and imported that jar file as a library, but still the same error.
what is missing, or where am i wrong?
please help
Agassiz said:
i set the CLASSPATH to the external JAR File
Click to expand...
Click to collapse
And how do you do that? As far as I know Java does not have an API to modify CLASSPATH at runtime.
oh i forgot to mention, that i use Eclipse to code android apps
ok after adding a JAR file into my project (not a library - like i did before), the time to build the workspace takes a very long time... everytime i type ctrl+s for saving even one new character, the workspace is being rebuilt, that takes about 5 to 10 seconds... thats really annoying...
Agassiz said:
hi,
i' trying to use an external library in my android sourcecode, but i fail at executing after successful compiling with a "NoClassDefFoundError"
i set the CLASSPATH to the external JAR File i want to use, and imported that jar file as a library, but still the same error.
what is missing, or where am i wrong?
please help
Click to expand...
Click to collapse
Copy the jar you are using into a folder in your project, such as assets.
In eclipse:
right click on your project.
Go to properties.
Click on java build path.
Click on the libraries tab
Click add JAR
Select your JAR and press ok. press ok to exit the project properties.
Your application should now find the class you are looking for.
corruptor64 said:
Copy the jar you are using into a folder in your project, such as assets.
In eclipse:
right click on your project.
Go to properties.
Click on java build path.
Click on the libraries tab
Click add JAR
Select your JAR and press ok. press ok to exit the project properties.
Your application should now find the class you are looking for.
Click to expand...
Click to collapse
hey thanks a lot this worked out.
but eclipse is very slow now. if i remove the JAR file it runs fast like always... the jar file's size is just 3,6MB :/

Emulator loading worng images

building a Game for Android ..
i deleted some Images from the Res folder on drawable-hdpi/ldpi/mdpi
refreshed
now when i load the program on the emulator it loads diffrenet images..
Progeam : Eclipse
SDK : Level 8 (2.2)
anyone had this problem b4 thanx for any help
Problem Sloved :
Remove any Images from the Res Directory.
Delete R.java manually move/copy back all the images to the directories
hit refresh in Eclipse ..
R.java will be created again and it works
Another way to accomplish this if you're using Eclipse to develop in is to go to "Project > Clean". This will delete your R.java file and force a rebuild.

[Utility][Tool]baksmali/smali

- What is baksmali/smali?
smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. The syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.)
The names "smali" and "baksmali" are equivalents of "assembler" and "disassembler" respectively.
- Author of the tool
JesusFreke
- Why we need it?
Android apk and jar files will include java classes to execute certain functionality. With baksmali, you will be able to disassemble the java classes into editable form (smalis) so you can do your editing and modding involving java script. Once you done changing, you need to assemble all classes to a readable form for android, i.e, classes.dex and here comes the role of assembler (Smali).
Since we have apk manager, do we still need this tool?
Yes and No!!! Because some apk managers even if they do support jar files but once they decompile smalis, they will remove some lines (.line, .parameter, ...etc) which are in my opinion are useful to locate some codes. So the choice is yours.
- What does this tool do?
Simply it baksmali classes.dex of android apk and jar files into editable form (smalis) to do your changes; then assemble it back (smali).
- Will it affect apk and jar original signature?
No, it will preserve original signature.
- Got problem?
During assembling (smali), you may got error message. You can check log file to locate what is wrong that make the manager stop assembling the file or post the log file for developers to look into it.
- What are the steps to work with this tool?
Run Baksmali_tool.bat file, this will create all needed folders in the first run.
1. Put android apk or jar file in "put-file-here" folder. If Current-file status is set to None, then either you need to set a file in option #3 or you forget putting valid file in "put-file-here" folder.
2. When Current-file status is set to your file, you can disassemble its classes.dex by option #1.
3. Classout folder with name of file project will be created in "project" folder; make your changes there.
4. If finished your changes, assemble classout folder by option #2.
5. If everything is OK, a new file will be created in "finish" folder with tag (Modded_) in its name, push it to your device by option #3 if it was system apk or jar; and if it was non system apk file, install it by option #4.
- Latest stable version
Latest stable baksmali/smali version: 2.2.2 (30.10.2017)
baksmali v. 2.2.2 - Download (bitbucket.org)
smali v. 2.2.2 - Download (bitbucket.org)
baksmali/smaly previous versions - Download (bitbucket.org)
- Latest beta version
Latest beta baksmali/smali version:
- Changelog
baksmali/smali wiki and changelog (github)
- Where can I download latest source code?
You can visit
baksmali/smali source page (github)
and you can download the latest smali and baksmali code versions.
- Special Thanks to XDA Portal Team
Special thanks to XDA Portal Team for featuring this utility
XDA Portal Team
..
hi m8,
thanks for this nice tool
will try it next time I make a new theme
sent from my G-Note
great work majd keep it up
no credit to the author of smali/baksmali? :/
iBotPeaches said:
no credit to the author of smali/baksmali? :/
Click to expand...
Click to collapse
I think the authers are these guys ([email protected], [email protected], JesusFr.. @gmail.com) from project page.. aren't they??? if so I will update OP
majdinj said:
I think the authers are these guys ([email protected], [email protected], JesusFr.. @gmail.com) from project page.. aren't they??? if so I will update OP
Click to expand...
Click to collapse
Yes, thats the same person. I'd just put JesusFreke, as thats his username.
Version 1.1 is online
version 1.2 is online
some bugs fixed
Grate dev, Great tool...tnx majdini:fingers-crossed:
What a great idea to simplify life ^^.
Thanks majdinj.
majdinj said:
Backsmali / Smali Manager​
What is Backsmali / Smali?
smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. The syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.)
The names "smali" and "baksmali" are equivalents of "assembler" and "disassembler" respectively.
Why we need it?
Android apk and jar files will include java classes to execute certain functionality. With backsmali, you will be able to disassemble the java classes into editable form (smalis) so you can do your editing and modding involving java script. Once you done changing, you need to assemble all classes to a readable form for android, i.e, classes.dex and here comes the role of assembler (Smali).
Since we have apk manager, do we still need this tool?
Yes and No!!! Because some apk managers even if they do support jar files but once they decompile smalis, they will remove some lines (.line, .parameter, ...etc) which are in my opinion are useful to locate some codes. So the choice is yours.
What does this tool do?
Simply it backsmali classes.dex of android apk and jar files into editable form (smalis) to do your changes; then assemble it back (smali).
Will it affect apk and jar original signature?
No, it will preserve original signature.
Got problem?
During assembling (smali), you may got error message. You can check log file to locate what is wrong that make the manager stop assembling the file or post the log file for developers to look into it.
What are the steps to work with this manager?
Run Backsmali_tool.bat file, this will create all needed folders in the first run..
1. Put android apk or jar file in "put-file-here" folder. If Current-file status is set to None, then either you need to set a file in option #3 or you forget putting valid file in "put-file-here" folder.
2. When Current-file status is set to your file, you can disassemble its classes.dex by option #1.
3. Classout folder with name of file project will be created in "project" folder; make your changes there.
4. If finished your changes, assemble classout folder by option #2.
5. If everything is OK, a new file will be created in "finish" folder with tag (Modded_) in its name, just rename it to its original name and push it to your device; don't forget to fix permissions as well.
If backsmali and smali code are outdated, what to do?
Just visit codes owner page, and download the latest smali and backsmali code versions and put them in "tools" folder (make sure to rename them to baksmali and smali without version number)
Future development?
Feel free to report any bugs or suggestion to improve upcoming releases :good:
Download
- Backsmali-Manager_v1.2 @ 11/June/2013 (The most recent one)
- Backsmali-Manager_v1.1 @ 7/June/2013 (old)
- Backsmali-Manager_v1 @ 6/June/2013 (old)
Change-log:
@ 11/June/2013 (v1.2):
- Fixed bug of file path in Read Log option.
- Fixed number 10 file that was not shown in Set Current-file option.
@ 7/June/2013 (v1.1):
- Deleting the folder and file in project and finish folder of same project name before backsmali or smali (no more overlapping :fingers-crossed.
- Added Read log file functionality in the main menu.
- Ability to open classout folder after backsmali.
- Ability to open finish folder after smali.
- Ability to renamed finished modded file to its original name.
- Neat smali and compression processing (i.e, hidden processing ).
- Fixed set Current-file option to visualize only apk and jar files.
@ 6/June/2013 (v1.0):
- First release of Backsmali / smali manager
Click to expand...
Click to collapse
i don't know how to start editing this smali file
badagila said:
i don't know how to start editing this smali file
Click to expand...
Click to collapse
Editing smali means to modify your jar or apk file to do certain new function, check the second thread in my signature in OP... you will find a lot editing tutorials of smalis of some android apps :laugh:
majdinj said:
Editing smali means to modify your jar or apk file to do certain new function, check the second thread in my signature in OP... you will find a lot editing tutorials of smalis of some android apps :laugh:
Click to expand...
Click to collapse
ok dude thanks
Hi, your work is featured here: http://ajqi.com/baksmali-smali-manager-windows-tool/
Keep it up!
VERY NICE!
Good Work..
I dont know much about smali backsmali.. but one confusion..
Is this tool also applicable if the files (apks or jars) we want to modify are odexed?
OJ said:
Good Work..
I dont know much about smali backsmali.. but one confusion..
Is this tool also applicable if the files (apks or jars) we want to modify are odexed?
Click to expand...
Click to collapse
No, actually classes.dex are made from the odex files.
If files are odexed, then there will be no classes.dex in apks or jar files. That's why it won't be applicable then
Version 1.3 is online
Change log:
- Added adb push finished file to device system partition (for system files).
- Ability to choose whether to reboot device after pushing files to device.
- Added adb install finished apk (for non-system files).
- Adjustable Java heap memory size.
- Adjustable finished file compression level.
- Updated Smali and Backsmali codes (date 15/6/2013).
@ 23/June/2013 (v1.4):
- Added Pull apk or jar From Android Device to the main menu.
- Added zipaligning process during Smali (better RAM management).
- Fixed apk installing process (added signing process step for installing apk process).
- Added direct link to this xda page in update option.
- More script polishing...
@ 29/June/2013 (v1.5-FINAL):
- Fixed adb remount bug for some ROMs in push option.
- Baksmali argument is updated; now you can choose whether to baksmali with x argument (retain .line, .parameter, .prologue, and .local) or b argument (remove .line, .parameter, .prologue, and .local).
Hi,
i've XP&Backsmali / Smali Manager v1.5 and i want baksmali framework.jar but i got error message(attachment)
I think wrong is slash (should be a backslash)
the same error is after i select 1(baksmali*)and then x and Y or
--------------------------------------------------------------and then b and Y
*baksmali or backsmali?

Help - Adding org.jboss.netty to my application?

I'm trying to write server-sent event protocol and I want to use the org.jboss.netty to my app.
1. Is it a good practice to use this folder in android application?
2. How can I add this package?
Thanks,
Dudu
you can add netty jar file in libs folder of you android project

Categories

Resources