Eclipse LogCat shows only the first letter from each message - android

I installed android SDK and plugin on eclipse 4.4, and LogCat shows only the first letter from each message.
an screenshot:
The problem is probably in eclipse as I can see the LogCat well while running 'adb logcat'.
I tried to restart eclipse, adb, and changing LogCat fonts.

Here is how to fix it:
exit eclipse
open up the file
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
Then cut and paste this in over the existing
ddms.logcat.automonitor.level=error
ddms.logcat.automonitor=false
ddms.logcat.automonitor.userprompt=true
logcat.view.colsize.Level=54
eclipse.preferences.version=1
logcat.view.colsize.Application=169
logcat.view.colsize.Time=156
logcat.view.colsize.Tag=124
logcat.view.colsize.PID=54
logcat.view.colsize.Text=590
Restart eclipse

I'm creating a new answer since I don't have enough rep to comment on #claganga, that is , modifying the file on workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
I'm using Eclipse Mars M4 and after trying the solution above with some variations I still could see a single column - although I could change from the single letter from debug level to TID's 4 digits.
However after having tried the following I got an important improvement:
ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor=false
ddms.logcat.automonitor.userprompt=true
eclipse.preferences.version=1
logcat.view.colsize.Application=169
logcat.view.colsize.Level=54
logcat.view.colsize.PID=54
logcat.view.colsize.Tag=198
logcat.view.colsize.Text=619
logcat.view.colsize.Time=182
I'm not sure if it was moving the version line up, or removing the trailing spaces, but it started making a difference.
Now I can see Level, Time, PID, Application, Tag and Text. I'm not sure how they're supposed to change their order, but at least I can resize them with a mouse now.
However I noticed the horizontal scroll bar is still completely stuck to 100%, meaning what's out of sight is out of reach. Anyway, it's good enough for me right now.
Some important things I noticed: a) don't leave trailing spaces in any of those lines - when I copy/pasted there were some. And b) order is important , though I don't know why or how.

I had the same problem on Eclipse 4.5.0(Mars Release), i tried #claganga 's solution but didn't work for me at first.
Here is my addition to the solution that worked for me :
Exit eclipse
Open up the file
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
Just add those lines save, close it. Restart eclipse, wait for it until loading workspace. Then Exit.
ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor=false
ddms.logcat.automonitor.userprompt=true
logcat.view.colsize.Level=54
eclipse.preferences.version=1
Open up the file at step 2 again, add the lines below step 5 one at a time. After adding one line save&close it. Restart eclipse, wait for it until loading workspace. Then Exit.
Repeat the process at step 4 again for the second line, third line etc.
logcat.view.colsize.Application=169
logcat.view.colsize.PID=54
logcat.view.colsize.Tag=198
logcat.view.colsize.Text=619
logcat.view.colsize.Time=182

Like #Fabio says, don't leave trailing spaces in any of the property lines.
This is very important!!!
After ensuring that, you can customize the colsize of each col of these(I don't know if there're others, but I've met only these):
logcat.view.colsize.Application
logcat.view.colsize.Level
logcat.view.colsize.PID
logcat.view.colsize.TID
logcat.view.colsize.Tag
logcat.view.colsize.Time
logcat.view.colsize.Text
You don't need to care about the order of these properties because eclipse will sort them according to the alphabet.
I don't know the situations in the other systems or machines, but in my Ubuntu system, the minimum sum of all colsizes is 942. And you can set your colsize beyond that which will cause the horizontal scroll bar to display not 100%.
Hope my advice can help someone:)

If you use Eclipse Andmore the file for this problem is:
org.eclipse.andmore.ddms.prefs

For me all solutions worked after adding the attribute:
logcat.view.colsize.Text
If it was missing, only the level was shown. This attribute is missing in the marked correct answer.

