Tuesday, October 8, 2013

[General] Whatsapp Notification?


Whatsapp Notification?



Does anyone know if reading Whatsapp messages on the pulldown Notification on Samsung Galaxy S4 will update the last seen on whatsapp? even if you dont have the app open. please confirm if you know. thanks



Read more

forum.xda-developers.com



[General] Would anyone know why I can't see most of the images in the ac forums.


Would anyone know why I can't see most of the images in the ac forums.



My device is is a tablet 10.1, Android 4.1.1
Most of the images that are in the posts don't show. Instead a box shows with a page that's sort of it cut in half horizontally' with zig zag scissors.
Will see if I can paste an image I have drawn.

I'll have to find it in explorer, see if I can move it to the gallery and try again in a minute.
Didn't work.

Sent from my MID using AC Forums mobile app



Read more

forum.xda-developers.com



[General] [Help] Bricked Galaxy S3


[Help] Bricked Galaxy S3



I rooted my phone successfully about 3 weeks ago and installed CyanogenMod 10.1.3 smoothly, no problems here. But I grew tired of it and wanted to go back to my stock android version for the SGH-T999 Galaxy S3. I had created a backup of Touchwiz multiple times while switching from CyanogenMod to stock, but for some reason this time there were no backups, at all! And I did post a thread on this but I didn't really get too much help from it. So I went to SamMobile to get my original firmware for my phone, and yes I got my carrier version so I didn't brick it because I tried to install a different variant. I followed all the instructions and tried to use Odin to flash the ROM but every time I did Odin would give a message saying "MD5 hush value is invalid" So I tried reading up on this on the internet and I thought I found the solution, which I read was remove the .md5 from the file name after you extract it. And I did just that, yes I know it was a stupid move; A FAIL! message came up in red and now my phone only says "Firmware upgrade encountered an issue. Please select recovery mode in Kies & try again". Now I've tried multiple times to flash the right file but every freaking time I get "MD5 hush value is invalid" and I'm so frustrated because I don't want to have to ship it to Samsung or take it all the way to T-Mobile. So I ask for any help you can offer because I really need my phone back ASAP!



Read more

forum.xda-developers.com



[General] Where system wallpapers are found?


Where system wallpapers are found?



I am trying to edit a ROM. I want to know where ALL system wallpapers are placed because I want to use some new ones. Any ideas? Where should I put my wallpapers in ROM to make them system wallpapers.



Read more

forum.xda-developers.com



[General] Problems with missing memory on a tablet


Problems with missing memory on a tablet



Although I don't know your particular device I think you'll find the shop hasn't given you BS.

By way of example, the entry Samsung S4 is sold as a 16GB model but once the OS has taken its share you’ve got a little over 7GB left. It's all very misleading I agree and something should be done about it, but the quoted storage is before the OS has loaded up.



Read more

forum.xda-developers.com



[General] Go Locker problem


Go Locker problem



Hey peeps i have go locker and it works fine untill now whenever i lock my phone it locks but then the display keeps comming back on showing the lock screen. But if i uninstall it my reg works fine and i checked my settings over n over @_@

Posted via Android Central App



Read more

forum.xda-developers.com



[android help] Can not update Value


Can not update Value



I have a class(constant.class). Which contain all the constant value that needs to be updated. I have a method in main activity. It update constant value(a url) and execute a view class(contain webview). But the value of url can not update in constant.class. so in the view the webview looks white. I have to update the value of url in constant.class. here is my constant class:



public class Constant {

public static boolean isCapturedOk = false;

public static int imagePickerStatus = -1;

public static byte[] imageData;

public static int result = 0;

public static String printUrl = "";

public static String rotationValue="";

public static String rotationValueForCamera="";

public static boolean isPrintButtonVisible = true;


}


Here is my View class:



