{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
View attachment SomcPhone.rar
It would be very helpful if u could remove the reject call message section too on stock calling screen .. Its very irritating i believe you would have to edit in res/layout/reject_msg_bar. xml
therishabh said:
It would be very helpful if u could remove the reject call message section too on stock calling screen .. Its very irritating i believe you would have to edit in res/layout/reject_msg_bar. xml
Click to expand...
Click to collapse
Set the width and height to 0.0dip. It will work.
Plus you can also remove it from In_Call_Ringing_Panel.xml
abhi007.john said:
Set the width and height to 0.0dip. It will work.
Plus you can also remove it from In_Call_Ringing_Panel.xml
Click to expand...
Click to collapse
The thing is I have tried several times of removing the reject call sms panel but everytime during recompiling i get an error....the weird thing is even if i do not make any changes in the apk, i still get the error during recompile....
Code:
C:\Users\Rishabh\Desktop\apk\call>apktool d SomcPhone.apk
I: Using Apktool 2.0.0 on SomcPhone.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Rishabh\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Rishabh\apktool\framework\2.apk
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\Rishabh\Desktop\apk\call>apktool b SomcPhone
I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Rishabh\Desktop\apk\call\SomcPhone\res
values-mcc454-mnc1000
invalid resource directory name: C:\Users\Rishabh\Desktop\apk\call\SomcPhone\res
values-mcc454-mnc1000-zh-rCN
invalid resource directory name: C:\Users\Rishabh\Desktop\apk\call\SomcPhone\res
values-mcc454-mnc1000-zh-rHK
invalid resource directory name: C:\Users\Rishabh\Desktop\apk\call\SomcPhone\res
values-mcc454-mnc1000-zh-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Rishab
h\AppData\Local\Temp\brut_util_Jar_6376136292418700971.tmp, p, --forced-package-
id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --
version-name, 4.2.2-Android.1016, -F, C:\Users\Rishabh\AppData\Local\Temp\APKTOO
L7057712566037271340.tmp, -0, arsc, -I, C:\Users\Rishabh\apktool\framework\1.apk
, -I, C:\Users\Rishabh\apktool\framework\2.apk, -S, C:\Users\Rishabh\Desktop\apk
\call\SomcPhone\res, -M, C:\Users\Rishabh\Desktop\apk\call\SomcPhone\AndroidMani
fest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Rishabh\AppData\Local\Temp\brut_util_Jar_63761362924187
00971.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-vers
ion, 17, --version-code, 17, --version-name, 4.2.2-Android.1016, -F, C:\Users\Ri
shabh\AppData\Local\Temp\APKTOOL7057712566037271340.tmp, -0, arsc, -I, C:\Users\
Rishabh\apktool\framework\1.apk, -I, C:\Users\Rishabh\apktool\framework\2.apk, -
S, C:\Users\Rishabh\Desktop\apk\call\SomcPhone\res, -M, C:\Users\Rishabh\Desktop
\apk\call\SomcPhone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Rishabh\
AppData\Local\Temp\brut_util_Jar_6376136292418700971.tmp, p, --forced-package-id
, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ve
rsion-name, 4.2.2-Android.1016, -F, C:\Users\Rishabh\AppData\Local\Temp\APKTOOL7
057712566037271340.tmp, -0, arsc, -I, C:\Users\Rishabh\apktool\framework\1.apk,
-I, C:\Users\Rishabh\apktool\framework\2.apk, -S, C:\Users\Rishabh\Desktop\apk\c
all\SomcPhone\res, -M, C:\Users\Rishabh\Desktop\apk\call\SomcPhone\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:413)
... 6 more
i would be greatly thankful if anyone could recompile and remove the Reject Call With Message Option
delete those four folders giving the error.
It won't have any effect. And it will recompile without any error.
abhi007.john said:
delete those four folders giving the error.
It won't have any effect. And it will recompile without any error.
Click to expand...
Click to collapse
Deleting those 4 folders recompiles the apk without any error but it ruins the call receiving function.....whenever someone calls the call receiving screen is skipped by default and every incoming call gets picked up automatically without displaying the call receiving screen(the one with option to slide and pick up call and reject call with option option).....Help would be greatly appreciated, This is the stock deodexed SomcPhone.apk if you can please remove the Reject Call With Message Option
therishabh said:
Deleting those 4 folders recompiles the apk without any error but it ruins the call receiving function.....whenever someone calls the call receiving screen is skipped by default and every incoming call gets picked up automatically without displaying the call receiving screen(the one with option to slide and pick up call and reject call with option option).....Help would be greatly appreciated, This is the stock deodexed SomcPhone.apk if you can please remove the Reject Call With Message Option
Click to expand...
Click to collapse
I never faced this issue. And the folders you removed are just for language support.
Perhaps you messed up with the xml files.
Here is my Somcphone. from 15.3.A.1.17, deodexed and zipaligned.
Replace this with yours and set correct permissions.
And hit thanks button if it works
abhi007.john said:
I never faced this issue. And the folders you removed are just for language support.
Perhaps you messed up with the xml files.
Here is my Somcphone. from 15.3.A.1.17, deodexed and zipaligned.
Replace this with yours and set correct permissions.
And hit thanks button if it works
Click to expand...
Click to collapse
It works perfectly :good::good::highfive:
Related
Hi,
I am trying to find where the application icons are stored, or some way of assigning the correct icon in an XML file.
I am editing the 3D Box "3D Box.config" file and there I can create new drawers with new applications and their corresponding icons. But I don't know the location of the program icons.
Here is an excerpt of the XML file:
Code:
<KnownAppDrawer DrawerName="Video">
<KnownApplication FriendlyName="Core Player" Path="\Program Files\CorePlayer\player.exe" ImagePath="\Program Files\CorePlayer\player.exe"/>
<KnownApplication FriendlyName="TCPMP" Path="\Program Files\TCPMP\player.exe" ImagePath="\Program Files\TCPMP\player.exe"/>
<KnownApplication FriendlyName="vTap" Path="\Program Files\vTap\vTap.exe" ImagePath="\Program Files\vTap\vTap.exe"/>
<KnownApplication FriendlyName="YouTubePlayer" Path="\Program Files\youtubeplay\youtubeplay.exe" ImagePath="\Program Files\youtubeplay\youtubeplay.exe"/>
</KnownAppDrawer>
<KnownAppDrawer DrawerName="Entertainment">
<KnownApplication FriendlyName="One Seg TV" Path="\Windows\OneSegL.exe" ImagePath="applications\icon_oneseg.png"/>
<KnownApplication FriendlyName="Windows Media Player" Path="\Windows\wmplayer.exe" ImagePath="applications\icon_mediaplayer.png"/>
<KnownApplication FriendlyName="Camera" Path="\Windows\ShCamera.exe" ImagePath="applications\icon_shcamera.png"/>
<KnownApplication FriendlyName="Images and Video" Path="\Windows\pimg.exe" ImagePath="applications\icon_imagevierwer.png"/>
<KnownApplication FriendlyName="Bubble Breaker" Path="\Windows\BubbleBreaker.exe" ImagePath="applications\icon_bubblebreaker.png"/>
<KnownApplication FriendlyName="Solitaire" Path="\Windows\solitare.exe" ImagePath="applications\icon_solitaire.png"/>
<KnownApplication FriendlyName="E-Book Reader" Path="\Windows\XMDFViewer.exe" ImagePath="applications\icon_bunkoviewer.png"/>
</KnownAppDrawer>
The VIDEO drawer is one that I created. As you can see for the below original drawer, the icons are in a folder called "applications". I was unable to find such a folder anywhere on the device, nor the icons individually.
I tried assigning the path as in the Start Menu .lnk files but this doesn't work.
Any ideas much appreciated.
PS. 3D Box is an Emobile application found on Sharp's Em One device - but I am pretty sure the app. can be installed on other devices that have robust graphics accelerators. http://3dbox.eaccess.net/external/download/pages/3dbox/index.html (the red button on the right)
In the case of Solitaire and Bubblebreaker the icons are embedded in the .EXE file itself. They are created in Visual Studio or Embedded C++ as .ICO files (Very similar to .BMP files). By default you get the standard Windows executable icon. (Attached)
When the project is built the resource compiler creates a single compiled resource file containing icons, menus, string tables, dialogs etc and builds it into the final executable at link time.
Something like Buddy Icon Grabber will allow you to extract them as bitmaps or ICO files, but the real problem is that Windows Mobile will not let you open executable files in ROM, you can only 'run' them.
Thanks for explaining.
But how do I actually go about assigning value to the ImagePath variable? There is no such folder "applications" and I do not have the program icons anywhere else.
All the programs I want to add to this new "drawer" are either in Program Files or in miniSD/Program Files, but there is no separate icon for every program.
The method applied when creating Start Menu shortcuts - just pointing the path to the .exe file doesn't work here.
Apparently I can can assign icons in the XML file, just need to figure out how to extract the icon from the EXE file.
The "breakthrough" I've had is quite funny: I tried assigning the shortcut link as an icon
Code:
<KnownApplication FriendlyName="CorePlayer" Path="\Program Files\CorePlayer\player.exe" ImagePath="\Windows\Start Menu\Programs\CorePlayer.lnk"/>
And this cute yellow duck is what I got, never mind which program's shortcut I add:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need to get your hands on Reshacker; it's easy to add or exchange icons to an .exe or .dll with it. Also, you can convert .png files to .ico file with icofx.
You can also change icons on your device with SK Shortcut manager.
Farmer Ted said:
You need to get your hands on Reshacker; it's easy to add or exchange icons to an .exe or .dll with it. Also, you can convert .png files to .ico file with icofx.
You can also change icons on your device with SK Shortcut manager.
Click to expand...
Click to collapse
Thanks! I downloaded ResHacker and PE Explorer today - just started working with them/learning how to, so I guess it will take a bit before I can add/exchange icons.
I don't know about everyone else but I absolute love the FM Radio on my Nexus One!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For those who are curious it came installed and working by default on the CM6 Nightly build tonight and it works great reception is clear and crisp, especially sounds awesome through my Bose speakers:
It's neat that the FM Radio was finally implemented..and kudos to the team who's done it.. but I personally think it's pointless, I only listen to my music. Radio sucks nowadays..
UI needs to be de-MIUI-ified
G1-evolve said:
It's neat that the FM Radio was finally implemented..and kudos to the team who's done it.. but I personally think it's pointless, I only listen to my music. Radio sucks nowadays..
Click to expand...
Click to collapse
I am exactly the opposite I have NO personal music and never will, I only listen to Pandora and now the local FM Radio!
There are actually a lot of FM Radio shows/music where I live where you can not find the music anywhere else.
Hell yes. I'm currently running CM6 final, how do I get this nightly build?
http://mirror.teamdouche.net/?device=passion&type=nightly
CentralMoNexusOne said:
Hell yes. I'm currently running CM6 final, how do I get this nightly build?
Click to expand...
Click to collapse
G1-evolve said:
http://mirror.teamdouche.net/?device=passion&type=nightly
Click to expand...
Click to collapse
I like to use ROM Manager Premium
ROM Manager Premium in action (you'll need the latest version Build #204):
For this to work your headphones is used as the antenna. The button with the Chinese symbols switches between speaker and headphones for the sound output.
AbsoluteDesignz said:
UI needs to be de-MIUI-ified
Click to expand...
Click to collapse
Something like that?
http://twitpic.com/2xbrnm
I found this screenshot browsing randomly. I hope to see it early in the CM.
JD82 said:
Something like that?
http://twitpic.com/2xbrnm
I found this screenshot browsing randomly. I hope to see it early in the CM.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=808263
CentralMoNexusOne said:
For this to work your headphones is used as the antenna. The button with the Chinese symbols switches between speaker and headphones for the sound output.
Click to expand...
Click to collapse
exactly, or in the case when I plug in my Bose speakers, they are used as an antenna.
Can somebody post the apk please? Or is it more complicated than that?
I pulled the FM.apk from the CM 204 nightly but launching it on my Nexus One with stock rooted FRG83 force closes:
Code:
E/AndroidRuntime(19823): java.lang.NoClassDefFoundError: android.hardware.fmradio.FmConfig
E/AndroidRuntime(19823): at com.android.fm.radio.FmSharedPreferences.<init>(FmSharedPreferences.java:168)
E/AndroidRuntime(19823): at com.android.fm.radio.FMRadio.onCreate(FMRadio.java:277)
E/AndroidRuntime(19823): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(19823): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime(19823): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime(19823): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime(19823): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime(19823): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(19823): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(19823): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(19823): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(19823): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(19823): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(19823): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime(19823): at dalvik.system.NativeStart.main(Native Method)
I guess I need the whole ROM.
footboydog said:
I pulled the FM.apk from the CM 204 nightly but launching it on my Nexus One with stock rooted FRG83 force closes:
Code:
E/AndroidRuntime(19823): java.lang.NoClassDefFoundError: android.hardware.fmradio.FmConfig
E/AndroidRuntime(19823): at com.android.fm.radio.FmSharedPreferences.<init>(FmSharedPreferences.java:168)
E/AndroidRuntime(19823): at com.android.fm.radio.FMRadio.onCreate(FMRadio.java:277)
E/AndroidRuntime(19823): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(19823): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime(19823): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime(19823): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime(19823): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime(19823): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(19823): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(19823): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(19823): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(19823): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(19823): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(19823): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime(19823): at dalvik.system.NativeStart.main(Native Method)
I guess I need the whole ROM.
Click to expand...
Click to collapse
Technically you need the kernel, but it's safer to just go with the whole ROM. The stock kernel for N1 doesn't support FM radio at all.
I may be wrong, but I believe it is more than just the kernel. I think they had to include some of the MIUI framework within the ROM in order for it to work.
Okay. Does the quality of the headset affect the reception? I'm using a cheap-ass pair of in ear plugs and I get horrible reception. Maybe it's because I'm inside a building (gym)? Haven't tested it anywhere else.
NexuSix said:
I like to use ROM Manager Premium
[IM G]http://forum.xda-developers.com/attachment.php?attachmentid=419266&d=1287030251[/IM G]
ROM Manager Premium in action (you'll need the latest version Build #204):
[IM G]http://lh4.ggpht.com/_wj75JfyDVxs/TLaGlinb19I/AAAAAAAAAfE/wwM4YMoPlMY/CAP201010132126.jpg[/I MG]
Click to expand...
Click to collapse
wrong its there since 203
SiNJiN76 said:
Okay. Does the quality of the headset affect the reception? I'm using a cheap-ass pair of in ear plugs and I get horrible reception. Maybe it's because I'm inside a building (gym)? Haven't tested it anywhere else.
Click to expand...
Click to collapse
Given that it's acting as your antenna, the quality of the wires in said headset could probably effect your signal, tho sitting inside a building is probably the bigger killer here. I used mine inside all day yesterday and when I was at my desk near a window, plugged into a cheapy set of desktop speakers it was working pretty well (for handful of stations at least). Other places in the office not so much, but I did a test last night outside with a short (about 1 foot) cut off cable plugged in and outside it was working surprisingly well. YMMV.
DarkFM Morph
Made a morph to look more modern check it out:
Still have some refining to do but like it so far! What do you all think?
Can be found HERE!
Okay, I know about this FM radio thing and I am not that tech savvy, BUT, what about AM radio? Is it even possible? I mean I understand that you gotta have the hardware in the phone to somehow enable it and I know the N1 don't have it. But why do they not make a phone that can pick up AM radio?
My first Android app, mostly to fix a lack of vertical launchers in the Market. I'd love to know what you think of it!
Upcoming updates
First priority: hiding apps.
Second priority: running apps and more
Update: Added an icon to indicate apps in external storage.
Click to expand...
Click to collapse
Third priority: long press menu (app info and whatnot)
Click to expand...
Click to collapse
JetPack is an app launcher that is scrollable like Contacts: slide to the right letter and pick your app! Simple, efficient and much easier to read than a grid layout.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Jetpack is an application drawer replacement that can be used with your favorite launcher. Instead of using the standard grid layout, Jetpack displays your apps in a list to make them easier to find. Just like in Contacts, you can use the scrollbar to get to a specific letter in the list.
This application is not a home replacement, only an application launcher. To use it, create a shortcut on your home screen or your dock.
Click to expand...
Click to collapse
https://market.android.com/details?id=com.nicolasb.shuttle
Now if you put there keyboard with T9 searching, that will be good idea! (Like in Touchpal Dialer for example, but for apps).
I had the same idea! That being said, it's my first app and I need to practice a bit.
I quite like it. It's a bit laggy but I think that's due to the sheer amount of apps I have installed. It's certainly quicker to load than appdrawer.
What I think will make this better is to have letters running along side, it should make jumping to the apps much quicker. In case you don't know what I'm taking about, have a look at ios and miui contacts.
Thank you for the work you put in on this, I will be using it myself .
Best of luck with the development.
I like the idea.
Things I wish to brainstorm:
1)
on the right there's so much space. It's cool and fine, but perhaps something can be done with it...
for example, based on already logged infos (just the ones BetterBatteryStats uses), you could show a mini-icon on the right of those apps who are wakelocking too much. This way, users know which apps do tey need to report/look for a replacement, easy.
Concept is:
Your app is all about the apps. Perhaps, it could be even more, by providing slick, non-intrusive, only-where-needed informations.
2)
an option to add a (very) little more padding between rows
3)
an option to 1.5x icons size
4)
For particular apps, like gMail, an icon to go directly to "Compose new mail", maybe only text, maybe even only when the 1.5x option os on.
Nice app and idea. A bit of lag on tmobiles galaxy s2. Also a letter selection would be good like on stock touchwiz.
——————————
Deebo took your bike too?
It does have some lag but i think that I'd because off the transparency, you might want to try going without or at least having an option. I've noticed the same thing with themes that have a transparent background in various menus that seem to lag but when i go back to an opaque theme its smooth. But other than that its very nice. I can see this bring my app drawer replacement.
Some suggestions!
Add the ability to completely replace the app drawer with it.
Increase icon and text size.
Add the letters on the side like in contacts.
Add searching to the features.
Add a background option.
Optimize it a bit. Slightly laggy on my Motorola Photon.
Still a great start! I cannot wait for it to become more known!
Aww crud:
Code:
E/AndroidRuntime(25714): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nicolasb.shuttle/com.nicolasb.shuttle.AppList}: java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime(25714): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1768)
E/AndroidRuntime(25714): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
E/AndroidRuntime(25714): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
E/AndroidRuntime(25714): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
E/AndroidRuntime(25714): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(25714): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(25714): at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime(25714): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(25714): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(25714): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime(25714): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime(25714): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(25714): Caused by: java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime(25714): at java.lang.String.substring(String.java:1651)
E/AndroidRuntime(25714): at com.nicolasb.shuttle.AppAdapter.<init>(AppAdapter.java:40)
E/AndroidRuntime(25714): at com.nicolasb.shuttle.AppList.onCreate(AppList.java:22)
E/AndroidRuntime(25714): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(25714): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
E/AndroidRuntime(25714): ... 11 more
W/ActivityManager( 173): Force finishing activity com.nicolasb.shuttle/.AppList
Update
This will happen if you have installed an app that doesn't have a proper name, only a package name.
this is quite nice thus far...
my only suggestion would be to have the ability to hide apps....
That would have been my second priority (after performance is fixed), but it seems search takes the cake. I also want to hide a few apps in there.
jasonevil said:
this is quite nice thus far...
my only suggestion would be to have the ability to hide apps....
Click to expand...
Click to collapse
And add that to the list of my suggestions!
I like this app launcher very much.
The features i would like to see have already been said by others, keep up the good work.
cyansmoker said:
Aww crud:
Code:
E/AndroidRuntime(25714): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nicolasb.shuttle/com.nicolasb.shuttle.AppList}: java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime(25714): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1768)
E/AndroidRuntime(25714): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
E/AndroidRuntime(25714): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
E/AndroidRuntime(25714): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
E/AndroidRuntime(25714): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(25714): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(25714): at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime(25714): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(25714): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(25714): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime(25714): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime(25714): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(25714): Caused by: java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime(25714): at java.lang.String.substring(String.java:1651)
E/AndroidRuntime(25714): at com.nicolasb.shuttle.AppAdapter.<init>(AppAdapter.java:40)
E/AndroidRuntime(25714): at com.nicolasb.shuttle.AppList.onCreate(AppList.java:22)
E/AndroidRuntime(25714): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(25714): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
E/AndroidRuntime(25714): ... 11 more
W/ActivityManager( 173): Force finishing activity com.nicolasb.shuttle/.AppList
Update
This will happen if you have installed an app that doesn't have a proper name, only a package name.
Click to expand...
Click to collapse
This is now fixed (or at least should be). Thanks for the heads up!
Application updated to 1.1:
Considerable performance improvements
Bigger icons
Search and type-to-search
Click to expand...
Click to collapse
Oops! Forgot to click "Activate"!
1.1 is now up on the Android Market. If it's not yet updated in your browser, use the download link in the first post.
Good update. Just a suggestion for faster search. When pushing the searchbutton insted of a searchbar there is a grid with letters that shows, then you just tap the letter for the app name your looking for. Kinda like windows phone 7 has for contacts.
Thanks
Nick_Hrh said:
Good update. Just a suggestion for faster search. When pushing the searchbutton insted of a searchbar there is a grid with letters that shows, then you just tap the letter for the app name your looking for. Kinda like windows phone 7 has for contacts.
Thanks
Click to expand...
Click to collapse
That's on my priority list! I also noticed searching is too many taps away. Instead I might just pop the keyboard or use T9 to "dial" apps.
Hi guys, this Tutorial is mainly intended for looking into some other concepts like GUI of Android development. The concept of "Toast" would be actually covered.
First you have to do this (Create a HelloWorld app) : [TUT] Making a HelloWorld App Step by Step w/pictures. - Tutorial created by rezo609
After you've created your first HelloWorld app, its time for some additional tasks!
(NOTE:- Make sure you've set your AVD already)
I know some of you guys are wondering what a Toast is, well here's the answer: Click Me!
Starting development :
Step 1: The first thing we are going to accomplish is changing the strings.xml (Path:- AppName > res > values > strings.xml) file to add another node under app_name. We will do this by copying the node above it and pasting the copied material directly under the last </string> element. Then we will change the name of the string to press and in between we will write Press Me!. Next we will alter the hello node and change the text to say Enter Your Name Here: instead of Hello Android, Hello World!.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Step 2: Next step, is to design the GUI (Graphical User Interface). To do this navigate to main.xml (Path:- AppName > res > layout > main.xml) and we are going to go over what everything does up to this point. Set your main.xml file as shown in the below picture.
Make sure you've set the Orientation as vertical, otherwise ie, if its horizontal maybe the GUI controls won't be shown when the app is run.(in an HVGA Emulator, or maybe its me) Anyways you are free to toggle between vertical/horizontal and see what happens.
Click to expand...
Click to collapse
Step 3: Now this is a tricky step, and it includes Java code modifications. I suggest you to google to know exactly what all these codes means be it functions, classes, methods, objects or imports. You can refer the Wiki or the Oracle docs if you want to learn more about Java. Anyways for keeping this Tutorial simple, just modify the Java file (Path:- AppName > src > com.example.helloworld > HelloWorldActivity.java) as shown in the below picture.
I'll also give it as CODE, but don't just copy-paste. If you run into massive errors or problems only, do that. Its better to type the codes by yourself and see what all AutoFill options/suggestions are given by Eclipse. Anyways try to correct the errors by yourself, it maybe only a spelling-mistake, but you have to identify it where.
Code:
package com.example.helloworld;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import android.view.View.OnClickListener;
import android.content.Context;
import android.view.View;
public class HelloWorldActivity extends Activity {
EditText helloName;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Capture our button from layout
Button button = (Button)findViewById(R.id.go);
// Register the onClickListener with the implementation above
button.setOnClickListener(maddListener);
}
// Create an anonymous implementation of OnClickListener
private OnClickListener maddListener = new OnClickListener() {
public void onClick(View v) {
long id = 0;
// Do something when the button is clicked
try {
helloName = (EditText)findViewById(R.id.helloName);
Context context = getApplicationContext();
CharSequence text = "Hello " + helloName.getText() +"!";
int duration = Toast.LENGTH_LONG;
Toast toast = Toast.makeText(context, text, duration);
toast.show();
}
catch(Exception e) {
Context context = getApplicationContext();
CharSequence text = e.toString() + "ID = " + id;
int duration = Toast.LENGTH_LONG;
Toast toast = Toast.makeText(context, text, duration);
toast.show();
}
}
};
}
Click to expand...
Click to collapse
Step 4: After doing all these above mentioned tasks, its time for the output. Be sure to click "Save All" (Ctrl+Shift+S) button in the Eclipse. Also make sure your Project is free from errors, otherwise it would not run. You can also clean your Project (Some errors maybe automatically fixed) by navigating to Project > Clean...
Right Click your Project > Run As > 1 Android Application
Your Emulator would start, and you'll see in the Eclipse as apk installing, running etc..
If your Project is a Success, you'll get the output as shown in the below picture:
Click to expand...
Click to collapse
And that's it
I hope you enjoyed this tutorial. Its made as simple as possible and omitted some theories from the Original source. You can get to it, and see the xml parts explained.
After you have succeeded in this app, head over to next Tutorial : Create your First Widget Step by Step
Thanks for this.
This is great!!
Sent from my HTC Wildfire S using xda premium
Welcome guys, hope you guys tried/will try and get successful.
Tutorial now featured at XDA-Portal : Here
Thanks to the Author.
So I decided to look at this. I've got everything as you have above but I have errors.
Current errors are in the following lines:
Code:
Button button = (Button)findViewById(R.[COLOR="Red"]id[/COLOR].go);
Code:
helloName = (EditText)findViewById(R.[COLOR="red"]id[/COLOR].helloName);
The error states: id cannot be resolved or is not a field
If I follow the listed fixes it places lines in the R.java. However, I then get errors on go and helloName for which there are no listed fixes.
Still looking to see if I can find it myself but wanted to tell you about this to see if it was just me (probably) or a missing section in the info above.
EDIT: Sigh. It's amazing what missing one line will do to you. This was my fault. Forgot to add the Press me string and it created these errors. Working great now.
blazingwolf said:
So I decided to look at this. I've got everything as you have above but I have errors.
Current errors are in the following lines:
Code:
Button button = (Button)findViewById(R.[COLOR="Red"]id[/COLOR].go);
Code:
helloName = (EditText)findViewById(R.[COLOR="red"]id[/COLOR].helloName);
The error states: id cannot be resolved or is not a field
If I follow the listed fixes it places lines in the R.java. However, I then get errors on go and helloName for which there are no listed fixes.
Still looking to see if I can find it myself but wanted to tell you about this to see if it was just me (probably) or a missing section in the info above.
EDIT: Sigh. It's amazing what missing one line will do to you. This was my fault. Forgot to add the Press me string and it created these errors. Working great now.
Click to expand...
Click to collapse
please check the imports ...
if you find line import android.R; ... remove it and then clean build....
blazingwolf said:
EDIT: Sigh. It's amazing what missing one line will do to you. This was my fault. Forgot to add the Press me string and it created these errors. Working great now.
Click to expand...
Click to collapse
There you are
Actually we should edit all the XML files first like android:id="@+id/go" and it will show error in XML file for sure (Because id can't be found anywhere) but finally when you code the java file, and when the id is referenced, all errors will be gone
Anyways the R.java file can't be modified manually. It will revert back to original state if you do so, that is even if you apply the suggested fixes by Eclipse.
pmapma1 said:
please check the imports ...
if you find line import android.R; ... remove it and then clean build....
Click to expand...
Click to collapse
Actually unnecessary imports will not cause the application to malfunction. It will only use more resources based on program. Eclipse will give a warning to remove unused imports, as its not used anywhere.
Hi there,
I've been wondering this so I thought I'd ask here since it seems nice and n00b friendly ;-)
I was wondering if you could tell me if there's any direct benefit to creating an OnClickListener in Java instead of using the android:OnClick="" attribute for the layout and having it go to a specified method.
Thanks,
Tom
TommiTMX said:
Hi there,
I've been wondering this so I thought I'd ask here since it seems nice and n00b friendly ;-)
I was wondering if you could tell me if there's any direct benefit to creating an OnClickListener in Java instead of using the android:OnClick="" attribute for the layout and having it go to a specified method.
Thanks,
Tom
Click to expand...
Click to collapse
Benefit?! ... Hmm !!
It all depends upon the logic of the programmer that he/she is comfortable with. Actually there will be many methods or many ways we can create for the same process. But as this is just a Tutorial/Illustration application, we don't know exactly what its effects. Maybe in real time application there maybe some beneficiaries. Just we need to sort it out to know.
can you make a tutorial how to make a background process? Or service of somekind.
E.g. process that shows blue led while BT is on
thanks in advance!
Shmarkus said:
can you make a tutorial how to make a background process? Or service of somekind.
E.g. process that shows blue led while BT is on
thanks in advance!
Click to expand...
Click to collapse
I'll definitely try, but can't guarantee when because I'm also a learning candidate in Android app development. So making Tutorials, that I've already learned and tried. Once I've learned about it, I'll of course include the Tutorial for it.
why we need try/catch for one-way trigger? ... what in toast can throw exception?
Flowyk said:
why we need try/catch for one-way trigger? ... what in toast can throw exception?
Click to expand...
Click to collapse
Well, I just checked myself by removing the try-catch block, and yes you are right as no exceptions are actually caught. Anyways the code is not actually written by me, and if you checked the original source you'd have known that.
And Thanks for the point mate. Maybe I'll review the code from next time onwards.
np ... im just learning
Error?
FIXXED
This is basic guide to start to off app development for android..........
This is just a basic guide and not a comprehensive one which covers the whole lot of it but a rather a guide to get a basic simple app of your own running without any issues
Requirements
A bit of java
linux , darwin or a windows 7 machine
internet connection
basic idea of how programming works
sdk with atleast one api installed and configured path
Part 1 setting up everthing and explaining used variables and terms
Now let's get started
[windows}
Download eclipse as any other software and install it by the .exe file and follow the instructions
(linuc macosx )
if you are on a older ditribution of linux the minimum required version of eclipse 3.6 is not supplied via ubuntus main repository ....
so you need to download it from the eclipse official website and install it....
[common}
Installing ADT(Android developer tools) plugin
open up eclipse
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
Configure the ADT Plugin
Once Eclipse restarts, you must specify the location of your Android SDK directory:
In the "Welcome to Android Development" window that appears, select Use existing SDKs.
Browse and select the location of the Android SDK directory you recently downloaded.
Click Next.
If you haven't encountered any errors, you're done setting up ADT and can continue to Next Steps.
the path to the sdk is case sensitive and absolute so be careful guys....
Now you have virtually everything set up to start building apps
go to file>new>project>android>android application project
something like this will pop up
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
now
the first three fields are yours to choose
now the second part
The build sdk is the sdk that you are targeting in laymans words its like building a building on a certain specific site.....
the minimum required sdk
now if choose this as froyo(api 8) your app will run on froyo os and above and will be compatible with older flavours of android....
once you are done creating a new project hit finish
now you will see something like this
now the calculator is my app name the name that you gave a few minutes ago will be yours...
Now the android is basically divided into three main things
The android manifest
The src folder
The xml
The android manifest basically is a traffic police in lay mans words
it determines which activity comes first when it ends etc...
note:i will be referring the xml to a activty
the src folder contains all of your java
xml's are the skeltel system of android they define the size layout colour or the whole look of your android project....
Note: dont tinker with the gen folder you alone will be responsible for your mistakes
in this tutorial you will be working with only src,res and xml's as i cant dig deeper into it because its a subject too broad to teach....
now lets get started
navigate to res > layout double click on main_activty.xml
below the screen click on activty_main.xml next to graphical layout...
something like this will appear
HTML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/hello_world"
tools:context=".MainActivity" />
</RelativeLayout>
this is the text appearing to you
Note this is auto generated....
now i will explain each line of it with my limited knowledge
HTML:
]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
This is the auto generated refernce by eclipse yours may vary and might not be same as mine
HTML:
android:layout_width="match_parent"
android:layout_height="match_parent"
now you can see that the layout is set to match_parent by deafult
match_parent utilizes the whole screen into your layout...
and observe this guys the
HTML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
the relative layout has started with <relativelayout and ended with > anything code started should be finished up by > or />
both are literally same
now the next junk of code to deal with
HTML:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/hello_world"
tools:context=".MainActivity" />
Textview is basically a method by google to display some text on the screen...
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
These two lines suggest that your app has both vertcal and horizontal layout
android:text="@string/hello_world"
this is the text being displayed on your graphical layout
now go to layout > values > strings.xml
double click it
you will see something like this
now basically strings are resource files used to show text on display...
the string name cant have any spaces if it has then u will see errors
but the value of the string can have spaces
Activity
change the text in value field and see the result in graphical layout of the xml
now you basically need to use strings for each and every text that has to be displayed.......
End of part 1
Part 2
Adding of buttons and modifying them
now guys lets add some buttons to our project
navigate to src
in that you will find a java file open it (.java)
you will find something like this
HTML:
package com.exmple.addandsubract;
import android.R;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class Layout extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_item);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_layout, menu);
return true;
}
}
now you might be wondering what is this crap code ...
now lets add buttons
navigate into layout open up the xml
your screen will show up this
HTML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/hello_world"
tools:context=".MainActivity" />
</RelativeLayout>
now within the closing of relative layout
copy paste this
HTML:
<Button
android:id="@+id/bsub"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="79dp"
android:text="@string/sub" /
every button must have an id for our convenience we have added a bsub as our program is to add and subtract a number
HTML:
android:layout_width="match_parent"
the layout width specifies the size of the width of the button
as i have said before match_parent is to occupy the whole screen..if you want it smaller you can set it in dp(density pixels)
HTML:
android:text="@string/sub"
you cant hard code stuff into the button u need to refernce it to a string i have referred it to the string sub
for this to work it requires you to add a string by the name sub in strings.xml
now do the same code again for button add
after this you will have something like this showing up
now that we have our button's set up we need to make this work (in real add java to it)
to accomplish this we need to link xml's to java
this may sound like greek and latin but guys stick with it u will understand everything
now below
HTML:
public class Layout extends Activity {
type this
HTML:
int counter=0;
Button add,sub;
TextView display;
as u may all know we should define a variable before we use them
as we are working with number (basically integars we use integar to define them
now we basically define display as textview
now coming to the real java part
HTML:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_item);
after this chunk of code
type
HTML:
counter=0;
the counter is the number which should be displayed on the screen for us
i have decided to start with 0 you can set it to any number that you prefer
now type this
HTML:
add = (Button) findViewById(R.id.badd);
sub = (Button) findViewById(R.id.bsub);
what this basically says is that add is a button and its id(in the xml) is badd.. findviewbyid is the method for referencing
now its the same for sub button too
HTML:
display = (TextView) findViewById(R.id.textView1);
this will set our display to textview1 which is our activity.xml this may sound as bloat to you but its handy when working with many xmls
now type
HTML:
add.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
display.setText("Your total is " + counter );
}
});
sub.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
display.setText("Your total is " + counter );
}
});
i will explain what this does
HTML:
add.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
display.setText("Your total is " + counter );
}
});
type add. then all lists will popup select onclicklistener(this makes the button clickable)
within the brackets of onclicklistener type new(as its a new button) leave a space type view.onlclicklistener(again you will see popups
now what is between this two brackets is what happens when the button is clicked now add this in between these brackets
HTML:
add.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
counter=counter+1;
display.setText("Your total is " + counter );
}
});
sub.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
counter=counter-1;
display.setText("Your total is " + counter );
}
});
HTML:
counter=counter-1;
this decrements the counter value by 1
after the counter is decremented we need to change the display to show the value of it
we do that by typing this
HTML:
counter=counter-1;
display.setText("Your total is " + counter );
now do this for both buttons test the app on emulator
Have doubts comment below
liked the thread rate it that gives me moral confidence and motivation
1st reserved op has plans of increasing
reservation
2nd
one final one for the day... :cyclops:
thanks! :good:
its to the point and very precise!
View attachment HelloWorld.apk
how do i add an icon? mine is the default andy.
And is it possible to open an app (eg launcher pro) in eclipse and mod it as per my wish?
Harryhades said:
thanks! :good:
its to the point and very precise!
View attachment 1401833
how do i add an icon? mine is the default andy.
And is it possible to open an app (eg launcher pro) in eclipse and mod it as per my wish?
Click to expand...
Click to collapse
There are two ways to add icon after giving the package name in the next menu you can change the icon....or go re drawabl-hdpi and replace the icon.png by the one that u want it should be case sensitive and it should be the same text....
For the 2nd question
yes you can mod these apps i have tried adw from cm'r repo but it should work with launhcer pro to btw the app has to deodexed.....
Thanks
Thanks bro i have started developing one :good:
completing the guide this sunday
I realize this is a few years old but I'm new to developing apps and I been trying to get this to work so that I can add a number to a number stored in a database. The number is put in the database via "edittext". When I try this my number gets replaced with "false" when I hit the add button.
Sent from my LG-LS995 using XDA Free mobile app