Just edit the file below:
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
Would u please try this out:
please delete the spaces at the end of each line ,it will work.
(Most importantly, make sure there is not any space at the end of each line):
com.android.ide.eclipse.ddms.adbDebugBasePort=8600
com.android.ide.eclipse.ddms.explorer.info=68
com.android.ide.eclipse.ddms.explorer.name=94
com.android.ide.eclipse.ddms.explorer.permissions=68
com.android.ide.eclipse.ddms.explorer.size=44
com.android.ide.eclipse.ddms.explorer.time=34
ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor=false
ddms.logcat.automonitor.userprompt=true
devicePanel.Col0=319
devicePanel.Col1=38
devicePanel.Col4=61
eclipse.preferences.version=1
emulatorControl.track.name=155
emulatorControl.waypoint.name=95
heapPanel.col0=1276
logcat.view.colsize.Application=133
logcat.view.colsize.Level=44
logcat.view.colsize.PID=44
logcat.view.colsize.TID=44
logcat.view.colsize.Tag=98
logcat.view.colsize.Text=712
logcat.view.colsize.Time=131
logcat.view.filters.list=name\: 'com.android.settings', tag\: '', text\: '', pid\: '', app\: 'com.android.settings', level\: 'verbose', name\: 'ActivityManager', tag\: 'ActivityManager', text\: '', pid\: '', app\: '', level\: 'verbose',
logcat.view.font=1|Sans|11.0|0|GTK|1|;
threadPanel.Col0=24
threadPanel.Col1=37
threadPanel.Col2=61
threadPanel.Col3=34
threadPanel.Col4=34
threadPanel.Col5=272
threadPanel.stack.col0=503

These are not the first letters from the messages.
These are the level flags: V (for verbose), D (for debug), etc.
Do you see that bottom scroll bar? Scroll it to the right.
Then resize the columns by clicking and dragging the separator between the headers. Do not grab the separator between the column themselves where the content is, grabbing there won't work. Also, you must reduce the size of the first column to make room for the others. And right-click on the header itself to add/remove columns.

goto your logcat move your bottom scroll bar towards right then on top you can drag your LEVEL section towards left and make room for other section it will surely work

The settings that worked for me are the following:
ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor=true
ddms.logcat.automonitor.userprompt=true
eclipse.preferences.version=1
logcat.view.colsize.Application=169
logcat.view.colsize.Level=54
logcat.view.colsize.PID=54
logcat.view.colsize.Tag=198
logcat.view.colsize.Text=676
logcat.view.colsize.Time=156
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs

I replaced/overwrote the com.android.ide.eclipse.ddms.prefs file:
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
with one from a previous Eclipse installation. It worked. This is the content:
com.android.ide.eclipse.ddms.explorer.data=82
com.android.ide.eclipse.ddms.explorer.info=1193
com.android.ide.eclipse.ddms.explorer.name=663
com.android.ide.eclipse.ddms.explorer.permissions=94
com.android.ide.eclipse.ddms.explorer.size=58
com.android.ide.eclipse.ddms.explorer.time=46
ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor.userprompt=true
devicePanel.Col0=378
devicePanel.Col1=56
devicePanel.Col4=1273
eclipse.preferences.version=1
logcat.view.colsize.Application=98
logcat.view.colsize.Level=67
logcat.view.colsize.PID=54
logcat.view.colsize.TID=54
logcat.view.colsize.Tag=168
logcat.view.colsize.Text=1001
logcat.view.colsize.Time=196

1) exit eclipse
2) open up the file
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs
3) Input false vlaue for your arbitrarily parameters

Related

KivyMD, can't see icons in android but works on linux

I'm just created .apk file with buildozer.But as i said in topic, can't see any icon on device.Everything works and looks fine in Linux. But in device,all icons are blank. This is my buildozer.init requirements: (my ndk,sdk,minapi,ndk_api values are default)
requirements = python3,kivy==1.11.1,https://github.com/kivymd/KivyMD/archive/master.zip
If i use kivymd==0.104.1, i can see icons in android but can't use some commands like : MDTab.get_tab_list() , MDTab.switch_tab() (I asked that problem before in here.So i have to use master branch version because i need to switch MDTabs after some button clicks.But now,i can't see any icon.Is that bug or can someone help me ? Thank you..
(Last note: Im removing .buildozer file before change requirements versions.)
Set correct dependencies in buildozer.spec- https://github.com/kivymd/KivyMD/commit/df73810cc725e4575c93bc4cbbb72f67ff568dc1

Atrributes Selection is NOT working on Android browsers 4.x

I have a problem with attributes (PrestaShop 1.6)
http://www.zapateriamiqueca.es/ropita/20-leotardos-condor.html
If you click on Choose Size (Talla): from any browser (Chromme, Firefox...) but on Android 4.x o 5.x it works right, but... if you click on Choose Size: from android 4.x browser default it opens the options to select from then closes it straight away.
I followed these instructions:
Open up product.tpl inside your themes folder and look for:
<select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="form-control attribute_select no-print">
2- Comment out form-control after class so it looks like:
<select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="attribute_select no-print">
3- Then to add your global.css file inside your {your_theme}/css Add the following to make it look go again (The numbers after group vary per website, so take a look which group number is being used for you attribute selector):
select#group_3.attribute_select {width: 60%!important;}
select#group_1.attribute_select {width: 60%!important;}
I managed to get up to modifying the product.tpl but I'm not sure where to copy the code lines in point 3, in order to maintain the attribute selection style.
I also don't know where to look for my group number. I really would appreciate your help.
Thank you for yout time! ;-)
If you look at your source code you'll find:
<select name="group_3" id="group_3" class="form-control attribute_select no-print">
So your groupName id for this value is group_3 as in the example.
You need to edit this file /themes/Calisto/css/global.css and add this line at the end before saving:
select#group_3.attribute_select {width: 60%!important;}
I'm not saying it will work to solve your problem, but that's what your instructions say.

