[android-developers] Re: Problem with fragments

2012-09-01 Thread dminik
One more thing, in if -statement =) There is a kind of typo: R.*layout*.container_calendar. The right way it suppose to be is R.*id*.calendar_container... since I'm using findViewById -method =) Noh, at least I found out it. Problem can be marked as SOLVED. -- You received this message becaus

Re: [android-developers] Problem with fragments

2012-09-01 Thread dminik
Yeah, and one more thing, I've removed if -statements. With if -statements it doesn't work. In this case, there is the a problem in manuals... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

Re: [android-developers] Problem with fragments

2012-09-01 Thread dminik
The problem was solved in the same weird way, as it appeared - I've only removed activity_main.xml and now I can see a big calendar and a button under it. In addition, I've removed some strings from res and the button name in string.xml. So, everything works fine for now. -- You received this

Re: [android-developers] GL_POINTS not drawing points

2012-09-01 Thread Satya Komatineni
Guich, Given a number of ways how to do the same thing in OpenGL it will be quite hard to debug. On Sat, Sep 1, 2012 at 9:11 AM, guich wrote: > Hi, > > I've spent a full day trying to draw a series of points using GL_POINTS. I > know i could use a texture, but i want to learn how to draw points.

[android-developers] ACRA 4.3 Release Candidate

2012-09-01 Thread Kevin Gaudin
Hi, A new ACRA version is coming and is now at the Release Candidate stage after 2 weeks of Beta: http://code.google.com/p/acra/downloads/detail?name=acra-4.3.0RC.zip It is planned to be promoted stable on the 8th of September. ACRA is a free, simple, flexible and open source library enabling yo

Re: [android-developers] Are Encrypt Opaque Binary Blobs (OBBS) supported?

2012-09-01 Thread JCEDDY
I've read through the StorageManager docs pretty thoroughly and browsed through mkobb, obbtool, pbkf2gen, and vold code. I'm at the point now where I'll have to really dissect the processes both in the command line creation and how mounting the filesystem on the device works, which I think will

Re: [android-developers] Problem with fragments

2012-09-01 Thread Mark Murphy
Use Hierarchy View to examine your activity and see what is and is not actually there. On Sat, Sep 1, 2012 at 3:24 PM, dminik wrote: > Hello! > > I'm a newbie in software development for android. In my simple program I'm > trying to add a new fragment into the main activity during run-time. And >

[android-developers] Problem with fragments

2012-09-01 Thread dminik
Hello! I'm a newbie in software development for android. In my simple program I'm trying to add a new fragment into the main activity during run-time. And here is the place where problems come - the fragment doesn't appear at all. Here is the code from the main activity: public class MainActiv

Re: [android-developers] Help: My app has violated the spam provisions of the Content Policy

2012-09-01 Thread TreKing
On Sat, Sep 1, 2012 at 1:06 AM, Terry wrote: > Even though I do not interpret (the following sentence of the Content > Policy) "Product descriptions should not be misleading or loaded with > keywords in an attempt to manipulate ranking or relevancy in the Store’s > search results." as "remove all

[android-developers] Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity

2012-09-01 Thread itai
Filled bug below… Anyone know how to hide the title bar without using either requestWindowFeature(Window.FEATURE_NO_TITLE) or XML Theme.NoTitleBar to avoid this ? https://code.google.com/p/android/issues/detail?id=36950&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars tnx. -- You received

Re: [android-developers] Re: How Can I pass an ArrayList do another Activity?

2012-09-01 Thread Fred Niggle
a quick google search found this: http://stackoverflow.com/questions/4030115/how-to-pass-arraylist-using-putstringarraylistextra How did you NOT find it? On 1 September 2012 16:51, dnkoutso wrote: > Typically when you are dealing with the same process it seems useless and > slow to serialize (

[android-developers] Re: How Can I pass an ArrayList do another Activity?

2012-09-01 Thread dnkoutso
Typically when you are dealing with the same process it seems useless and slow to serialize (or parcel) your ArrayList between activities.I would use a singleton where I put the data in there and grab it from the next Activity. On Friday, August 31, 2012 12:59:51 PM UTC-7, Guilherme Bernardi wr

[android-developers] Re: ActionBar on 2.3 API

2012-09-01 Thread fibercode
You can use the official ActionBarCompat example in the Android sample projects. Just make that into a library project. Link to it from your project and extend your activities from ActionBarActivity, instead of Activity. Of course you can customize the look and feel any way you want. I hope th

Re: [android-developers] Android List view with toggle button

2012-09-01 Thread Liem.T Vo
You can create apdater extend BaseAdapter. And handle event OnItemClick for ToggleButton and itemview :) - Liem On 9/1/12 7:41 PM, Haris wrote: Hai... I am writing an application something like list view with toggle button... Here is my source code... public void onCreat

[android-developers] GL_POINTS not drawing points

