yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] jeb192004:
Im new to app development and im having trouble adding a menu to my app. Im using eclipse. I don't get any errors but when I start the app and press the menu button on my phone nothing happens.

package com.JEB.mybills;

import android.annotation.TargetApi;
import android.app.ListFragment;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public class ReminderListFragment extends ListFragment {

[MENTION=439709]override[/MENTION]
public void onActivityCreated (Bundle savedInstanceState){
super.onActivityCreated (savedInstanceState);
setEmptyText (getResources() .getString(R.string.no_reminders));

}

private ListAdapter mAdapter;

[MENTION=439709]override[/MENTION]
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);

String[] items = new String[] {"Foo", "Bar", "Fizz", "Bin"};

mAdapter = new ArrayAdapter<String>(getActivity(),
R.layout.reminder_row, R.id.text1, items);
setListAdapter(mAdapter);
}

public void onListItemClick(ListView l, View v, int position, long id){
super.onListItemClick(l, v, position, id);
Intent i = new Intent(getActivity(), ReminderEditActivity.class);
i.putExtra(ReminderProvider.COLUMN_ROWID, id);
startActivity(i);
}

public void onViewCreate(Bundle savedInstanceState){
super.onViewCreated (getView(), savedInstanceState);
registerForContextMenu(getListView());
setHasOptionsMenu(true);
}

[MENTION=439709]override[/MENTION]
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
super.onCreateOptionsMenu(menu, inflater);
inflater.inflate(R.menu.list_menu, menu);
}

[MENTION=439709]override[/MENTION]
public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()){
case R.id.menu_insert:
editReminder(0);
return true;

}
return super.onOptionsItemSelected(item);
}
[MENTION=439709]override[/MENTION]
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo
menuInfo){
super.onCreateContextMenu(menu, v, menuInfo);
MenuInflater mi = getActivity().getMenuInflater();
mi.inflate(R.menu.list_menu_item_longpress, menu);
}
public void editReminder(long id){
Intent i=new Intent(getActivity(), ReminderEditActivity.class);
i.putExtra(ReminderProvider.COLUMN_ROWID, id);
startActivity(i);
}

public boolean onCrontextItemSelected(MenuItem item){
switch(item.getItemId()){
case R.id.menu_delete:
//Delete the task
return true;

}
return super.onContextItemSelected(item);
}}
[Java for Android App Development] deanwray:
First I have to say that using the "CODE /CODE" tags (obviously with "[ ]") would be a good idea, when posting so that it looks better

@override
public void onActivityCreated (Bundle savedInstanceState){
super.onActivityCreated (savedInstanceState);
setEmptyText (getResources() .getString(R.string.no_reminders));

}

Your not very clear but I assume, you want something to happen when you press the physical menu key on your device ? If so I don't see anything that captures the event of this key ? Or am I missing something ? If I wanted to close my app by pressing a physical menu key I would probably do something like

@Override
public boolean onKeyDown(int keycode, KeyEvent e) {
switch(keycode)
{
case KeyEvent.KEYCODE_MENU:
this.finish();
break;
}

return super.onKeyDown(keycode, e);
}

But not all devices have physical menu keys. My answer is based on assumptions and guess work of what your wanting :)
[Java for Android App Development] jeb192004:
My phone has the menu button on the screen.(LG g flex)
[Java for Android App Development] jeb192004:
where you have

return super.onKeyDown(keycode, e);

I get an error saying its "undefined for the type ListFragment"
[Java for Android App Development] deanwray:
I never said your phone didn't have a menu key (I obviously assumed it did, was just saying not all do)

The error is because your inside a fragment, that while has access to Context does not have direct reference. Overriding a key is for Activity/FragmentActivity/Application context
[Java for Android App Development] jeb192004:
So...Everything for my menu go into the activity? Not my fragment?

