Try this
private void openIntent() {
Intent intent = new Intent(getActivity(), OtherClass.class);
// Open the Activity
startActivity(intent);
}
Saturday, July 25, 2015
Friday, July 24, 2015
Windows CMD : Convert IP Address to Server Name
nslookup IP
Example:
C:\>nslookup 192.168.100.1
Server: servertest.test.com
Address: 192.168.100.11
Name: server1.test..com
Address: 192.168.100.1
Regards,
Example:
C:\>nslookup 192.168.100.1
Server: servertest.test.com
Address: 192.168.100.11
Name: server1.test..com
Address: 192.168.100.1
Regards,
Thursday, July 23, 2015
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=.....' or one of its dependencies
Problem:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies
File name: 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken= .......................
Solution:
Install
- Microsoft® System CLR Types for Microsoft® SQL Server® 2012
- Report Viewer 2012
https://www.microsoft.com/es-es/download/details.aspx?id=35747
Regard,
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies
File name: 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken= .......................
Solution:
Install
- Microsoft® System CLR Types for Microsoft® SQL Server® 2012
SQLSysClrTypes
X86 Package.msi
SQLSysClrTypes
X64 Package.msi
https://www.microsoft.com/es-es/download/details.aspx?id=35747
Regard,
Saturday, July 18, 2015
Android: getBaseContext(), getActionBar(), getApplicationContext() and getMenuInflater() in Fragment
Use:
getActivity().getBaseContext()
getActivity().getApplicationContext()
getActivity().getMenuInflater()
getActivity().getActionBar()
getActivity().getBaseContext()
getActivity().getApplicationContext()
getActivity().getMenuInflater()
getActivity().getActionBar()
Android: findViewById in Fragment
Use
TextView txtExample = (TextView) getView().findViewById(R.id.txtExample);
Friday, July 10, 2015
Android: solution: ic_launcher cannot be resolved or is not a field
Error: ic_launcher cannot be resolved or is not a field
Solution: Change the import:
import android.R;
For this one (see your real path in the R Class):
import com.myproject.myrapp.R;
Android: The method bigText(CharSequence) in the type NotificationCompat.BigTextStyle is not applicable for the arguments (int)
Error: The method bigText(CharSequence) in the type NotificationCompat.BigTextStyle is not applicable for the arguments (int)
Solution: use method getString()
Example:
// bigText(i)
bigText(getString(i))
Android: solution fail: AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.OutOfMemoryError
If you're trying to run a app in a device or emulator and this present this message:
Error: "fatal exception AndroidRuntime at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)"
AndroidRuntime: FATAL EXCEPTION: main java.lang.OutOfMemoryError
Solution: Change the size of the image, example: try reduce the sixe of the image with Gimp, or Microsoft Office (the image editor).
More help: http://developer.android.com/training/displaying-bitmaps/index.html
Error: "fatal exception AndroidRuntime at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)"
AndroidRuntime: FATAL EXCEPTION: main java.lang.OutOfMemoryError
Solution: Change the size of the image, example: try reduce the sixe of the image with Gimp, or Microsoft Office (the image editor).
More help: http://developer.android.com/training/displaying-bitmaps/index.html
Android - Solution fail: ActivityManager: Warning: Activity not started, its current task has been brought to the front
Error: ActivityManager: Warning: Activity not started, its current task has been brought to the front
Solution: Close the app in your movil device o emulator and run it again.
Error: ActivityManager: Advertencia: La actividad no ha iniciado, la tarea actual ha sido llevado adelante
Solución: Cierre la aplicación en su dispositivo móvil o emulador y ejecútala de nuevo.
Regards.
Solution: Close the app in your movil device o emulator and run it again.
Error: ActivityManager: Advertencia: La actividad no ha iniciado, la tarea actual ha sido llevado adelante
Solución: Cierre la aplicación en su dispositivo móvil o emulador y ejecútala de nuevo.
Regards.
Subscribe to:
Posts (Atom)