2012-09-01 Thread guich
Hi, I've spent a full day trying to draw a series of points using GL_POINTS. I know i could use a texture, but i want to learn how to draw points. The resulting image (zoomed) is shown here: The code is written below. Any help on why are only 4 points appearing is greatly appreciated.

[android-developers] Android List view with toggle button

2012-09-01 Thread Haris
Hai... I am writing an application something like list view with toggle button... Here is my source code... public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(),R.layout.main,R.i

[android-developers] Android List view with toggle button

2012-09-01 Thread Haris
Hai... I am writing an application something like list view with toggle button... Here is my source code... public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(),R.layout.main,R.i

Re: [android-developers] Help: My app has violated the spam provisions of the Content Policy

2012-09-01 Thread Zsolt Vasvari
> > But I still wish that Google's Content Policy could have been somewhat >> more explisit, and not so hard to understand. >> > "loaded with keywords" That's not explicit enough for you?? > >>> -- You received this message because you

Re: [android-developers] Re: ListView problem while scrolling

2012-09-01 Thread Mark Murphy
On Sat, Sep 1, 2012 at 7:42 AM, LiTTle wrote: > It is me again!!! When I select the first item and then I did everything Mr. > Mark Murphy said when I scroll down and then come back to the top, the first > item is black again instead of pink? Is there any way to store this option > (for example se

Re: [android-developers] Help: My app has violated the spam provisions of the Content Policy

2012-09-01 Thread Zsolt Vasvari
If you have a problem with other apps (your competitors) violating these policies, go ahead and report them. Anybody can report an app for terms violations. On Saturday, September 1, 2012 2:06:29 PM UTC+8, Terry wrote: > > Thanks to all for contributing on this thread. This discussion has been

[android-developers] Re: ListView problem while scrolling

2012-09-01 Thread LiTTle
It is me again!!! When I select the first item and then I did everything Mr. Mark Murphy said when I scroll down and then come back to the top, the first item is black again instead of pink? Is there any way to store this option (for example selected=true) and repaint the same object as pink the

Re: [android-developers] ListView problem while scrolling

2012-09-01 Thread LiTTle
I cannot believe it that is was a simple line! Thank you very much. I feel much more relaxed now. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] ListView problem while scrolling

2012-09-01 Thread Mark Murphy
You only ever setting the color to be pink. You need to set the color to be not-pink as well, for cases where the row is recycled, was pink, and now no longer is supposed to be pink. On Sat, Sep 1, 2012 at 7:10 AM, LiTTle wrote: > Hi everyone, > > I am trying 4 days to solve this problem. I am tr

[android-developers] ListView problem while scrolling

2012-09-01 Thread LiTTle
Hi everyone, I am trying 4 days to solve this problem. I am trying to create the following feature: I have a ListView that the user can select an item. When the user selects the item the text will turn to pink. The ListView shows 6 items at once. You have to scroll to see other 6 and go on. But

Re: [android-developers] cursoradapter with two different layouts

2012-09-01 Thread Mark Murphy
Make sure that you are overriding getViewTypeCount() and getItemViewType() in your adapter. On Sat, Sep 1, 2012 at 6:00 AM, Live Happy wrote: > i create a cursoradapter that will use two different layouts depending on > "direction" field in the cursor. > this is the code > @Override > public View

Re: [android-developers] Re: getView from CustomizedAdapter called several times

2012-09-01 Thread Yih Tang Yeo
Hi, thanks for the reply. Sorry, I realized that it was part of my mistake to accidentally call the AsyncTask twice (the unintentionally one is called by onNavigationItemsSelected listner of ActionBar - which I didn't expect it to be called when I have actionbar.setSelectedNavigationItem) when

[android-developers] cursoradapter with two different layouts

2012-09-01 Thread Live Happy
i create a cursoradapter that will use two different layouts depending on "direction" field in the cursor. this is the code @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { holder = new ViewHolder(); if(cursor.getInt(cursor.getColumnIndex("direction"))==0)

[android-developers] SQLite Cursor.setNotificationUri() usage.

2012-09-01 Thread olko
I have a custom content provider for an SQLite database in my application, but for queries from the application itself I would like to use SQLiteDatabase directly. The question is how to notify cursors about changes in the database. I've come up with the solution below. A select query and set

[android-developers] Re: How Can I pass an ArrayList do another Activity?

2012-09-01 Thread pharaoh
See the Intent documentation, but remembec that passing objects throught Activity it will be created a new copy and it is slow if you want you can make it public and static so can access it staticaly. Though it would violate the property hiding but it is for a better good. On Friday, August 31,

Re: [android-developers] Need assistance reg using single layout, create AlertDialog & handle events in different Activity's

2012-09-01 Thread tvdalia
Hi Justin, I couldn't find any example from docs as per my needs and that you and Trek are reffering to. Yes I wanted to pass a listener to the static method for the list that is in the Dialog. I managed to do it as follows : As for common method : *public AlertDialog createAler