"andr" tab completes to "_xrandr" instead of android or nothing

I am running osx and installed oh-my-zsh as well, if that's relevant.
Anyway, if I type in something like "andr" and hit tab to complete it, it autocompletes to _xrandr instead of doing nothing (android isn't in my path). I'm not really sure why.
Any idea why that might be the case?
oh-my-zsh sets up completion to look for completions on the left side of the typed word if there are none on the right side.
This happens in ~/.oh-my-zsh/lib/completion.zsh:
## case-insensitive (all),partial-word and then substring completion
if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
unset CASE_SENSITIVE
else
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
fi
The important part here is 'l:|=* r:|=*'. If you dislike this behavior, you just have to remove this from zstyle ':completion:*' matcher-list. The best way to do this, is to create a file in ~/.oh-my-zsh/custom with extension .zsh, for example own-completion.zsh:
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*'
This is for case insensitive completion, if you do not want this either, also remove 'm:{a-zA-Z}={A-Za-z}'.
You could change it in ~/.oh-my-zsh/lib/completion.zsh directly, but it will probably be overwritten once you update oh-my-zsh.

Android Bootstrap not displaying icons in button

I implemented Android Bootstrap library:
https://github.com/Bearded-Hen/Android-Bootstrap
Everything works fine, but icons in buttons are not displayed.
I add font-awesome file into asset folder, but still without successful result.
How can be this solved?
Thanks for any help.
Try what it worked for me, make sure that "android-support-v4.jar" file in libs folder (assuming that you're working in eclipse) is the same copy in AndroidBootstrap library project and your project.
This might only partially solve your problem, you might have problems with the icon not displaying when you change orientation (landscape/portrait) and there might be better solution, but this is my quick fix:
in OnResume add:
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE){
bbYourButton1.setLeftIcon("fa-heart");
bbYourButton2.setRightIcon("fa-twitter");
}
If there is a problem loading the font, you should get the reason in the log cat, as we can see in com / beardedhen / androidbootstrap / BootstrapButton.java at line 343
Log.e("BootstrapButton", "Could not get typeface because " + e.getMessage());
So, go to the logcat and see if you can understand what happened.
Anyways, the better start point is to import the AndroidBootstrapTest project and see if everything works.
Just copy fontawesome-webfont.ttf into assets folder of your project.

image won't show in tableView

I'm creating a tableView in appcelerator (Android) and I want to add an image to it. This is just a test because I also had some problems with it in my project and I wanted to try it out first somewhere else so I wouldn't ruin my whole project.
I first added the standard png's to see if he would show those, and he did. But when I add a png that I've created, he refuses to show it in the tableView. Does someone know why he refuses to show the image? (I created that png in photoshop by changing one of the standard png's and adding my image to it.)
var win = Titanium.UI.createWindow({
title:'tableViewRow',
backgroundColor:'#fff'
});
var regData = [
{leftImage:'KS_nav_ui.png', title:'gft', left:20, color:'black'},
{rightImage:'KS_nav_views.png', title:'grofvuil', left:20, color:'black'},
{leftImage:'glas.png', title:'glas', left:20, color:'black'}
];
var tbl = Titanium.UI.createTableView({
data:regData
});
win.add(tbl);
win.open();
Here's an image of the result I get in my android emulator (android api: Google APIs Android 2.2 and screen:HVGA)
If you are using AppC 1.8, you may just need a forward slash in your path '/'. (or backward if Windows)
I've solved it. What I did is I ran the application in an android amulator. I closed the app and went back to the homescreen (where you can save some apps). I pressed on menu and went to the settings. Than I went to applications. I opened 'manage applications' and remove the application. I closed the emulator and ran it again and the images were shown.
I don't know why you have to do it, but it worked for me. I hope I can save someone the frustration by posting the answer (I know I had them :D)

Categories

Resources