public class PrintView extends LinearLayout {

WebView wev;
public PrintView(Context context) {
super(context);
// TODO Auto-generated constructor stub
View.inflate(context, R.layout.printscreen, this);
wev = (WebView) findViewById(R.id.webViewPrint);
wev.loadUrl("http://www.vividworks.com/");

}

public PrintView(Context context, AttributeSet attrs, int defStyle) {
super(context);
// TODO Auto-generated constructor stub
View.inflate(context, R.layout.printscreen, this);
wev = (WebView) findViewById(R.id.webViewPrint);
wev.loadUrl("http://www.vividworks.com/");

}

public PrintView(Context context, AttributeSet attrs) {
super(context);
// TODO Auto-generated constructor stub
View.inflate(context, R.layout.printscreen, this);
wev = (WebView) findViewById(R.id.webViewPrint);
wev.loadUrl("http://www.vividworks.com/");

}



@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
// TODO Auto-generated method stub
for(int i = 0 ; i < getChildCount() ; i++){
getChildAt(i).layout(l, t, r, b);
}
}


}


Here is the method in main activity:



public void loadPrintActivity(String printUrl){
Constant.printUrl = printUrl;
Constant.isPrintButtonVisible =true;
pv.setVisibility(View.VISIBLE);}


Read more

stackoverflow.comm



[android help] Android : how to download. csv file


Android : how to download. csv file



I work on the project in zakat calculator. needed in calculating the price of gold per gram and how to take the gold price of "http://download.finance.yahoo.com/d/quotes.csv?s=XAUIDR=X&f=sl1d1t1c1ohgv&e=.csv" and how to make history value when there is no internet access? please provide an example for me,,, Thank's



Read more

stackoverflow.comm



[android help] Set a String Array into Bold in Android


Set a String Array into Bold in Android



I have a ListView where I managed to display many texts on it. Some of the texts are formatted as BOLD. In order to make those texts bold, I used Spannable and it works! However, when I scrolled it down and up again, the index[0] goes multiple.


To avoid that scene, I used a holder to hold my TextViews. I managed to solve that problem in scrolling but for some reasons, the textstyle which is BOLD, gone in my ListView. How can I do that?


MainActivity.java



