Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Hi you write on my answer of the same theme this:</p> <blockquote> <p>I have already asked the same question in this thread HERE, but didnt yet got any response. Got only one answer but it was not helped me.</p> <p>Let see whether it help you. HERE</p> <p>If you have done with it then please answer me in my thread. I will definitely appreciate you.</p> </blockquote> <p><em>Now I konw how to do it, i had to apply reverse ingeneering and decompile an .apk from the market, using dex2jar on linux and next opening jar with java decompiler... Try this... when u write this command:</em></p> <blockquote> <p><code>out.write(str.getBytes(),0,str.getBytes().length);</code></p> </blockquote> <p>U are sending to the method an byte[] array, u can modify format sending another byte[] array before send the real byte[] array... </p> <p>The default format byte[] array is this:</p> <blockquote> <p><code>byte[] arrayOfByte1 = { 27, 33, 0 };</code></p> </blockquote> <p>So u can try this:</p> <blockquote> <p></p> </blockquote> <pre><code>byte[] format = { 27, 33, 0 }; out.write(format); out.write(str.getBytes(),0,str.getBytes().length); </code></pre> <p>These lines i'll print u the default format text, but uf u do it: </p> <pre><code> byte[] format = { 27, 33, 0 }; format[2] = ((byte)(0x8 | arrayOfByte1[2])); out.write(format); out.write(str.getBytes(),0,str.getBytes().length); </code></pre> <p>It will print text in bold style... U can try this oter format arrays:</p> <pre><code> // Bold format[2] = ((byte)(0x8 | arrayOfByte1[2])); // Height format[2] = ((byte)(0x10 | arrayOfByte1[2])); // Width format[2] = ((byte) (0x20 | arrayOfByte1[2])); // Underline format[2] = ((byte)(0x80 | arrayOfByte1[2])); // Small format[2] = ((byte)(0x1 | arrayOfByte1[2])); </code></pre> <p>Too u can combine it, then if u like little and bold text, uncomment these array asignements, for example:</p> <pre><code> byte[] format = { 27, 33, 0 }; // Bold format[2] = ((byte)(0x8 | arrayOfByte1[2])); // Height format[2] = ((byte)(0x10 | arrayOfByte1[2])); // Width format[2] = ((byte) (0x20 | arrayOfByte1[2])); // Underline // format[2] = ((byte)(0x80 | arrayOfByte1[2])); // Small // format[2] = ((byte)(0x1 | arrayOfByte1[2])); out.write(format); out.write(str.getBytes(),0,str.getBytes().length); </code></pre> <p>This last code prints que biggest text size... I hope this can helps u...</p> <p>Pdta: sorry for my english</p> <p>Pdta2: <strong>I'm trying to print images, u know how??</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload