no title bar

by Jags » Thu, 26 Nov 2009 00:16:40 GMT


Sponsored Links
 I dont want title bar in my application, how to remove that ? in my
activity ?

Jagat

--



no title bar

by Matthias » Thu, 26 Nov 2009 00:20:20 GMT


 call requestWindowFeature(Window.FEATURE_NO_TITLE) before calling
setContentView() OR set it as part of a style definition
(android:windowNoTitle="true").




--


Sponsored Links


no title bar

by Dianne Hackborn » Thu, 26 Nov 2009 01:42:36 GMT


 Or, best, set your activity to one of the no title themes, like
Theme.NoTitleBar.





>



no title bar

by Jags » Thu, 26 Nov 2009 14:31:42 GMT


 Theme.NoTitleBar is predefined ? which tag it should be embedded
with ?

android:windownoTitle="true" which tag it should be associated with ?
Activity and Application refuse to take it !





> >



no title bar

by Dianne Hackborn » Thu, 26 Nov 2009 14:36:41 GMT


 <activity ...
    android:theme="@android:style/Theme.NoTitleBar" />







> > >



no title bar

by Jags » Fri, 27 Nov 2009 17:55:33 GMT


 thanks. actually i am in a typical situation where i need to hide
title bar for a screen, and show for another screen [i mean xml
layout] in the same activity. Is it possible programmatically doing
it ?

another thing is, when titlebar is sown, can i show the title text at
the center ?

regards






> > >



no title bar

by Ian Guedes Maia » Fri, 27 Nov 2009 20:39:13 GMT


 > another thing is, when titlebar is sown, can i show the title text at

Extending the default theme and overriding WindowTitle's
android:gravity doesn't work -- there's an issue about that:
 http://code.google.com/p/android/issues/detail?id=4395 
One workaround is to replace the title using
setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title). The
custom_title with gravity=center works.

--



Other Threads

1. Questions to google support. Obfuscation.

Hi,
I noticed that in the LVL library you recommend to obfuscate out code.

Why don't you make a small guide on how to obfuscate your APK? :)
I'm trying with this target into my buil-impl.xml file in the post-
compile section  using netbeans project and the apk is correctly
obfuscated but it launch a force close when starting the software.

<target name="optimize" depends="compile">
          <jar basedir="${outdir-classes}" destfile="temp.jar"/>
          <java jar="${proguard-home}/proguard.jar" fork="true"
failonerror="true">
                  <jvmarg value="-Dmaximum.inlined.code.length=32"/>
                  <arg value="-injars temp.jar"/>
                  <arg value="-outjars optimized.jar"/>
                  <arg value="-libraryjars ${android-jar}"/>
                  <!-- <arg value="-libraryjars ${library-jar}/
some_lib_used.jar"/> -->
                  <arg value="-dontpreverify"/>
                  <arg value="-dontoptimize"/>
                  <arg value="-dontusemixedcaseclassnames"/>
                  <arg value="-repackageclasses ''"/>
                  <arg value="-allowaccessmodification"/
                  <arg value="-keep public class MAIN CLASS"/>
                  <arg value="-optimizationpasses 1"/>
                  <arg value="-verbose"/>
                  <arg value="-dontskipnonpubliclibraryclasses"/>
                  <arg value="-dontskipnonpubliclibraryclassmembers"/>
          </java>
          <delete file="temp.jar"/>
          <delete dir="${outdir-classes}"/>
          <mkdir dir="${outdir-classes}"/>
          <unzip src="optimized.jar" dest="${outdir-classes}"/>
          <delete file="optimized.jar"/>
  </target>

-- 

2. Intents in broadcastrecievers

hi,
i wanted to place an intent in broadcastreceiver ,
by which i can call other applications.
<code>
  public void onReceive(Context context, Intent intent)
    {
        //---get the SMS message passed in---
        Bundle bundle = intent.getExtras();
        SmsMessage[] msgs = null;
        String str = "";

        if (bundle != null)
        {
            //---retrieve the SMS message received---
            Object[] pdus = (Object[]) bundle.get("pdus");
            msgs = new SmsMessage[pdus.length];
            for (int i=0; i<msgs.length; i++){
                msgs[i] =
SmsMessage.createFromPdu((byte[])pdus[i]);
                str += "SMS from " +
msgs[i].getOriginatingAddress();
                str += " :";
                str += msgs[i].getMessageBody().toString();
                str += "\n";
            }
            //---display the new SMS message---
            Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
            Intent intent3 = new Intent(Intent.ACTION_CALL);
                        intent3.setData(Uri.parse("tel:5556"));
                context.startActivity(intent3);
         }
</code>
the above code does't work.can any1 help me out

-- 

3. getting 'permission denied' when trying to write to a file

4. R: Good news: Google started removing spam from the market, (finally). :-)

5. Format ext3 sd card

6. Adding custom column to contacts

7. Programmatically install free applications in android market