private void populateListView() {

String[] source = { "Lorem ipsum dolor sit amet", "consectetuer adipiscing elit",
"sed diam nonummy nibh " };

final SpannableString out0 = new SpannableString(source[0]);
final SpannableString out2 = new SpannableString(source[2]);

StyleSpan boldSpan = new StyleSpan(Typeface.BOLD);

out0.setSpan(boldSpan, 6, 17, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
out2.setSpan(boldSpan, 0, 8, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

ArrayAdapter adapter = new ArrayAdapter(this,
R.layout.items, // Layout to use (create)
source) { // Items to be displayed

public View getView(int position, View convertView, ViewGroup parent) {
View v = super.getView(position, convertView, parent);

try {

viewHolder.tv = (TextView) lv_procedures.getChildAt(0)
.findViewById(R.id.lbl_item);
viewHolder.tv_2 = (TextView) lv_procedures.getChildAt(2)
.findViewById(R.id.lbl_item);

viewHolder.tv.setText(out0);
viewHolder.tv_2.setText(out2);

} catch (Exception e) {
e.printStackTrace();
}

return v;
}
};


}


Class ViewHolder



private class ViewHolder {
TextView tv;
TextView tv_2;
}


Read more

stackoverflow.comm



[android help] cmake vs waf: mainly for c++ windows/linux and android


cmake vs waf: mainly for c++ windows/linux and android



Don't know much about waf, but CMake fits your requirements pretty well. I do know waf is written in Python, my personal favourite programming language ATM.



My primary requirements are:


Must be able to compile software in windows/linux and android.



CMake does Windows and Linux very well but so does any other build system worth its salt. Someone wrote some Android scripts for CMake.



Must be ready to run tests.



CMake has a sibling testing framework.



Must be able to play nicely with other libraries that must be compiled with another build system but most likely will have to be compiled from source.



CMake has good integration with pkg-config, and can link against arbitrary shared libraries.



Must be able to add custom steps, like for example, generating some data from some files (mainly graphics) before compiling, all integrated in the build system.



CMake can generate custom rules, but the Makefile backends have the best support for this (ie. custom make targets.) You can always run arbitrary commands from cmake itself, though, with any backend.



Some strong preferences are:


Being ready to support MAC compilation.



CMake supports Mac quite well. It will even make you an Xcode project if you want, but it can also do command line builds.



Being able to cross-compile from linux as many platforms as I can (maybe windows/linux/android but cannot MAC?)



Cross-compiling is supported in CMake. CMake will not be the primary source of pain with cross-compiling - literally everything else will.


Especially with regards to cross-compiling for Mac. It's possible, but not worth it to cross-compile for that platform, considering you need access to a Mac anyways to get the libraries and header files, you need to patch GCC and clang and LLVM, etc. The only sound reason I've heard for going through this much pain is running an automated build server. Anyways, if you get a working Linux -> Mac toolchain, you should be able to cross-compile with CMake as if it were any other Unix platform.



Being able to add support for iOS compilation if the need arises.



iOS cross-compilation is supported by CMake, but you need a Mac.



Would be nice if the invocation interface was similar to that of autotools, since it is the one many people know and it is well documented.



Write a configure script that just calls CMake. Then your users can do a ./configure && make. There's also CPack which lets you generate DEB, RPM, NSIS (Windows) and DMG (Mac) installers/packages.


Some questions:


If I have some rare requirement, which build system would be more ready to be extended?


CMake is very extensible. It can be extended to support new languages and target platforms. (Given that waf is written in Python, it's going to be pretty hackable too.)


Are both currently well maintained? (I wonder about waf mainly).


CMake is mature and well-maintained.


Community: if I find a problem, both communities are big enough to support me, in your experience?


The community and extensions available are what keeps me coming back to CMake, honestly.



Read more

stackoverflow.comm



[android help] Fragmented UDP packets not received by application


Fragmented UDP packets not received by application



Very strange behavior...


I have 3 machines:



----------- ------------ -----------
| A (x86) |-----| B (x86) |-----| C (arm) |
| sender | | receiver | | sender |
----------- ------------ -----------

  • A and B are Linux (Ubuntu 12.04) machines, kernel 3.2;

  • C is an android (ICS) machine, kernel 3.0.8;

  • All are connected via RJ45 cables;

  • Connections are OK, network is set up correctly;

Issue is: when machine C (ARM-android) sends a UDP packet which payload size is over 1472 bytes (maximum payload before packet gets fragmented), server application on machine B is never able to receive it, ... regarding that:


  • Source/Dest IP addresses are correct: I can receive all the datagrams I send if I set the payload size less or equal to 1472;

  • On machine B (receiver), if I dump network traffic with Wireshark, I can see each fragment, and then re-assembled message => from Wireshark point of view, it's all good!

  • Comparing each fragment header as well as re-assembled message with what I can dump when the same message is sent from machine A (which is always received OK), everything seems perfect (only differences are IP addresses, and checksum, since UDP header checksum takes in account IP address fields).

  • There is no MTU issue, packets are fragmented as expected.

  • There is no router/switch between the machines

  • ifconfig shows neither packets drop, nor overflows, nor any other classical error!

  • ... this is so weird!!

I've spent some time on Internet, but never found any topic like this one. Each time people has troubles with UDP, either their MTU discovery was not correct, or they did some mishandling in the testing procedure, or they could not dump message on receiver host, ... this is not the case here!!


For sure, I know issue is on sender end (machine C), but maybe is could be easier to enable some logs (at kernel level?) on receiver end to understand why UDP datagram disappears!? Any advice? Are there specific files I could check in /proc/sys/net, or kernel options I should enable?


Thanks a lot.



Read more

stackoverflow.comm



[android help] (Android) How can I scroll item to middle of screen in scrollView when I press them


(Android) How can I scroll item to middle of screen in scrollView when I press them


(Android) How can I scroll item to middle of screen in scrollView when I press them - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















My project need to insert lots of data,I use scrollview to put them in one page.


Now I want it can scroll the item I press(primary Edittext) to the middle of screen.


I tried to use onFocusChangeListener()+scrollTo() with edittexts,but doesn't work very well.


Is there any better way to do it?


I want to make it act like this



















default






Read more

stackoverflow.comm



Best free and premium hosting, domain and website services 2013

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...