I been trying to learn form "Android Application Development For Dummies" and its telling me to put it all in my fragment...
[Java for Android App Development] jeb192004:
Ok...I got your code to work and it exited the app but now I'm having trouble getting it to open my options menu
[Java for Android App Development] deanwray:
well thats unrelated, you mean you dont know in android how to open the options menu ? There are simple tutorials on it on d.android.com you should have a read, lots of good info there
[Galaxy Tab Pro 12.2, 10.1, 8.4 Q&A, Help & Trouble] dante`afk:
I have noticed an issue that almost on every link/hyperlink I have to tap twice or once for a longer time until it recognizes it as 'oh I have to load this link'

Is it just me or is this a general issue with this tab?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Q&A, Help & Trouble] shadowswittness:
Chrome is still buggy as hell. The stock and dolphin browser work fine for me.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Q&A, Help & Trouble] Monkey Chops:
I've had to dump chrome too, it was draining my battery. Another vote for Dolphin here.
[iPAQ rw6828, XDA Atom General] landau:
When backlight goes OFF (after certain perion of inactivity) it is still little bit ON. It is not visible during daylight (because backlight is very low), but visible in dark room. Why? How to fix?
[iPAQ rw6828, XDA Atom General] kropotov:
поставь еще выключение питания! :)
[iPAQ rw6828, XDA Atom General] landau:
I do not want to use PowerOFF option for some resons (for example some alarms are not able to work after long period of powerOff state. With my old Imate jam backlight turned comletely OFF, but with Atom - no.

Sorry answering in English, because many readers are not Russians
[iPAQ rw6828, XDA Atom General] kropotov:
No problem! So, all alarms and notifications must working from the power off mode.
[iPAQ rw6828, XDA Atom General] landau:
But still I wonder:

1. Is it normal, that backlight is always little bit ON (visible only in dark room)? Or I need to go to the service?

2. If it is normal - is there any posibility to turn backlight off (via registry etc)?
[G2 Q&A, Help & Troubleshooting] phat_cow:
I made a mistake some wheres while formatting the phone in recovery mode. I used Advanced format instead of Factory Reset. So, now when I reboot the phone it's gets stuck at the LG logo screen and the led flashes different colors. I can't get back into recovery mode (hold both volume keys and power then let go and then do the same thing). How can I fix my phone? I can get into Download Mode though. PLEASE HELP!!!!! I have a Rogers LG G2.
[G2 Q&A, Help & Troubleshooting] scram99:
To boot into recovery hold power and volume down button. Not both volume buttons... once the splash screen appears let them go and immediately hold them again... then at the factory reset screen hit power 3 times and you should enter your recovery.

---------- Post added at 04:42 PM ---------- Previous post was at 04:40 PM ----------

If you've wiped your virtual sd in the advanced wipe menu you're a little more screwed and will have to side load a Rom...
[G2 Q&A, Help & Troubleshooting] phat_cow:
awesome, 1 step closer! Now is there a way to get my rom transfered to the internal storage? ADB can't seem to see my phone.
[G2 Q&A, Help & Troubleshooting] phat_cow:
Is there any ways of transfering a rom to the phone while in recovery mode?
[G2 Q&A, Help & Troubleshooting] phat_cow:
So, in recovery mode. WIndows will detect my phone as "g2" in device manager but it has a exclamation mark. What drivers would i need for this? Can anyone help?
[G2 Q&A, Help & Troubleshooting] h9s:
1. please visit this site " http://koush.com/post/universal-adb-driver "

2. Install it.

3. Go to Device Manager on the LG D802 search for the folder where you install the universal drivers.

4. This will make your LG to be recognize as Samsung (who cares as long as it works).

4a. Go to the SDK folder > Platform-tool ( https://developer.android.com/sdk/index.html?hl=sk , for the SDK )

4b. Copy and paste the ROM zip that you want to flash (in this case mine will be CM)

5. Hold Shift and right click the mouse when you are still on the platform-tool folder , Run the command prompt.

6. In the Command Prompt

6a. enter adb devices ( this will now recognized your phone in recovery mode )

6b. enter adb sideload xxx.zip

7. NOW YOUR PHONE IS BACK ON TRACK !!!!!!!!!!!!!
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] chrisj22:
I just got a verizon Galaxy S4 that was blacklisted through verizon but I got it to work with my ATT SIM Card by changing the APN however MMS isnt working. Calls and SMS is working fine and showing my number. My questions are how do I get MMS to work?

Also can I flash a stock TW ATT I337 ROM to the verizon phone being ill be using it with ATT without Bricking it?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] DeadlySin9:
Make sure your APN includes the mmsc and MMS proxy settings. Also flashing an at&t ROM should work but you may get some slight issues.

Sent from my SGH-I337 running Blackbox 3.0
[Paranoid Android Q&A] felt0r:
Hi,

I started using PA on my Galaxy Nexus with a fresh install of 4.0 Beta 6 about 4 weeks ago (unlocked and rooted via nexus root toolkit, recovery is teamwin).

Since then, I installed every update through Paranoid OTA, so I am on current 20140318 now with GAPPS stock 20140318.

Everything was great.

Suddenly, a few hours ago, the phone started rebooting again and again until I decided to take out the battery.

Since then, it hangs during boot at the PA logo.

I tried reinstalling pa_maguro-4.0-BETA6-20140217.zip and pa_gapps-stock-4.4.2-20140217-signed.zip through recovery (after backup of course), but this changed nothing.

Fun thing is... I am moving to a new flat tomorrow and really need my phone to organize things.

So if anybody has an idea what I can look at or how this may be fixed, I would really appreciate it.

Thanks!

Stephan

Edit: wiping cache and dalvik cache did not help...
[Paranoid Android Q&A] Anu6is:
Factory reset and reinstall
[Paranoid Android Q&A] MaHo_66:
Seems like you got stuck in a bootloop. bootloops can occur pretty easily, it’s mainly caused because system files interfering with each other which causes instability and/or crashes at the boot sequence

Try doing a fresh install (use latest recovery version of your recovery)

- wipe data/factory reset

- wipe cache partition

- format system and data

- wipe dalvik cache and flash the rom and gapss again
[Android Q&A, Help & Troubleshooting] kennyx13:
I am working with a partner in developing an app that would go in between the apps and basically control it in order to show a uniform control of the pixels. Basically what we are trying to do is have pixel level control of the display regardless of the content on the phone.

My Questions are:

1. Does the smartphone developer API provide access to the frame buffer of the display, which can be modified for each frame that is displayed on the screen?

2. Does the smartphone have enough time to run a 2D filter on each frame before it gets displayed? Will the phone processor be fast enough that you can filter each image and still keep up with the output frame rate (e.g. 30 frames per second). Each calculation that will need to be calculated takes time for the processor to calculate, but how much? Can the phone do all of the calculations it will need to under 1/30 seconds AND keep up with normal app processing without affecting the overall frame rate. Much of this is based on the software that is developed to solve the problem, so the real question really isn't "Does the phone have enough real time," but rather " is the phone fast enough to handle a garden variety 2D convolution on top of everything it already does".

3. Will this level of control be achievable without root to be able to reach more people with unrooted devices or is this achievable only by root level permissions.

I do hope I am in the right area to post this very important question in the the development process. We need to get this sorted out first before we can begin programming.

All the help would be very much appreciated. Thanks xda!
[G2 Q&A, Help & Troubleshooting] strskysun1:
Can not get any calendar app to work with the Beanstock rom.

strskysun1
[G2 Q&A, Help & Troubleshooting] phatmanxxl:
http://xdaforums.com/showthread.php?t=2585211

Talk to these guys about it.
[G2 Q&A, Help & Troubleshooting] strskysun1:
Thank you very much. The calendar started working all of a sudden. Just worried that it is going to stop working all of a sudden. Thanks again.

strskysun1
[Windows Phone 8 Q&A, Help & Troubleshooting] GalaxySIIII:
Hi guys .. just got this phone it quite nice ..

anyone knows how to run it ?

thnx
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
HTML5 works fine. Flash doesn't work any better than it does on iOS or Android (since the Android Flash version was discontinued years ago).

Some particular site you're trying to use? YouTube, for example, works fine if you use HTML5.
[Windows Phone 8 Q&A, Help & Troubleshooting] GalaxySIIII:
I wanted use this speed checks but is saying i need flash ..

http://www.speedtest.net/

http://www.speedtest.bbmax.co.uk/
[Windows Phone 8 Q&A, Help & Troubleshooting] titi66200:
Try

http://www.windowsphone.com/en-us/store/app/speedtest-net/4fcd4de1-050b-44dc-b123-a786808eb49b
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
... That may be the first time I saw somebody ask to use the web page when there's a free app by the same people that works great. I've seen people asking for an app and being told to use the website instead, but this one is new for me. Smartphones... they have apps!
[Windows Phone 8 Q&A, Help & Troubleshooting] GalaxySIIII:
I know i got it .. but wanted laptop way tho i can do it on android phone
[Windows Phone 8 Q&A, Help & Troubleshooting] GalaxySIIII:
U would be suprised but i have better speeds results with laptop way than mobile app way!!
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
The version of Flash available for Android is very outdated and should not be used anymore; it's missing a bunch of security patches, among other things. If you have it installed, you should probably remove it.

On Windows Phone, I get the same speed running the SpeedTest app and using SpeedTest.Net on my laptop tethered through the phone. Sounds more like a problem with the Android app than anything else...
[One (M8) General] golf2vr6:
Here you can find the stream of the launch and countdown:

http://www.htc.com/uk/go/launch/

#HTCOneUp
[One (M8) General] Morpheus991:
I got this link, for those of you not the UK...I'm sure it'll redirect you as needed though.

http://www.htc.com/launch

#HTCONEUP

oh and it's on March 25th, oops
[One (M8) General] radiotrib:
And dont forget ... once the official screening of the US event is over (they normally only show you the presentation) ,,, we'll be trying to cover some hands-on action at the London event ... look here http://xdaforums.com/showthread.php?t=2687905 for more details.
[One (M8) General] daorderdillon:
How much for phone

Sent from HTC BUTTERFLY S 901S running SENSE SIX
[One (M8) General] radiotrib:
No idea how much .. I'm a punter like you .. just one of the lucky 20 to be invited to the show in London
[One (M8) General] daorderdillon:
Ok

Sent from HTC BUTTERFLY S 901S running SENSE SIX
[Samsung Galaxy Nexus] militarymedic23:
Hoping this might ring a bell with anyone who has fiddled around with the GN and CM11.

The CM11 update notification won me over and I pushed CM11 (11-20140308 snap - toro) a few weeks ago.

Interestingly enough I saw a HUGE battery drain improvement. Possibly an oddity unless others have noticed this too.

Anyway, the big issue when using CM11 is random data blackouts. The phone can be on 3G, 4G, or Wifi and it will act like there is no data access. eBay app and Chrome give the 'no connection' type error with other things like email just not updating.

The fix so far is to reboot the phone. As soon as it comes back up the data portion works perfectly. Not the most time effective solution especially if trying to get important data on the go.

I know Google has marked this phone as past it's prime in terms of support, but with CM still supporting builds for this device I'm hoping something may sound familiar and somebody could give some words of wisdom for this problem. With the Nexus 6 device slotted to be released in the summer/fall timeframe I'm holding out on replacing the GN.

Ideas anyone?
[Samsung Galaxy Nexus] memaro_maro:
change other kernel/boot.img
[Samsung Galaxy Nexus] militarymedic23:
well yes but I was also interested if anyone else may have been experiencing this.
[Samsung Galaxy Nexus] ashclepdia:
if this is the same issue I've seen in some ROM threads then yes you aren't alone.

instead of doing a reboot, have you tried toggling airplane mode on then off? if that works, you'll spend way less time vs waiting for boot up
[Samsung Galaxy Nexus] militarymedic23:
glad to know I wasn't alone on this one!

The 'no network found' issue just came up a minute ago. Probably had tried the airplane mode before but in a hurry I defaulted to restart.

The quick switch between AP mode and back did bring the connection back, although with the phone starting up fairly quickly the different between doing AP mode or restarting seems to be differently by only a second or two.

If this has been seen with some ROMs, what have people turned to as an alternative?
[Nexus 5 Android Development] AlessandroXCV:
Welcome to the world of the EHNDROIX V !

EHNDROIX V is an aftermarket firmware based on CyanogenMod 11 created by Nitrox-developers. Edited and customized to the smallest details, is designed to provide users with a KitKat user-friendly experience and is available for a wide range of terminals!

The ROM has been optimized to ensure maximum fluidity and at the same time good battery life and thanks to NitroxCube, you can stay up to date on the latest news, connect to official forum for assistance and much more !​

Android 4.4.4 KitKat with FluidUI 5.0

Based on latest CyanogenMod 11 build

Update the ROM directly from your device using OTA service

Official bootanimation

Android Lollipop Heads Up

Nova Launcher

Theme Engine

DashClock Lockscreen Notifications

Exclusive Google apps called Ehndrogapps also available in Slim version

Fully customizable quick settings with a new interface

Tweaks designed for a smooth system experience and better battery life

No more ads in the apps

Google Public DNS

Modded Sony Notes

Modded AOSP Music Player

Use your CyanogenMod account

Option to disable root for more security

Improve user experience using Ehndraddon

Listen to music with an exclusive music player based

Send messages with exclusive Ehndroix app with a very attractive look, fully customizable and with new features

Striking icon quality for to be pleasing on HD screens

Fantastic official Ehndroix wallpapers

Wide range of ringtones, notification and alarms very catchy

Perfect working GPS in all countries due to the automatic fix satellites

ROM in constant development ( keep up to date thanks to date version )

Keep safe your data with Titanium Backup installed by default

... and much more!

Coming from a previous EHNDROIX V

:

Download ROM

Download Ehndrogapps

Wipe Cache

Wipe Dalvik Cache

Flash Ehndroix V

Flash Ehndrogapps

Restart

Coming from EHNDROIX IV or other ROMs

:

Download ROM

Download Ehndrogapps

Update the recovery to latest version

Wipe Data

Wipe Dalvik Cache

Flash Ehndroix V

Flash Ehndrogapps

Restart

Web page: http://nitrox-developers.blogspot.com/

Official post: http://nitrox-developers.blogspot.it/2014/03/ehndroixv-hammerhead.html

Changelog: http://nitrox-developers.blogspot.it/p/ehndroix-changelog.html

FAQ: http://nitrox-developers.blogspot.it/p/ehndroix-faq.html

​
[Nexus 5 Android Development] AlessandroXCV:
A new interface very attractive called FluidUI 5.0

Revised and enhanced telephony features

Switch from Notifications to Quick Settings panel

Edit the Messages interface as you wish

Chose an official Ehndroix wallpaper

Advanced settings to better manage the device

Exclusive Music Player based on AOSP source

Manage file using MiXplorer

Take note very easily

Discover the beautiful easter egg

​
[Nexus 5 Android Development] AlessandroXCV:
Last ROM Release

Ehndrogapps

Ehndraddon

Do you like EHNDROIX? Support us making a donation pressing PayPal button

A big thanks to Donators ( in alphabetical order ):

Adrian Bottomley, Bernhard Rogge, Derk Bell, Dirk Malarczuk, Dragan Lazić, Gerhard Kogler, Hamad Alnofeai, Harald Kuettner, Hilum Mburu, Julian Shirley, Kevin Cowling, Lee Mulligan, Loris Sorbi, Madina Ahmad Hassan, Marcel Viola, Marcelo Rebelato Pavan, Marco Filippone, Marco Nachina, Mohd Idzham, Pavel Mojescik, Philipp Moser, Ploutarchos Frangoudes, Raphael Hornberger, Tan Yau Shen, Walter Knapp

​
[Nexus 5 Android Development] AlessandroXCV:
[YOUTUBE]a9oct7_A6Ms[/YOUTUBE]

EHNDROIX - Based on Android 4.0.4: http://nitrox-developers.blogspot.it/p/ehndroix_28.html

EHNDROIX II - Based on Android 4.1.2: http://nitrox-developers.blogspot.it/p/ehndroix.html

EHNDROIX III - Based on Android 4.2.2: http://nitrox-developers.blogspot.it/p/ehndroix-iii-rom-based-on-cyanogenmod-10.html

EHNDROIX IV - Based on Android 4.3.1: http://nitrox-developers.blogspot.it/p/ehndroix-iv.html

EHNDROIX V - Based on Android 4.4.4: http://nitrox-developers.blogspot.it/p/ehndroix-v_30.html

Enter the following code to get EHNDROIX signature:

[IMG]http://i58.tinypic.com/kcjmex.png[/IMG]

​
[Nexus 5 Android Development] AlessandroXCV:
AlessandroXCV

CyanogenMod

Ota Update Center

Google

( This ROM is certified Nitrox-developers but the staff does not assume any responsibility for any damage to your device )​
[Nexus 5 Android Development] boonemeat:
I haven't seen this much of a variance from cyanogen. I like it.
[Nexus 5 Android Development] tomzefi:
Defiantly giving it a go.
[Nexus 5 Android Development] Curiousn00b:
Flash time!

Edit:

Loving the theme of the rom a lot. I'll probably remove unneeded APK's that I don't need and use it as a daily build soon. As for now, I'm not quite ready for Cyanogenmod, but I will be keeping and eye out!

Also, what are the System Animations used in the rom? They're beautiful!
[Nexus 5 Android Development] mbwsutherland:
Flash failed

Says something about Updater binarys failed and something about bootloader.

Any ideas would like to try....
[Nexus 5 Android Development] InflatedTitan:
Try to wipe everything then reboot to boot loader. Then boot back to recovery and flash...

Or try to wipe everything, then unmount in twrp and try to flash
[Nexus 5 Android Development] armyboy11b:
Well just flashed the ROM ..

And its a great start!!!! Everything working so far. Can't wait to see how the ROM progresses here.

---------- Post added at 06:22 PM ---------- Previous post was at 06:19 PM ----------

Also it says page not found when clicking the link for s IV style pack
[Nexus 5 Android Development] InflatedTitan:
Same here. ROM downloaded fine. Struggled with the gapps. The rest won't download.
[Nexus 5 Android Development] Kratz17:
I'm defenetly trying this Thanks
[Nexus 5 Android Development] armyboy11b:
The gapps downloaded fine for me I am using latest version of the regular one and not slim
[Nexus 5 Android Development] iraqi92:
downloading.....
[Nexus 5 Android Development] sujo:
FC on setup wizard

Is anyone else facing FC on the initial setup?

Cannot get the ROM going.
[Nexus 5 Android Development] trustinhate:
It won't flash using PhilZ Touch Recovery. I checked MD5 Sum and I tried to wipe over and over and still get:

assert failed: getprop("ro.bootloader") == "HH

Z11k"

I'm assuming it's because of the recovery since other people seem to not be experiencing similar issues...